swagger-client 3.29.1 → 3.29.2
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,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see swagger-client.browser.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={7427:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},s=(t||{}).decode||n,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var c=e.indexOf(";",i);if(-1===c)c=e.length;else if(c<a){i=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(i,a).trim();if(void 0===r[l]){var u=e.slice(a+1,c).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=o(u,s)}i=c+1}return r},t.serialize=function(e,t,n){var o=n||{},a=o.encode||i;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!s.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!s.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!s.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+p.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");o.partitioned&&(l+="; Partitioned");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=Object.prototype.toString,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}function o(e,t){try{return t(e)}catch(t){return e}}},4744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return s(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=s(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))})),n}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=s;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):s(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},5580:(e,t,r)=>{var s=r(6110)(r(9325),"DataView");e.exports=s},1549:(e,t,r)=>{var s=r(2032),n=r(3862),i=r(6721),o=r(2749),a=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},79:(e,t,r)=>{var s=r(3702),n=r(80),i=r(4739),o=r(8655),a=r(3556);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8223:(e,t,r)=>{var s=r(6110)(r(9325),"Map");e.exports=s},3661:(e,t,r)=>{var s=r(3040),n=r(7670),i=r(289),o=r(4509),a=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2804:(e,t,r)=>{var s=r(6110)(r(9325),"Promise");e.exports=s},6545:(e,t,r)=>{var s=r(6110)(r(9325),"Set");e.exports=s},8859:(e,t,r)=>{var s=r(3661),n=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},7217:(e,t,r)=>{var s=r(79),n=r(1420),i=r(938),o=r(3605),a=r(9817),c=r(945);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1873:(e,t,r)=>{var s=r(9325).Symbol;e.exports=s},7828:(e,t,r)=>{var s=r(9325).Uint8Array;e.exports=s},8303:(e,t,r)=>{var s=r(6110)(r(9325),"WeakMap");e.exports=s},9770:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},695:(e,t,r)=>{var s=r(8096),n=r(2428),i=r(6449),o=r(3656),a=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),d=r||u||p||h,f=d?s(e.length,String):[],m=f.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m))||f.push(y);return f}},4528:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},4248:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6025:(e,t,r)=>{var s=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},2199:(e,t,r)=>{var s=r(4528),n=r(6449);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},2552:(e,t,r)=>{var s=r(1873),n=r(659),i=r(9350),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7534:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},270:(e,t,r)=>{var s=r(7068),n=r(346);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},7068:(e,t,r)=>{var s=r(7217),n=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,y,g){var v=c(e),b=c(t),x=v?h:a(e),E=b?h:a(t),w=(x=x==p?d:x)==d,j=(E=E==p?d:E)==d,O=x==E;if(O&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(O&&!w)return g||(g=new s),v||u(e)?n(e,t,r,m,y,g):i(e,t,x,r,m,y,g);if(!(1&r)){var S=w&&f.call(e,"__wrapped__"),P=j&&f.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new s),y(A,$,r,m,g)}}return!!O&&(g||(g=new s),o(e,t,r,m,y,g))}},5083:(e,t,r)=>{var s=r(1882),n=r(7296),i=r(3805),o=r(7473),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},4901:(e,t,r)=>{var s=r(2552),n=r(294),i=r(346),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)&&n(e.length)&&!!o[s(e)]}},8984:(e,t,r)=>{var s=r(5527),n=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},9219:e=>{e.exports=function(e,t){return e.has(t)}},5481:(e,t,r)=>{var s=r(9325)["__core-js_shared__"];e.exports=s},5911:(e,t,r)=>{var s=r(8859),n=r(4248),i=r(9219);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var f=-1,m=!0,y=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++f<u;){var g=e[f],v=t[f];if(o)var b=l?o(v,g,f,t,e,c):o(g,v,f,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){m=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},1986:(e,t,r)=>{var s=r(1873),n=r(7828),i=r(5288),o=r(5911),a=r(317),c=r(4247),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,l,p,h){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 n(e),new n(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 d=a;case"[object Set]":var f=1&s;if(d||(d=c),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;s|=2,h.set(e,t);var y=o(d(e),d(t),s,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:(e,t,r)=>{var s=r(2),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:n.call(t,h)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){m=!1;break}y||(y="constructor"==h)}if(m&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(m=!1)}return a.delete(e),a.delete(t),m}},2459:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2:(e,t,r)=>{var s=r(2199),n=r(4664),i=r(5950);e.exports=function(e){return s(e,i,n)}},2651:(e,t,r)=>{var s=r(4218);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110:(e,t,r)=>{var s=r(5083),n=r(392);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},659:(e,t,r)=>{var s=r(1873),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},4664:(e,t,r)=>{var s=r(9770),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},5861:(e,t,r)=>{var s=r(5580),n=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",f="[object DataView]",m=l(s),y=l(n),g=l(i),v=l(o),b=l(a),x=c;(s&&x(new s(new ArrayBuffer(1)))!=f||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=d)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case m:return f;case y:return u;case g:return p;case v:return h;case b:return d}return t}),e.exports=x},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,r)=>{var s=r(5804);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,r)=>{var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},2749:(e,t,r)=>{var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5749:(e,t,r)=>{var s=r(5804);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,r)=>{var s,n=r(5481),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,r)=>{var s=r(6025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4739:(e,t,r)=>{var s=r(6025);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},8655:(e,t,r)=>{var s=r(6025);e.exports=function(e){return s(this.__data__,e)>-1}},3556:(e,t,r)=>{var s=r(6025);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3040:(e,t,r)=>{var s=r(1549),n=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},7670:(e,t,r)=>{var s=r(2651);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,r)=>{var s=r(2651);e.exports=function(e){return s(this,e).get(e)}},4509:(e,t,r)=>{var s=r(2651);e.exports=function(e){return s(this,e).has(e)}},2949:(e,t,r)=>{var s=r(2651);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},5804:(e,t,r)=>{var s=r(6110)(Object,"create");e.exports=s},3650:(e,t,r)=>{var s=r(4335)(Object.keys,Object);e.exports=s},6009:(e,t,r)=>{e=r.nmd(e);var s=r(2459),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.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},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},9325:(e,t,r)=>{var s=r(2459),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},1420:(e,t,r)=>{var s=r(79);e.exports=function(){this.__data__=new s,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,r)=>{var s=r(79),n=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||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}},7473: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""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428:(e,t,r)=>{var s=r(7534),n=r(346),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,r)=>{var s=r(1882),n=r(294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},3812:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3656:(e,t,r)=>{e=r.nmd(e);var s=r(9325),n=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},2404:(e,t,r)=>{var s=r(270);e.exports=function(e,t){return s(e,t)}},1882:(e,t,r)=>{var s=r(2552),n=r(3805);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187:e=>{e.exports=function(e){return null===e}},8023:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5015:(e,t,r)=>{var s=r(2552),n=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},7167:(e,t,r)=>{var s=r(4901),n=r(7301),i=r(6009),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},5950:(e,t,r)=>{var s=r(695),n=r(8984),i=r(4894);e.exports=function(e){return i(e)?s(e):n(e)}},6048: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)}}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},2340:(e,t,r)=>{const s=r(6048);function n(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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(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},5973: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},3110:(e,t,r)=>{const s=r(5187),n=r(5015),i=r(8023),o=r(3812),a=r(3805),c=r(5105),l=r(6804);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(s,l.NullElement,!1).detect(n,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,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 s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(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},866:(e,t,r)=>{const s=r(6048),n=r(2340);class i extends n{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(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},6804:(e,t,r)=>{const s=r(316),n=r(1067),i=r(1167),o=r(239),a=r(2242),c=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),d=r(2340),f=r(866),m=r(5973);function y(e){if(e instanceof s)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 n;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,d.prototype.refract=y,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:d,ObjectSlice:f,KeyValuePair:m}},6303:(e,t,r)=>{const s=r(316);e.exports=class extends s{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)}}},4540:(e,t,r)=>{const s=r(316);e.exports=class extends s{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)}}},4035:(e,t,r)=>{const s=r(3110),n=r(6804);t.g$=s,t.KeyValuePair=r(5973),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(5105),r(5147)},6233:(e,t,r)=>{const s=r(6048),n=r(316),i=r(2340);class o extends n{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}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||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}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},2242:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316:(e,t,r)=>{const s=r(2404),n=r(5973),i=r(2340);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 n?{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 s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(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 s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(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 n)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 n){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},7726:(e,t,r)=>{const s=r(5973),n=r(316);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),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)}}},1067:(e,t,r)=>{const s=r(316);e.exports=class extends s{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")}}},239:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045:(e,t,r)=>{const s=r(6048),n=r(3805),i=r(6233),o=r(7726),a=r(866);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(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.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(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},1167:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},5147:(e,t,r)=>{const s=r(5105);e.exports=class extends s{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 s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)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 s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}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([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),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 s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);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 s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},5105: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]))}))}}},5606:e=>{var t,r,s=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=o(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new d(e,t)),1!==c.length||l||o(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},8068:e=>{"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,a=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),l={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>f});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),c(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const s=`_${e}_dict_ranges`,n=this._dict_ranges[s];Object.keys(n).forEach((e=>{const s=e;for(this.dictRange=n[s],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-e))}return r})),c(this,"setDictionary",((e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{let t,r,s;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",s=0;s<e;s+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const s=e.slice(0,2),n=parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return`${i.substring(0,n)}${r}${i.substring(n)}${n.toString(16)}`})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),s=parseInt(e.slice(2),10);return t[r](s)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,s)=>e.substring(r.length,r.length+s.length))):e;if(8===r.length)return new Date(1e3*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=parseInt(r.substring(r.length-1),16);return new Date(1e3*parseInt(r.substring(s,s+8),16))})),c(this,"setCounter",(e=>{this.counter=e})),c(this,"validate",((e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every((e=>r.includes(e)))}));const t=a(a({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.2.0";const{dictionary:r,shuffle:s,length:n,counter:i}=t;return this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};c(h,"default",h);var d,f=h;return d=l,((s,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))n.call(s,c)||c===o||e(s,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},8675:(e,t,r)=>{e.exports=r(850)},8623:(e,t,r)=>{"use strict";var s=r(694);e.exports=s},7257:(e,t,r)=>{"use strict";r(6605),r(4502),r(6371),r(9363),r(7057);var s=r(2046);e.exports=s.AggregateError},850:(e,t,r)=>{"use strict";e.exports=r(6076)},6076:(e,t,r)=>{"use strict";r(1599);var s=r(8623);e.exports=s},2159:(e,t,r)=>{"use strict";var s=r(2250),n=r(4640),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},43:(e,t,r)=>{"use strict";var s=r(4018),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2156:e=>{"use strict";e.exports=function(){}},6624:(e,t,r)=>{"use strict";var s=r(6285),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},4436:(e,t,r)=>{"use strict";var s=r(7374),n=r(4849),i=r(575),o=function(e){return function(t,r,o){var a=s(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5807:(e,t,r)=>{"use strict";var s=r(1907),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},3948:(e,t,r)=>{"use strict";var s=r(2623),n=r(2250),i=r(5807),o=r(6264)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},9595:(e,t,r)=>{"use strict";var s=r(9724),n=r(1042),i=r(3846),o=r(4284);e.exports=function(e,t,r){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];s(e,p)||r&&s(r,p)||c(e,p,l(t,p))}}},7382:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9550:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},1626:(e,t,r)=>{"use strict";var s=r(9447),n=r(4284),i=r(5817);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5817:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8055:(e,t,r)=>{"use strict";var s=r(1626);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},2532:(e,t,r)=>{"use strict";var s=r(1010),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},9447:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(e,t,r)=>{"use strict";var s=r(1010),n=r(6285),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9287:e=>{"use strict";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}},4723:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5683:(e,t,r)=>{"use strict";var s,n,i=r(1010),o=r(4723),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},376:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5762:(e,t,r)=>{"use strict";var s=r(1907),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},5884:(e,t,r)=>{"use strict";var s=r(1626),n=r(5762),i=r(3888),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},3888:(e,t,r)=>{"use strict";var s=r(8828),n=r(5817);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},1091:(e,t,r)=>{"use strict";var s=r(1010),n=r(6024),i=r(2361),o=r(2250),a=r(3846).f,c=r(7463),l=r(2046),u=r(8311),p=r(1626),h=r(9724);r(6128);var d=function(e){var t=function(r,s,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,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,f,m,y,g,v,b,x,E=e.target,w=e.global,j=e.stat,O=e.proto,S=w?s:j?s[E]:s[E]&&s[E].prototype,P=w?l:l[E]||p(l,E,{})[E],A=P.prototype;for(m in t)n=!(r=c(w?m:E+(j?".":"#")+m,e.forced))&&S&&h(S,m),g=P[m],n&&(v=e.dontCallGetSet?(x=a(S,m))&&x.value:S[m]),y=n&&v?v:t[m],(r||O||typeof g!=typeof y)&&(b=e.bind&&n?u(y,s):e.wrap&&n?d(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,m,b),O&&(h(l,f=E+"Prototype")||p(l,f,{}),p(l[f],m,y),e.real&&A&&(r||!A[m])&&p(A,m,y)))}},8828:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6024:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},8311:(e,t,r)=>{"use strict";var s=r(2361),n=r(2159),i=r(1505),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1505:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3930:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},6833:(e,t,r)=>{"use strict";var s=r(9447),n=r(9724),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},1871:(e,t,r)=>{"use strict";var s=r(1907),n=r(2159);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2361:(e,t,r)=>{"use strict";var s=r(5807),n=r(1907);e.exports=function(e){if("Function"===s(e))return n(e)}},1907:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},5582:(e,t,r)=>{"use strict";var s=r(2046),n=r(1010),i=r(2250),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},3448:(e,t,r)=>{"use strict";var s=r(3948),n=r(9367),i=r(7136),o=r(3742),a=r(6264)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},300:(e,t,r)=>{"use strict";var s=r(3930),n=r(2159),i=r(6624),o=r(4640),a=r(3448),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},9367:(e,t,r)=>{"use strict";var s=r(2159),n=r(7136);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},1010:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724:(e,t,r)=>{"use strict";var s=r(1907),n=r(9298),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},8530:e=>{"use strict";e.exports={}},2416:(e,t,r)=>{"use strict";var s=r(5582);e.exports=s("document","documentElement")},3648:(e,t,r)=>{"use strict";var s=r(9447),n=r(8828),i=r(9552);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6946:(e,t,r)=>{"use strict";var s=r(1907),n=r(8828),i=r(5807),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},4084:(e,t,r)=>{"use strict";var s=r(2250),n=r(6285),i=r(9192);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},9259:(e,t,r)=>{"use strict";var s=r(6285),n=r(1626);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},4932:(e,t,r)=>{"use strict";var s,n,i,o=r(551),a=r(1010),c=r(6285),l=r(1626),u=r(9724),p=r(6128),h=r(2522),d=r(8530),f="Object already initialized",m=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,s=function(e,t){if(g.has(e))throw new m(f);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");d[v]=!0,s=function(e,t){if(u(e,v))throw new m(f);return t.facade=e,l(e,v,t),t},n=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},7812:(e,t,r)=>{"use strict";var s=r(6264),n=r(3742),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2250:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},7463:(e,t,r)=>{"use strict";var s=r(8828),n=r(2250),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===u||r!==l&&(n(t)?s(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},7136:e=>{"use strict";e.exports=function(e){return null==e}},6285:(e,t,r)=>{"use strict";var s=r(2250);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},4018:(e,t,r)=>{"use strict";var s=r(6285);e.exports=function(e){return s(e)||null===e}},7376:e=>{"use strict";e.exports=!0},5594:(e,t,r)=>{"use strict";var s=r(5582),n=r(2250),i=r(8280),o=r(1175),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},4823:(e,t,r)=>{"use strict";var s=r(8311),n=r(3930),i=r(6624),o=r(4640),a=r(7812),c=r(575),l=r(8280),u=r(300),p=r(3448),h=r(154),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,r){var y,g,v,b,x,E,w,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=s(t,j),T=function(e){return y&&h(y,"normal",e),new f(!0,e)},k=function(e){return O?(i(e),A?$(e[0],e[1],T):$(e[0],e[1])):A?$(e,T):$(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw new d(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=k(e[v]))&&l(m,x))return x;return new f(!1)}y=u(e,g)}for(E=S?e.next:y.next;!(w=n(E,y)).done;){try{x=k(w.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(m,x))return x}return new f(!1)}},154:(e,t,r)=>{"use strict";var s=r(3930),n=r(6624),i=r(9367);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},7181:(e,t,r)=>{"use strict";var s=r(5116).IteratorPrototype,n=r(8075),i=r(5817),o=r(4840),a=r(3742),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},183:(e,t,r)=>{"use strict";var s=r(1091),n=r(3930),i=r(7376),o=r(6833),a=r(2250),c=r(7181),l=r(5972),u=r(9192),p=r(4840),h=r(1626),d=r(8055),f=r(6264),m=r(3742),y=r(5116),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=f("iterator"),w="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,f,y,P){c(r,t,o);var A,$,T,k=function(e){if(e===f&&F)return F;if(!x&&e&&e in M)return M[e];switch(e){case w:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},_=t+" Iterator",C=!1,M=e.prototype,I=M[E]||M["@@iterator"]||f&&M[f],F=!x&&I||k(f),R="Array"===t&&M.entries||I;if(R&&(A=l(R.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[E])||d(A,E,S)),p(A,_,!0,!0),i&&(m[_]=S)),g&&f===j&&I&&I.name!==j&&(!i&&v?h(M,"name",j):(C=!0,F=function(){return n(I,this)})),f)if($={values:k(j),keys:y?F:k(w),entries:k(O)},P)for(T in $)(x||C||!(T in M))&&d(M,T,$[T]);else s({target:t,proto:!0,forced:x||C},$);return i&&!P||M[E]===F||d(M,E,F,{name:f}),m[t]=F,$}},5116:(e,t,r)=>{"use strict";var s,n,i,o=r(8828),a=r(2250),c=r(6285),l=r(8075),u=r(5972),p=r(8055),h=r(6264),d=r(7376),f=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):m=!0),!c(s)||o((function(){var e={};return s[f].call(e)!==e}))?s={}:d&&(s=l(s)),a(s[f])||p(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},3742:e=>{"use strict";e.exports={}},575:(e,t,r)=>{"use strict";var s=r(3121);e.exports=function(e){return s(e.length)}},1176:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},2096:(e,t,r)=>{"use strict";var s=r(160);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},8075:(e,t,r)=>{"use strict";var s,n=r(6624),i=r(2220),o=r(376),a=r(8530),c=r(2416),l=r(9552),u=r(2522),p="prototype",h="script",d=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&s?y(s):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):y(s);for(var n=o.length;n--;)delete g[p][o[n]];return g()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=n(e),r=new f,f[p]=null,r[d]=e):r=g(),void 0===t?r:i.f(r,t)}},2220:(e,t,r)=>{"use strict";var s=r(9447),n=r(8661),i=r(4284),o=r(6624),a=r(7374),c=r(2875);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],s[r]);return e}},4284:(e,t,r)=>{"use strict";var s=r(9447),n=r(3648),i=r(8661),o=r(6624),a=r(470),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var s=u(e,t);s&&s[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3846:(e,t,r)=>{"use strict";var s=r(9447),n=r(3930),i=r(2574),o=r(5817),a=r(7374),c=r(470),l=r(9724),u=r(3648),p=Object.getOwnPropertyDescriptor;t.f=s?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(!n(i.f,e,t),e[t])}},4443:(e,t,r)=>{"use strict";var s=r(3045),n=r(376).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7170:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},5972:(e,t,r)=>{"use strict";var s=r(9724),n=r(2250),i=r(9298),o=r(2522),a=r(7382),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8280:(e,t,r)=>{"use strict";var s=r(1907);e.exports=s({}.isPrototypeOf)},3045:(e,t,r)=>{"use strict";var s=r(1907),n=r(9724),i=r(7374),o=r(4436).indexOf,a=r(8530),c=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&c(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||c(u,r));return u}},2875:(e,t,r)=>{"use strict";var s=r(3045),n=r(376);e.exports=Object.keys||function(e){return s(e,n)}},2574:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},9192:(e,t,r)=>{"use strict";var s=r(1871),n=r(6285),i=r(4239),o=r(43);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return i(r),o(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},4878:(e,t,r)=>{"use strict";var s=r(2623),n=r(3948);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},581:(e,t,r)=>{"use strict";var s=r(3930),n=r(2250),i=r(6285),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},1042:(e,t,r)=>{"use strict";var s=r(5582),n=r(1907),i=r(4443),o=r(7170),a=r(6624),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},2046:e=>{"use strict";e.exports={}},4829:(e,t,r)=>{"use strict";var s=r(4284).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4239:(e,t,r)=>{"use strict";var s=r(7136),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},4840:(e,t,r)=>{"use strict";var s=r(2623),n=r(4284).f,i=r(1626),o=r(9724),a=r(4878),c=r(6264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!s&&i(u,"toString",a))}},2522:(e,t,r)=>{"use strict";var s=r(5816),n=r(6499),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},6128:(e,t,r)=>{"use strict";var s=r(7376),n=r(1010),i=r(2532),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.37.1",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5816:(e,t,r)=>{"use strict";var s=r(6128);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},1470:(e,t,r)=>{"use strict";var s=r(1907),n=r(5482),i=r(160),o=r(4239),a=s("".charAt),c=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),h=n(r),d=p.length;return h<0||h>=d?e?"":void 0:(s=c(p,h))<55296||s>56319||h+1===d||(u=c(p,h+1))<56320||u>57343?e?a(p,h):s:e?l(p,h,h+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},9846:(e,t,r)=>{"use strict";var s=r(5683),n=r(8828),i=r(1010).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4849:(e,t,r)=>{"use strict";var s=r(5482),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},7374:(e,t,r)=>{"use strict";var s=r(6946),n=r(4239);e.exports=function(e){return s(n(e))}},5482:(e,t,r)=>{"use strict";var s=r(1176);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},3121:(e,t,r)=>{"use strict";var s=r(5482),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},9298:(e,t,r)=>{"use strict";var s=r(4239),n=Object;e.exports=function(e){return n(s(e))}},6028:(e,t,r)=>{"use strict";var s=r(3930),n=r(6285),i=r(5594),o=r(9367),a=r(581),c=r(6264),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},470:(e,t,r)=>{"use strict";var s=r(6028),n=r(5594);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},2623:(e,t,r)=>{"use strict";var s={};s[r(6264)("toStringTag")]="z",e.exports="[object z]"===String(s)},160:(e,t,r)=>{"use strict";var s=r(3948),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},4640:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6499:(e,t,r)=>{"use strict";var s=r(1907),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1175:(e,t,r)=>{"use strict";var s=r(9846);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661:(e,t,r)=>{"use strict";var s=r(9447),n=r(8828);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},551:(e,t,r)=>{"use strict";var s=r(1010),n=r(2250),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},6264:(e,t,r)=>{"use strict";var s=r(1010),n=r(5816),i=r(9724),o=r(6499),a=r(9846),c=r(1175),l=s.Symbol,u=n("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]}},9358:(e,t,r)=>{"use strict";var s=r(5582),n=r(9724),i=r(1626),o=r(8280),a=r(9192),c=r(9595),l=r(4829),u=r(4084),p=r(2096),h=r(9259),d=r(5884),f=r(9447),m=r(7376);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],E=s.apply(null,b);if(E){var w=E.prototype;if(!m&&n(w,"cause")&&delete w.cause,!r)return E;var j=s("Error"),O=t((function(e,t){var r=p(y?t:e,void 0),s=y?new E(e):new E;return void 0!==r&&i(s,"message",r),d(s,O,s.stack,2),this&&o(w,this)&&u(s,this,O),arguments.length>v&&h(s,arguments[v]),s}));if(O.prototype=w,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):f&&g in E&&(l(O,E,g),l(O,E,"prepareStackTrace")),c(O,E),!m)try{w.name!==x&&i(w,"name",x),w.constructor=O}catch(e){}return O}}},6371:(e,t,r)=>{"use strict";var s=r(1091),n=r(5582),i=r(6024),o=r(8828),a=r(9358),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),u,!0)})},2048:(e,t,r)=>{"use strict";var s=r(1091),n=r(8280),i=r(5972),o=r(9192),a=r(9595),c=r(8075),l=r(1626),u=r(5817),p=r(9259),h=r(5884),d=r(4823),f=r(2096),m=r(6264)("toStringTag"),y=Error,g=[].push,v=function(e,t){var r,s=n(b,this);o?r=o(new y,s?i(this):b):(r=s?this:c(b),l(r,m,"Error")),void 0!==t&&l(r,"message",f(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return d(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:v})},4502:(e,t,r)=>{"use strict";r(2048)},9363:(e,t,r)=>{"use strict";var s=r(7374),n=r(2156),i=r(3742),o=r(4932),a=r(4284).f,c=r(183),l=r(9550),u=r(7376),p=r(9447),h="Array Iterator",d=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){d(this,{type:h,target:s(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)}),"values");var m=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},6605:(e,t,r)=>{"use strict";var s=r(1091),n=r(1010),i=r(6024),o=r(9358),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),s({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),s({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};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)}}))},7057:(e,t,r)=>{"use strict";var s=r(1470).charAt,n=r(160),i=r(4932),o=r(183),a=r(9550),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},1599:(e,t,r)=>{"use strict";r(4502)},2560:(e,t,r)=>{"use strict";r(9363);var s=r(9287),n=r(1010),i=r(4840),o=r(3742);for(var a in s)i(n[a],a),o[a]=o.Array},694:(e,t,r)=>{"use strict";r(1599);var s=r(7257);r(2560),e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s={};return(()=>{"use strict";r.d(s,{default:()=>IO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Yr,_areEquals:()=>os,applyOperation:()=>ts,applyPatch:()=>rs,applyReducer:()=>ss,deepClone:()=>Xr,getValueByPointer:()=>es,validate:()=>is,validator:()=>ns});var t={};r.r(t),r.d(t,{compare:()=>fs,generate:()=>hs,observe:()=>ps,unobserve:()=>us});var n={};r.r(n),r.d(n,{bJ:()=>Qi,uQ:()=>Ji,Zd:()=>Xi,q$:()=>Wi,hd:()=>eo,aj:()=>to,z9:()=>Zi,zj:()=>ro});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>wc,includesClasses:()=>Oc,includesSymbols:()=>jc,isAnnotationElement:()=>gc,isArrayElement:()=>dc,isBooleanElement:()=>pc,isCommentElement:()=>vc,isElement:()=>ac,isLinkElement:()=>mc,isMemberElement:()=>fc,isNullElement:()=>uc,isNumberElement:()=>lc,isObjectElement:()=>hc,isParseResultElement:()=>bc,isPrimitiveElement:()=>Ec,isRefElement:()=>yc,isSourceMapElement:()=>xc,isStringElement:()=>cc});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Hh,isJSONSchemaElement:()=>Vh,isLinkDescriptionElement:()=>Gh,isMediaElement:()=>zh});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>jf,isCallbackElement:()=>rf,isComponentsElement:()=>sf,isContactElement:()=>nf,isExampleElement:()=>of,isExternalDocumentationElement:()=>af,isHeaderElement:()=>cf,isInfoElement:()=>lf,isLicenseElement:()=>uf,isLinkElement:()=>pf,isMediaTypeElement:()=>$f,isOpenApi3_0Element:()=>df,isOpenapiElement:()=>hf,isOperationElement:()=>ff,isParameterElement:()=>mf,isPathItemElement:()=>yf,isPathsElement:()=>gf,isReferenceElement:()=>vf,isRequestBodyElement:()=>bf,isResponseElement:()=>xf,isResponsesElement:()=>Ef,isSchemaElement:()=>wf,isSecurityRequirementElement:()=>Of,isSecuritySchemeElement:()=>Sf,isServerElement:()=>Pf,isServerVariableElement:()=>Af,isServersElement:()=>Tf});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>ex,isCallbackElement:()=>_b,isComponentsElement:()=>Cb,isContactElement:()=>Mb,isExampleElement:()=>Ib,isExternalDocumentationElement:()=>Fb,isHeaderElement:()=>Rb,isInfoElement:()=>Db,isJsonSchemaDialectElement:()=>Nb,isLicenseElement:()=>Lb,isLinkElement:()=>qb,isMediaTypeElement:()=>ix,isOpenApi3_1Element:()=>Ub,isOpenapiElement:()=>Bb,isOperationElement:()=>Vb,isParameterElement:()=>Hb,isPathItemElement:()=>zb,isPathItemElementExternal:()=>Gb,isPathsElement:()=>Jb,isReferenceElement:()=>Kb,isReferenceElementExternal:()=>Wb,isRequestBodyElement:()=>Yb,isResponseElement:()=>Xb,isResponsesElement:()=>Zb,isSchemaElement:()=>Qb,isSecurityRequirementElement:()=>tx,isSecuritySchemeElement:()=>rx,isServerElement:()=>sx,isServerVariableElement:()=>nx});var l={};r.r(l),r.d(l,{cookie:()=>fO,header:()=>dO,path:()=>uO,query:()=>pO});const u="application/json, application/yaml",p="https://swagger.io",h=Object.freeze({url:"/"}),{fetch:d,Response:f,Headers:m,Request:y,FormData:g,File:v,Blob:b}=globalThis;function x(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function E(e,t){return Array.isArray(e)&&e.some((e=>x(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=d),void 0===globalThis.Headers&&(globalThis.Headers=m),void 0===globalThis.Request&&(globalThis.Request=y),void 0===globalThis.Response&&(globalThis.Response=f),void 0===globalThis.FormData&&(globalThis.FormData=g),void 0===globalThis.File&&(globalThis.File=v),void 0===globalThis.Blob&&(globalThis.Blob=b);class w extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const j=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,O=e=>/^[a-z0-9\-._~]+$/i.test(e);function S(e,t="reserved"){return[...e].map((e=>{if(O(e))return e;if(j(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function P(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:s,escape:n}){if("simple"===r)return t.map((e=>A(e,n))).join(",");if("label"===r)return`.${t.map((e=>A(e,n))).join(".")}`;if("matrix"===r)return t.map((e=>A(e,n))).reduce(((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=s?`&${e}=`:",";return t.map((e=>A(e,n))).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>A(e,n))).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>A(e,n))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:s,escape:n}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=A(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=A(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`}),"");if("matrix"===r&&s)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${A(t[r],n)}`),"");if("matrix"===r)return i.reduce(((r,s)=>{const i=A(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=A(t[r],n);return`${e?`${e}${s?"&":","}`:""}${r}${s?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:s}){if("simple"===r)return A(t,s);if("label"===r)return`.${A(t,s)}`;if("matrix"===r)return`;${e}=${A(t,s)}`;if("form"===r)return A(t,s);if("deepObject"===r)return A(t,s);return}(e)}function A(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&e.length>0?S(e,t):e}const $={form:",",spaceDelimited:"%20",pipeDelimited:"|"},T={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function k(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&n)return[[l,""]];if(x(a)||E(a))return[[l,a]];if(i)return _(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:s,allowReserved:n}=o;return _(e,a,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new w(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new w(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===s?[[l,a.map(c)]]:[[l,a.map(c).join(T[s||"csv"])]]:[[l,""]]}function _(e,t,r,s){const n=s.style||"form",i=void 0===s.explode?"form"===n:s.explode,o=!r&&(s&&s.allowReserved?"unsafe":"reserved"),a=e=>A(e,o),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join($[n])]]:"deepObject"===n?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}const C=(e,{encode:t=!0}={})=>{const r=(e,t,s)=>(null==s?e.append(t,""):Array.isArray(s)?s.reduce(((s,n)=>r(e,t,n)),e):s instanceof Date?e.append(t,s.toISOString()):"object"==typeof s?Object.entries(s).reduce(((s,[n,i])=>r(e,`${t}[${n}]`,i)),e):e.append(t,s),e),s=Object.entries(e).reduce(((e,[t,s])=>r(e,t,s)),new URLSearchParams),n=String(s);return t?n:decodeURIComponent(n)};function M(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[s,n]of k(r,e[r]))t[s]=n instanceof w?n.valueOf():n;return t}),{});return C(t,{encode:!1})}function I(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return x(t)||E(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(n=e.form,Object.entries(n).reduce(((e,[t,r])=>{for(const[s,n]of k(t,r,!0))if(Array.isArray(n))for(const t of n)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(s,r)}else e.append(s,t);else if(ArrayBuffer.isView(n)){const t=new Blob([n]);e.append(s,t)}else e.append(s,n);return e}),new FormData));e.formdata=t,e.body=t}else e.body=M(s);delete e.form}var n;if(r){const[s,n]=t.split("?");let i="";if(n){const e=new URLSearchParams(n);Object.keys(r).forEach((t=>e.delete(t))),i=String(e)}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,M(r));e.url=s+o,delete e.query}return e}function F(e){return null==e}var R={isNothing:F,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:F(e)?[]:[e]},repeat:function(e,t){var r,s="";for(r=0;r<t;r+=1)s+=e;return s},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,s,n,i;if(t)for(r=0,s=(i=Object.keys(t)).length;r<s;r+=1)e[n=i[r]]=t[n];return e}};function D(e,t){var r="",s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),s+" "+r):s}function N(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=D(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}N.prototype=Object.create(Error.prototype),N.prototype.constructor=N,N.prototype.toString=function(e){return this.name+": "+D(this,e)};var L=N;function q(e,t,r,s,n){var i="",o="",a=Math.floor(n/2)-1;return s-t>a&&(t=s-a+(i=" ... ").length),r-s>a&&(r=s+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function B(e,t){return R.repeat(" ",t-e.length)+e}var U=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,s=/\r?\n|\r|\0/g,n=[0],i=[],o=-1;r=s.exec(e.buffer);)i.push(r.index),n.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=q(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),p),l=R.repeat(" ",t.indent)+B((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=q(e.buffer,n[o],i[o],e.position,p),l+=R.repeat(" ",t.indent)+B((e.line+1).toString(),u)+" | "+c.str+"\n",l+=R.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=q(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),p),l+=R.repeat(" ",t.indent)+B((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},V=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],H=["scalar","sequence","mapping"];var z=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===V.indexOf(t))throw new L('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===H.indexOf(this.kind))throw new L('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function G(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,s){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=s)})),r[t]=e})),r}function J(e){return this.extend(e)}J.prototype.extend=function(e){var t=[],r=[];if(e instanceof z)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new L("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof z))throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new L("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new L("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof z))throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(J.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=G(s,"implicit"),s.compiledExplicit=G(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(s);return r}(s.compiledImplicit,s.compiledExplicit),s};var K=J,W=new z("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Y=new z("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),X=new z("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Z=new K({explicit:[W,Y,X]});var Q=new z("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var ee=new z("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function te(e){return 48<=e&&e<=55}function re(e){return 48<=e&&e<=57}var se=new z("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=e.length,n=0,i=!1;if(!s)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===s)return!0;if("b"===(t=e[++n])){for(n++;n<s;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!(48<=(r=e.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!te(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!re(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,s=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(s=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return s*parseInt(r.slice(2),2);if("x"===r[1])return s*parseInt(r.slice(2),16);if("o"===r[1])return s*parseInt(r.slice(2),8)}return s*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!R.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ne=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var ie=/^[-+]?[0-9]+e/;var oe=new z("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ne.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||R.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(R.isNegativeZero(e))return"-0.0";return r=e.toString(10),ie.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),ae=Z.extend({implicit:[Q,ee,se,oe]}),ce=ae,le=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ue=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var pe=new z("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==le.exec(e)||null!==ue.exec(e))},construct:function(e){var t,r,s,n,i,o,a,c,l=0,u=null;if(null===(t=le.exec(e))&&(t=ue.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,s,n));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,s,n,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var he=new z("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var fe=new z("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=de;for(r=0;r<n;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,r,s=e.replace(/[\r\n=]/g,""),n=s.length,i=de,o=0,a=[];for(t=0;t<n;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(s.charAt(t));return 0===(r=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,s="",n=0,i=e.length,o=de;for(t=0;t<i;t++)t%3==0&&t&&(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]),n=(n<<8)+e[t];return 0===(r=i%3)?(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]):2===r?(s+=o[n>>10&63],s+=o[n>>4&63],s+=o[n<<2&63],s+=o[64]):1===r&&(s+=o[n>>2&63],s+=o[n<<4&63],s+=o[64],s+=o[64]),s}}),me=Object.prototype.hasOwnProperty,ye=Object.prototype.toString;var ge=new z("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(s=a[t],i=!1,"[object Object]"!==ye.call(s))return!1;for(n in s)if(me.call(s,n)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0},construct:function(e){return null!==e?e:[]}}),ve=Object.prototype.toString;var be=new z("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(s=o[t],"[object Object]"!==ve.call(s))return!1;if(1!==(n=Object.keys(s)).length)return!1;i[t]=[n[0],s[n[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)s=o[t],n=Object.keys(s),i[t]=[n[0],s[n[0]]];return i}}),xe=Object.prototype.hasOwnProperty;var Ee=new z("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(xe.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),we=ce.extend({implicit:[pe,he],explicit:[fe,ge,be,Ee]}),je=Object.prototype.hasOwnProperty,Oe=1,Se=2,Pe=3,Ae=4,$e=1,Te=2,ke=3,_e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ce=/[\x85\u2028\u2029]/,Me=/[,\[\]\{\}]/,Ie=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Re(e){return Object.prototype.toString.call(e)}function De(e){return 10===e||13===e}function Ne(e){return 9===e||32===e}function Le(e){return 9===e||32===e||10===e||13===e}function qe(e){return 44===e||91===e||93===e||123===e||125===e}function Be(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ue(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Ve(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var He=new Array(256),ze=new Array(256),Ge=0;Ge<256;Ge++)He[Ge]=Ue(Ge)?1:0,ze[Ge]=Ue(Ge);function Je(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||we,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ke(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=U(r),new L(t,r)}function We(e,t){throw Ke(e,t)}function Ye(e,t){e.onWarning&&e.onWarning.call(null,Ke(e,t))}var Xe={YAML:function(e,t,r){var s,n,i;null!==e.version&&We(e,"duplication of %YAML directive"),1!==r.length&&We(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&We(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&We(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Ye(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&We(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Ie.test(s)||We(e,"ill-formed tag handle (first argument) of the TAG directive"),je.call(e.tagMap,s)&&We(e,'there is a previously declared suffix for "'+s+'" tag handle'),Fe.test(n)||We(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){We(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function Ze(e,t,r,s){var n,i,o,a;if(t<r){if(a=e.input.slice(t,r),s)for(n=0,i=a.length;n<i;n+=1)9===(o=a.charCodeAt(n))||32<=o&&o<=1114111||We(e,"expected valid JSON character");else _e.test(a)&&We(e,"the stream contains non-printable characters");e.result+=a}}function Qe(e,t,r,s){var n,i,o,a;for(R.isObject(r)||We(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(n=Object.keys(r)).length;o<a;o+=1)i=n[o],je.call(t,i)||(t[i]=r[i],s[i]=!0)}function et(e,t,r,s,n,i,o,a,c){var l,u;if(Array.isArray(n))for(l=0,u=(n=Array.prototype.slice.call(n)).length;l<u;l+=1)Array.isArray(n[l])&&We(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===Re(n[l])&&(n[l]="[object Object]");if("object"==typeof n&&"[object Object]"===Re(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Qe(e,t,i[l],r);else Qe(e,t,i,r);else e.json||je.call(r,n)||!je.call(t,n)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,We(e,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[n]=i,delete r[n];return t}function tt(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):We(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function rt(e,t,r){for(var s=0,n=e.input.charCodeAt(e.position);0!==n;){for(;Ne(n);)9===n&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!De(n))break;for(tt(e),n=e.input.charCodeAt(e.position),s++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==s&&e.lineIndent<r&&Ye(e,"deficient indentation"),s}function st(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Le(t)))}function nt(e,t){1===t?e.result+=" ":t>1&&(e.result+=R.repeat("\n",t-1))}function it(e,t){var r,s,n=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,We(e,"tab characters must not be used in indentation")),45===s)&&Le(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,ct(e,t,Pe,!1,!0),o.push(e.result),rt(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)We(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0)}function ot(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&We(e,"duplication of a tag property"),60===(n=e.input.charCodeAt(++e.position))?(i=!0,n=e.input.charCodeAt(++e.position)):33===n?(o=!0,r="!!",n=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&62!==n);e.position<e.length?(s=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):We(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Le(n);)33===n&&(o?We(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Ie.test(r)||We(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Me.test(s)&&We(e,"tag suffix cannot contain flow indicator characters")}s&&!Fe.test(s)&&We(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){We(e,"tag name is malformed: "+s)}return i?e.tag=s:je.call(e.tagMap,r)?e.tag=e.tagMap[r]+s:"!"===r?e.tag="!"+s:"!!"===r?e.tag="tag:yaml.org,2002:"+s:We(e,'undeclared tag handle "'+r+'"'),!0}function at(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&We(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Le(r)&&!qe(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&We(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ct(e,t,r,s,n){var i,o,a,c,l,u,p,h,d,f=1,m=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=Ae===r||Pe===r,s&&rt(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;ot(e)||at(e);)rt(e,!0,-1)?(m=!0,a=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):a=!1;if(a&&(a=m||n),1!==f&&Ae!==r||(h=Oe===r||Se===r?t:t+1,d=e.position-e.lineStart,1===f?a&&(it(e,d)||function(e,t,r){var s,n,i,o,a,c,l,u=e.tag,p=e.anchor,h={},d=Object.create(null),f=null,m=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,We(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Le(s)){if(o=e.line,a=e.lineStart,c=e.position,!ct(e,r,Se,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);Ne(l);)l=e.input.charCodeAt(++e.position);if(58===l)Le(l=e.input.charCodeAt(++e.position))||We(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(et(e,h,d,f,m,null,o,a,c),f=m=y=null),v=!0,g=!1,n=!1,f=e.tag,m=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;We(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;We(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(et(e,h,d,f,m,null,o,a,c),f=m=y=null),v=!0,g=!0,n=!0):g?(g=!1,n=!0):We(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=s;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),ct(e,t,Ae,!0,n)&&(g?m=e.result:y=e.result),g||(et(e,h,d,f,m,y,o,a,c),f=m=y=null),rt(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)We(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&et(e,h,d,f,m,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,d,h))||function(e,t){var r,s,n,i,o,a,c,l,u,p,h,d,f=!0,m=e.tag,y=e.anchor,g=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==d)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(rt(e,!0,t),(d=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;f?44===d&&We(e,"expected the node content, but found ','"):We(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&Le(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,rt(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,ct(e,t,Oe,!1,!0),p=e.tag,u=e.result,rt(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),rt(e,!0,t),ct(e,t,Oe,!1,!0),h=e.result),l?et(e,i,g,p,u,h,r,s,n):a?i.push(et(e,null,g,p,u,h,r,s,n)):i.push(u),rt(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}We(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,s,n,i,o,a=$e,c=!1,l=!1,u=t,p=0,h=!1;if(124===(i=e.input.charCodeAt(e.position)))s=!1;else{if(62!==i)return!1;s=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)$e===a?a=43===i?ke:Te:We(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?We(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?We(e,"repeat of an indentation width identifier"):(u=t+n-1,l=!0)}if(Ne(i)){do{i=e.input.charCodeAt(++e.position)}while(Ne(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!De(i)&&0!==i)}for(;0!==i;){for(tt(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),De(i))p++;else{if(e.lineIndent<u){a===ke?e.result+=R.repeat("\n",c?1+p:p):a===$e&&c&&(e.result+="\n");break}for(s?Ne(i)?(h=!0,e.result+=R.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=R.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=R.repeat("\n",p):e.result+=R.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!De(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ze(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,s,n;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,s=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Ze(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else De(r)?(Ze(e,s,n,!0),nt(e,rt(e,!1,t)),s=n=e.position):e.position===e.lineStart&&st(e)?We(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);We(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,s,n,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ze(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ze(e,r,e.position,!0),De(a=e.input.charCodeAt(++e.position)))rt(e,!1,t);else if(a<256&&He[a])e.result+=ze[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(n=o,i=0;n>0;n--)(o=Be(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:We(e,"expected hexadecimal character");e.result+=Ve(i),e.position++}else We(e,"unknown escape sequence");r=s=e.position}else De(a)?(Ze(e,r,s,!0),nt(e,rt(e,!1,t)),r=s=e.position):e.position===e.lineStart&&st(e)?We(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}We(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,r,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Le(s)&&!qe(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&We(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),je.call(e.anchorMap,r)||We(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}(e)?function(e,t,r){var s,n,i,o,a,c,l,u,p=e.kind,h=e.result;if(Le(u=e.input.charCodeAt(e.position))||qe(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Le(s=e.input.charCodeAt(e.position+1))||r&&qe(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(Le(s=e.input.charCodeAt(e.position+1))||r&&qe(s))break}else if(35===u){if(Le(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&st(e)||r&&qe(u))break;if(De(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ze(e,n,i,!1),nt(e,e.line-a),n=i=e.position,o=!1),Ne(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ze(e,n,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,Oe===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||We(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(y=a&&it(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&We(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(je.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||We(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&We(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):We(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function lt(e){var t,r,s,n,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(rt(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Le(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&We(e,"directive name must not be less than one character in length");0!==n;){for(;Ne(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!De(n));break}if(De(n))break;for(t=e.position;0!==n&&!Le(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&tt(e),je.call(Xe,r)?Xe[r](e,r,s):Ye(e,'unknown document directive "'+r+'"')}rt(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,rt(e,!0,-1)):o&&We(e,"directives end mark is expected"),ct(e,e.lineIndent-1,Ae,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&Ce.test(e.input.slice(i,e.position))&&Ye(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&st(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,rt(e,!0,-1)):e.position<e.length-1&&We(e,"end of the stream or a document separator is expected")}function ut(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new Je(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,We(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)lt(r);return r.documents}var pt={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=ut(e,r);if("function"!=typeof t)return s;for(var n=0,i=s.length;n<i;n+=1)t(s[n])},load:function(e,t){var r=ut(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new L("expected a single document in the stream, but found more")}}},ht=Object.prototype.toString,dt=Object.prototype.hasOwnProperty,ft=65279,mt=9,yt=10,gt=13,vt=32,bt=33,xt=34,Et=35,wt=37,jt=38,Ot=39,St=42,Pt=44,At=45,$t=58,Tt=61,kt=62,_t=63,Ct=64,Mt=91,It=93,Ft=96,Rt=123,Dt=124,Nt=125,Lt={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},qt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Bt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ut(e){var t,r,s;if(t=e.toString(16).toUpperCase(),e<=255)r="x",s=2;else if(e<=65535)r="u",s=4;else{if(!(e<=4294967295))throw new L("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+R.repeat("0",s-t.length)+t}var Vt=1,Ht=2;function zt(e){this.schema=e.schema||we,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=R.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,s,n,i,o,a,c;if(null===t)return{};for(r={},n=0,i=(s=Object.keys(t)).length;n<i;n+=1)o=s[n],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&dt.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?Ht:Vt,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Gt(e,t){for(var r,s=R.repeat(" ",t),n=0,i=-1,o="",a=e.length;n<a;)-1===(i=e.indexOf("\n",n))?(r=e.slice(n),n=a):(r=e.slice(n,i+1),n=i+1),r.length&&"\n"!==r&&(o+=s),o+=r;return o}function Jt(e,t){return"\n"+R.repeat(" ",e.indent*t)}function Kt(e){return e===vt||e===mt}function Wt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==ft||65536<=e&&e<=1114111}function Yt(e){return Wt(e)&&e!==ft&&e!==gt&&e!==yt}function Xt(e,t,r){var s=Yt(e),n=s&&!Kt(e);return(r?s:s&&e!==Pt&&e!==Mt&&e!==It&&e!==Rt&&e!==Nt)&&e!==Et&&!(t===$t&&!n)||Yt(t)&&!Kt(t)&&e===Et||t===$t&&n}function Zt(e,t){var r,s=e.charCodeAt(t);return s>=55296&&s<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(s-55296)+r-56320+65536:s}function Qt(e){return/^\n* /.test(e)}var er=1,tr=2,rr=3,sr=4,nr=5;function ir(e,t,r,s,n,i,o,a){var c,l,u=0,p=null,h=!1,d=!1,f=-1!==s,m=-1,y=Wt(l=Zt(e,0))&&l!==ft&&!Kt(l)&&l!==At&&l!==_t&&l!==$t&&l!==Pt&&l!==Mt&&l!==It&&l!==Rt&&l!==Nt&&l!==Et&&l!==jt&&l!==St&&l!==bt&&l!==Dt&&l!==Tt&&l!==kt&&l!==Ot&&l!==xt&&l!==wt&&l!==Ct&&l!==Ft&&function(e){return!Kt(e)&&e!==$t}(Zt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Wt(u=Zt(e,c)))return nr;y=y&&Xt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Zt(e,c))===yt)h=!0,f&&(d=d||c-m-1>s&&" "!==e[m+1],m=c);else if(!Wt(u))return nr;y=y&&Xt(u,p,a),p=u}d=d||f&&c-m-1>s&&" "!==e[m+1]}return h||d?r>9&&Qt(e)?nr:o?i===Ht?nr:tr:d?sr:rr:!y||o||n(e)?i===Ht?nr:tr:er}function or(e,t,r,s,n){e.dump=function(){if(0===t.length)return e.quotingType===Ht?'""':"''";if(!e.noCompatMode&&(-1!==qt.indexOf(t)||Bt.test(t)))return e.quotingType===Ht?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=s||e.flowLevel>-1&&r>=e.flowLevel;switch(ir(t,a,e.indent,o,(function(t){return function(e,t){var r,s;for(r=0,s=e.implicitTypes.length;r<s;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!s,n)){case er:return t;case tr:return"'"+t.replace(/'/g,"''")+"'";case rr:return"|"+ar(t,e.indent)+cr(Gt(t,i));case sr:return">"+ar(t,e.indent)+cr(Gt(function(e,t){var r,s,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,lr(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;s=n.exec(e);){var c=s[1],l=s[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+lr(l,t),o=r}return i}(t,o),i));case nr:return'"'+function(e){for(var t,r="",s=0,n=0;n<e.length;s>=65536?n+=2:n++)s=Zt(e,n),!(t=Lt[s])&&Wt(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||Ut(s);return r}(t)+'"';default:throw new L("impossible error: invalid scalar style")}}()}function ar(e,t){var r=Qt(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function cr(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function lr(e,t){if(""===e||" "===e[0])return e;for(var r,s,n=/ [^ ]/g,i=0,o=0,a=0,c="";r=n.exec(e);)(a=r.index)-i>t&&(s=o>i?o:a,c+="\n"+e.slice(i,s),i=s+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function ur(e,t,r,s){var n,i,o,a="",c=e.tag;for(n=0,i=r.length;n<i;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(hr(e,t+1,o,!0,!0,!1,!0)||void 0===o&&hr(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=Jt(e,t)),e.dump&&yt===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function pr(e,t,r){var s,n,i,o,a,c;for(i=0,o=(n=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=n[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===ht.call(a.represent))s=a.represent(t,c);else{if(!dt.call(a.represent,c))throw new L("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');s=a.represent[c](t,c)}e.dump=s}return!0}return!1}function hr(e,t,r,s,n,i,o){e.tag=null,e.dump=r,pr(e,r,!1)||pr(e,r,!0);var a,c=ht.call(e.dump),l=s;s&&(s=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(n=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)s&&0!==Object.keys(e.dump).length?(!function(e,t,r,s){var n,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new L("sortKeys must be a boolean or a function");for(n=0,i=h.length;n<i;n+=1)l="",s&&""===u||(l+=Jt(e,t)),a=r[o=h[n]],e.replacer&&(a=e.replacer.call(r,o,a)),hr(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&yt===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Jt(e,t)),hr(e,t+1,a,!0,c)&&(e.dump&&yt===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o,a,c="",l=e.tag,u=Object.keys(r);for(s=0,n=u.length;s<n;s+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[s]],e.replacer&&(o=e.replacer.call(r,i,o)),hr(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),hr(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)s&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?ur(e,t-1,e.dump,n):ur(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o="",a=e.tag;for(s=0,n=r.length;s<n;s+=1)i=r[s],e.replacer&&(i=e.replacer.call(r,String(s),i)),(hr(e,t,i,!1,!1)||void 0===i&&hr(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new L("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&or(e,e.dump,t,i,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function dr(e,t){var r,s,n=[],i=[];for(fr(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function fr(e,t,r){var s,n,i;if(null!==e&&"object"==typeof e)if(-1!==(n=t.indexOf(e)))-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,i=e.length;n<i;n+=1)fr(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)fr(e[s[n]],t,r)}function mr(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var yr=z,gr=K,vr=Z,br=ae,xr=ce,Er=we,wr=pt.load,jr=pt.loadAll,Or={dump:function(e,t){var r=new zt(t=t||{});r.noRefs||dr(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),hr(r,0,s,!0,!0)?r.dump+"\n":""}}.dump,Sr=L,Pr={binary:fe,float:oe,map:X,null:Q,pairs:be,set:Ee,timestamp:pe,bool:ee,int:se,merge:he,omap:ge,seq:Y,str:W},Ar=mr("safeLoad","load"),$r=mr("safeLoadAll","loadAll"),Tr=mr("safeDump","dump");const kr={Type:yr,Schema:gr,FAILSAFE_SCHEMA:vr,JSON_SCHEMA:br,CORE_SCHEMA:xr,DEFAULT_SCHEMA:Er,load:wr,loadAll:jr,dump:Or,YAMLException:Sr,types:Pr,safeLoad:Ar,safeLoadAll:$r,safeDump:Tr},_r=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Cr(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Mr(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Cr(e.headers)},n=s.headers["content-type"],i=r||_r(n);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(s.text=e,s.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):kr.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function Ir(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=I(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let s;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{s=await(t.userFetch||fetch)(t.url,t),s=await Mr(s,e,t),t.responseInterceptor&&(s=await t.responseInterceptor(s)||s)}catch(e){if(!s)throw e;const t=new Error(s.statusText||`response status is ${s.status}`);throw t.status=s.status,t.statusCode=s.status,t.responseError=e,t}if(!s.ok){const e=new Error(s.statusText||`response status is ${s.status}`);throw e.status=s.status,e.statusCode=s.status,e.response=s,e}return s}function Fr(e,t={}){const{requestInterceptor:r,responseInterceptor:s}=t,n=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:s,headers:{Accept:u},credentials:n}).then((e=>e.body))}const Rr=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},Dr=e=>{const{fetch:t,http:r}=e;return t||r||Ir};var Nr,Lr=(Nr=function(e,t){return Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Nr(e,t)},function(e,t){function r(){this.constructor=e}Nr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),qr=Object.prototype.hasOwnProperty;function Br(e,t){return qr.call(e,t)}function Ur(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var s=[];for(var n in e)Br(e,n)&&s.push(n);return s}function Vr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Hr(e){for(var t,r=0,s=e.length;r<s;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function zr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Gr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Jr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Jr(e[t]))return!0}else if("object"==typeof e)for(var s=Ur(e),n=s.length,i=0;i<n;i++)if(Jr(e[s[i]]))return!0;return!1}function Kr(e,t){var r=[e];for(var s in t){var n="object"==typeof t[s]?JSON.stringify(t[s],null,2):t[s];void 0!==n&&r.push(s+": "+n)}return r.join("\n")}var Wr=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,Kr(t,{name:r,index:s,operation:n,tree:i}))||this;return a.name=r,a.index=s,a.operation=n,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=Kr(t,{name:r,index:s,operation:n,tree:i}),a}return Lr(t,e),t}(Error),Yr=Wr,Xr=Vr,Zr={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var s=e[t];return delete e[t],{newDocument:r,removed:s}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:function(e,t,r){var s=es(r,this.path);s&&(s=Vr(s));var n=ts(r,{op:"remove",path:this.from}).removed;return ts(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=es(r,this.from);return ts(r,{op:"add",path:this.path,value:Vr(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:os(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Qr={add:function(e,t,r){return Hr(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:Zr.move,copy:Zr.copy,test:Zr.test,_get:Zr._get};function es(e,t){if(""==t)return e;var r={op:"_get",path:t};return ts(e,r),r.value}function ts(e,t,r,s,n,i){if(void 0===r&&(r=!1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):ns(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=es(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=os(e,t.value),!1===o.test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Yr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=Vr(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,d=void 0;for(d="function"==typeof r?r:ns;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Gr(h)),n&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&d(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!Hr(h))throw new Yr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Hr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Yr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=Qr[t.op].call(t,c,h,e)).test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=Zr[t.op].call(t,c,h,e)).test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Yr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function rs(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new Yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=Vr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=ts(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function ss(e,t,r){var s=ts(e,t);if(!1===s.test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function ns(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new Yr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Zr[e.op])throw new Yr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Yr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Yr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Yr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Yr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Jr(e.value))throw new Yr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var n=e.path.split("/").length,i=s.split("/").length;if(n!==i+1&&n!==i)throw new Yr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==s)throw new Yr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=is([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Yr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function is(e,t,r){try{if(!Array.isArray(e))throw new Yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)rs(Vr(t),Vr(e),r||!0);else{r=r||ns;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof Yr)return e;throw e}}function os(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,n,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!=r--;)if(!os(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((s=a.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=s;0!=r--;)if(!os(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var as=new WeakMap,cs=function(e){this.observers=new Map,this.obj=e},ls=function(e,t){this.callback=e,this.observer=t};function us(e,t){t.unobserve()}function ps(e,t){var r,s=function(e){return as.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new cs(e),as.set(e,s);if(r)return r;if(r={},s.value=Vr(e),t){r.callback=t,r.next=null;var i=function(){hs(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){hs(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(s,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(t,new ls(t,r)),r}function hs(e,t){void 0===t&&(t=!1);var r=as.get(e.object);ds(r.value,e.object,e.patches,"",t),e.patches.length&&rs(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function ds(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Ur(t),o=Ur(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!Br(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:s+"/"+zr(p),value:Vr(l)}),r.push({op:"remove",path:s+"/"+zr(p)}),a=!0):(n&&r.push({op:"test",path:s,value:e}),r.push({op:"replace",path:s,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?ds(l,u,r,s+"/"+zr(p),n):l!==u&&(!0,n&&r.push({op:"test",path:s+"/"+zr(p),value:Vr(l)}),r.push({op:"replace",path:s+"/"+zr(p),value:Vr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;Br(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:s+"/"+zr(p),value:Vr(t[p])})}}}function fs(e,t,r){void 0===r&&(r=!1);var s=[];return ds(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:Wr,deepClone:Vr,escapePathComponent:zr,unescapePathComponent:Gr});var ms=r(4744),ys=r.n(ms);const gs={add:function(e,t){return{op:"add",path:e,value:t}},replace:bs,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&vs(t.path)}).op){const r=Cs(e,t.path);Object.assign(r,t.value),rs(e,[bs(t.path,r)])}else if("mergeDeep"===t.op){const r=Cs(e,t.path),s=ys()(r,t.value);e=rs(e,[bs(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&Ps(t.value)){rs(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${vs(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&ks(t)&&(Array.isArray(t.value)||Ps(t.value))&&(s={...s,...t.meta}),e=s}else if(rs(e,[t]),r.allowMetaPatches&&t.meta&&ks(t)&&(Array.isArray(t.value)||Ps(t.value))){const r={...Cs(e,t.path),...t.meta};rs(e,[bs(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,s=t.length;r<s;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Os,fullyNormalizeArray:function(e){return Ss(Os(js(e)))},normalizeArray:js,isPromise:function(e){return Ps(e)&&As(e.then)},forEachNew:function(e,t){try{return xs(e,ws,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return xs(e,Es,t)}catch(e){return e}},isJsonPatch:$s,isContextPatch:function(e){return _s(e)&&"context"===e.type},isPatch:_s,isMutation:Ts,isAdditiveMutation:ks,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:As,isObject:Ps,isError:function(e){return e instanceof Error}};function vs(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function bs(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function xs(e,t,r){return Ss(Os(e.filter(ks).map((e=>t(e.value,r,e.path)))||[]))}function Es(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>Es(e,t,r.concat(s)))):Ps(e)?Object.keys(e).map((s=>Es(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function ws(e,t,r){let s=[];if((r=r||[]).length>0){const n=t(e,r[r.length-1],r);n&&(s=s.concat(n))}if(Array.isArray(e)){const n=e.map(((e,s)=>ws(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(Ps(e)){const n=Object.keys(e).map((s=>ws(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Os(s),s}function js(e){return Array.isArray(e)?e:[e]}function Os(e){return[].concat(...e.map((e=>Array.isArray(e)?Os(e):e)))}function Ss(e){return e.filter((e=>void 0!==e))}function Ps(e){return e&&"object"==typeof e}function As(e){return e&&"function"==typeof e}function $s(e){if(_s(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Ts(e){return $s(e)||_s(e)&&"mutation"===e.type}function ks(e){return Ts(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function _s(e){return e&&"object"==typeof e}function Cs(e,t){try{return es(e,t)}catch(e){return console.error(e),{}}}var Ms=r(8675);const Is=class extends Ms{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,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Fs extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Is,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Rs=Fs;const Ds=class extends Rs{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};var Ns=r(5606);const Ls={"@@functional/placeholder":!0};function qs(e){return e===Ls}function Bs(e){return function t(r){return 0===arguments.length||qs(r)?t:e.apply(this,arguments)}}function Us(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return qs(r)?t:Bs((function(t){return e(r,t)}));default:return qs(r)&&qs(s)?t:qs(r)?Bs((function(t){return e(t,s)})):qs(s)?Bs((function(t){return e(r,t)})):e(r,s)}}}function Vs(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return qs(r)?t:Us((function(t,s){return e(r,t,s)}));case 2:return qs(r)&&qs(s)?t:qs(r)?Us((function(t,r){return e(t,s,r)})):qs(s)?Us((function(t,s){return e(r,t,s)})):Bs((function(t){return e(r,s,t)}));default:return qs(r)&&qs(s)&&qs(n)?t:qs(r)&&qs(s)?Us((function(t,r){return e(t,r,n)})):qs(r)&&qs(n)?Us((function(t,r){return e(t,s,r)})):qs(s)&&qs(n)?Us((function(t,s){return e(r,t,s)})):qs(r)?Bs((function(t){return e(t,s,n)})):qs(s)?Bs((function(t){return e(r,t,n)})):qs(n)?Bs((function(t){return e(r,s,t)})):e(r,s,n)}}}const Hs=Number.isInteger||function(e){return(e|0)===e};function zs(e){return"[object String]"===Object.prototype.toString.call(e)}function Gs(e,t){var r=e<0?t.length+e:e;return zs(t)?t.charAt(r):t[r]}function Js(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=Hs(n)?Gs(n,r):r[n]}return r}const Ks=Vs((function(e,t,r){return e(Js(t,r))}));function Ws(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":""))}function Ys(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Xs(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function Zs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Qs="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var en=Object.prototype.toString;const tn=function(){return"[object Arguments]"===en.call(arguments)?function(e){return"[object Arguments]"===en.call(e)}:function(e){return Zs("callee",e)}}();var rn=!{toString:null}.propertyIsEnumerable("toString"),sn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],nn=function(){return arguments.propertyIsEnumerable("length")}(),on=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},an="function"!=typeof Object.keys||nn?Bs((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=nn&&tn(e);for(t in e)!Zs(t,e)||n&&"length"===t||(s[s.length]=t);if(rn)for(r=sn.length-1;r>=0;)Zs(t=sn[r],e)&&!on(s,t)&&(s[s.length]=t),r-=1;return s})):Bs((function(e){return Object(e)!==e?[]:Object.keys(e)}));const cn=an;const ln=Bs((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function un(e,t,r,s){var n=Ys(e);function i(e,t){return pn(e,t,r.slice(),s.slice())}return!Xs((function(e,t){return!Xs(i,t,e)}),Ys(t),n)}function pn(e,t,r,s){if(Qs(e,t))return!0;var n,i,o=ln(e);if(o!==ln(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"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Qs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Qs(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=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&un(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&un(e.values(),t.values(),r.concat([e]),s.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=cn(e);if(c.length!==cn(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!Zs(p,t)||!pn(t[p],e[p],l,u))return!1;a-=1}return!0}const hn=Us((function(e,t){return pn(e,t,[],[])}));function dn(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)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(hn(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function fn(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function mn(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 yn=function(e){return(e<10?"0":"")+e};const gn="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+yn(e.getUTCMonth()+1)+"-"+yn(e.getUTCDate())+"T"+yn(e.getUTCHours())+":"+yn(e.getUTCMinutes())+":"+yn(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function vn(e){return function(){return!e.apply(this,arguments)}}function bn(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const xn=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function En(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!xn(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function wn(e){return"[object Object]"===Object.prototype.toString.call(e)}const jn=function(){return this.xf["@@transducer/init"]()},On=function(e){return this.xf["@@transducer/result"](e)};var Sn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=jn,e.prototype["@@transducer/result"]=On,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Pn(e){return function(t){return new Sn(e,t)}}const An=Us(En(["fantasy-land/filter","filter"],Pn,(function(e,t){return wn(t)?bn((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},cn(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const $n=Us((function(e,t){return An(vn(e),t)}));function Tn(e,t){var r=function(r){var s=t.concat([e]);return dn(r,s)?"<Circular>":Tn(r,s)},s=function(e,t){return fn((function(t){return mn(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+fn(r,e).join(", ")+"))";case"[object Array]":return"["+fn(r,e).concat(s(e,$n((function(e){return/^\d+$/.test(e)}),cn(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):mn(gn(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())+")":mn(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,cn(e)).join(", ")+"}"}}const kn=Bs((function(e){return Tn(e,[])}));var _n=Us((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 "+kn(e));var r;return Ws(e).test(t)}));const Cn=_n;function Mn(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,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,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 In(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Fn=Bs((function(e){return!!xn(e)||!!e&&("object"==typeof e&&(!zs(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Rn="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Dn(e,t,r){return function(s,n,i){if(Fn(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[Rn])return r(s,n,i[Rn]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Nn(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const Ln=Us((function(e,t){return Mn(e.length,(function(){return e.apply(t,arguments)}))}));function qn(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function Bn(e,t,r,s){return e["@@transducer/result"](r[s](Ln(e["@@transducer/step"],e),t))}const Un=Dn(Nn,Bn,qn);var Vn=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}();function Hn(e){return new Vn(e)}const zn=Vs((function(e,t,r){return Un("function"==typeof e?Hn(e):e,t,r)}));function Gn(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return xn(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const Jn=Vs(Gn("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Kn=Bs(Gn("tail",Jn(1,1/0)));function Wn(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Mn(arguments[0].length,zn(In,arguments[0],Kn(arguments)))}const Yn=Us((function(e,t){return null==t||t!=t?e:t}));const Xn=Us((function(e,t){if(null!=t)return Hs(e)?Gs(e,t):t[e]}));const Zn=Vs((function(e,t,r){return Yn(e,Xn(t,r))}));const Qn=Bs((function(e){return Gs(-1,e)}));function ei(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var c;o<t.length&&(!qs(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,qs(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):Mn(Math.max(0,i),ei(e,s,r))}}const ti=Us((function(e,t){return 1===e?Bs(t):Mn(e,ei(e,[],t))}));const ri=Bs((function(e){return ti(e.length,e)}));function si(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ni=Us((function(e,t){return ti(e+1,(function(){var r=arguments[e];if(null!=r&&si(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(kn(r)+' does not have a method named "'+t+'"')}))}));const ii=ni(1,"split");function oi(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Jn(0,r+1,t)}var ai=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=jn,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Un(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function ci(e){return function(t){return new ai(e,t)}}const li=Us(En([],ci,oi));const ui=ni(1,"join");const pi=Bs((function(e){return ti(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(Us(dn));const hi=ri((function(e,t){return Wn(ii(""),li(pi(e)),ui(""))(t)}));function di(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function fi(e,t,r,s){return r[s](e,t)}const mi=Dn(bn,fi,di);var yi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=jn,e.prototype["@@transducer/result"]=On,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const gi=Us(En(["fantasy-land/map","map"],(function(e){return function(t){return new yi(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return ti(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return bn((function(r,s){return r[s]=e(t[s]),r}),{},cn(t));default:return fn(e,t)}})));const vi=Us((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))}:mi((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,gi(r,t))}),[],e)}));const bi=Us((function(e,t){var r=ti(e,t);return ti(e,(function(){return bn(vi,gi(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const xi=Bs((function(e){return bi(e.length,e)}));const Ei=xi(Bs((function(e){return!e})));const wi=Bs((function(e){return function(){return e}}));const ji=wi(void 0);const Oi=hn(ji());const Si=Ei(Oi);const Pi=Us((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=kn(e),o=r(i,kn(t));return void 0!==o&&o===i?e:t}));const Ai=Us((function(e,t){return gi(Xn(e),t)}));const $i=Bs((function(e){return ti(zn(Pi,0,Ai("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var Ti=function(e,t){switch(arguments.length){case 0:return Ti;case 1:return function t(r){return 0===arguments.length?t:Qs(e,r)};default:return Qs(e,t)}};const ki=Ti;const _i=ti(1,Wn(ln,ki("GeneratorFunction")));const Ci=ti(1,Wn(ln,ki("AsyncFunction")));const Mi=$i([Wn(ln,ki("Function")),_i,Ci]);var Ii=Vs((function(e,t,r){return r.replace(e,t)}));const Fi=Ii;const Ri=ti(1,Wn(ln,ki("RegExp")));const Di=Vs((function(e,t,r){return e(r)?t(r):r}));const Ni=ti(1,Wn(ln,ki("String")));const Li=Di(Ni,Fi(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var qi=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const Bi=function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),qi(r,"str"),qi(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var s=new RegExp(Ri(e)?e:Li(e),"g");return Fi(s,t,r)};var Ui=ti(3,Bi),Vi=ni(2,"replaceAll");const Hi=Mi(String.prototype.replaceAll)?Vi:Ui,zi=()=>Ks(Cn(/^win/),["platform"],Ns),Gi=e=>{try{const t=new URL(e);return hi(":",t.protocol)}catch{return}},Ji=(Wn(Gi,Si),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Ki=e=>{if(Ns.browser)return!1;const t=Gi(e);return Oi(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Wi=e=>{const t=Gi(e);return"http"===t||"https"===t},Yi=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=Zn(!1,"keepFileProtocol",t),n=Zn(zi,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),n()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),s?i=`file:///${i}`:(o=!1,i=n()?i:`/${i}`)),n()&&!o&&(i=Hi("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Xi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Zi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Qi=()=>{if(Ns.browser)return Zi(globalThis.location.href);const e=Ns.cwd(),t=Qn(e);return["/","\\"].includes(t)?e:e+(zi()?"\\":"/")},eo=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:s}=r;return e+t+s}return r.toString()},to=e=>{if(Ki(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;zi()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(Yi(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},ro=e=>Ki(e)?Yi(e):decodeURI(e);function so(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}function no(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function io(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function oo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,i=[],o=!0,a=!1;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return so(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(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return so(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ao(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var co=function(e){throw TypeError(e)},lo=function(e,t,r){return t.has(e)||co("Cannot "+r)},uo=function(e,t,r){return lo(e,t,"read from private field"),r?r.call(e):t.get(e)},po=function(e,t,r){return t.has(e)?co("Cannot add the same private member more than once"):io(t,WeakSet)?t.add(e):t.set(e,r)},ho=function(e,t,r,s){return lo(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},fo=function(e){return Object.prototype.toString.call(e)},mo=function(e){return ArrayBuffer.isView(e)&&!io(e,DataView)},yo=function(e){return"[object Date]"===fo(e)},go=function(e){return"[object RegExp]"===fo(e)},vo=function(e){return"[object Error]"===fo(e)},bo=function(e){return"[object Boolean]"===fo(e)},xo=function(e){return"[object Number]"===fo(e)},Eo=function(e){return"[object String]"===fo(e)},wo=Array.isArray,jo=Object.getOwnPropertyDescriptor,Oo=Object.prototype.propertyIsEnumerable,So=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty;function Ao(e){for(var t=Object.keys(e),r=So(e),s=0;s<r.length;s++)Oo.call(e,r[s])&&t.push(r[s]);return t}function $o(e,t){var r;return!(null===(r=jo(e,t))||void 0===r?void 0:r.writable)}function To(e,t){if("object"===(void 0===e?"undefined":ao(e))&&null!==e){var r;if(wo(e))r=[];else if(yo(e))r=new Date(e.getTime?e.getTime():e);else if(go(e))r=new RegExp(e);else if(vo(e))r={message:e.message};else if(bo(e)||xo(e)||Eo(e))r=Object(e);else{if(mo(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?Ao:Object.keys,n=!0,i=!1,o=void 0;try{for(var a,c=s(e)[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var l=a.value;r[l]=e[l]}}catch(e){i=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}return e}var ko,_o,Co={includeSymbols:!1,immutable:!1};function Mo(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Co,s=[],n=[],i=!0,o=r.includeSymbols?Ao:Object.keys,a=!!r.immutable;return function e(c){var l=a?To(c,r):c,u={},p=!0,h={node:l,node_:c,path:[].concat(s),parent:n[n.length-1],parents:n,key:s[s.length-1],isRoot:0===s.length,level:s.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){wo(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){u.before=e},after:function(e){u.after=e},pre:function(e){u.pre=e},post:function(e){u.post=e},stop:function(){i=!1},block:function(){p=!1}};if(!i)return h;function d(){if("object"===ao(h.node)&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=o(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<n.length;e++)if(n[e].node_===c){h.circular=n[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}d();var f=t.call(h,h.node);if(void 0!==f&&h.update&&h.update(f),u.before&&u.before.call(h,h.node),!p)return h;if("object"===ao(h.node)&&null!==h.node&&!h.circular){var m;n.push(h),d();var y=!0,g=!1,v=void 0;try{for(var b,x=Object.entries(null!==(m=h.keys)&&void 0!==m?m:[])[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var E,w=oo(b.value,2),j=w[0],O=w[1];s.push(O),u.pre&&u.pre.call(h,h.node[O],O);var S=e(h.node[O]);a&&Po.call(h.node,O)&&!$o(h.node,O)&&(h.node[O]=S.node),S.isLast=!!(null===(E=h.keys)||void 0===E?void 0:E.length)&&+j==h.keys.length-1,S.isFirst=0==+j,u.post&&u.post.call(h,S),s.pop()}}catch(e){g=!0,v=e}finally{try{y||null==x.return||x.return()}finally{if(g)throw v}}n.pop()}return u.after&&u.after.call(h,h.node),h}(e).node}var Io=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Co;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),po(this,ko),po(this,_o),ho(this,ko,t),ho(this,_o,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=uo(this,ko),r=0;t&&r<e.length;r++){var s=e[r];if(!Po.call(t,s)||!uo(this,_o).includeSymbols&&"symbol"===(void 0===s?"undefined":ao(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=uo(this,ko),r=0;t&&r<e.length;r++){var s=e[r];if(!Po.call(t,s)||!uo(this,_o).includeSymbols&&"symbol"===(void 0===s?"undefined":ao(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=uo(this,ko),s=0;for(s=0;s<e.length-1;s++){var n=e[s];Po.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return Mo(uo(this,ko),e,{immutable:!0,includeSymbols:!!uo(this,_o).includeSymbols})}},{key:"forEach",value:function(e){return ho(this,ko,Mo(uo(this,ko),e,uo(this,_o))),uo(this,ko)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?uo(this,ko):t;return this.forEach((function(t){this.isRoot&&r||(s=e.call(this,s,t))})),s}},{key:"paths",value:function(){var e=[];return this.forEach((function(){e.push(this.path)})),e}},{key:"nodes",value:function(){var e=[];return this.forEach((function(){e.push(this.node)})),e}},{key:"clone",value:function(){var e=[],t=[],r=uo(this,_o);return mo(uo(this,ko))?uo(this,ko).slice():function s(n){for(var i=0;i<e.length;i++)if(e[i]===n)return t[i];if("object"===(void 0===n?"undefined":ao(n))&&null!==n){var o=To(n,r);e.push(n),t.push(o);var a=r.includeSymbols?Ao:Object.keys,c=!0,l=!1,u=void 0;try{for(var p,h=a(n)[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var d=p.value;o[d]=s(n[d])}}catch(e){l=!0,u=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw u}}return e.pop(),t.pop(),o}return n}(uo(this,ko))}}],r&&no(t.prototype,r),s&&no(t,s),e}();ko=new WeakMap,_o=new WeakMap;var Fo=function(e,t){return new Io(e,t)};Fo.get=function(e,t,r){return new Io(e,r).get(t)},Fo.set=function(e,t,r,s){return new Io(e,s).set(t,r)},Fo.has=function(e,t,r){return new Io(e,r).has(t)},Fo.map=function(e,t,r){return new Io(e,r).map(t)},Fo.forEach=function(e,t,r){return new Io(e,r).forEach(t)},Fo.reduce=function(e,t,r,s){return new Io(e,s).reduce(t,r)},Fo.paths=function(e,t){return new Io(e,t).paths()},Fo.nodes=function(e,t){return new Io(e,t).nodes()},Fo.clone=function(e,t){return new Io(e,t).clone()};var Ro=Fo;const Do=["properties"],No=["properties"],Lo=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],qo=["schema/example","items/example"];function Bo(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return Do.indexOf(t)>-1&&-1===No.indexOf(r)||Lo.indexOf(s)>-1||qo.some((e=>s.indexOf(e)>-1))}function Uo(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(Wi(n))o=eo(n,i);else{const e=eo(p,n),t=eo(e,i).replace(p,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const Vo=/^([a-z]+:\/\/|\/\/)/i;class Ho extends Ds{}const zo={},Go=new WeakMap,Jo=[e=>"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4],e=>"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5],e=>"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6],e=>"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]],Ko={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(Bo(i)||(e=>Jo.some((t=>t(e))))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new Ho("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=Qo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?Xo(c,o):null}catch(t){return Zo(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=Go.get(s);n||(n={},Go.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(ia).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=s.contextTree.get([]).baseDoc;if(t===c&&aa(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${ia(e)}`,n[l]&&n[l].some((e=>aa(e,o)||aa(o,e))))));if(u)return!0;return void(n[a]=(n[a]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=Uo(e,u);return e===t?null:gs.replace(r,t)}if(null==u?(h=sa(l),p=s.get(h),void 0===p&&(p=new Ho(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=ea(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw Zo(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[gs.remove(r),p];const d=Uo(e,u),f=gs.replace(i,p,{$$ref:d});if(u&&u!==o)return[f,gs.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),s(t.value);function s(e){return gs.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>s(e[t]))))}}(s.state,f)||n.useCircularStructures)return f}catch(e){return null}}},Wo=Object.assign(Ko,{docCache:zo,absoluteify:Xo,clearCache:function(e){void 0!==e?delete zo[e]:Object.keys(zo).forEach((e=>{delete zo[e]}))},JSONRefError:Ho,wrapError:Zo,getDoc:ta,split:Qo,extractFromDoc:ea,fetchJSON:function(e){return fetch(e,{headers:{Accept:u},loadSpec:!0}).then((e=>e.text())).then((e=>kr.load(e)))},extract:ra,jsonPointerToArray:sa,unescapeJsonPointerToken:na}),Yo=Wo;function Xo(e,t){if(!Vo.test(e)){if(!t)throw new Ho(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return eo(t,e)}return e}function Zo(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new Ho(`Could not resolve reference: ${r}`,{...t,cause:e})}function Qo(e){return(e+"").split("#")}function ea(e,t){const r=zo[e];if(r&&!gs.isPromise(r))try{const e=ra(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return ta(e).then((e=>ra(t,e)))}function ta(e){const t=zo[e];return t?gs.isPromise(t)?t:Promise.resolve(t):(zo[e]=Wo.fetchJSON(e).then((t=>(zo[e]=t,t))),zo[e])}function ra(e,t){const r=sa(e);if(r.length<1)return t;const s=gs.getIn(t,r);if(void 0===s)throw new Ho(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function sa(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a "+typeof e);return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(na)}function na(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function ia(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const oa=e=>!e||"/"===e||"#"===e;function aa(e,t){if(oa(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const ca={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(Bo(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=n.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(s.replace(i,{})),e.forEach(((e,t)=>{if(!s.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(s.mergeDeep(i,e));const n=function(e,t,{specmap:r,getBaseUrlForNodePath:s=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:n=["$ref","$$ref"]}={}){const i=[];return Ro(e).forEach((function(){if(n.includes(this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=Uo(this.node,s(e));i.push(r.replace(n,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>s.getContext([...r,t,...e]).baseDoc,specmap:s});c.push(...n)})),a.example&&c.push(s.remove([].concat(i,"example"))),c.push(s.mergeDeep(i,a)),a.$$ref||c.push(s.remove([].concat(i,"$$ref"))),c}},la={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...gs.getIn(s.spec,n)};for(let n=0;n<e.length;n+=1){const o=e[n];try{t[n].default=s.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return gs.replace(r,t)}return gs.replace(r,e)}},ua={key:"properties",plugin:(e,t,r,s)=>{const n={...e};for(const t in e)try{n[t].default=s.modelPropertyMacro(n[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return gs.replace(r,n)}};class pa{constructor(e){this.root=ha(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void da(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?da(n[s],t,r):n[s]=ha(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,s=this.root;for(let n=0;n<e.length&&(r=e[n],t=s.children,t[r]);n+=1)s=t[r];return s&&s.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:s}=e;return!s[r]&&t&&(s[r]=ha(null,e)),s[r]}),this.root)}}function ha(e,t){return da({children:{}},e,t)}function da(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=da(r,r.value,e)})),e}const fa=()=>{};class ma{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new pa,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),gs,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(gs.isFunction),this.patches.push(gs.add([],this.spec)),this.patches.push(gs.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){"verbose"===this.debugLevel&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let s,n=null;return e[this.pluginProp]?(n=e,s=e[this.pluginProp]):gs.isFunction(e)?s=e:gs.isObject(e)&&(s=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(s,n){const i={};for(const[e,t]of s.filter(gs.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(s,a,c){if(gs.isObject(s)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,d=n.allowMetaPatches&&i[s.$$ref];for(const l of Object.keys(s)){const u=s[l],p=a.concat(l),f=gs.isObject(u),m=s.$$ref;if(d||f&&(n.allowMetaPatches&&m&&(i[m]=!0),yield*o(u,p,c)),!h&&l===e.key){const s=t(r,a);r&&!s||(yield e.plugin(u,l,p,n,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(s,e.key,a,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:gs.isGenerator(s)})}nextPlugin(){return this.wrappedPlugins.find((e=>this.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){const t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}updatePluginHistory(e,t){const r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){gs.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!gs.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),gs.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(gs.isContextPatch(e))return void this.setContext(e.path,e.value);gs.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=gs.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return gs.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(fa,fa)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const s=e.getCurrentMutations(),n=e.mutations.length-1;try{if(t.isGenerator)for(const n of t(s,e.getLib()))r(n);else{r(t(s,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:n})}return e.dispatch()}();function r(r){r&&(r=gs.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const ya={refs:Yo,allOf:ca,parameters:la,properties:ua};async function ga(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=Rr(e),d=Dr(e),f=p.find((e=>e.match(t)));return async function(e){h&&(ya.refs.docCache[h]=e);ya.refs.fetchJSON=Fr(d,{requestInterceptor:a,responseInterceptor:c});const t=[ya.refs];"function"==typeof o&&t.push(ya.parameters);"function"==typeof i&&t.push(ya.properties);"strict"!==r&&t.push(ya.allOf);const p=await(m={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new ma(m).dispatch());var m;l||(p.spec=f.normalize(p.spec));return p}(t)}const va=e=>e.replace(/\W/gi,"_");function ba(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?va(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${va(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function xa(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){const n=r[e];if(null==n||!["object","function"].includes(typeof n))continue;const i=n.parameters;for(const r in n){const o=n[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=ba(o,e,r);if(a){s[a]?s[a].push(o):s[a]=[o];const e=s[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const s in t)"produces"!==s&&"consumes"!==s&&"security"!==s||(r[s]=t[s],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(o[e]){if("parameters"===e)for(const r of t[e]){o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const Ea={name:"generic",match:()=>!0,normalize(e){const{spec:t}=xa({spec:e});return t},resolve:async e=>ga(e)};const wa=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},ja=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Oa=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Sa=e=>ja(e)||Oa(e),Pa={name:"openapi-2",match:e=>wa(e),normalize(e){const{spec:t}=xa({spec:e});return t},resolve:async e=>async function(e){return ga(e)}(e)};const Aa={name:"openapi-3-0",match:e=>ja(e),normalize(e){const{spec:t}=xa({spec:e});return t},resolve:async e=>async function(e){return ga(e)}(e)},$a=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=Rr(e),i=Dr(e),o=t||await Fr(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),Ta=$a({strategies:[Aa,Pa,Ea]}),ka=e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((t=>t.match(e))).normalize(e),d=await Ta({spec:h,...p,allowMetaPatches:!0,skipNormalization:!Oa(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...s});ka({strategies:[Aa,Pa,Ea]});const _a=Us((function(e,t){return e&&t}));const Ca=Us((function(e,t){return si(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:xi(_a)(e,t)}));const Ma=hn(null);const Ia=Ei(Ma);function Fa(e){return Fa="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},Fa(e)}const Ra=function(e){return"object"===Fa(e)};const Da=ti(1,Ca(Ia,Ra));var Na=Wn(ln,ki("Object")),La=Wn(kn,hn(kn(Object))),qa=Ks(Ca(Mi,La),["constructor"]);const Ba=ti(1,(function(e){if(!Da(e)||!Na(e))return!1;var t=Object.getPrototypeOf(e);return!!Ma(t)||qa(t)}));var Ua=r(4035);function Va(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Ha=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=jn,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=Va(this.xf["@@transducer/step"](e,!1))),e},e}();function za(e){return function(t){return new Ha(e,t)}}const Ga=Us(En(["all"],za,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class Ja extends Ua.Om{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 Ka=Ja;class Wa extends Ua.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Ya=Wa;class Xa extends Ua.wE{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(Oi(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Za=Xa;class Qa extends Ua.wE{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(void 0===e)return;const t=new Ua.wE([e.start.row,e.start.column,e.start.char]),r=new Ua.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const ec=Qa,tc=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],rc=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,sc=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),nc=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Ua.wE)&&t.classes.includes(e),ic=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,oc=e=>e({hasMethod:tc,hasBasicElementProps:rc,primitiveEq:sc,isElementType:ic,hasClass:nc}),ac=oc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ua.Hg||e(r)&&t(void 0,r))),cc=oc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ua.Om||e(r)&&t("string",r))),lc=oc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ua.kT||e(r)&&t("number",r))),uc=oc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ua.Os||e(r)&&t("null",r))),pc=oc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ua.bd||e(r)&&t("boolean",r))),hc=oc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Ua.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),dc=oc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Ua.wE&&!(s instanceof Ua.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),fc=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ua.Pr||e(s)&&t("member",s)&&r(void 0,s))),mc=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ua.Ft||e(s)&&t("link",s)&&r(void 0,s))),yc=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ua.sI||e(s)&&t("ref",s)&&r(void 0,s))),gc=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ka||e(s)&&t("annotation",s)&&r("array",s))),vc=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ya||e(s)&&t("comment",s)&&r("string",s))),bc=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Za||e(s)&&t("parseResult",s)&&r("array",s))),xc=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ec||e(s)&&t("sourceMap",s)&&r("array",s))),Ec=e=>ic("object",e)||ic("array",e)||ic("boolean",e)||ic("number",e)||ic("string",e)||ic("null",e)||ic("member",e),wc=e=>xc(e.meta.get("sourceMap")),jc=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!dc(r)&&Ga(pi(r.toValue()),e)},Oc=(e,t)=>0===e.length||Ga(pi(t.classes.toValue()),e);const Sc=function(){return!0};const Pc=function(){return!1},Ac=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},$c={},Tc=e=>null==e?void 0:e.type,kc=e=>"string"==typeof Tc(e),_c=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Cc=(e,{visitFnGetter:t=Ac,nodeTypeGetter:r=Tc,breakSymbol:s=$c,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,p,h,d,f){let m=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=a.call(e[l],m,u,p,h,d,g);if("function"==typeof(null==t?void 0:t.then))throw new Ds("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=m;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;m=t,y=!0}}}}return y?m:void 0},leave(n,o,l,u,p,h){let d=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=a.call(e[n],d,o,l,u,p,f);if("function"==typeof(null==t?void 0:t.then))throw new Ds("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};Cc[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Ac,nodeTypeGetter:r=Tc,breakSymbol:s=$c,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,p,h,d,f){let m=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=await a.call(e[l],m,u,p,h,d,g);if(t===i)c[l]=m;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;m=t,y=!0}}}}return y?m:void 0},async leave(n,o,l,u,p,h){let d=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=await a.call(e[n],d,o,l,u,p,f);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};const Mc=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=$c,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ac,nodeTypeGetter:c=Tc,nodePredicate:l=kc,nodeCloneFn:u=_c,detectCycles:p=!0}={})=>{const h=r||{};let d,f,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const O=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=f,f=E.pop(),O)if(m){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=d.index,y=d.keys,v=d.edits,m=d.inArray,d=d.prev}else if(f!==i&&void 0!==f){if(r=m?g:y[g],b=f[r],b===i||void 0===b)continue;x.push(r)}let S;if(!Array.isArray(b)){var w;if(!l(b))throw new Ds(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,f,x,E):f&&(f[r]=t),e||(b=t)}};S=i.call(t,b,r,f,x,E,n)}if("function"==typeof(null===(w=S)||void 0===w?void 0:w.then))throw new Ds("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===n)break;if(S===o){if(!e){x.pop();continue}}else if(void 0!==S&&(v.push([r,S]),!e)){if(!l(S)){x.pop();continue}b=S}}var j;if(void 0===S&&O&&v.push([r,b]),!e)d={inArray:m,index:g,keys:y,edits:v,prev:d},m=Array.isArray(b),y=m?b:null!==(j=h[c(b)])&&void 0!==j?j:[],g=-1,v=[],f!==i&&void 0!==f&&E.push(f),f=b}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};Mc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=$c,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Ac,nodeTypeGetter:c=Tc,nodePredicate:l=kc,nodeCloneFn:u=_c,detectCycles:p=!0}={})=>{const h=r||{};let d,f,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=f,f=E.pop(),j)if(m){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=d.index,y=d.keys,v=d.edits,m=d.inArray,d=d.prev}else if(f!==i&&void 0!==f){if(r=m?g:y[g],b=f[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new Ds(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,f,x,E):f&&(f[r]=t),e||(b=t)}};O=await i.call(t,b,r,f,x,E,n)}if(O===n)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var w;if(void 0===O&&j&&v.push([r,b]),!e)d={inArray:m,index:g,keys:y,edits:v,prev:d},m=Array.isArray(b),y=m?b:null!==(w=h[c(b)])&&void 0!==w?w:[],g=-1,v=[],f!==i&&void 0!==f&&E.push(f),f=b}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};const Ic=class extends Ds{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Fc=class extends Ic{};const Rc=class extends Ic{},Dc=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Ua.KeyValuePair){const{key:t,value:n}=e,i=ac(t)?Dc(t,s):t,o=ac(n)?Dc(n,s):n,a=new Ua.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Ua.ot){const t=e=>Dc(e,s),n=[...e].map(t),i=new Ua.ot(n);return r.set(e,i),i}if(e instanceof Ua.G6){const t=e=>Dc(e,s),n=[...e].map(t),i=new Ua.G6(n);return r.set(e,i),i}if(ac(e)){const t=qc(e);if(r.set(e,t),e.content)if(ac(e.content))t.content=Dc(e.content,s);else if(e.content instanceof Ua.KeyValuePair)t.content=Dc(e.content,s);else if(Array.isArray(e.content)){const r=e=>Dc(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Fc("Value provided to cloneDeep function couldn't be cloned",{value:e})};Dc.safe=e=>{try{return Dc(e)}catch{return e}};const Nc=e=>{const{key:t,value:r}=e;return new Ua.KeyValuePair(t,r)},Lc=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Dc(e.meta)),e.attributes.length>0&&(t._attributes=Dc(e.attributes)),ac(e.content)){const r=e.content;t.content=Lc(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Ua.KeyValuePair?t.content=Nc(e.content):t.content=e.content;return t},qc=e=>{if(e instanceof Ua.KeyValuePair)return Nc(e);if(e instanceof Ua.ot)return(e=>{const t=[...e];return new Ua.ot(t)})(e);if(e instanceof Ua.G6)return(e=>{const t=[...e];return new Ua.G6(t)})(e);if(ac(e))return Lc(e);throw new Rc("Value provided to cloneShallow function couldn't be cloned",{value:e})};qc.safe=e=>{try{return qc(e)}catch{return e}};const Bc=e=>hc(e)?"ObjectElement":dc(e)?"ArrayElement":fc(e)?"MemberElement":cc(e)?"StringElement":pc(e)?"BooleanElement":lc(e)?"NumberElement":uc(e)?"NullElement":mc(e)?"LinkElement":yc(e)?"RefElement":void 0,Uc=e=>ac(e)?qc(e):_c(e),Vc=Wn(Bc,Ni),Hc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class zc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Pc,returnOnTrue:t,returnOnFalse:r}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const Gc=(e,t,{keyMap:r=Hc,...s}={})=>Mc(e,t,{keyMap:r,nodeTypeGetter:Bc,nodePredicate:Vc,nodeCloneFn:Uc,...s});Gc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Hc,...s}={})=>Mc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Bc,nodePredicate:Vc,nodeCloneFn:Uc,...s});const Jc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Bc(e),Kc={EphemeralObject:["content"],EphemeralArray:["content"],...Hc},Wc=(e,t,{keyMap:r=Kc,...s}={})=>Gc(e,t,{keyMap:r,nodeTypeGetter:Jc,nodePredicate:Sc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Wc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Kc,...r}={})=>Gc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Jc,nodePredicate:Sc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Yc=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 Xc=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))}};class Zc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Xc(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Yc(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return cc(e.href)?e.href.toValue():""}}const Qc=e=>ac(e)?cc(e)||lc(e)||pc(e)||uc(e)?e.toValue():Wc(e,new Zc):e;const el=Vs((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})Zs(s,t)&&(n[s]=Zs(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)Zs(s,r)&&!Zs(s,n)&&(n[s]=r[s]);return n}));const tl=Vs((function e(t,r,s){return el((function(r,s,n){return wn(s)&&wn(n)?e(t,s,n):t(r,s,n)}),r,s)}));const rl=Us((function(e,t){return tl((function(e,t,r){return r}),e,t)}));const sl=Us(Js);const nl=Jn(0,-1);const il=Us((function(e,t){return e.apply(this,t)}));const ol=Ei(Mi);var al=Bs((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():xn(e)?[]:zs(e)?"":wn(e)?{}:tn(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 cl=al;const ll=Bs((function(e){return null!=e&&hn(e,cl(e))}));const ul=ti(1,Mi(Array.isArray)?Array.isArray:Wn(ln,ki("Array")));const pl=Ca(ul,ll);var hl=ti(3,(function(e,t,r){var s=sl(e,r),n=sl(nl(e),r);if(!ol(s)&&!pl(e)){var i=Ln(s,n);return il(i,t)}}));const dl=hl;class fl extends Ua.g${constructor(){super(),this.register("annotation",Ka),this.register("comment",Ya),this.register("parseResult",Za),this.register("sourceMap",ec)}}const ml=new fl,yl=e=>{const t=new fl;return Ba(e)&&t.use(e),t},gl=ml,vl=()=>({predicates:{...i},namespace:gl}),bl={toolboxCreator:vl,visitorOptions:{nodeTypeGetter:Bc,exposeEdits:!0}},xl=(e,t,r={})=>{if(0===t.length)return e;const s=rl(bl,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Cc(a.map(Zn({},"visitor")),{...i});a.forEach(dl(["pre"],[]));const l=Gc(e,c,i);return a.forEach(dl(["post"],[])),l};xl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=rl(bl,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Cc[Symbol.for("nodejs.util.promisify.custom")],l=Gc[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(Zn({},"visitor")),{...i});await Promise.allSettled(a.map(dl(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(dl(["post"],[]))),p};const El=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return ac(e)&&(e.meta.length>0&&(s.meta=Dc(e.meta)),e.attributes.length>0&&(s.attributes=Dc(e.attributes))),xl(s,r,{toolboxCreator:vl,visitorOptions:{nodeTypeGetter:Bc}})},wl=e=>(t,r={})=>El(t,{...r,Type:e});Ua.Sh.refract=wl(Ua.Sh),Ua.wE.refract=wl(Ua.wE),Ua.Om.refract=wl(Ua.Om),Ua.bd.refract=wl(Ua.bd),Ua.Os.refract=wl(Ua.Os),Ua.kT.refract=wl(Ua.kT),Ua.Ft.refract=wl(Ua.Ft),Ua.sI.refract=wl(Ua.sI),Ka.refract=wl(Ka),Ya.refract=wl(Ya),Za.refract=wl(Za),ec.refract=wl(ec);const jl=(e,t=new WeakMap)=>(fc(e)?(t.set(e.key,e),jl(e.key,t),t.set(e.value,e),jl(e.value,t)):e.children.forEach((r=>{t.set(r,e),jl(r,t)})),t);const Ol=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:jl(this.element);const s=this.edges.get(e);return Oi(s)?void 0:(hc(s)?((e,t,r)=>{const s=r.get(e);hc(s)&&(s.content=s.map(((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o)))})(e,t,this.edges):dc(s)?((e,t,r)=>{const s=r.get(e);dc(s)&&(s.content=s.map((n=>n===e?(r.delete(e),r.set(t,s),t):n)))})(e,t,this.edges):fc(s)&&((e,t,r)=>{const s=r.get(e);fc(s)&&(s.key===e&&(s.key=t,r.delete(e),r.set(t,s)),s.value===e&&(s.value=t,r.delete(e),r.set(t,s)))})(e,t,this.edges),this.element)}},Sl=Wn(Fi(/~/g,"~0"),Fi(/\//g,"~1"),encodeURIComponent);const Pl=class extends Ds{};const Al=class extends Pl{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},$l=e=>{try{return 0===e.length?"":`/${e.map(Sl).join("/")}`}catch(t){throw new Al("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var Tl=Us((function(e,t){return ti(zn(Pi,0,Ai("length",t)),(function(){var r=arguments,s=this;return e.apply(s,fn((function(e){return e.apply(s,r)}),t))}))}));const kl=Tl;function _l(e){return e}const Cl=Bs(_l);var Ml=Ca(ti(1,Wn(ln,ki("Number"))),isFinite);var Il=ti(1,Ml);var Fl=Ca(Mi(Number.isFinite)?ti(1,Ln(Number.isFinite,Number)):Il,kl(hn,[Math.floor,Cl]));var Rl=ti(1,Fl);const Dl=Mi(Number.isInteger)?ti(1,Ln(Number.isInteger,Number)):Rl;var Nl=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=jn,e.prototype["@@transducer/result"]=On,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?Va(r):r},e}();function Ll(e){return function(t){return new Nl(e,t)}}const ql=Us(En(["take"],Ll,(function(e,t){return Jn(0,e<0?1/0:e,t)})));const Bl=Us((function(e,t){return hn(ql(e.length,t),e)}));const Ul=hn("");var Vl=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=jn,e.prototype["@@transducer/result"]=On,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 Hl(e){return function(t){return new Vl(e,t)}}const zl=Us(En(["dropWhile"],Hl,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return Jn(r,1/0,t)})));const Gl=ri((function(e,t){return Wn(ii(""),zl(pi(e)),ui(""))(t)})),Jl=Wn(Fi(/~1/g,"/"),Fi(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const Kl=class extends Pl{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},Wl=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return Gl("#",t)},Yl=e=>{if(Ul(e))return[];if(!Bl("/",e))throw new Kl(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Wn(ii("/"),gi(Jl))(e);return Kn(t)}catch(t){throw new Kl(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const Xl=class extends Pl{pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},Zl=(e,t)=>{let r;try{r=Yl(e)}catch(r){throw new Xl(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Dc(t),cause:r})}return r.reduce(((t,s,n)=>{if(hc(t)){if(!t.hasKey(s))throw new Xl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Dc(t)});return t.get(s)}if(dc(t)){if(!(s in t.content)||!Dl(Number(s)))throw new Xl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Dc(t)});return t.get(Number(s))}throw new Xl(`JSON Pointer evaluation failed while evaluating token "${s}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Dc(t)})}),t)};class Ql extends Ua.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const eu=Ql;class tu extends Ua.Sh{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 ru=tu;class su extends Ua.Sh{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 nu=su;class iu extends Ua.Sh{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 ou=iu;class au extends Ua.Sh{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 cu=au;class lu extends Ua.Sh{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 uu=lu;class pu extends Ua.Sh{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 hu=pu;class du extends Ua.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ua.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ua.bd(!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(du.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const fu=du;class mu extends Ua.Sh{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 yu=mu;class gu extends Ua.Sh{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 vu=gu;class bu extends Ua.Sh{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 cc(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):cc(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 xu=bu;class Eu extends Ua.Sh{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 wu=Eu;class ju extends Ua.Sh{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 Ou=ju;class Su extends Ua.Sh{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 Pu=Su;class Au extends Ua.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const $u=Au;class Tu extends Ua.Sh{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 ku=Tu;class _u extends Ua.Sh{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 Ua.bd(!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 Cu=_u;class Mu extends Ua.Sh{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 Ua.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ua.bd(!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(Mu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Iu=Mu;class Fu extends Ua.Sh{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 Ru=Fu;class Du extends Ua.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Nu=Du;class Lu extends Ua.Sh{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 qu=Lu;class Bu extends Ua.Sh{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 Ua.bd(!1)}set required(e){this.set("required",e)}}const Uu=Bu;class Vu extends Ua.Sh{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 Hu=Vu;class zu extends Ua.Sh{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 Gu=zu;const Ju=class extends Rs{};class Ku extends Ua.Sh{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("$schema",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 Wu=Ku;class Yu extends Ua.Sh{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 Xu=Yu;class Zu extends Ua.Sh{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 Qu=Zu;class ep extends Ua.Sh{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 tp=ep;const rp=Us((function(e,t){return bn((function(r,s){return r[s]=e(t[s],s,t),r}),{},cn(t))}));const sp=Bs((function(e){return null==e}));var np=Us((function(e,t){if(0===e.length||sp(t))return!1;for(var r=t,s=0;s<e.length;){if(sp(r)||!Zs(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const ip=np;var op=Us((function(e,t){return ip([e],t)}));const ap=op;const cp=Vs((function(e,t,r){return e(Xn(t,r))})),lp=(e,t)=>{const r=Yn(e,t);return rp((e=>{if(Ba(e)&&ap("$ref",e)&&cp(Ni,"$ref",e)){const t=sl(["$ref"],e),s=Gl("#/",t);return sl(s.split("/"),r)}return Ba(e)?lp(e,r):e}),e)},up=e=>{const t=e.meta.length>0?Dc(e.meta):void 0,r=e.attributes.length>0?Dc(e.attributes):void 0;return new e.constructor(void 0,t,r)},pp=(e,t)=>t.clone&&t.isMergeableElement(e)?mp(up(e),e,t):e,hp=e=>"function"!=typeof e.customMetaMerge?e=>Dc(e):e.customMetaMerge,dp=e=>"function"!=typeof e.customAttributesMerge?e=>Dc(e):e.customAttributesMerge,fp={clone:!0,isMergeableElement:e=>hc(e)||dc(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>pp(e,r))),objectElementMerge:(e,t,r)=>{const s=hc(e)?up(e):up(t);return hc(e)&&e.forEach(((e,t,n)=>{const i=qc(n);i.value=pp(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=Qc(n);let a;if(hc(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=qc(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return mp;const r=t.customMerge(e,t);return"function"==typeof r?r:mp})(n,r)(s,t)}else a=qc(i),a.value=pp(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function mp(e,t,r){var s,n,i;const o={...fp,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:fp.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:fp.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:fp.objectElementMerge;const a=dc(t);if(!(a===dc(e)))return pp(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=hp(o)(e.meta,t.meta),c.attributes=dp(o)(e.attributes,t.attributes),c}mp.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Ua.Sh:e.reduce(((e,r)=>mp(e,r,t)),up(e[0]))};const yp=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=mp(t.meta,e.meta),wc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=mp(t.attributes,e.attributes))}};const gp=class extends yp{enter(e){return this.element=Dc(e),$c}},vp=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},bp=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:bp(r,[...t,r])},xp=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>bp(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=bp(n);for(let t of e){let e=bp(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(vp(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Ep=e=>e.filter(((t,r)=>e.indexOf(t)==r)),wp=(e,t)=>{const r=t.map((e=>bp(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},jp=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(wp(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==wp(s,e)||void 0!==t[s],get:(r,s)=>(wp(s,e)||t)[s],set(t,r,s){const n=wp(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Op=null,Sp="copy",Pp="copy",Ap="deep",$p=new WeakMap,Tp=e=>$p.get(e),kp=(e,t)=>{var r,s;const n=Ep([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Ep([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},_p=(e,t)=>{var r,s,n,i;return{property:kp(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:kp(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Cp=(e,t)=>{var r,s,n,i,o,a;return{class:Ep([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:_p(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:_p(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Mp=new Map,Ip=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...bp(e.prototype).map((e=>e.constructor)),...null!==(t=Tp(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Mp.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Cp(e,t)))},Fp=e=>{let t=Mp.get(e);return t||(t={},Mp.set(e,t)),t};function Rp(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Op;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};n.push(r)}function o(...t){for(const r of e)vp(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Pp?xp(n,o):(a=n,c=o,jp([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Sp?xp(e,null,["prototype"]):jp(e,Function.prototype));let l=o;if("none"!==Ap){const n="deep"===Ap?Ip(...e):((...e)=>{const t=e.map((e=>Fp(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Cp(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Dp(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),Dp(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,$p.set(u,p),l}const Dp=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Np=Us((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const Lp=class extends yp{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Np(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=sl(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ks(Mi,["visitors",...e],this.specObj)?sl(["visitors",...e],this.specObj):sl(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof gp&&(null==s?void 0:s.constructor)===gp?Dc(t):(Gc(t,s,r),s.element)}};const qp=class extends Lp{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(cc(s)&&r.includes(Qc(s))&&!this.ignoredFields.includes(Qc(s))){const r=this.toRefractedElement([...t,"fixedFields",Qc(s)],e),i=new Ua.Pr(Dc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Qc(s))||this.element.content.push(Dc(n))})),this.copyMetaAndAttributes(e,this.element),$c}};class Bp extends(Rp(qp,gp)){constructor(e){super(e),this.element=new Wu,this.specPath=wi(["document","objects","JSONSchema"])}}const Up=Bp;const Vp=class{parent;constructor({parent:e}){this.parent=e}},Hp=e=>hc(e)&&e.hasKey("$ref");class zp extends(Rp(Lp,Vp,gp)){ObjectElement(e){const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),$c}ArrayElement(e){return this.element=new Ua.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const Gp=zp;const Jp=class extends gp{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Kp=Bs((function(e){return ti(zn(Pi,0,Ai("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 Wp=Bs((function(e){return!ll(e)}));const Yp=Us((function(e,t){return e||t}));var Xp=Ei(ti(1,Ca(Ia,Us((function(e,t){return si(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:xi(Yp)(e,t)}))(Ra,Mi))));const Zp=Kp([Ni,Xp,Wp]);const Qp=class extends Lp{specPath;ignoredFields;fieldPatternPredicate=Pc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Qc(t))&&this.fieldPatternPredicate(Qc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Ua.Pr(Dc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Qc(t))||this.element.content.push(Dc(r))})),this.copyMetaAndAttributes(e,this.element),$c}};const eh=class extends Qp{constructor(e){super(e),this.fieldPatternPredicate=Zp}};class th extends(Rp(eh,Vp,gp)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const rh=th;class sh extends(Rp(eh,Vp,gp)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const nh=sh;class ih extends(Rp(eh,Vp,gp)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const oh=ih;const ah=class extends gp{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ch=class extends gp{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class lh extends(Rp(Lp,Vp,gp)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const uh=lh;class ph extends(Rp(Lp,Vp,gp)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const hh=ph;class dh extends(Rp(Lp,Vp,gp)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const fh=dh;class mh extends(Rp(eh,Vp,gp)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Hp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const yh=mh;class gh extends(Rp(Lp,Vp,gp)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),$c}}const vh=gh;class bh extends(Rp(qp,gp)){constructor(e){super(e),this.element=new Xu,this.specPath=wi(["document","objects","JSONReference"])}ObjectElement(e){const t=qp.prototype.ObjectElement.call(this,e);return cc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const xh=bh;const Eh=class extends gp{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const wh=Vs((function(e,t,r){return ti(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const jh=Bs((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Oh=Us((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Sh=Oh;const Ph=Bs((function(e){return Gs(0,e)}));const Ah=Bs(Va);const $h=Ei(sp);const Th=Ca(ul,Wp);function kh(e){return function(e){if(Array.isArray(e))return _h(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){if("string"==typeof e)return _h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_h(e,t):void 0}}(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 _h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var Ch=Wn(Sh(jh((function(e,t){return e.length>t.length}))),Ph,Xn("length")),Mh=ri((function(e,t,r){var s=r.apply(void 0,kh(e));return $h(s)?Ah(s):t}));const Ih=wh(Th,(function(e){var t=Ch(e);return ti(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return zn(Mh(r),void 0,e)}))}),ji);const Fh=class extends Lp{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>wh(e,wi(t),ji))),r=Ih(t)(e);return this.element=this.toRefractedElement(r,e),$c}};const Rh=class extends Fh{constructor(e){super(e),this.alternator=[{predicate:Hp,specPath:["document","objects","JSONReference"]},{predicate:Sc,specPath:["document","objects","JSONSchema"]}]}};class Dh extends(Rp(qp,gp)){constructor(e){super(e),this.element=new Qu,this.specPath=wi(["document","objects","Media"])}}const Nh=Dh;class Lh extends(Rp(qp,gp)){constructor(e){super(e),this.element=new tp,this.specPath=wi(["document","objects","LinkDescription"])}}const qh={visitors:{value:gp,JSONSchemaOrJSONReferenceVisitor:Rh,document:{objects:{JSONSchema:{$visitor:Up,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Rh,items:Gp,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Jp,properties:rh,additionalProperties:Rh,patternProperties:nh,dependencies:oh,enum:ah,type:ch,allOf:uh,anyOf:hh,oneOf:fh,not:Rh,definitions:yh,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:vh,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:xh,fixedFields:{$ref:Eh}},Media:{$visitor:Nh,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Lh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Rh,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Rh}}}}}},Bh=e=>{if(ac(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Uh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Hc},Vh=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wu||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),Hh=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xu||e(s)&&t("JSONReference",s)&&r("object",s))),zh=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qu||e(s)&&t("media",s)&&r("object",s))),Gh=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tp||e(s)&&t("linkDescription",s)&&r("object",s))),Jh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Wu),t.register("jSONReference",Xu),t.register("media",Qu),t.register("linkDescription",tp),t}},Kh=()=>{const e=yl(Jh);return{predicates:{...o,isStringElement:cc},namespace:e}},Wh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=qh}={})=>{const n=(0,Ua.e)(e),i=lp(s),o=new(sl(t,i))({specObj:i});return Gc(n,o),xl(o.element,r,{toolboxCreator:Kh,visitorOptions:{keyMap:Uh,nodeTypeGetter:Bh}})},Yh=e=>(t,r={})=>Wh(t,{specPath:e,...r});Wu.refract=Yh(["visitors","document","objects","JSONSchema","$visitor"]),Xu.refract=Yh(["visitors","document","objects","JSONReference","$visitor"]),Qu.refract=Yh(["visitors","document","objects","Media","$visitor"]),tp.refract=Yh(["visitors","document","objects","LinkDescription","$visitor"]);const Xh=class extends Wu{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Ju("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Ju("idProp setter in Schema class is not not supported.")}get $schema(){throw new Ju("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Ju("$schema setter in Schema class is not not supported.")}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 patternProperties(){throw new Ju("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Ju("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Ju("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Ju("dependencies setter in Schema class is not not supported.")}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 definitions(){throw new Ju("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Ju("definitions setter in Schema class is not not supported.")}get base(){throw new Ju("base getter in Schema class is not not supported.")}set base(e){throw new Ju("base setter in Schema class is not not supported.")}get links(){throw new Ju("links getter in Schema class is not not supported.")}set links(e){throw new Ju("links setter in Schema class is not not supported.")}get media(){throw new Ju("media getter in Schema class is not not supported.")}set media(e){throw new Ju("media setter in Schema class is not not supported.")}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 Zh extends Ua.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Qh=Zh;class ed extends Ua.Sh{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 td=ed;class rd extends Ua.Sh{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 sd=rd;class nd extends Ua.Sh{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 id=nd;class od extends Ua.Sh{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 ad=od;class cd extends Ua.Sh{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 ld=cd;const ud=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=mp(t.meta,e.meta),wc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=mp(t.attributes,e.attributes))}};const pd=class extends ud{enter(e){return this.element=Dc(e),$c}};const hd=class extends ud{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Np(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=sl(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ks(Mi,["visitors",...e],this.specObj)?sl(["visitors",...e],this.specObj):sl(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof pd&&(null==s?void 0:s.constructor)===pd?Dc(t):(Gc(t,s,r),s.element)}},dd=e=>hc(e)&&e.hasKey("$ref"),fd=hc,md=hc,yd=e=>cc(e.key)&&Bl("x-",Qc(e.key));const gd=class extends hd{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=yd;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(cc(s)&&r.includes(Qc(s))&&!this.ignoredFields.includes(Qc(s))){const r=this.toRefractedElement([...t,"fixedFields",Qc(s)],e),i=new Ua.Pr(Dc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(Qc(s))||this.element.content.push(Dc(n))})),this.copyMetaAndAttributes(e,this.element),$c}};class vd extends(Rp(gd,pd)){constructor(e){super(e),this.element=new ku,this.specPath=wi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return gd.prototype.ObjectElement.call(this,e)}}const bd=vd;class xd extends(Rp(hd,pd)){StringElement(e){const t=new $u(Qc(e));return this.copyMetaAndAttributes(e,t),this.element=t,$c}}const Ed=xd;const wd=class extends hd{MemberElement(e){return this.element=Dc(e),this.element.classes.push("specification-extension"),$c}};class jd extends(Rp(gd,pd)){constructor(e){super(e),this.element=new yu,this.specPath=wi(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Od=jd;const Sd=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Pd extends(Rp(gd,pd)){constructor(e){super(e),this.element=new nu,this.specPath=wi(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ad=Pd;class $d extends(Rp(gd,pd)){constructor(e){super(e),this.element=new vu,this.specPath=wi(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Td=$d;class kd extends(Rp(gd,pd)){constructor(e){super(e),this.element=new xu,this.specPath=wi(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return(cc(this.element.operationId)||cc(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const _d=kd;const Cd=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Md=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Id=class extends hd{specPath;ignoredFields;fieldPatternPredicate=Pc;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=yd;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(Qc(t))&&this.fieldPatternPredicate(Qc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Ua.Pr(Dc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Qc(t))||this.element.content.push(Dc(r))})),this.copyMetaAndAttributes(e,this.element),$c}};const Fd=class extends Id{constructor(e){super(e),this.fieldPatternPredicate=Zp}};class Rd extends Ua.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Rd.primaryClass)}}const Dd=Rd;class Nd extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Dd,this.specPath=wi(["value"])}}const Ld=Nd;class qd extends(Rp(gd,pd)){constructor(e){super(e),this.element=new sd,this.specPath=wi(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Bd=qd;const Ud=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Vd extends Ua.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Vd.primaryClass)}}const Hd=Vd;class zd extends(Rp(hd,pd)){constructor(e){super(e),this.element=new Hd}ArrayElement(e){return e.forEach((e=>{const t=fd(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const Gd=zd;class Jd extends(Rp(gd,pd)){constructor(e){super(e),this.element=new id,this.specPath=wi(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Kd=Jd;class Wd extends Ua.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Wd.primaryClass)}}const Yd=Wd;class Xd extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Yd,this.specPath=wi(["document","objects","ServerVariable"])}}const Zd=Xd;class Qd extends(Rp(gd,pd)){constructor(e){super(e),this.element=new wu,this.specPath=wi(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ef=Qd;const tf=class extends hd{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>wh(e,wi(t),ji))),r=Ih(t)(e);return this.element=this.toRefractedElement(r,e),$c}},rf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eu||e(s)&&t("callback",s)&&r("object",s))),sf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ru||e(s)&&t("components",s)&&r("object",s))),nf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nu||e(s)&&t("contact",s)&&r("object",s))),of=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uu||e(s)&&t("example",s)&&r("object",s))),af=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hu||e(s)&&t("externalDocumentation",s)&&r("object",s))),cf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fu||e(s)&&t("header",s)&&r("object",s))),lf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yu||e(s)&&t("info",s)&&r("object",s))),uf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vu||e(s)&&t("license",s)&&r("object",s))),pf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xu||e(s)&&t("link",s)&&r("object",s))),hf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $u||e(s)&&t("openapi",s)&&r("string",s))),df=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof ku||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),ff=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cu||e(s)&&t("operation",s)&&r("object",s))),mf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Iu||e(s)&&t("parameter",s)&&r("object",s))),yf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ru||e(s)&&t("pathItem",s)&&r("object",s))),gf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nu||e(s)&&t("paths",s)&&r("object",s))),vf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qu||e(s)&&t("reference",s)&&r("object",s))),bf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Uu||e(s)&&t("requestBody",s)&&r("object",s))),xf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hu||e(s)&&t("response",s)&&r("object",s))),Ef=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gu||e(s)&&t("responses",s)&&r("object",s))),wf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xh||e(s)&&t("schema",s)&&r("object",s))),jf=e=>pc(e)&&e.classes.includes("boolean-json-schema"),Of=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qh||e(s)&&t("securityRequirement",s)&&r("object",s))),Sf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof td||e(s)&&t("securityScheme",s)&&r("object",s))),Pf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sd||e(s)&&t("server",s)&&r("object",s))),Af=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof id||e(s)&&t("serverVariable",s)&&r("object",s))),$f=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wu||e(s)&&t("mediaType",s)&&r("object",s))),Tf=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Hd||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class kf extends(Rp(tf,pd)){constructor(e){super(e),this.alternator=[{predicate:dd,specPath:["document","objects","Reference"]},{predicate:Sc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=tf.prototype.enter.call(this,e);return vf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const _f=kf;class Cf extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("examples"),this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Mf=Cf;class If extends Ua.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(If.primaryClass),this.classes.push("examples")}}const Ff=If;const Rf=class extends Mf{constructor(e){super(e),this.element=new Ff}};class Df extends Ua.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Df.primaryClass)}}const Nf=Df;class Lf extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Nf,this.specPath=wi(["document","objects","Encoding"])}}const qf=Lf;class Bf extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Qh,this.specPath=wi(["value"])}}const Uf=Bf;class Vf extends Ua.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Vf.primaryClass)}}const Hf=Vf;class zf extends(Rp(hd,pd)){constructor(e){super(e),this.element=new Hf}ArrayElement(e){return e.forEach((e=>{if(hc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Dc(e))})),this.copyMetaAndAttributes(e,this.element),$c}}const Gf=zf;class Jf extends(Rp(gd,pd)){constructor(e){super(e),this.element=new ru,this.specPath=wi(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Kf=Jf;class Wf extends(Rp(gd,pd)){constructor(e){super(e),this.element=new ad,this.specPath=wi(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Yf=Wf;class Xf extends(Rp(gd,pd)){constructor(e){super(e),this.element=new qu,this.specPath=wi(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return cc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Zf=Xf;const Qf=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class em extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Iu,this.specPath=wi(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return hc(this.element.contentProp)&&this.element.contentProp.filter($f).forEach(((e,t)=>{e.setMetaProperty("media-type",Qc(t))})),t}}const tm=em;class rm extends(Rp(tf,pd)){constructor(e){super(e),this.alternator=[{predicate:dd,specPath:["document","objects","Reference"]},{predicate:Sc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=tf.prototype.enter.call(this,e);return vf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const sm=rm;class nm extends(Rp(gd,pd)){constructor(e){super(e),this.element=new fu,this.specPath=wi(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const im=nm;class om extends(Rp(tf,pd)){constructor(e){super(e),this.alternator=[{predicate:dd,specPath:["document","objects","Reference"]},{predicate:Sc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=tf.prototype.enter.call(this,e);return vf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const am=om;class cm extends Ua.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(cm.primaryClass),this.classes.push("examples")}}const lm=cm;const um=class extends Mf{constructor(e){super(e),this.element=new lm}};class pm extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("content"),this.specPath=wi(["document","objects","MediaType"])}}const hm=pm;class dm extends Ua.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(dm.primaryClass),this.classes.push("content")}}const fm=dm;const mm=class extends hm{constructor(e){super(e),this.element=new fm}};class ym extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Xh,this.specPath=wi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const gm=ym,{allOf:vm}=qh.visitors.document.objects.JSONSchema.fixedFields;const bm=class extends vm{ArrayElement(e){const t=vm.prototype.ArrayElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{anyOf:xm}=qh.visitors.document.objects.JSONSchema.fixedFields;const Em=class extends xm{ArrayElement(e){const t=xm.prototype.ArrayElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{oneOf:wm}=qh.visitors.document.objects.JSONSchema.fixedFields;const jm=class extends wm{ArrayElement(e){const t=wm.prototype.ArrayElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:Om}=qh.visitors.document.objects.JSONSchema.fixedFields;const Sm=class extends Om{ObjectElement(e){const t=Om.prototype.ObjectElement.call(this,e);return vf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},{properties:Pm}=qh.visitors.document.objects.JSONSchema.fixedFields;const Am=class extends Pm{ObjectElement(e){const t=Pm.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{type:$m}=qh.visitors.document.objects.JSONSchema.fixedFields;const Tm=class extends $m{ArrayElement(e){return this.enter(e)}},{JSONSchemaOrJSONReferenceVisitor:km}=qh.visitors;const _m=class extends km{ObjectElement(e){const t=km.prototype.enter.call(this,e);return vf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Cm extends(Rp(gd,pd)){constructor(e){super(e),this.element=new ou,this.specPath=wi(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Mm=Cm;class Im extends Ua.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Im.primaryClass)}}const Fm=Im;class Rm extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Fm,this.specPath=wi(["value"])}}const Dm=Rm;class Nm extends(Rp(gd,pd)){constructor(e){super(e),this.element=new ld,this.specPath=wi(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Lm=Nm;class qm extends Ua.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(qm.primaryClass),this.classes.push("examples")}}const Bm=qm;const Um=class extends Mf{constructor(e){super(e),this.element=new Bm}};class Vm extends Ua.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Vm.primaryClass),this.classes.push("content")}}const Hm=Vm;const zm=class extends hm{constructor(e){super(e),this.element=new Hm}};class Gm extends Ua.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Gm.primaryClass)}}const Jm=Gm;class Km extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Jm,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Wm=Km;class Ym extends Ua.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Ym.primaryClass)}}const Xm=Ym;class Zm extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Xm,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(xf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Qc(t))})),t}}const Qm=Zm;class ey extends Ua.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(ey.primaryClass),this.classes.push("parameters")}}const ty=ey;class ry extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new ty,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const sy=ry;class ny extends Ua.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ny.primaryClass),this.classes.push("examples")}}const iy=ny;class oy extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new iy,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const ay=oy;class cy extends Ua.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(cy.primaryClass)}}const ly=cy;class uy extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new ly,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const py=uy;class hy extends Ua.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(hy.primaryClass)}}const dy=hy;class fy extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new dy,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(cf).forEach(((e,t)=>{e.setMetaProperty("header-name",Qc(t))})),t}}const my=fy;class yy extends Ua.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(yy.primaryClass)}}const gy=yy;class vy extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new gy,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const by=vy;class xy extends Ua.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(xy.primaryClass)}}const Ey=xy;class wy extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Ey,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const jy=wy;class Oy extends Ua.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Oy.primaryClass)}}const Sy=Oy;class Py extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Sy,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Ay=Py;class $y extends(Rp(gd,pd)){constructor(e){super(e),this.element=new uu,this.specPath=wi(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return cc(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Ty=$y;const ky=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class _y extends(Rp(gd,pd)){constructor(e){super(e),this.element=new hu,this.specPath=wi(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Cy=_y;class My extends(Rp(gd,pd)){constructor(e){super(e),this.element=new cu,this.specPath=wi(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return hc(this.element.headers)&&this.element.headers.filter(cf).forEach(((e,t)=>{e.setMetaProperty("header-name",Qc(t))})),t}}const Iy=My;class Fy extends Ua.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Fy.primaryClass)}}const Ry=Fy;class Dy extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Ry,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!cf(e))return;const r=Qc(t);e.setMetaProperty("headerName",r)})),t}}const Ny=Dy;class Ly extends(Rp(Id,pd)){constructor(e){super(e),this.element=new Nu,this.specPath=wi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Sc}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Dc(t))})),t}}const qy=Ly;class By extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Uu,this.specPath=wi(["document","objects","RequestBody"])}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return hc(this.element.contentProp)&&this.element.contentProp.filter($f).forEach(((e,t)=>{e.setMetaProperty("media-type",Qc(t))})),t}}const Uy=By;class Vy extends Ua.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Vy.primaryClass),this.classes.push("content")}}const Hy=Vy;const zy=class extends hm{constructor(e){super(e),this.element=new Hy}};class Gy extends(Rp(Id,pd)){constructor(e){super(e),this.element=new eu,this.specPath=wi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(yf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Qc(t))})),t}}const Jy=Gy;class Ky extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Hu,this.specPath=wi(["document","objects","Response"])}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return hc(this.element.contentProp)&&this.element.contentProp.filter($f).forEach(((e,t)=>{e.setMetaProperty("media-type",Qc(t))})),hc(this.element.headers)&&this.element.headers.filter(cf).forEach(((e,t)=>{e.setMetaProperty("header-name",Qc(t))})),t}}const Wy=Ky;class Yy extends Ua.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Yy.primaryClass)}}const Xy=Yy;class Zy extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Xy,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!cf(e))return;const r=Qc(t);e.setMetaProperty("header-name",r)})),t}}const Qy=Zy;class eg extends Ua.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(eg.primaryClass),this.classes.push("content")}}const tg=eg;const rg=class extends hm{constructor(e){super(e),this.element=new tg}};class sg extends Ua.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(sg.primaryClass)}}const ng=sg;class ig extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new ng,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const og=ig;function ag(e){return"[object Number]"===Object.prototype.toString.call(e)}var cg=Us((function(e,t){if(!ag(e)||!ag(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));const lg=cg;function ug(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!dn(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!dn(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const pg=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!ug(e,!0,this)},e.prototype.has=function(e){return ug(e,!1,this)},e}();var hg=Us((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new pg,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));const dg=hg;class fg extends(Rp(gd,Id)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...dg(e.keys(),t)],gd.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Id.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return $c}}const mg=fg;class yg extends(Rp(mg,pd)){constructor(e){super(e),this.element=new Gu,this.specPathFixedFields=wi(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>dd(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${lg(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=mg.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(xf).forEach(((e,t)=>{const r=Dc(t);this.fieldPatternPredicate(Qc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const gg=yg;class vg extends(Rp(tf,pd)){constructor(e){super(e),this.alternator=[{predicate:dd,specPath:["document","objects","Reference"]},{predicate:Sc,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=tf.prototype.enter.call(this,e);return vf(this.element)?this.element.setMetaProperty("referenced-element","response"):xf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const bg=vg;class xg extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Cu,this.specPath=wi(["document","objects","Operation"])}}const Eg=xg;class wg extends Ua.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(wg.primaryClass)}}const jg=wg;const Og=class extends pd{constructor(e){super(e),this.element=new jg}ArrayElement(e){return this.element=this.element.concat(Dc(e)),$c}};class Sg extends Ua.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Sg.primaryClass),this.classes.push("parameters")}}const Pg=Sg;class Ag extends(Rp(hd,pd)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=dd(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);vf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const $g=Ag;const Tg=class extends $g{constructor(e){super(e),this.element=new Pg}};const kg=class extends tf{constructor(e){super(e),this.alternator=[{predicate:dd,specPath:["document","objects","Reference"]},{predicate:Sc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=tf.prototype.enter.call(this,e);return vf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class _g extends Ua.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(_g.primaryClass)}}const Cg=_g;class Mg extends(Rp(Fd,pd)){specPath;constructor(e){super(e),this.element=new Cg,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(vf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Ig=Mg;class Fg extends Ua.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Fg.primaryClass),this.classes.push("security")}}const Rg=Fg;class Dg extends(Rp(hd,pd)){constructor(e){super(e),this.element=new Rg}ArrayElement(e){return e.forEach((e=>{const t=hc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const Ng=Dg;class Lg extends Ua.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Lg.primaryClass),this.classes.push("servers")}}const qg=Lg;const Bg=class extends Gd{constructor(e){super(e),this.element=new qg}};class Ug extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Ru,this.specPath=wi(["document","objects","PathItem"])}ObjectElement(e){const t=gd.prototype.ObjectElement.call(this,e);return this.element.filter(ff).forEach(((e,t)=>{const r=Dc(t);r.content=Qc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),cc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Vg=Ug;const Hg=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class zg extends Ua.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(zg.primaryClass),this.classes.push("servers")}}const Gg=zg;const Jg=class extends Gd{constructor(e){super(e),this.element=new Gg}};class Kg extends Ua.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Kg.primaryClass),this.classes.push("parameters")}}const Wg=Kg;const Yg=class extends $g{constructor(e){super(e),this.element=new Wg}};class Xg extends(Rp(gd,pd)){constructor(e){super(e),this.element=new td,this.specPath=wi(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Zg=Xg;class Qg extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Pu,this.specPath=wi(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const ev=Qg;class tv extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Ou,this.specPath=wi(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const rv=tv;class sv extends Ua.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(sv.primaryClass)}}const nv=sv;class iv extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new nv,this.specPath=wi(["value"])}}const ov=iv;class av extends Ua.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(av.primaryClass)}}const cv=av;class lv extends(Rp(hd,pd)){constructor(e){super(e),this.element=new cv}ArrayElement(e){return e.forEach((e=>{const t=md(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),$c}}const uv=lv,{fixedFields:pv}=qh.visitors.document.objects.JSONSchema,hv={visitors:{value:pd,document:{objects:{OpenApi:{$visitor:bd,fixedFields:{openapi:Ed,info:{$ref:"#/visitors/document/objects/Info"},servers:Gd,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Gf,tags:uv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Od,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Sd}},Contact:{$visitor:Ad,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Td,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Bd,fixedFields:{url:Ud,description:{$ref:"#/visitors/value"},variables:Zd}},ServerVariable:{$visitor:Kd,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Kf,fixedFields:{schemas:Wm,responses:Qm,parameters:sy,examples:ay,requestBodies:py,headers:my,securitySchemes:by,links:jy,callbacks:Ay}},Paths:{$visitor:qy},PathItem:{$visitor:Vg,fixedFields:{$ref:Hg,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},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:Jg,parameters:Yg}},Operation:{$visitor:Eg,fixedFields:{tags:Og,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Tg,requestBody:kg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Ig,deprecated:{$ref:"#/visitors/value"},security:Ng,servers:Bg}},ExternalDocumentation:{$visitor:Cy,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:tm,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:sm,example:{$ref:"#/visitors/value"},examples:Um,content:zm}},RequestBody:{$visitor:Uy,fixedFields:{description:{$ref:"#/visitors/value"},content:zy,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ef,fixedFields:{schema:_f,example:{$ref:"#/visitors/value"},examples:Rf,encoding:qf}},Encoding:{$visitor:Iy,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Ny,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:gg,fixedFields:{default:bg}},Response:{$visitor:Wy,fixedFields:{description:{$ref:"#/visitors/value"},headers:Qy,content:rg,links:og}},Callback:{$visitor:Jy},Example:{$visitor:Ty,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ky}},Link:{$visitor:_d,fixedFields:{operationRef:Cd,operationId:Md,parameters:Ld,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:im,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:am,example:{$ref:"#/visitors/value"},examples:um,content:mm}},Tag:{$visitor:Yf,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Zf,fixedFields:{$ref:Qf}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:gm,fixedFields:{title:pv.title,multipleOf:pv.multipleOf,maximum:pv.maximum,exclusiveMaximum:pv.exclusiveMaximum,minimum:pv.minimum,exclusiveMinimum:pv.exclusiveMinimum,maxLength:pv.maxLength,minLength:pv.minLength,pattern:pv.pattern,maxItems:pv.maxItems,minItems:pv.minItems,uniqueItems:pv.uniqueItems,maxProperties:pv.maxProperties,minProperties:pv.minProperties,required:pv.required,enum:pv.enum,type:Tm,allOf:bm,anyOf:Em,oneOf:jm,not:_m,items:Sm,properties:Am,additionalProperties:_m,description:pv.description,format:pv.format,default:pv.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Mm,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Dm}},XML:{$visitor:Lm,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Zg,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:ev,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:rv,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:ov}},SecurityRequirement:{$visitor:Uf}},extension:{$visitor:wd}}}},dv=e=>{if(ac(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},fv={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"],...Hc},mv={namespace:e=>{const{base:t}=e;return t.register("callback",eu),t.register("components",ru),t.register("contact",nu),t.register("discriminator",ou),t.register("encoding",cu),t.register("example",uu),t.register("externalDocumentation",hu),t.register("header",fu),t.register("info",yu),t.register("license",vu),t.register("link",xu),t.register("mediaType",wu),t.register("oAuthFlow",Ou),t.register("oAuthFlows",Pu),t.register("openapi",$u),t.register("openApi3_0",ku),t.register("operation",Cu),t.register("parameter",Iu),t.register("pathItem",Ru),t.register("paths",Nu),t.register("reference",qu),t.register("requestBody",Uu),t.register("response",Hu),t.register("responses",Gu),t.register("schema",Xh),t.register("securityRequirement",Qh),t.register("securityScheme",td),t.register("server",sd),t.register("serverVariable",id),t.register("tag",ad),t.register("xml",ld),t}},yv=()=>{const e=yl(mv);return{predicates:{...a,isElement:ac,isStringElement:cc,isArrayElement:dc,isObjectElement:hc,isMemberElement:fc,includesClasses:Oc,hasElementSourceMap:wc},namespace:e}},gv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Ua.e)(e),n=lp(hv),i=new(sl(t,n))({specObj:n});return Gc(s,i),xl(i.element,r,{toolboxCreator:yv,visitorOptions:{keyMap:fv,nodeTypeGetter:dv}})},vv=e=>(t,r={})=>gv(t,{specPath:e,...r});eu.refract=vv(["visitors","document","objects","Callback","$visitor"]),ru.refract=vv(["visitors","document","objects","Components","$visitor"]),nu.refract=vv(["visitors","document","objects","Contact","$visitor"]),uu.refract=vv(["visitors","document","objects","Example","$visitor"]),ou.refract=vv(["visitors","document","objects","Discriminator","$visitor"]),cu.refract=vv(["visitors","document","objects","Encoding","$visitor"]),hu.refract=vv(["visitors","document","objects","ExternalDocumentation","$visitor"]),fu.refract=vv(["visitors","document","objects","Header","$visitor"]),yu.refract=vv(["visitors","document","objects","Info","$visitor"]),vu.refract=vv(["visitors","document","objects","License","$visitor"]),xu.refract=vv(["visitors","document","objects","Link","$visitor"]),wu.refract=vv(["visitors","document","objects","MediaType","$visitor"]),Ou.refract=vv(["visitors","document","objects","OAuthFlow","$visitor"]),Pu.refract=vv(["visitors","document","objects","OAuthFlows","$visitor"]),$u.refract=vv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),ku.refract=vv(["visitors","document","objects","OpenApi","$visitor"]),Cu.refract=vv(["visitors","document","objects","Operation","$visitor"]),Iu.refract=vv(["visitors","document","objects","Parameter","$visitor"]),Ru.refract=vv(["visitors","document","objects","PathItem","$visitor"]),Nu.refract=vv(["visitors","document","objects","Paths","$visitor"]),qu.refract=vv(["visitors","document","objects","Reference","$visitor"]),Uu.refract=vv(["visitors","document","objects","RequestBody","$visitor"]),Hu.refract=vv(["visitors","document","objects","Response","$visitor"]),Gu.refract=vv(["visitors","document","objects","Responses","$visitor"]),Xh.refract=vv(["visitors","document","objects","Schema","$visitor"]),Qh.refract=vv(["visitors","document","objects","SecurityRequirement","$visitor"]),td.refract=vv(["visitors","document","objects","SecurityScheme","$visitor"]),sd.refract=vv(["visitors","document","objects","Server","$visitor"]),id.refract=vv(["visitors","document","objects","ServerVariable","$visitor"]),ad.refract=vv(["visitors","document","objects","Tag","$visitor"]),ld.refract=vv(["visitors","document","objects","XML","$visitor"]);const bv=class extends eu{};const xv=class extends ru{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Ev=class extends nu{};const wv=class extends ou{};const jv=class extends cu{};const Ov=class extends uu{};const Sv=class extends hu{};const Pv=class extends fu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Av=class extends yu{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 $v extends Ua.Om{static default=new $v("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Tv=$v;const kv=class extends vu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const _v=class extends xu{};const Cv=class extends wu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Mv=class extends Ou{};const Iv=class extends Pu{};const Fv=class extends $u{};class Rv extends Ua.Sh{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 Dv=Rv;const Nv=class extends Cu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Lv=class extends Iu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const qv=class extends Ru{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 Bv=class extends Nu{};class Uv extends qu{}Object.defineProperty(Uv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Uv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Vv=Uv;const Hv=class extends Uu{};const zv=class extends Hu{};const Gv=class extends Gu{};class Jv extends Ua.Sh{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 Kv=Jv;const Wv=class extends Qh{};const Yv=class extends td{};const Xv=class extends sd{};const Zv=class extends id{};const Qv=class extends ad{};const eb=class extends ld{};class tb extends(Rp(gd,pd)){constructor(e){super(e),this.element=new Dv,this.specPath=wi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,gd.prototype.ObjectElement.call(this,e)}}const rb=tb,{visitors:{document:{objects:{Info:{$visitor:sb}}}}}=hv;const nb=class extends sb{constructor(e){super(e),this.element=new Av}},{visitors:{document:{objects:{Contact:{$visitor:ib}}}}}=hv;const ob=class extends ib{constructor(e){super(e),this.element=new Ev}},{visitors:{document:{objects:{License:{$visitor:ab}}}}}=hv;const cb=class extends ab{constructor(e){super(e),this.element=new kv}},{visitors:{document:{objects:{Link:{$visitor:lb}}}}}=hv;const ub=class extends lb{constructor(e){super(e),this.element=new _v}};class pb extends(Rp(hd,pd)){StringElement(e){const t=new Tv(Qc(e));return this.copyMetaAndAttributes(e,t),this.element=t,$c}}const hb=pb,{visitors:{document:{objects:{Server:{$visitor:db}}}}}=hv;const fb=class extends db{constructor(e){super(e),this.element=new Xv}},{visitors:{document:{objects:{ServerVariable:{$visitor:mb}}}}}=hv;const yb=class extends mb{constructor(e){super(e),this.element=new Zv}},{visitors:{document:{objects:{MediaType:{$visitor:gb}}}}}=hv;const vb=class extends gb{constructor(e){super(e),this.element=new Cv}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:bb}}}}}=hv;const xb=class extends bb{constructor(e){super(e),this.element=new Wv}},{visitors:{document:{objects:{Components:{$visitor:Eb}}}}}=hv;const wb=class extends Eb{constructor(e){super(e),this.element=new xv}},{visitors:{document:{objects:{Tag:{$visitor:jb}}}}}=hv;const Ob=class extends jb{constructor(e){super(e),this.element=new Qv}},{visitors:{document:{objects:{Reference:{$visitor:Sb}}}}}=hv;const Pb=class extends Sb{constructor(e){super(e),this.element=new Vv}},{visitors:{document:{objects:{Parameter:{$visitor:Ab}}}}}=hv;const $b=class extends Ab{constructor(e){super(e),this.element=new Lv}},{visitors:{document:{objects:{Header:{$visitor:Tb}}}}}=hv;const kb=class extends Tb{constructor(e){super(e),this.element=new Pv}},_b=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bv||e(s)&&t("callback",s)&&r("object",s))),Cb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xv||e(s)&&t("components",s)&&r("object",s))),Mb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ev||e(s)&&t("contact",s)&&r("object",s))),Ib=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ov||e(s)&&t("example",s)&&r("object",s))),Fb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sv||e(s)&&t("externalDocumentation",s)&&r("object",s))),Rb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pv||e(s)&&t("header",s)&&r("object",s))),Db=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Av||e(s)&&t("info",s)&&r("object",s))),Nb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tv||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),Lb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kv||e(s)&&t("license",s)&&r("object",s))),qb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _v||e(s)&&t("link",s)&&r("object",s))),Bb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fv||e(s)&&t("openapi",s)&&r("string",s))),Ub=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Dv||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),Vb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nv||e(s)&&t("operation",s)&&r("object",s))),Hb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lv||e(s)&&t("parameter",s)&&r("object",s))),zb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qv||e(s)&&t("pathItem",s)&&r("object",s))),Gb=e=>{if(!zb(e))return!1;if(!cc(e.$ref))return!1;const t=Qc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Jb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bv||e(s)&&t("paths",s)&&r("object",s))),Kb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vv||e(s)&&t("reference",s)&&r("object",s))),Wb=e=>{if(!Kb(e))return!1;if(!cc(e.$ref))return!1;const t=Qc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Yb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hv||e(s)&&t("requestBody",s)&&r("object",s))),Xb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zv||e(s)&&t("response",s)&&r("object",s))),Zb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gv||e(s)&&t("responses",s)&&r("object",s))),Qb=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kv||e(s)&&t("schema",s)&&r("object",s))),ex=e=>pc(e)&&e.classes.includes("boolean-json-schema"),tx=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wv||e(s)&&t("securityRequirement",s)&&r("object",s))),rx=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yv||e(s)&&t("securityScheme",s)&&r("object",s))),sx=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xv||e(s)&&t("server",s)&&r("object",s))),nx=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zv||e(s)&&t("serverVariable",s)&&r("object",s))),ix=oc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cv||e(s)&&t("mediaType",s)&&r("object",s)));const ox=class{parent;constructor({parent:e}){this.parent=e}};class ax extends(Rp(gd,ox,pd)){constructor(e){super(e),this.element=new Kv,this.specPath=wi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Tv.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=gd.prototype.ObjectElement.call(this,e);return cc(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&Nb(this.openApiSemanticElement.jsonSchemaDialect)?Qc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&cc(this.openApiGenericElement.get("jsonSchemaDialect"))?Qc(this.openApiGenericElement.get("jsonSchemaDialect")):Qc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(Oi(this.parent)&&!cc(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(Qb(this.parent)&&!cc(e.get("$schema"))){const e=Yn(Qc(this.parent.meta.get("inherited$schema")),Qc(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Dc(this.parent.getMetaProperty("inherited$id",[])):new Ua.wE,r=Qc(e.get("$id"));Zp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const cx=ax;const lx=class extends pd{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const ux=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class px extends(Rp(Fd,ox,pd)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const hx=px;class dx extends(Rp(hd,ox,pd)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(hc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Dc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),$c}}const fx=dx;class mx extends(Rp(hd,ox,pd)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(hc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Dc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),$c}}const yx=mx;class gx extends(Rp(hd,ox,pd)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(hc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Dc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),$c}}const vx=gx;class bx extends(Rp(Fd,ox,pd)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const xx=bx;class Ex extends(Rp(hd,ox,pd)){constructor(e){super(e),this.element=new Ua.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(hc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Dc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),$c}}const wx=Ex;class jx extends(Rp(Fd,ox,pd)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-properties"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Ox=jx;class Sx extends(Rp(Fd,ox,pd)){constructor(e){super(e),this.element=new Ua.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Px=Sx;const Ax=class extends pd{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}};const $x=class extends pd{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Tx=class extends pd{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const kx=class extends pd{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:_x}}}}}=hv;const Cx=class extends _x{constructor(e){super(e),this.element=new wv,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:Mx}}}}}=hv;const Ix=class extends Mx{constructor(e){super(e),this.element=new eb}};class Fx extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Jm,this.specPath=wi(["document","objects","Schema"])}}const Rx=Fx;class Dx extends Ua.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(Dx.primaryClass)}}const Nx=Dx;class Lx extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new Nx,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(Kb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const qx=Lx,{visitors:{document:{objects:{Example:{$visitor:Bx}}}}}=hv;const Ux=class extends Bx{constructor(e){super(e),this.element=new Ov}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Vx}}}}}=hv;const Hx=class extends Vx{constructor(e){super(e),this.element=new Sv}},{visitors:{document:{objects:{Encoding:{$visitor:zx}}}}}=hv;const Gx=class extends zx{constructor(e){super(e),this.element=new jv}},{visitors:{document:{objects:{Paths:{$visitor:Jx}}}}}=hv;const Kx=class extends Jx{constructor(e){super(e),this.element=new Bv}},{visitors:{document:{objects:{RequestBody:{$visitor:Wx}}}}}=hv;const Yx=class extends Wx{constructor(e){super(e),this.element=new Hv}},{visitors:{document:{objects:{Callback:{$visitor:Xx}}}}}=hv;const Zx=class extends Xx{constructor(e){super(e),this.element=new bv,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Xx.prototype.ObjectElement.call(this,e);return this.element.filter(Kb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:Qx}}}}}=hv;const eE=class extends Qx{constructor(e){super(e),this.element=new zv}},{visitors:{document:{objects:{Responses:{$visitor:tE}}}}}=hv;const rE=class extends tE{constructor(e){super(e),this.element=new Gv}},{visitors:{document:{objects:{Operation:{$visitor:sE}}}}}=hv;const nE=class extends sE{constructor(e){super(e),this.element=new Nv}},{visitors:{document:{objects:{PathItem:{$visitor:iE}}}}}=hv;const oE=class extends iE{constructor(e){super(e),this.element=new qv}},{visitors:{document:{objects:{SecurityScheme:{$visitor:aE}}}}}=hv;const cE=class extends aE{constructor(e){super(e),this.element=new Yv}},{visitors:{document:{objects:{OAuthFlows:{$visitor:lE}}}}}=hv;const uE=class extends lE{constructor(e){super(e),this.element=new Iv}},{visitors:{document:{objects:{OAuthFlow:{$visitor:pE}}}}}=hv;const hE=class extends pE{constructor(e){super(e),this.element=new Mv}};class dE extends Ua.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(dE.primaryClass)}}const fE=dE;class mE extends(Rp(Fd,pd)){constructor(e){super(e),this.element=new fE,this.specPath=e=>dd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Fd.prototype.ObjectElement.call(this,e);return this.element.filter(Kb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(zb).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Qc(t))})),t}}const yE=mE,gE={visitors:{value:hv.visitors.value,document:{objects:{OpenApi:{$visitor:rb,fixedFields:{openapi:hv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:hb,servers:hv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:yE,components:{$ref:"#/visitors/document/objects/Components"},security:hv.visitors.document.objects.OpenApi.fixedFields.security,tags:hv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:nb,fixedFields:{title:hv.visitors.document.objects.Info.fixedFields.title,description:hv.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:hv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:hv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:ob,fixedFields:{name:hv.visitors.document.objects.Contact.fixedFields.name,url:hv.visitors.document.objects.Contact.fixedFields.url,email:hv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:cb,fixedFields:{name:hv.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:hv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:fb,fixedFields:{url:hv.visitors.document.objects.Server.fixedFields.url,description:hv.visitors.document.objects.Server.fixedFields.description,variables:hv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:yb,fixedFields:{enum:hv.visitors.document.objects.ServerVariable.fixedFields.enum,default:hv.visitors.document.objects.ServerVariable.fixedFields.default,description:hv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:wb,fixedFields:{schemas:Rx,responses:hv.visitors.document.objects.Components.fixedFields.responses,parameters:hv.visitors.document.objects.Components.fixedFields.parameters,examples:hv.visitors.document.objects.Components.fixedFields.examples,requestBodies:hv.visitors.document.objects.Components.fixedFields.requestBodies,headers:hv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:hv.visitors.document.objects.Components.fixedFields.securitySchemes,links:hv.visitors.document.objects.Components.fixedFields.links,callbacks:hv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:qx}},Paths:{$visitor:Kx},PathItem:{$visitor:oE,fixedFields:{$ref:hv.visitors.document.objects.PathItem.fixedFields.$ref,summary:hv.visitors.document.objects.PathItem.fixedFields.summary,description:hv.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:hv.visitors.document.objects.PathItem.fixedFields.servers,parameters:hv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:nE,fixedFields:{tags:hv.visitors.document.objects.Operation.fixedFields.tags,summary:hv.visitors.document.objects.Operation.fixedFields.summary,description:hv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:hv.visitors.document.objects.Operation.fixedFields.operationId,parameters:hv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:hv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:hv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:hv.visitors.document.objects.Operation.fixedFields.deprecated,security:hv.visitors.document.objects.Operation.fixedFields.security,servers:hv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Hx,fixedFields:{description:hv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:hv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:$b,fixedFields:{name:hv.visitors.document.objects.Parameter.fixedFields.name,in:hv.visitors.document.objects.Parameter.fixedFields.in,description:hv.visitors.document.objects.Parameter.fixedFields.description,required:hv.visitors.document.objects.Parameter.fixedFields.required,deprecated:hv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:hv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:hv.visitors.document.objects.Parameter.fixedFields.style,explode:hv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:hv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:hv.visitors.document.objects.Parameter.fixedFields.example,examples:hv.visitors.document.objects.Parameter.fixedFields.examples,content:hv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Yx,fixedFields:{description:hv.visitors.document.objects.RequestBody.fixedFields.description,content:hv.visitors.document.objects.RequestBody.fixedFields.content,required:hv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:vb,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:hv.visitors.document.objects.MediaType.fixedFields.example,examples:hv.visitors.document.objects.MediaType.fixedFields.examples,encoding:hv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Gx,fixedFields:{contentType:hv.visitors.document.objects.Encoding.fixedFields.contentType,headers:hv.visitors.document.objects.Encoding.fixedFields.headers,style:hv.visitors.document.objects.Encoding.fixedFields.style,explode:hv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:hv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:rE,fixedFields:{default:hv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:eE,fixedFields:{description:hv.visitors.document.objects.Response.fixedFields.description,headers:hv.visitors.document.objects.Response.fixedFields.headers,content:hv.visitors.document.objects.Response.fixedFields.content,links:hv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Zx},Example:{$visitor:Ux,fixedFields:{summary:hv.visitors.document.objects.Example.fixedFields.summary,description:hv.visitors.document.objects.Example.fixedFields.description,value:hv.visitors.document.objects.Example.fixedFields.value,externalValue:hv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:ub,fixedFields:{operationRef:hv.visitors.document.objects.Link.fixedFields.operationRef,operationId:hv.visitors.document.objects.Link.fixedFields.operationId,parameters:hv.visitors.document.objects.Link.fixedFields.parameters,requestBody:hv.visitors.document.objects.Link.fixedFields.requestBody,description:hv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:kb,fixedFields:{description:hv.visitors.document.objects.Header.fixedFields.description,required:hv.visitors.document.objects.Header.fixedFields.required,deprecated:hv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:hv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:hv.visitors.document.objects.Header.fixedFields.style,explode:hv.visitors.document.objects.Header.fixedFields.explode,allowReserved:hv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:hv.visitors.document.objects.Header.fixedFields.example,examples:hv.visitors.document.objects.Header.fixedFields.examples,content:hv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Ob,fixedFields:{name:hv.visitors.document.objects.Tag.fixedFields.name,description:hv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Pb,fixedFields:{$ref:hv.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:cx,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:lx,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:ux,$defs:hx,$comment:{$ref:"#/visitors/value"},allOf:fx,anyOf:yx,oneOf:vx,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:xx,prefixItems:wx,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Ox,patternProperties:Px,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:Ax,enum:$x,const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:Tx,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:kx,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},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:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Cx,fixedFields:{propertyName:hv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:hv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Ix,fixedFields:{name:hv.visitors.document.objects.XML.fixedFields.name,namespace:hv.visitors.document.objects.XML.fixedFields.namespace,prefix:hv.visitors.document.objects.XML.fixedFields.prefix,attribute:hv.visitors.document.objects.XML.fixedFields.attribute,wrapped:hv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:cE,fixedFields:{type:hv.visitors.document.objects.SecurityScheme.fixedFields.type,description:hv.visitors.document.objects.SecurityScheme.fixedFields.description,name:hv.visitors.document.objects.SecurityScheme.fixedFields.name,in:hv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:hv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:hv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:hv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:uE,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:hE,fixedFields:{authorizationUrl:hv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:hv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:hv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:hv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:xb}},extension:{$visitor:hv.visitors.document.extension.$visitor}}}},vE=e=>{if(ac(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},bE={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"],...Hc},xE={namespace:e=>{const{base:t}=e;return t.register("callback",bv),t.register("components",xv),t.register("contact",Ev),t.register("discriminator",wv),t.register("encoding",jv),t.register("example",Ov),t.register("externalDocumentation",Sv),t.register("header",Pv),t.register("info",Av),t.register("jsonSchemaDialect",Tv),t.register("license",kv),t.register("link",_v),t.register("mediaType",Cv),t.register("oAuthFlow",Mv),t.register("oAuthFlows",Iv),t.register("openapi",Fv),t.register("openApi3_1",Dv),t.register("operation",Nv),t.register("parameter",Lv),t.register("pathItem",qv),t.register("paths",Bv),t.register("reference",Vv),t.register("requestBody",Hv),t.register("response",zv),t.register("responses",Gv),t.register("schema",Kv),t.register("securityRequirement",Wv),t.register("securityScheme",Yv),t.register("server",Xv),t.register("serverVariable",Zv),t.register("tag",Qv),t.register("xml",eb),t}},EE=e=>{const t=e.reduce(((t,r,s)=>{if(fc(r)){const e=String(Qc(r.key));t.push(e)}else if(dc(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t}),[]);return $l(t)},wE=()=>{const e=yl(xE);return{predicates:{...c,isElement:ac,isStringElement:cc,isArrayElement:dc,isObjectElement:hc,isMemberElement:fc,isServersElement:Tf,includesClasses:Oc,hasElementSourceMap:wc},ancestorLineageToJSONPointer:EE,namespace:e}},jE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Ua.e)(e),n=lp(gE),i=new(sl(t,n))({specObj:n});return Gc(s,i),xl(i.element,r,{toolboxCreator:wE,visitorOptions:{keyMap:bE,nodeTypeGetter:vE}})},OE=e=>(t,r={})=>jE(t,{specPath:e,...r});bv.refract=OE(["visitors","document","objects","Callback","$visitor"]),xv.refract=OE(["visitors","document","objects","Components","$visitor"]),Ev.refract=OE(["visitors","document","objects","Contact","$visitor"]),Ov.refract=OE(["visitors","document","objects","Example","$visitor"]),wv.refract=OE(["visitors","document","objects","Discriminator","$visitor"]),jv.refract=OE(["visitors","document","objects","Encoding","$visitor"]),Sv.refract=OE(["visitors","document","objects","ExternalDocumentation","$visitor"]),Pv.refract=OE(["visitors","document","objects","Header","$visitor"]),Av.refract=OE(["visitors","document","objects","Info","$visitor"]),Tv.refract=OE(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),kv.refract=OE(["visitors","document","objects","License","$visitor"]),_v.refract=OE(["visitors","document","objects","Link","$visitor"]),Cv.refract=OE(["visitors","document","objects","MediaType","$visitor"]),Mv.refract=OE(["visitors","document","objects","OAuthFlow","$visitor"]),Iv.refract=OE(["visitors","document","objects","OAuthFlows","$visitor"]),Fv.refract=OE(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Dv.refract=OE(["visitors","document","objects","OpenApi","$visitor"]),Nv.refract=OE(["visitors","document","objects","Operation","$visitor"]),Lv.refract=OE(["visitors","document","objects","Parameter","$visitor"]),qv.refract=OE(["visitors","document","objects","PathItem","$visitor"]),Bv.refract=OE(["visitors","document","objects","Paths","$visitor"]),Vv.refract=OE(["visitors","document","objects","Reference","$visitor"]),Hv.refract=OE(["visitors","document","objects","RequestBody","$visitor"]),zv.refract=OE(["visitors","document","objects","Response","$visitor"]),Gv.refract=OE(["visitors","document","objects","Responses","$visitor"]),Kv.refract=OE(["visitors","document","objects","Schema","$visitor"]),Wv.refract=OE(["visitors","document","objects","SecurityRequirement","$visitor"]),Yv.refract=OE(["visitors","document","objects","SecurityScheme","$visitor"]),Xv.refract=OE(["visitors","document","objects","Server","$visitor"]),Zv.refract=OE(["visitors","document","objects","ServerVariable","$visitor"]),Qv.refract=OE(["visitors","document","objects","Tag","$visitor"]),eb.refract=OE(["visitors","document","objects","XML","$visitor"]);const SE=class extends Ju{};const PE=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new SE("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new SE("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new SE("latest method in MediaTypes class is not yet implemented.")}};class AE extends PE{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 Qn(this.filterByFormat(e))}}const $E=new AE("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");const TE=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};const kE=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===this.rootRef?e:this.rootRef,e.refSet=this),this}merge(e){for(const t of e.values())this.add(t);return this}has(e){const t=Ni(e)?e:e.uri;return Si(this.find((e=>e.uri===t)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}},_E={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:Cl,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const CE=Us((function(e,t){return function(r){return function(s){return gi((function(e){return t(e,s)}),r(e(s)))}}}));var ME=Vs((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!sp(s)&&Zs(n,s)&&"object"==typeof s[n]?s[n]:Hs(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Hs(e)&&xn(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)}));const IE=ME;var FE=function(e){return{value:e,map:function(t){return FE(t(e))}}},RE=Vs((function(e,t,r){return e((function(e){return FE(t(e))}))(r).value}));const DE=RE,NE=CE(sl(["resolve","baseURI"]),IE(["resolve","baseURI"])),LE=e=>Ul(e)?Qi():e,qE=(e,t)=>{const r=rl(e,t);return DE(NE,LE,r)};const BE=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:s}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=s}get extension(){return Ni(this.uri)?Ji(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(ln(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const UE=class extends Rs{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},VE=async(e,t,r)=>{const s=await Promise.all(r.map(dl([e],t)));return r.filter(((e,t)=>s[t]))},HE=async(e,t,r)=>{let s;for(const n of r)try{const r=await n[e].call(n,...t);return{plugin:n,result:r}}catch(e){s=new UE("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const zE=class extends Rs{};const GE=class extends zE{},JE=async(e,t)=>{let r=e,s=!1;if(!bc(e)){const t=qc(e);t.classes.push("result"),r=new Za([t]),s=!0}const n=new BE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await VE("canDereference",[n,t],t.dereference.strategies);if(ll(i))throw new GE(n.uri);try{const{result:e}=await HE("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new zE(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const KE=class extends Rs{};const WE=class extends KE{};const YE=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:s=[],mediaTypes:n=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=s,this.mediaTypes=n}};const XE=class extends YE{constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),s=new Za;if(0!==r.length){const e=new Ua.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new WE(`Error parsing "${e.uri}"`,{cause:t})}}};const ZE=class{name;constructor({name:e}){this.name=e}};const QE=class extends ZE{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new GE('"openapi-3-1" dereference strategy is not available.');const s=new kE,n=qE(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const ew=class{name;constructor({name:e}){this.name=e}};const tw=class extends ew{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:s=5,withCredentials:n=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=s,this.withCredentials=n}canRead(e){return Wi(e.uri)}};const rw=class extends Rs{};const sw=class extends rw{},{AbortController:nw,AbortSignal:iw}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=nw),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=iw);const ow=class extends tw{swaggerHTTPClient=Ir;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Ir,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:s}=r,n=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:s,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new sw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},aw=(e,t=gl)=>{if(Ni(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Ba(e)&&ap("element",e)?t.fromRefract(e):t.toElement(e)};const cw=class extends YE{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new WE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new Za,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=aw(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new WE(`Error parsing "${e.uri}"`,{cause:t})}}};const lw=class extends YE{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return kr.load(e.toString(),{schema:br}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new WE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Za,r=e.toString();try{const e=kr.load(r,{schema:br});if(this.allowEmpty&&void 0===e)return t;const s=aw(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new WE(`Error parsing "${e.uri}"`,{cause:t})}}};const uw=class extends YE{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new AE(...$E.filterByFormat("generic"),...$E.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new WE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Za,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=Dv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new WE(`Error parsing "${e.uri}"`,{cause:t})}}};const pw=class extends YE{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new AE(...$E.filterByFormat("generic"),...$E.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return kr.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new WE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Za,r=e.toString();try{const e=kr.load(r,{schema:br});if(this.allowEmpty&&void 0===e)return t;const s=Dv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new WE(`Error parsing "${e.uri}"`,{cause:t})}}};const hw=Vs((function(e,t,r){return hn(e,Xn(t,r))}));const dw=class{name;constructor({name:e}){this.name=e}};const fw=Us((function(e,t){return Ga(vn(e),t)}));var mw=r(8068);const yw=class extends Ds{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class gw{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new mw({length:e}),this.identityMap=new WeakMap}identify(e){if(!ac(e))throw new yw("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&cc(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new Ua.Om(this.generateId());return this.identityMap.set(e,t),t}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new gw;const vw=Vs((function(e,t,r){return Yn(e,Js(t,r))})),bw=(e,t)=>{const r=new zc({predicate:e,returnOnTrue:$c});return Gc(t,r),vw(void 0,[0],r.result)};const xw=class extends Rs{};const Ew=class extends xw{};const ww=class extends xw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},jw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Ow=e=>{const t=Xi(e);return Gl("#",t)},Sw=(e,t)=>{const r=(e=>{if(!jw(e))throw new ww(e);return e})(e),s=bw((e=>Qb(e)&&Qc(e.$anchor)===r),t);if(Oi(s))throw new Ew(`Evaluation failed on token: "${r}"`);return s},Pw=(e,t)=>{const r=new zc({predicate:e});return Gc(t,r),new Ua.G6(r.result)};const Aw=class extends Rs{};const $w=class extends Aw{},Tw=(e,t)=>{if(void 0===t.$ref)return;const r=Xi(Qc(t.$ref)),s=Qc(t.meta.get("inherited$id"));return`${zn(((e,t)=>eo(e,to(Zi(t)))),e,[...s,Qc(t.$ref)])}${"#"===r?"":r}`},kw=e=>{if(kw.cache.has(e))return kw.cache.get(e);const t=Kv.refract(e);return kw.cache.set(e,t),t};kw.cache=new WeakMap;const _w=e=>Ec(e)?kw(e):e,Cw=(e,t)=>{const{cache:r}=Cw,s=Zi(e),n=e=>Qb(e)&&void 0!==e.$id;if(!r.has(t)){const e=Pw(n,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=Qc(t.meta.get("inherited$id"));return zn(((e,t)=>eo(e,to(Zi(t)))),e,[...r,Qc(t.$id)])})(s,e)===s));if(Oi(i))throw new $w(`Evaluation failed on URI: "${e}"`);let o,a;return jw(Ow(e))?(o=Sw,a=Ow(e)):(o=Zl,a=Wl(e)),o(a,i)};Cw.cache=new WeakMap;const Mw=class extends zE{};const Iw=class extends rw{};const Fw=class extends sw{},Rw=async(e,t)=>{const r=new BE({uri:to(Zi(e)),mediaType:t.parse.mediaType}),s=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),s=await VE("canRead",[e,t],r);if(ll(s))throw new Fw(e.uri);try{const{result:t}=await HE("read",[e],s);return t}catch(t){throw new rw(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),s=await VE("canParse",[e,t],r);if(ll(s))throw new Fw(e.uri);try{const{plugin:r,result:n}=await HE("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new KE(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new KE(`Error while parsing file "${e.uri}"`,{cause:t})}})(new BE({...r,data:s}),t)};class Dw extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(ac(r)&&e(r))return r}}const Nw=Gc[Symbol.for("nodejs.util.promisify.custom")],Lw=new gw,qw=(e,t,r,s)=>{fc(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class Bw{indirections;namespace;reference;options;ancestors;refractCache;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new Dw,refractCache:i=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new Dw(...n),this.refractCache=i}toBaseURI(e){return eo(this.reference.uri,to(Zi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Iw(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(hw(t,"uri"));const s=await Rw(ro(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new TE({uri:t,value:Dc(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new TE({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(ac));return[new Dw(...this.ancestors,t),t]}async ReferenceElement(e,t,r,s,n,i){if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(Qc(e.$ref)),l=Zi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(Qc(e.$ref)),h=eo(c,Qc(e.$ref));this.indirections.push(e);const d=Wl(h);let f=Zl(d,p.value.result);if(f.id=Lw.identify(f),Ec(f)){const t=Qc(e.meta.get("referenced-element")),r=`${t}-${Qc(Lw.identify(f))}`;if(this.refractCache.has(r))f=this.refractCache.get(r);else if(dd(f))f=Vv.refract(f),f.setMetaProperty("referenced-element",t),this.refractCache.set(r,f);else{f=this.namespace.getElementClass(t).refract(f),this.refractCache.set(r,f)}}if(e===f)throw new Rs("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Mw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){var m,y;const t=new Ua.sI(f.id,{type:"reference",uri:p.uri,$ref:Qc(e.$ref)}),s=(null!==(m=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,qw),!r&&s}}const g=Zi(p.refSet.rootRef.uri)!==p.uri,v=["error","replace"].includes(this.options.dereference.circular);if((u||g||Kb(f)||v)&&!o.includesCycle(f)){a.add(e);const t=new Bw({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await Nw(f,t,{keyMap:bE,nodeTypeGetter:vE}),a.delete(e)}this.indirections.pop();const b=qc(f);return b.setMetaProperty("id",Lw.generateId()),b.setMetaProperty("ref-fields",{$ref:Qc(e.$ref),description:Qc(e.description),summary:Qc(e.summary)}),b.setMetaProperty("ref-origin",p.uri),b.setMetaProperty("ref-referencing-element-id",Dc(Lw.identify(e))),hc(f)&&hc(b)&&(e.hasKey("description")&&"description"in f&&(b.remove("description"),b.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in f&&(b.remove("summary"),b.set("summary",e.get("summary")))),i.replaceWith(b,qw),!r&&b}async PathItemElement(e,t,r,s,n,i){if(!cc(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(Qc(e.$ref)),l=Zi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(Qc(e.$ref)),h=eo(c,Qc(e.$ref));this.indirections.push(e);const d=Wl(h);let f=Zl(d,p.value.result);if(f.id=Lw.identify(f),Ec(f)){const e=`path-item-${Qc(Lw.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=qv.refract(f),this.refractCache.set(e,f))}if(e===f)throw new Rs("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Mw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){var m,y;const t=new Ua.sI(f.id,{type:"path-item",uri:p.uri,$ref:Qc(e.$ref)}),s=(null!==(m=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,qw),!r&&s}}const g=Zi(p.refSet.rootRef.uri)!==p.uri,v=["error","replace"].includes(this.options.dereference.circular);if((u||g||zb(f)&&cc(f.$ref)||v)&&!o.includesCycle(f)){a.add(e);const t=new Bw({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await Nw(f,t,{keyMap:bE,nodeTypeGetter:vE}),a.delete(e)}if(this.indirections.pop(),zb(f)){const t=new qv([...f.content],Dc(f.meta),Dc(f.attributes));t.setMetaProperty("id",Lw.generateId()),e.forEach(((e,r,s)=>{t.remove(Qc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Qc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Dc(Lw.identify(e))),f=t}return i.replaceWith(f,qw),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!cc(e.operationRef)&&!cc(e.operationId))return;if(cc(e.operationRef)&&cc(e.operationId))throw new Rs("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(cc(e.operationRef)){var a;const t=Wl(Qc(e.operationRef)),s=this.toBaseURI(Qc(e.operationRef)),n=Zi(this.reference.uri)===s,c=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Qc(e.operationRef));if(o=Zl(t,l.value.result),Ec(o)){const e=`operation-${Qc(Lw.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=Nv.refract(o),this.refractCache.set(e,o))}o=qc(o),o.setMetaProperty("ref-origin",l.uri);const u=qc(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(u,qw),r?void 0:u}if(cc(e.operationId)){var c;const t=Qc(e.operationId),s=await this.toReference(ro(this.reference.uri));if(o=bw((e=>Vb(e)&&ac(e.operationId)&&e.operationId.equals(t)),s.value.result),Oi(o))throw new Rs(`OperationElement(operationId=${t}) not found.`);const n=qc(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,qw),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!cc(e.externalValue))return;if(e.hasKey("value")&&cc(e.externalValue))throw new Rs("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Qc(e.externalValue)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Qc(e.externalValue)),u=qc(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=qc(e);return p.value=u,i.replaceWith(p,qw),r?void 0:p}async SchemaElement(e,t,r,s,n,i){if(!cc(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]);let c=await this.toReference(ro(this.reference.uri)),{uri:l}=c;const u=Tw(l,e),p=Zi(u),h=new BE({uri:p}),d=fw((e=>e.canRead(h)),this.options.resolve.resolvers),f=!d;let m,y=Zi(this.reference.uri)===u,g=!y;this.indirections.push(e);try{if(d||f){l=this.toBaseURI(u);const e=u,t=_w(c.value.result);if(m=Cw(e,t),m=_w(m),m.id=Lw.identify(m),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return}else{if(l=this.toBaseURI(u),y=Zi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(ro(u));const e=Wl(u),t=_w(c.value.result);m=Zl(e,t),m=_w(m),m.id=Lw.identify(m)}}catch(e){if(!(f&&e instanceof $w))throw e;if(jw(Ow(u))){if(y=Zi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(ro(u));const e=Ow(u),t=_w(c.value.result);m=Sw(e,t),m=_w(m),m.id=Lw.identify(m)}else{if(l=this.toBaseURI(u),y=Zi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(ro(u));const e=Wl(u),t=_w(c.value.result);m=Zl(e,t),m=_w(m),m.id=Lw.identify(m)}}if(e===m)throw new Rs("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Mw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(c.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){var v,b;const t=new Ua.sI(m.id,{type:"json-schema",uri:c.uri,$ref:Qc(e.$ref)}),s=(null!==(v=null===(b=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===b?void 0:b.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,qw),!r&&s}}const x=Zi(c.refSet.rootRef.uri)!==c.uri,E=["error","replace"].includes(this.options.dereference.circular);if((g||x||Qb(m)&&cc(m.$ref)||E)&&!o.includesCycle(m)){a.add(e);const t=new Bw({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await Nw(m,t,{keyMap:bE,nodeTypeGetter:vE}),a.delete(e)}if(this.indirections.pop(),ex(m)){const t=Dc(m);return t.setMetaProperty("id",Lw.generateId()),t.setMetaProperty("ref-fields",{$ref:Qc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Dc(Lw.identify(e))),i.replaceWith(t,qw),!r&&t}if(Qb(m)){const t=new Kv([...m.content],Dc(m.meta),Dc(m.attributes));t.setMetaProperty("id",Lw.generateId()),e.forEach(((e,r,s)=>{t.remove(Qc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Qc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Dc(Lw.identify(e))),m=t}return i.replaceWith(m,qw),r?void 0:m}}const Uw=Bw,Vw=Gc[Symbol.for("nodejs.util.promisify.custom")];const Hw=class extends dw{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?$E.includes(e.mediaType):Ub(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=yl(xE),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new kE,i=new kE;let o,a=n;n.has(e.uri)?o=n.find(hw(e.uri,"uri")):(o=new TE({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new TE({...e,value:Dc(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new Uw({reference:o,namespace:s,options:t}),l=await Vw(a.rootRef.value,c,{keyMap:bE,nodeTypeGetter:vE});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new TE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},zw=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(fc(r)){const t=String(Qc(r.key));e.push(t)}else if(dc(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e}),[])};const Gw=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&hc(e.properties)&&e.properties.forEach((t=>{if(hc(t))try{const e=this.modelPropertyMacro(Qc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...zw([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const Jw=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!dc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...zw([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(Qb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...zw([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=mp.all([...t.content,e]);if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}};const Kw=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#e?Qc(this.#e):null,o=Qc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=zw([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},Ww=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const Yw=class extends Ds{},{wrapError:Xw}=Yo,Zw=Gc[Symbol.for("nodejs.util.promisify.custom")],Qw=new gw,ej=(e,t,r,s)=>{fc(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class tj extends Uw{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Qc(e.$ref)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(Qc(e.$ref)),u=eo(o,Qc(e.$ref));this.indirections.push(e);const p=Wl(u);let h=Zl(p,l.value.result);if(h.id=Qw.identify(h),Ec(h)){const t=Qc(e.meta.get("referenced-element")),r=`${t}-${Qc(Qw.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(dd(h))h=Vv.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new Rs("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Mw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ua.sI(h.id,{type:"reference",uri:l.uri,$ref:Qc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,ej),!r&&s}}const d=Zi(l.refSet.rootRef.uri)!==l.uri,f=["error","replace"].includes(this.options.dereference.circular);if((c||d||Kb(h)||f)&&!t.includesCycle(h)){s.add(e);const i=new tj({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...zw([...n,r,e]),"$ref"]});h=await Zw(h,i,{keyMap:bE,nodeTypeGetter:vE}),s.delete(e)}this.indirections.pop();const m=qc(h);if(m.setMetaProperty("ref-fields",{$ref:Qc(e.$ref),description:Qc(e.description),summary:Qc(e.summary)}),m.setMetaProperty("ref-origin",l.uri),m.setMetaProperty("ref-referencing-element-id",Dc(Qw.identify(e))),hc(h)&&(e.hasKey("description")&&"description"in h&&(m.remove("description"),m.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(m.remove("summary"),m.set("summary",e.get("summary")))),this.allowMetaPatches&&hc(m)&&!m.hasKey("$$ref")){const e=eo(o,u);m.set("$$ref",e)}return i.replaceWith(m,ej),!r&&m}catch(t){const s=Ww(t),i=Xw(s,{baseDoc:this.reference.uri,$ref:Qc(e.$ref),pointer:Wl(Qc(e.$ref)),fullPath:this.basePath??[...zw([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{if(!cc(e.$ref))return;if(this.indirections.includes(e))return!1;if(Oc(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Qc(e.$ref)),a=Zi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Qc(e.$ref)),u=eo(o,Qc(e.$ref));this.indirections.push(e);const p=Wl(u);let h=Zl(p,l.value.result);if(h.id=Qw.identify(h),Ec(h)){const e=`path-item-${Qc(Qw.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=qv.refract(h),this.refractCache.set(e,h))}if(e===h)throw new Rs("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Mw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ua.sI(h.id,{type:"path-item",uri:l.uri,$ref:Qc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,ej),!r&&s}}const d=Zi(l.refSet.rootRef.uri)!==l.uri,f=["error","replace"].includes(this.options.dereference.circular);if((c||d||zb(h)&&cc(h.$ref)||f)&&!t.includesCycle(h)){s.add(e);const i=new tj({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...zw([...n,r,e]),"$ref"]});h=await Zw(h,i,{keyMap:bE,nodeTypeGetter:vE}),s.delete(e)}if(this.indirections.pop(),zb(h)){const t=new qv([...h.content],Dc(h.meta),Dc(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(Qc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Qc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Dc(Qw.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=eo(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,ej),r?void 0:h}catch(t){const s=Ww(t),i=Xw(s,{baseDoc:this.reference.uri,$ref:Qc(e.$ref),pointer:Wl(Qc(e.$ref)),fullPath:this.basePath??[...zw([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{if(!cc(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let o=await this.toReference(ro(this.reference.uri)),{uri:a}=o;const c=Tw(a,e),l=Zi(c),u=new BE({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,f=Zi(this.reference.uri)===c,m=!f;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=_w(o.value.result);if(d=Cw(e,t),d=_w(d),d.id=Qw.identify(d),!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return}else{if(a=this.toBaseURI(c),f=Zi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(ro(c));const e=Wl(c),t=_w(o.value.result);d=Zl(e,t),d=_w(d),d.id=Qw.identify(d)}}catch(e){if(!(h&&e instanceof $w))throw e;if(jw(Ow(c))){if(f=Zi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(ro(c));const e=Ow(c),t=_w(o.value.result);d=Sw(e,t),d=_w(d),d.id=Qw.identify(d)}else{if(a=this.toBaseURI(Qc(c)),f=Zi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(ro(c));const e=Wl(c),t=_w(o.value.result);d=Zl(e,t),d=_w(d),d.id=Qw.identify(d)}}if(e===d)throw new Rs("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Mw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(d)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ua.sI(d.id,{type:"json-schema",uri:o.uri,$ref:Qc(e.$ref),baseURI:eo(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,ej),!r&&s}}const y=Zi(o.refSet.rootRef.uri)!==o.uri,g=["error","replace"].includes(this.options.dereference.circular);if((m||y||Qb(d)&&cc(d.$ref)||g)&&!t.includesCycle(d)){s.add(e);const i=new tj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...zw([...n,r,e]),"$ref"]});d=await Zw(d,i,{keyMap:bE,nodeTypeGetter:vE}),s.delete(e)}if(this.indirections.pop(),ex(d)){const t=Dc(d);return t.setMetaProperty("ref-fields",{$ref:Qc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Dc(Qw.identify(e))),i.replaceWith(t,ej),!r&&t}if(Qb(d)){const t=new Kv([...d.content],Dc(d.meta),Dc(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(Qc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Qc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Dc(Qw.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=eo(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,ej),r?void 0:d}catch(t){const s=Ww(t),i=new Yw(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Qc(e.$ref),fullPath:this.basePath??[...zw([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=Ww(t),i=Xw(s,{baseDoc:this.reference.uri,externalValue:Qc(e.externalValue),fullPath:this.basePath??[...zw([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const rj=tj,sj=Cc[Symbol.for("nodejs.util.promisify.custom")];const nj=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new rj({...n,options:s})),"function"==typeof t&&i.push(new Gw({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new Jw({options:s})),"function"==typeof e&&i.push(new Kw({parameterMacro:e,options:s}));const o=sj(i,{nodeTypeGetter:vE});Object.assign(this,o)}},ij=Gc[Symbol.for("nodejs.util.promisify.custom")];const oj=class extends Hw{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=yl(xE),s=t.dereference.refSet??new kE,n=new kE;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new TE({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new TE({...e,value:Dc(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new nj({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await ij(o.rootRef.value,a,{keyMap:bE,nodeTypeGetter:vE});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new TE({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},aj=e=>{const t=Qc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Ua.Sh({$ref:t},Dc(r.meta),Dc(r.attributes))},cj=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:h=null,mode:d="non-strict",strategies:f}=e;try{const{cache:m}=cj,y=f.find((e=>e.match(t))),g=Wi(Qi())?Qi():p,v=Rr(e),b=eo(g,v);let x;m.has(t)?x=m.get(t):(x=Dv.refract(t),x.classes.push("result"),m.set(t,x));const E=new Za([x]),w=$l(o),j=""===w?"":`#${w}`,O=Zl(w,x),S=new TE({uri:b,value:E}),P=new kE({refs:[S]});""!==w&&(P.rootRef=void 0);const A=[new Set([O])],$=[],T=await(async(e,t={})=>{const r=qE(_E,t);return JE(e,r)})(O,{resolve:{baseURI:`${b}${j}`,resolvers:[new ow({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new QE]},parse:{mediaType:$E.latest(),parsers:[new uw({allowEmpty:!1,sourceMap:!1}),new pw({allowEmpty:!1,sourceMap:!1}),new cw({allowEmpty:!1,sourceMap:!1}),new lw({allowEmpty:!1,sourceMap:!1}),new XE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new oj({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:h,mode:d,ancestors:A})],refSet:P,dereferenceOpts:{errors:$},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?_E.dereference.circularReplacer:aj}}),k=((e,t,r)=>new Ol({element:r}).transclude(e,t))(O,T,x),_=l?k:y.normalize(k);return{spec:Qc(_),errors:$}}catch(e){if(e instanceof Kl||e instanceof Xl)return{spec:null,errors:[]};throw e}};cj.cache=new WeakMap;const lj=cj;function uj(e,t,r){if(r||(r=new pj),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var s=function(s){var n=r.get(e);if(n)return n;for(var i in r.set(e,s),e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=t?uj(e[i],!0,r):e[i]);return s};switch(ln(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return Ws(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var pj=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),s=this.map[r];s||(this.map[r]=s=[]),s.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],s=0;s<r.length;s+=1){if((i=r[s])[0]===e)return i[1]}else{var n=this.hash(e);if(r=this.map[n])for(s=0;s<r.length;s+=1){var i;if((i=r[s])[0]===e)return i[1]}}},e}(),hj=function(){function e(e,t,r,s){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=s,this.inputs={}}return e.prototype["@@transducer/init"]=jn,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Zs(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,uj(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function dj(e,t,r){return function(s){return new hj(e,t,r,s)}}const fj=Us(Gn("groupBy",ei(4,[],En([],dj,(function(e,t,r,s){var n=Hn((function(s,n){var i=r(n),o=e(Zs(i,s)?s[i]:uj(t,!1),n);return o&&o["@@transducer/reduced"]?Va(s):(s[i]=o,s)}));return Un(n,{},s)})))((function(e,t){return e.push(t),e}),[])));const mj=class{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);hc(e)||(e=new Ua.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);dc(t)||(t=new Ua.wE,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},yj=e=>e.replace(/\s/g,""),gj=e=>e.replace(/\W/gi,"_"),vj=(e,t,r)=>{const s=yj(e);return s.length>0?gj(s):((e,t)=>`${gj(yj(t.toLowerCase()))}${gj(yj(e))}`)(t,r)},bj=({storageField:e="x-normalized",operationIdNormalizer:t=vj}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new mj(t,e,"operation-ids")},leave(){const e=fj((e=>Qc(e.operationId)),a);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)})))})),c.forEach((e=>{if(void 0===e.operationId)return;const t=String(Qc(e.operationId)),r=a.find((e=>Qc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Dc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),a.length=0,c.length=0,l=void 0}},PathItemElement:{enter(e){const t=Yn("path",Qc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,c,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Qc(e.operationId)),d=Qn(o),f=Yn("method",Qc(e.meta.get("http-method"))),m=t(h,d,f);h!==m&&(e.operationId=new i.elements.String(m),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),a.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&c.push(e)}}}}};var xj=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=jn,e.prototype["@@transducer/result"]=On,e.prototype["@@transducer/step"]=function(e,t){return Xs(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Ej(e){return function(t){return new xj(e,t)}}const wj=Us(En([],Ej,(function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)Xs(e,r=t[s],i)||(i[i.length]=r),s+=1;return i}))),jj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(Qc(e.name)===Qc(t.name)&&Qc(e.in)===Qc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new mj(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?i.push([...a.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,a,c){const l=Qn(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=vw([],["parameters","content"],e),h=wj(n,[...p,...l]);e.parameters=new Pg(h),o.append(u)}}}}},Oj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new mj(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,a,c){if(c.some(r.isComponentsElement))return;const l=s([...c,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new Rg(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},Sj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new mj(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Dc.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Dc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Dc(e.example)),n.append(u)))}}}}}},Pj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new mj(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Dc.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Dc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Dc(e.example)),n.append(u)))}}}}}},Aj=e=>{if(!hc(e))return e;const t=[bj({operationIdNormalizer:(e,t,r)=>ba({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),jj(),Oj(),Sj(),Pj()];return xl(e,t,{toolboxCreator:wE,visitorOptions:{keyMap:bE,nodeTypeGetter:vE}})},$j={name:"openapi-3-1-apidom",match:e=>Oa(e),normalize(e){if(!ac(e)&&Ba(e)&&!e.$$normalized){const r=(t=Aj,e=>{const r=Dv.refract(e);r.classes.push("result");const s=t(r),n=Qc(s);return lj.cache.set(n,s),Qc(s)})(e);return r.$$normalized=!0,r}var t;return ac(e)?Aj(e):e},resolve:async e=>lj(e)};function Tj(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:s}=e;for(const n in s)for(const i in s[n]){if("PARAMETERS"===i.toUpperCase())continue;const o=s[n][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:n,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const kj=()=>null,_j={mapTagOperations:function({spec:e,cb:t=kj,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return Tj(e,(({pathName:o,method:a,operation:c})=>{var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=ba(c,o,a,{v2OperationIdCompatibilityMode:s}),p=t({spec:e,pathName:o,method:a,operation:c,operationId:u});if(n[u])n[u]+=1,l[`${u}${n[u]}`]=p;else if(void 0!==l[u]){const e=n[u]||1;n[u]=e+1,l[`${u}${n[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p}))})),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:s})=>(n,i={})=>{const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:t,method:r,parameters:n,operationId:s,...i})}}};var Cj=r(7427);const Mj=function(){const e=Rj,t=Fj,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,a,c,l,u,p=0,h=0,d=0,f=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(g,v,x,E)=>{const w=`${s}parse(): `;p=0,h=0,d=0,f=0,m=0,n=void 0,i=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(x),n=g.rules,i=g.udts;const j=v.toLowerCase();let O;for(const e in n)if(j===n[e].lower){O=n[e].index;break}if(void 0===O)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${s}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const s in r.callbacks){if(t=a.indexOf(s.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${s}' not a rule or udt name`);if(o=r.callbacks[s]?r.callbacks[s]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${s}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,a),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,a),u=E,o=[{type:e.RNM,index:O}],b(0,0),o=void 0;let S=!1;switch(y.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:S,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:d,nodeHits:f}};const g=(t,r,n,i)=>{if(r.phraseLength>n){let e=`${s}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${s}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,c)=>{let h,d,f;const m=o[t],g=i[m.index];y.UdtIndex=g.index,p||(f=r.ast&&r.ast.udtDefined(m.index),f&&(d=n.length+m.index,h=r.ast.getLength(),r.ast.down(d,g.name)));const v=a.length-c;l[m.index](y,a,c,u),((t,r,n)=>{if(r.phraseLength>n){let e=`${s}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${s}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(g,y,v),p||f&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,g.name,c,y.phraseLength))},b=(t,i)=>{const l=`${s}opExecute(): `,x=o[t];switch(f+=1,h>d&&(d=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const s=o[t];for(let t=0;t<s.children.length&&(b(s.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,s)=>{let n,i,a,c;const l=o[t];r.ast&&(i=r.ast.getLength()),n=!0,a=s,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){n=!1;break}a+=y.phraseLength,c+=y.phraseLength}n?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,c,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=s,c=0,l=0,r.ast&&(n=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,l,h;const d=o[t],f=n[d.index],m=c[f.index];if(p||(l=r.ast&&r.ast.ruleDefined(d.index),l&&(i=r.ast.getLength(),r.ast.down(d.index,n[d.index].name))),m){const t=a.length-s;m(y,a,s,u),g(f,y,t,!0),y.state===e.ACTIVE&&(h=o,o=f.opcodes,b(0,s),o=h,m(y,a,s,u),g(f,y,t,!1))}else h=o,o=f.opcodes,b(0,s,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(d.index,f.name,s,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const s=o[t];y.state=e.NOMATCH,r<a.length&&s.min<=a[r]&&a[r]<=s.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const s=o[t],n=s.string.length;if(y.state=e.NOMATCH,r+n<=a.length){for(let e=0;e<n;e+=1)if(a[r+e]!==s.string[e])return;y.state=e.MATCH,y.phraseLength=n}})(t,i);break;case e.TLS:((t,r)=>{let s;const n=o[t];y.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(s=a[r+e],s>=65&&s<=90&&(s+=32),s!==n.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:v(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>m&&(m=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},Ij=function(){const e=Rj,t=Fj,r=this;let s,n,i,o=0;const a=[],c=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;c.length=0,l.length=0,o=0,s=e,n=t,i=u;const h=[];for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(o=s.length+n.length,p=0;p<o;p+=1)a[p]=void 0;for(const e in r.callbacks){const t=e.toLowerCase();if(p=h.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[p]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[s.length+e],r.down=(t,r)=>{const s=l.length;return c.push(s),l.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),s},r.up=(t,r,s,n)=>{const i=l.length,o=c.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:c.length}),l[o].thatIndex=i,l[o].phraseIndex=s,l[o].phraseLength=n,i},r.translate=t=>{let r,s;for(let n=0;n<l.length;n+=1)s=l[n],r=a[s.callbackIndex],r&&(s.state===e.SEM_PRE?r(e.SEM_PRE,i,s.phraseIndex,s.phraseLength,t):r&&r(e.SEM_POST,i,s.phraseIndex,s.phraseLength,t))},r.setLength=e=>{l.length=e,c.length=e>0?l[e-1].stack:0},r.getLength=()=>l.length,r.toXml=()=>{let r="",s=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(s+2),r+=t.charsToString(i),r+="\n",l.forEach((n=>{n.state===e.SEM_PRE?(s+=1,r+=u(s),r+=`<node name="${n.name}" index="${n.phraseIndex}" length="${n.phraseLength}">\n`,r+=u(s+2),r+=t.charsToString(i,n.phraseIndex,n.phraseLength),r+="\n"):(r+=u(s),r+=`</node>\x3c!-- name="${n.name}" --\x3e\n`,s-=1)})),r+="</root>\n",r}},Fj={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let s=e;for(;!(void 0===t||t<0);){if(void 0===r){s=e.slice(t);break}if(r<=0)return"";s=e.slice(t,t+r);break}return String.fromCodePoint(...s)}},Rj={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Rj.ALT:return"ALT";case Rj.CAT:return"CAT";case Rj.REP:return"REP";case Rj.RNM:return"RNM";case Rj.TRG:return"TRG";case Rj.TBS:return"TBS";case Rj.TLS:return"TLS";case Rj.UDT:return"UDT";case Rj.AND:return"AND";case Rj.NOT:return"NOT";case Rj.ACTIVE:return"ACTIVE";case Rj.EMPTY:return"EMPTY";case Rj.MATCH:return"MATCH";case Rj.NOMATCH:return"NOMATCH";case Rj.SEM_PRE:return"SEM_PRE";case Rj.SEM_POST:return"SEM_POST";case Rj.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const Dj=(e,t,r,s,n)=>{if(e===Rj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",Fj.charsToString(t,r,s)])}return Rj.SEM_OK},Nj=(e,t,r,s,n)=>{if(e===Rj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",Fj.charsToString(t,r,s)])}return Rj.SEM_OK},Lj=(e,t,r,s,n)=>{if(e===Rj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",Fj.charsToString(t,r,s)])}return Rj.SEM_OK},qj=(e,t,r,s,n)=>{if(e===Rj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",Fj.charsToString(t,r,s)])}return Rj.SEM_OK},Bj=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"ALPHA",lower:"alpha",index:4,isBkr:!1},this.rules[5]={name:"DIGIT",lower:"digit",index:5,isBkr:!1},this.rules[6]={name:"HEXDIG",lower:"hexdig",index:6,isBkr:!1},this.rules[7]={name:"pct-encoded",lower:"pct-encoded",index:7,isBkr:!1},this.rules[8]={name:"unreserved",lower:"unreserved",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ucschar",lower:"ucschar",index:10,isBkr:!1},this.rules[11]={name:"iprivate",lower:"iprivate",index:11,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[2].opcodes[2]={type:4,index:8},this.rules[2].opcodes[3]={type:4,index:7},this.rules[2].opcodes[4]={type:4,index:9},this.rules[2].opcodes[5]={type:7,string:[58]},this.rules[2].opcodes[6]={type:7,string:[64]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13,14]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:6,string:[38]},this.rules[3].opcodes[5]={type:5,min:40,max:59},this.rules[3].opcodes[6]={type:6,string:[61]},this.rules[3].opcodes[7]={type:5,min:63,max:91},this.rules[3].opcodes[8]={type:6,string:[93]},this.rules[3].opcodes[9]={type:6,string:[95]},this.rules[3].opcodes[10]={type:5,min:97,max:122},this.rules[3].opcodes[11]={type:6,string:[126]},this.rules[3].opcodes[12]={type:4,index:10},this.rules[3].opcodes[13]={type:4,index:11},this.rules[3].opcodes[14]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:65,max:90},this.rules[4].opcodes[2]={type:5,min:97,max:122},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[6].opcodes[1]={type:4,index:5},this.rules[6].opcodes[2]={type:7,string:[97]},this.rules[6].opcodes[3]={type:7,string:[98]},this.rules[6].opcodes[4]={type:7,string:[99]},this.rules[6].opcodes[5]={type:7,string:[100]},this.rules[6].opcodes[6]={type:7,string:[101]},this.rules[6].opcodes[7]={type:7,string:[102]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2,3]},this.rules[7].opcodes[1]={type:7,string:[37]},this.rules[7].opcodes[2]={type:4,index:6},this.rules[7].opcodes[3]={type:4,index:6},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[8].opcodes[1]={type:4,index:4},this.rules[8].opcodes[2]={type:4,index:5},this.rules[8].opcodes[3]={type:7,string:[45]},this.rules[8].opcodes[4]={type:7,string:[46]},this.rules[8].opcodes[5]={type:7,string:[95]},this.rules[8].opcodes[6]={type:7,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[10].opcodes[1]={type:5,min:160,max:55295},this.rules[10].opcodes[2]={type:5,min:63744,max:64975},this.rules[10].opcodes[3]={type:5,min:65008,max:65519},this.rules[10].opcodes[4]={type:5,min:65536,max:131069},this.rules[10].opcodes[5]={type:5,min:131072,max:196605},this.rules[10].opcodes[6]={type:5,min:196608,max:262141},this.rules[10].opcodes[7]={type:5,min:262144,max:327677},this.rules[10].opcodes[8]={type:5,min:327680,max:393213},this.rules[10].opcodes[9]={type:5,min:393216,max:458749},this.rules[10].opcodes[10]={type:5,min:458752,max:524285},this.rules[10].opcodes[11]={type:5,min:524288,max:589821},this.rules[10].opcodes[12]={type:5,min:589824,max:655357},this.rules[10].opcodes[13]={type:5,min:655360,max:720893},this.rules[10].opcodes[14]={type:5,min:720896,max:786429},this.rules[10].opcodes[15]={type:5,min:786432,max:851965},this.rules[10].opcodes[16]={type:5,min:851968,max:917501},this.rules[10].opcodes[17]={type:5,min:921600,max:983037},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3]},this.rules[11].opcodes[1]={type:5,min:57344,max:63743},this.rules[11].opcodes[2]={type:5,min:983040,max:1048573},this.rules[11].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable )\n",e+='server-variable = "{" server-variable-name "}"\n',e+='server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="literals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "\'", "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; Characters definitions (from RFC 6570)\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+=" ; case-insensitive\n",e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable )\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\nliterals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "\'", "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; Characters definitions (from RFC 6570)\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},Uj=e=>{const t=new Mj;t.ast=new Ij,t.ast.callbacks["server-url-template"]=Dj,t.ast.callbacks["server-variable"]=Nj,t.ast.callbacks["server-variable-name"]=Lj,t.ast.callbacks.literals=qj;return{result:t.parse(Bj,"server-url-template",e),ast:t.ast}},Vj=(e,{strict:t=!1}={})=>{try{const r=Uj(e);if(!r.result.success)return!1;const s=[];r.ast.translate(s);const n=s.some((([e])=>"server-variable"===e));if(!t&&!n)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||n}catch{return!1}},Hj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),zj=["literals","server-variable-name"],Gj=(e,t,r={})=>{const s={...{encoder:Hj},...r},n=Uj(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>zj.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};const Jj=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["slash",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),Kj=(e,t,r,s,n)=>{if(e===Rj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",Fj.charsToString(t,r,s)])}return Rj.SEM_OK},Wj=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["path",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),Yj=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["path-literal",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),Xj=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["query",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),Zj=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["query-marker",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),Qj=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["fragment",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),eO=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["fragment-marker",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),tO=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["template-expression",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),rO=(e,t,r,s,n)=>(e===Rj.SEM_PRE?n.push(["template-expression-param-name",Fj.charsToString(t,r,s)]):Rj.SEM_POST,Rj.SEM_OK),sO=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path",lower:"path",index:1,isBkr:!1},this.rules[2]={name:"path-segment",lower:"path-segment",index:2,isBkr:!1},this.rules[3]={name:"query",lower:"query",index:3,isBkr:!1},this.rules[4]={name:"query-literal",lower:"query-literal",index:4,isBkr:!1},this.rules[5]={name:"query-marker",lower:"query-marker",index:5,isBkr:!1},this.rules[6]={name:"fragment",lower:"fragment",index:6,isBkr:!1},this.rules[7]={name:"fragment-literal",lower:"fragment-literal",index:7,isBkr:!1},this.rules[8]={name:"fragment-marker",lower:"fragment-marker",index:8,isBkr:!1},this.rules[9]={name:"slash",lower:"slash",index:9,isBkr:!1},this.rules[10]={name:"path-literal",lower:"path-literal",index:10,isBkr:!1},this.rules[11]={name:"template-expression",lower:"template-expression",index:11,isBkr:!1},this.rules[12]={name:"template-expression-param-name",lower:"template-expression-param-name",index:12,isBkr:!1},this.rules[13]={name:"unreserved",lower:"unreserved",index:13,isBkr:!1},this.rules[14]={name:"pct-encoded",lower:"pct-encoded",index:14,isBkr:!1},this.rules[15]={name:"sub-delims",lower:"sub-delims",index:15,isBkr:!1},this.rules[16]={name:"ALPHA",lower:"alpha",index:16,isBkr:!1},this.rules[17]={name:"DIGIT",lower:"digit",index:17,isBkr:!1},this.rules[18]={name:"HEXDIG",lower:"hexdig",index:18,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:5},this.rules[0].opcodes[5]={type:4,index:3},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:2,children:[8,9]},this.rules[0].opcodes[8]={type:4,index:8},this.rules[0].opcodes[9]={type:4,index:6},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,6]},this.rules[1].opcodes[1]={type:4,index:9},this.rules[1].opcodes[2]={type:3,min:0,max:1/0},this.rules[1].opcodes[3]={type:2,children:[4,5]},this.rules[1].opcodes[4]={type:4,index:2},this.rules[1].opcodes[5]={type:4,index:9},this.rules[1].opcodes[6]={type:3,min:0,max:1},this.rules[1].opcodes[7]={type:4,index:2},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:10},this.rules[2].opcodes[3]={type:4,index:11},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:4},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10]},this.rules[4].opcodes[2]={type:4,index:13},this.rules[4].opcodes[3]={type:4,index:14},this.rules[4].opcodes[4]={type:4,index:15},this.rules[4].opcodes[5]={type:7,string:[58]},this.rules[4].opcodes[6]={type:7,string:[64]},this.rules[4].opcodes[7]={type:7,string:[47]},this.rules[4].opcodes[8]={type:7,string:[63]},this.rules[4].opcodes[9]={type:7,string:[38]},this.rules[4].opcodes[10]={type:7,string:[61]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:7,string:[63]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:0,max:1/0},this.rules[6].opcodes[1]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:3,min:1,max:1/0},this.rules[7].opcodes[1]={type:1,children:[2,3,4,5,6,7,8]},this.rules[7].opcodes[2]={type:4,index:13},this.rules[7].opcodes[3]={type:4,index:14},this.rules[7].opcodes[4]={type:4,index:15},this.rules[7].opcodes[5]={type:7,string:[58]},this.rules[7].opcodes[6]={type:7,string:[64]},this.rules[7].opcodes[7]={type:7,string:[47]},this.rules[7].opcodes[8]={type:7,string:[63]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:7,string:[35]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:7,string:[47]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:3,min:1,max:1/0},this.rules[10].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[10].opcodes[2]={type:4,index:13},this.rules[10].opcodes[3]={type:4,index:14},this.rules[10].opcodes[4]={type:4,index:15},this.rules[10].opcodes[5]={type:7,string:[58]},this.rules[10].opcodes[6]={type:7,string:[64]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2,3]},this.rules[11].opcodes[1]={type:7,string:[123]},this.rules[11].opcodes[2]={type:4,index:12},this.rules[11].opcodes[3]={type:7,string:[125]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:1,max:1/0},this.rules[12].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[12].opcodes[3]={type:4,index:14},this.rules[12].opcodes[4]={type:4,index:15},this.rules[12].opcodes[5]={type:7,string:[58]},this.rules[12].opcodes[6]={type:7,string:[64]},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[13].opcodes[1]={type:4,index:16},this.rules[13].opcodes[2]={type:4,index:17},this.rules[13].opcodes[3]={type:7,string:[45]},this.rules[13].opcodes[4]={type:7,string:[46]},this.rules[13].opcodes[5]={type:7,string:[95]},this.rules[13].opcodes[6]={type:7,string:[126]},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3]},this.rules[14].opcodes[1]={type:7,string:[37]},this.rules[14].opcodes[2]={type:4,index:18},this.rules[14].opcodes[3]={type:4,index:18},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[15].opcodes[1]={type:7,string:[33]},this.rules[15].opcodes[2]={type:7,string:[36]},this.rules[15].opcodes[3]={type:7,string:[38]},this.rules[15].opcodes[4]={type:7,string:[39]},this.rules[15].opcodes[5]={type:7,string:[40]},this.rules[15].opcodes[6]={type:7,string:[41]},this.rules[15].opcodes[7]={type:7,string:[42]},this.rules[15].opcodes[8]={type:7,string:[43]},this.rules[15].opcodes[9]={type:7,string:[44]},this.rules[15].opcodes[10]={type:7,string:[59]},this.rules[15].opcodes[11]={type:7,string:[61]},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2]},this.rules[16].opcodes[1]={type:5,min:65,max:90},this.rules[16].opcodes[2]={type:5,min:97,max:122},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:48,max:57},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[18].opcodes[1]={type:4,index:17},this.rules[18].opcodes[2]={type:7,string:[97]},this.rules[18].opcodes[3]={type:7,string:[98]},this.rules[18].opcodes[4]={type:7,string:[99]},this.rules[18].opcodes[5]={type:7,string:[100]},this.rules[18].opcodes[6]={type:7,string:[101]},this.rules[18].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="path-template = path [ query-marker query ] [ fragment-marker fragment ]\n",e+="path = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+="query = *( query-literal )\n",e+='query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n',e+='query-marker = "?"\n',e+="fragment = *( fragment-literal )\n",e+='fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n',e+='fragment-marker = "#"\n',e+='slash = "/"\n',e+='path-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+='template-expression = "{" template-expression-param-name "}"\n',e+='template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="\n",e+="; Characters definitions (from RFC 3986)\n",e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}},nO=e=>{const t=new Mj;t.ast=new Ij,t.ast.callbacks["path-template"]=Kj,t.ast.callbacks.path=Wj,t.ast.callbacks.query=Xj,t.ast.callbacks["query-marker"]=Zj,t.ast.callbacks.fragment=Qj,t.ast.callbacks["fragment-marker"]=eO,t.ast.callbacks.slash=Jj,t.ast.callbacks["path-literal"]=Yj,t.ast.callbacks["template-expression"]=tO,t.ast.callbacks["template-expression-param-name"]=rO;return{result:t.parse(sO,"path-template",e),ast:t.ast}},iO=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),oO=["slash","path-literal","query-marker","query-literal","template-expression-param-name"],aO=(e,t,r={})=>{const s={...{encoder:iO},...r},n=nO(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>oO.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")},cO={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:s}){if(void 0!==t){const n=e.url.replace(s,""),i=aO(n,{[r.name]:t});e.url=s+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function lO(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}function uO({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:a}=r;if(void 0===t)return;const c=e.url.replace(s,"");let l;if(a){const e=Object.keys(a)[0];l=aO(c,{[n]:t},{encoder:t=>S(lO(t,e))})}else l=aO(c,{[n]:t},{encoder:e=>P({key:r.name,value:e,style:i||"simple",explode:o||!1,escape:"reserved"})});e.url=s+l}function pO({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=lO(t,Object.keys(r.content)[0]);if(s)e.query[r.name]=s;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:s,explode:n,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:s,explode:n,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const hO=["accept","authorization","content-type"];function dO({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(hO.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=lO(r,s)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=P({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function fO({req:e,parameter:t,value:r}){e.headers=e.headers||{};const s=typeof r;if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${lO(r,s)}`}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n="object"===s&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=n+P({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}}const mO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:yO}=mO,gO=yO;function vO(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={}}=t,o=r.security||s.security||[],a=i&&!!Object.keys(i).length,c=s?.components?.securitySchemes||{};if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!a||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e],r=c[e];if(!t)return;const s=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(n.query[r.name]=s),"header"===r.in&&(n.headers[r.name]=s),"cookie"===r.in&&(n.cookies[r.name]=s);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=s.username||"",t=s.password||"",r=gO(`${e}:${t}`);n.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(n.headers.Authorization=`Bearer ${s}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},s=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),n.headers.Authorization=`${i} ${s}`}}))})),n}({request:t,securities:n,operation:r,spec:i});const c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(s||o){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&Ba(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof s){const e=c.content[a]?.encoding??{};t.form={},Object.keys(s).forEach((r=>{let n;try{n=JSON.parse(s[r])}catch{n=s[r]}t.form[r]={value:n,encoding:e[r]||{}}}))}else if("string"==typeof s){const e=c.content[a]?.encoding??{};try{t.form={};const r=JSON.parse(s);Object.entries(r).forEach((([r,s])=>{t.form[r]={value:s,encoding:e[r]||{}}}))}catch{t.form=s}}else t.form=s;else t.body=s}else t.body=s;return t}function bO(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,c=i&&!!Object.keys(i).length,l=s.securityDefinitions;if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!c||!a||Array.isArray(r.security)&&!r.security.length)return e;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=l[e],{type:a}=o,c=o["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===a)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=gO(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",n.headers.authorization=`${p} ${u}`)}))})),n}({request:t,securities:n,operation:s,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(s.consumes)?[t.headers["Content-Type"]]=s.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:s.parameters&&s.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=s.parameters&&s.parameters.filter((e=>"body"===e.in)).length>0,r=s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(s.produces)&&s.produces.length>0&&(t.headers.accept=s.produces.join(", ")),t}function xO(e,t){return`${t.toLowerCase()}-${e}`}function EO(e,t){return e&&e.paths?function(e,t){return Tj(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[ba(s,e,r),xO(e,r),n].some((e=>e&&e===t))})):null}const wO=e=>Array.isArray(e)?e:[],jO=e=>{try{return new URL(e)}catch{const t=new URL(e,p),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class OO extends Ds{}const SO={buildRequest:PO};function PO(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:u,serverVariables:p,http:h,signal:d}=e;let{parameters:f,parameterBuilders:m}=e;const y=Sa(t);m||(m=y?l:cO);let g={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};d&&(g.signal=d),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),c&&(g.userFetch=c);const v=EO(t,r);if(!v)throw new OO(`Operation ${r} not found`);const{operation:b={},method:x,pathName:E}=v,w=$O({spec:t,scheme:n,contextUrl:a,server:u,serverVariables:p,pathName:E,method:x});if(g.url+=w,!r)return delete g.cookies,g;g.url+=E,g.method=`${x}`.toUpperCase(),f=f||{};const j=t.paths[E]||{};s&&(g.headers.accept=s);const O=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((s=>{r.push(t[e][s])}))})),r})([].concat(wO(b.parameters)).concat(wO(j.parameters)));O.forEach((e=>{const r=m[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=f),s=e&&e.name&&f[e.name],void 0===s?s=e&&e.name&&f[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==s){if(void 0!==e.default&&void 0===s&&(s=e.default),void 0===s&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(y&&e.schema&&"object"===e.schema.type&&"string"==typeof s)try{s=JSON.parse(s)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:g,parameter:e,value:s,operation:b,spec:t,baseURL:w})}}));const S={...e,operation:b};if(g=y?vO(S,g):bO(S,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+Cj.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,I(g)}const AO=e=>e?e.replace(/\W/g,""):null;function $O(e){return Sa(e.spec)?function({spec:e,pathName:t,method:r,server:s,contextUrl:n,serverVariables:i={}}){let o,a=[],c="";const l=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,u=e?.paths?.[t]?.servers,p=e?.servers;a=TO(l)?l:TO(u)?u:TO(p)?p:[h],s&&(o=a.find((e=>e.url===s)),o&&(c=s));c||([o]=a,c=o.url);if(Vj(c,{strict:!0})){const e=Object.entries({...o.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});c=Gj(c,{...e,...i})}return function(e="",t=""){const r=jO(e&&t?eo(t,e):e),s=jO(t),n=AO(r.protocol)||AO(s.protocol),i=r.host||s.host,o=r.pathname;let a;a=n&&i?`${n}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(c,n)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=jO(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||AO(s.protocol)||"http",o=e.host||s.host||"",a=e.basePath||"";let c;c=i&&o?`${i}://${o+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}const TO=e=>Array.isArray(e)&&e.length>0;const{q$:kO}=n,_O=kO;function CO(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof CO))return new CO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,CO.makeApisTagOperation(this)),this)));return r.client=this,r}CO.http=Ir,CO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=I(s),s=t(s),r(e(s)))}.bind(null,CO.http),CO.resolveStrategies={"openapi-3-1-apidom":$j,"openapi-3-0":Aa,"openapi-2-0":Pa,generic:Ea},CO.resolve=$a({strategies:[CO.resolveStrategies["openapi-3-1-apidom"],CO.resolveStrategies["openapi-3-0"],CO.resolveStrategies["openapi-2-0"],CO.resolveStrategies.generic]}),CO.resolveSubtree=ka({strategies:[CO.resolveStrategies["openapi-3-1-apidom"],CO.resolveStrategies["openapi-3-0"],CO.resolveStrategies["openapi-2-0"],CO.resolveStrategies.generic]}),CO.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...c}){const l=e||t||Ir;n&&i&&!s&&(s=xO(n,i));const u=SO.buildRequest({spec:r,operationId:s,parameters:o,securities:a,http:l,...c});return u.body&&(Ba(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},CO.serializeRes=Mr,CO.serializeHeaders=Cr,CO.clearCache=function(){ya.refs.clearCache()},CO.makeApisTagOperation=function(e={}){const t=_j.makeExecute(e);return{apis:_j.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},CO.buildRequest=PO,CO.helpers={opId:ba},CO.getBaseUrl=$O,CO.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:ow}},parse:{parsers:{JsonParser:cw,YamlParser:lw,OpenApiJson3_1Parser:uw,OpenApiYaml3_1Parser:pw}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:oj}}},CO.prototype={http:Ir,execute(e){return this.applyDefaults(),CO.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return CO.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},CO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(wa(e)&&_O(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(Sa(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[h])}};const{helpers:MO}=CO,IO=CO})(),s=s.default})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={7427:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},s=(t||{}).decode||n,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var c=e.indexOf(";",i);if(-1===c)c=e.length;else if(c<a){i=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(i,a).trim();if(void 0===r[l]){var u=e.slice(a+1,c).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=o(u,s)}i=c+1}return r},t.serialize=function(e,t,n){var o=n||{},a=o.encode||i;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!s.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!s.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!s.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+p.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");o.partitioned&&(l+="; Partitioned");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=Object.prototype.toString,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}function o(e,t){try{return t(e)}catch(t){return e}}},4744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return s(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=s(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))})),n}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=s;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):s(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},5580:(e,t,r)=>{var s=r(6110)(r(9325),"DataView");e.exports=s},1549:(e,t,r)=>{var s=r(2032),n=r(3862),i=r(6721),o=r(2749),a=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},79:(e,t,r)=>{var s=r(3702),n=r(80),i=r(4739),o=r(8655),a=r(3556);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8223:(e,t,r)=>{var s=r(6110)(r(9325),"Map");e.exports=s},3661:(e,t,r)=>{var s=r(3040),n=r(7670),i=r(289),o=r(4509),a=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2804:(e,t,r)=>{var s=r(6110)(r(9325),"Promise");e.exports=s},6545:(e,t,r)=>{var s=r(6110)(r(9325),"Set");e.exports=s},8859:(e,t,r)=>{var s=r(3661),n=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},7217:(e,t,r)=>{var s=r(79),n=r(1420),i=r(938),o=r(3605),a=r(9817),c=r(945);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1873:(e,t,r)=>{var s=r(9325).Symbol;e.exports=s},7828:(e,t,r)=>{var s=r(9325).Uint8Array;e.exports=s},8303:(e,t,r)=>{var s=r(6110)(r(9325),"WeakMap");e.exports=s},9770:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},695:(e,t,r)=>{var s=r(8096),n=r(2428),i=r(6449),o=r(3656),a=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),d=r||u||p||h,f=d?s(e.length,String):[],m=f.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m))||f.push(y);return f}},4528:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},4248:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6025:(e,t,r)=>{var s=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},2199:(e,t,r)=>{var s=r(4528),n=r(6449);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},2552:(e,t,r)=>{var s=r(1873),n=r(659),i=r(9350),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7534:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},270:(e,t,r)=>{var s=r(7068),n=r(346);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},7068:(e,t,r)=>{var s=r(7217),n=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,y,g){var v=c(e),b=c(t),x=v?h:a(e),w=b?h:a(t),E=(x=x==p?d:x)==d,j=(w=w==p?d:w)==d,O=x==w;if(O&&l(e)){if(!l(t))return!1;v=!0,E=!1}if(O&&!E)return g||(g=new s),v||u(e)?n(e,t,r,m,y,g):i(e,t,x,r,m,y,g);if(!(1&r)){var S=E&&f.call(e,"__wrapped__"),P=j&&f.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new s),y(A,$,r,m,g)}}return!!O&&(g||(g=new s),o(e,t,r,m,y,g))}},5083:(e,t,r)=>{var s=r(1882),n=r(7296),i=r(3805),o=r(7473),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},4901:(e,t,r)=>{var s=r(2552),n=r(294),i=r(346),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)&&n(e.length)&&!!o[s(e)]}},8984:(e,t,r)=>{var s=r(5527),n=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},9219:e=>{e.exports=function(e,t){return e.has(t)}},5481:(e,t,r)=>{var s=r(9325)["__core-js_shared__"];e.exports=s},5911:(e,t,r)=>{var s=r(8859),n=r(4248),i=r(9219);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var f=-1,m=!0,y=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++f<u;){var g=e[f],v=t[f];if(o)var b=l?o(v,g,f,t,e,c):o(g,v,f,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){m=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},1986:(e,t,r)=>{var s=r(1873),n=r(7828),i=r(5288),o=r(5911),a=r(317),c=r(4247),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,l,p,h){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 n(e),new n(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 d=a;case"[object Set]":var f=1&s;if(d||(d=c),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;s|=2,h.set(e,t);var y=o(d(e),d(t),s,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:(e,t,r)=>{var s=r(2),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:n.call(t,h)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){m=!1;break}y||(y="constructor"==h)}if(m&&!y){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}},2459:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2:(e,t,r)=>{var s=r(2199),n=r(4664),i=r(5950);e.exports=function(e){return s(e,i,n)}},2651:(e,t,r)=>{var s=r(4218);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110:(e,t,r)=>{var s=r(5083),n=r(392);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},659:(e,t,r)=>{var s=r(1873),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},4664:(e,t,r)=>{var s=r(9770),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},5861:(e,t,r)=>{var s=r(5580),n=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",f="[object DataView]",m=l(s),y=l(n),g=l(i),v=l(o),b=l(a),x=c;(s&&x(new s(new ArrayBuffer(1)))!=f||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=d)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case m:return f;case y:return u;case g:return p;case v:return h;case b:return d}return t}),e.exports=x},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2032:(e,t,r)=>{var s=r(5804);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,r)=>{var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},2749:(e,t,r)=>{var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5749:(e,t,r)=>{var s=r(5804);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,r)=>{var s,n=r(5481),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,r)=>{var s=r(6025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4739:(e,t,r)=>{var s=r(6025);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},8655:(e,t,r)=>{var s=r(6025);e.exports=function(e){return s(this.__data__,e)>-1}},3556:(e,t,r)=>{var s=r(6025);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3040:(e,t,r)=>{var s=r(1549),n=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},7670:(e,t,r)=>{var s=r(2651);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,r)=>{var s=r(2651);e.exports=function(e){return s(this,e).get(e)}},4509:(e,t,r)=>{var s=r(2651);e.exports=function(e){return s(this,e).has(e)}},2949:(e,t,r)=>{var s=r(2651);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},5804:(e,t,r)=>{var s=r(6110)(Object,"create");e.exports=s},3650:(e,t,r)=>{var s=r(4335)(Object.keys,Object);e.exports=s},6009:(e,t,r)=>{e=r.nmd(e);var s=r(2459),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.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},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},9325:(e,t,r)=>{var s=r(2459),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},1420:(e,t,r)=>{var s=r(79);e.exports=function(){this.__data__=new s,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,r)=>{var s=r(79),n=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||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}},7473: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""}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428:(e,t,r)=>{var s=r(7534),n=r(346),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,r)=>{var s=r(1882),n=r(294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},3812:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3656:(e,t,r)=>{e=r.nmd(e);var s=r(9325),n=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},2404:(e,t,r)=>{var s=r(270);e.exports=function(e,t){return s(e,t)}},1882:(e,t,r)=>{var s=r(2552),n=r(3805);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187:e=>{e.exports=function(e){return null===e}},8023:(e,t,r)=>{var s=r(2552),n=r(346);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5015:(e,t,r)=>{var s=r(2552),n=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},7167:(e,t,r)=>{var s=r(4901),n=r(7301),i=r(6009),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},5950:(e,t,r)=>{var s=r(695),n=r(8984),i=r(4894);e.exports=function(e){return i(e)?s(e):n(e)}},6048: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)}}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},2340:(e,t,r)=>{const s=r(6048);function n(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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(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},5973: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},3110:(e,t,r)=>{const s=r(5187),n=r(5015),i=r(8023),o=r(3812),a=r(3805),c=r(5105),l=r(6804);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(s,l.NullElement,!1).detect(n,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,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 s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(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},866:(e,t,r)=>{const s=r(6048),n=r(2340);class i extends n{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(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},6804:(e,t,r)=>{const s=r(316),n=r(1067),i=r(1167),o=r(239),a=r(2242),c=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),d=r(2340),f=r(866),m=r(5973);function y(e){if(e instanceof s)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 n;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,d.prototype.refract=y,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:d,ObjectSlice:f,KeyValuePair:m}},6303:(e,t,r)=>{const s=r(316);e.exports=class extends s{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)}}},4540:(e,t,r)=>{const s=r(316);e.exports=class extends s{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)}}},4035:(e,t,r)=>{const s=r(3110),n=r(6804);t.g$=s,t.KeyValuePair=r(5973),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(5105),r(5147)},6233:(e,t,r)=>{const s=r(6048),n=r(316),i=r(2340);class o extends n{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((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}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||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}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},2242:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316:(e,t,r)=>{const s=r(2404),n=r(5973),i=r(2340);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 n?{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 s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(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 s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(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 n)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 n){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},7726:(e,t,r)=>{const s=r(5973),n=r(316);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),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)}}},1067:(e,t,r)=>{const s=r(316);e.exports=class extends s{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")}}},239:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045:(e,t,r)=>{const s=r(6048),n=r(3805),i=r(6233),o=r(7726),a=r(866);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(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.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(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},1167:(e,t,r)=>{const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},5147:(e,t,r)=>{const s=r(5105);e.exports=class extends s{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 s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)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 s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}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([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),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 s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);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 s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},5105: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]))}))}}},5606:e=>{var t,r,s=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=o(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new d(e,t)),1!==c.length||l||o(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},8068:e=>{"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,a=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),l={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>f});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),c(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const s=`_${e}_dict_ranges`,n=this._dict_ranges[s];Object.keys(n).forEach((e=>{const s=e;for(this.dictRange=n[s],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-e))}return r})),c(this,"setDictionary",((e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{let t,r,s;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",s=0;s<e;s+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const s=e.slice(0,2),n=parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return`${i.substring(0,n)}${r}${i.substring(n)}${n.toString(16)}`})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),s=parseInt(e.slice(2),10);return t[r](s)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,s)=>e.substring(r.length,r.length+s.length))):e;if(8===r.length)return new Date(1e3*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=parseInt(r.substring(r.length-1),16);return new Date(1e3*parseInt(r.substring(s,s+8),16))})),c(this,"setCounter",(e=>{this.counter=e})),c(this,"validate",((e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every((e=>r.includes(e)))}));const t=a(a({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.2.0";const{dictionary:r,shuffle:s,length:n,counter:i}=t;return this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};c(h,"default",h);var d,f=h;return d=l,((s,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))n.call(s,c)||c===o||e(s,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},8675:(e,t,r)=>{e.exports=r(850)},8623:(e,t,r)=>{"use strict";var s=r(694);e.exports=s},7257:(e,t,r)=>{"use strict";r(6605),r(4502),r(6371),r(9363),r(7057);var s=r(2046);e.exports=s.AggregateError},850:(e,t,r)=>{"use strict";e.exports=r(6076)},6076:(e,t,r)=>{"use strict";r(1599);var s=r(8623);e.exports=s},2159:(e,t,r)=>{"use strict";var s=r(2250),n=r(4640),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},43:(e,t,r)=>{"use strict";var s=r(4018),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2156:e=>{"use strict";e.exports=function(){}},6624:(e,t,r)=>{"use strict";var s=r(6285),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},4436:(e,t,r)=>{"use strict";var s=r(7374),n=r(4849),i=r(575),o=function(e){return function(t,r,o){var a=s(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5807:(e,t,r)=>{"use strict";var s=r(1907),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},3948:(e,t,r)=>{"use strict";var s=r(2623),n=r(2250),i=r(5807),o=r(6264)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},9595:(e,t,r)=>{"use strict";var s=r(9724),n=r(1042),i=r(3846),o=r(4284);e.exports=function(e,t,r){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];s(e,p)||r&&s(r,p)||c(e,p,l(t,p))}}},7382:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9550:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},1626:(e,t,r)=>{"use strict";var s=r(9447),n=r(4284),i=r(5817);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5817:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8055:(e,t,r)=>{"use strict";var s=r(1626);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},2532:(e,t,r)=>{"use strict";var s=r(5951),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},9447:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(e,t,r)=>{"use strict";var s=r(5951),n=r(6285),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9287:e=>{"use strict";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}},376:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6794:(e,t,r)=>{"use strict";var s=r(5951).navigator,n=s&&s.userAgent;e.exports=n?String(n):""},798:(e,t,r)=>{"use strict";var s,n,i=r(5951),o=r(6794),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5762:(e,t,r)=>{"use strict";var s=r(1907),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},5884:(e,t,r)=>{"use strict";var s=r(1626),n=r(5762),i=r(3888),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},3888:(e,t,r)=>{"use strict";var s=r(8828),n=r(5817);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},1091:(e,t,r)=>{"use strict";var s=r(5951),n=r(6024),i=r(2361),o=r(2250),a=r(3846).f,c=r(7463),l=r(2046),u=r(8311),p=r(1626),h=r(9724);r(6128);var d=function(e){var t=function(r,s,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,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,f,m,y,g,v,b,x,w=e.target,E=e.global,j=e.stat,O=e.proto,S=E?s:j?s[w]:s[w]&&s[w].prototype,P=E?l:l[w]||p(l,w,{})[w],A=P.prototype;for(m in t)n=!(r=c(E?m:w+(j?".":"#")+m,e.forced))&&S&&h(S,m),g=P[m],n&&(v=e.dontCallGetSet?(x=a(S,m))&&x.value:S[m]),y=n&&v?v:t[m],(r||O||typeof g!=typeof y)&&(b=e.bind&&n?u(y,s):e.wrap&&n?d(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,m,b),O&&(h(l,f=w+"Prototype")||p(l,f,{}),p(l[f],m,y),e.real&&A&&(r||!A[m])&&p(A,m,y)))}},8828:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6024:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},8311:(e,t,r)=>{"use strict";var s=r(2361),n=r(2159),i=r(1505),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1505:(e,t,r)=>{"use strict";var s=r(8828);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3930:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},6833:(e,t,r)=>{"use strict";var s=r(9447),n=r(9724),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},1871:(e,t,r)=>{"use strict";var s=r(1907),n=r(2159);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},2361:(e,t,r)=>{"use strict";var s=r(5807),n=r(1907);e.exports=function(e){if("Function"===s(e))return n(e)}},1907:(e,t,r)=>{"use strict";var s=r(1505),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},5582:(e,t,r)=>{"use strict";var s=r(2046),n=r(5951),i=r(2250),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},3448:(e,t,r)=>{"use strict";var s=r(3948),n=r(9367),i=r(7136),o=r(3742),a=r(6264)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},300:(e,t,r)=>{"use strict";var s=r(3930),n=r(2159),i=r(6624),o=r(4640),a=r(3448),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},9367:(e,t,r)=>{"use strict";var s=r(2159),n=r(7136);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},5951:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724:(e,t,r)=>{"use strict";var s=r(1907),n=r(9298),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},8530:e=>{"use strict";e.exports={}},2416:(e,t,r)=>{"use strict";var s=r(5582);e.exports=s("document","documentElement")},3648:(e,t,r)=>{"use strict";var s=r(9447),n=r(8828),i=r(9552);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6946:(e,t,r)=>{"use strict";var s=r(1907),n=r(8828),i=r(5807),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},4084:(e,t,r)=>{"use strict";var s=r(2250),n=r(6285),i=r(9192);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},9259:(e,t,r)=>{"use strict";var s=r(6285),n=r(1626);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},4932:(e,t,r)=>{"use strict";var s,n,i,o=r(551),a=r(5951),c=r(6285),l=r(1626),u=r(9724),p=r(6128),h=r(2522),d=r(8530),f="Object already initialized",m=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,s=function(e,t){if(g.has(e))throw new m(f);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");d[v]=!0,s=function(e,t){if(u(e,v))throw new m(f);return t.facade=e,l(e,v,t),t},n=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},7812:(e,t,r)=>{"use strict";var s=r(6264),n=r(3742),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2250:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},7463:(e,t,r)=>{"use strict";var s=r(8828),n=r(2250),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===u||r!==l&&(n(t)?s(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},7136:e=>{"use strict";e.exports=function(e){return null==e}},6285:(e,t,r)=>{"use strict";var s=r(2250);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},4018:(e,t,r)=>{"use strict";var s=r(6285);e.exports=function(e){return s(e)||null===e}},7376:e=>{"use strict";e.exports=!0},5594:(e,t,r)=>{"use strict";var s=r(5582),n=r(2250),i=r(8280),o=r(1175),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},4823:(e,t,r)=>{"use strict";var s=r(8311),n=r(3930),i=r(6624),o=r(4640),a=r(7812),c=r(575),l=r(8280),u=r(300),p=r(3448),h=r(154),d=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,r){var y,g,v,b,x,w,E,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=s(t,j),T=function(e){return y&&h(y,"normal",e),new f(!0,e)},k=function(e){return O?(i(e),A?$(e[0],e[1],T):$(e[0],e[1])):A?$(e,T):$(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw new d(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=k(e[v]))&&l(m,x))return x;return new f(!1)}y=u(e,g)}for(w=S?e.next:y.next;!(E=n(w,y)).done;){try{x=k(E.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(m,x))return x}return new f(!1)}},154:(e,t,r)=>{"use strict";var s=r(3930),n=r(6624),i=r(9367);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},7181:(e,t,r)=>{"use strict";var s=r(5116).IteratorPrototype,n=r(8075),i=r(5817),o=r(4840),a=r(3742),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},183:(e,t,r)=>{"use strict";var s=r(1091),n=r(3930),i=r(7376),o=r(6833),a=r(2250),c=r(7181),l=r(5972),u=r(9192),p=r(4840),h=r(1626),d=r(8055),f=r(6264),m=r(3742),y=r(5116),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,f,y,P){c(r,t,o);var A,$,T,k=function(e){if(e===f&&F)return F;if(!x&&e&&e in M)return M[e];switch(e){case E:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},_=t+" Iterator",C=!1,M=e.prototype,I=M[w]||M["@@iterator"]||f&&M[f],F=!x&&I||k(f),R="Array"===t&&M.entries||I;if(R&&(A=l(R.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[w])||d(A,w,S)),p(A,_,!0,!0),i&&(m[_]=S)),g&&f===j&&I&&I.name!==j&&(!i&&v?h(M,"name",j):(C=!0,F=function(){return n(I,this)})),f)if($={values:k(j),keys:y?F:k(E),entries:k(O)},P)for(T in $)(x||C||!(T in M))&&d(M,T,$[T]);else s({target:t,proto:!0,forced:x||C},$);return i&&!P||M[w]===F||d(M,w,F,{name:f}),m[t]=F,$}},5116:(e,t,r)=>{"use strict";var s,n,i,o=r(8828),a=r(2250),c=r(6285),l=r(8075),u=r(5972),p=r(8055),h=r(6264),d=r(7376),f=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):m=!0),!c(s)||o((function(){var e={};return s[f].call(e)!==e}))?s={}:d&&(s=l(s)),a(s[f])||p(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},3742:e=>{"use strict";e.exports={}},575:(e,t,r)=>{"use strict";var s=r(3121);e.exports=function(e){return s(e.length)}},1176:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},2096:(e,t,r)=>{"use strict";var s=r(160);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},8075:(e,t,r)=>{"use strict";var s,n=r(6624),i=r(2220),o=r(376),a=r(8530),c=r(2416),l=r(9552),u=r(2522),p="prototype",h="script",d=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&s?y(s):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):y(s);for(var n=o.length;n--;)delete g[p][o[n]];return g()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=n(e),r=new f,f[p]=null,r[d]=e):r=g(),void 0===t?r:i.f(r,t)}},2220:(e,t,r)=>{"use strict";var s=r(9447),n=r(8661),i=r(4284),o=r(6624),a=r(7374),c=r(2875);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],s[r]);return e}},4284:(e,t,r)=>{"use strict";var s=r(9447),n=r(3648),i=r(8661),o=r(6624),a=r(470),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",d="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var s=u(e,t);s&&s[d]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3846:(e,t,r)=>{"use strict";var s=r(9447),n=r(3930),i=r(2574),o=r(5817),a=r(7374),c=r(470),l=r(9724),u=r(3648),p=Object.getOwnPropertyDescriptor;t.f=s?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(!n(i.f,e,t),e[t])}},4443:(e,t,r)=>{"use strict";var s=r(3045),n=r(376).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7170:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},5972:(e,t,r)=>{"use strict";var s=r(9724),n=r(2250),i=r(9298),o=r(2522),a=r(7382),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8280:(e,t,r)=>{"use strict";var s=r(1907);e.exports=s({}.isPrototypeOf)},3045:(e,t,r)=>{"use strict";var s=r(1907),n=r(9724),i=r(7374),o=r(4436).indexOf,a=r(8530),c=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&c(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||c(u,r));return u}},2875:(e,t,r)=>{"use strict";var s=r(3045),n=r(376);e.exports=Object.keys||function(e){return s(e,n)}},2574:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},9192:(e,t,r)=>{"use strict";var s=r(1871),n=r(6285),i=r(4239),o=r(43);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return i(r),o(s),n(r)?(t?e(r,s):r.__proto__=s,r):r}}():void 0)},4878:(e,t,r)=>{"use strict";var s=r(2623),n=r(3948);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},581:(e,t,r)=>{"use strict";var s=r(3930),n=r(2250),i=r(6285),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},1042:(e,t,r)=>{"use strict";var s=r(5582),n=r(1907),i=r(4443),o=r(7170),a=r(6624),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},2046:e=>{"use strict";e.exports={}},4829:(e,t,r)=>{"use strict";var s=r(4284).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},4239:(e,t,r)=>{"use strict";var s=r(7136),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},4840:(e,t,r)=>{"use strict";var s=r(2623),n=r(4284).f,i=r(1626),o=r(9724),a=r(4878),c=r(6264)("toStringTag");e.exports=function(e,t,r,l){var u=r?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!s&&i(u,"toString",a))}},2522:(e,t,r)=>{"use strict";var s=r(5816),n=r(6499),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},6128:(e,t,r)=>{"use strict";var s=r(7376),n=r(5951),i=r(2532),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.38.0",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5816:(e,t,r)=>{"use strict";var s=r(6128);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},1470:(e,t,r)=>{"use strict";var s=r(1907),n=r(5482),i=r(160),o=r(4239),a=s("".charAt),c=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),h=n(r),d=p.length;return h<0||h>=d?e?"":void 0:(s=c(p,h))<55296||s>56319||h+1===d||(u=c(p,h+1))<56320||u>57343?e?a(p,h):s:e?l(p,h,h+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},9846:(e,t,r)=>{"use strict";var s=r(798),n=r(8828),i=r(5951).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4849:(e,t,r)=>{"use strict";var s=r(5482),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},7374:(e,t,r)=>{"use strict";var s=r(6946),n=r(4239);e.exports=function(e){return s(n(e))}},5482:(e,t,r)=>{"use strict";var s=r(1176);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},3121:(e,t,r)=>{"use strict";var s=r(5482),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},9298:(e,t,r)=>{"use strict";var s=r(4239),n=Object;e.exports=function(e){return n(s(e))}},6028:(e,t,r)=>{"use strict";var s=r(3930),n=r(6285),i=r(5594),o=r(9367),a=r(581),c=r(6264),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},470:(e,t,r)=>{"use strict";var s=r(6028),n=r(5594);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},2623:(e,t,r)=>{"use strict";var s={};s[r(6264)("toStringTag")]="z",e.exports="[object z]"===String(s)},160:(e,t,r)=>{"use strict";var s=r(3948),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},4640:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6499:(e,t,r)=>{"use strict";var s=r(1907),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1175:(e,t,r)=>{"use strict";var s=r(9846);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661:(e,t,r)=>{"use strict";var s=r(9447),n=r(8828);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},551:(e,t,r)=>{"use strict";var s=r(5951),n=r(2250),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},6264:(e,t,r)=>{"use strict";var s=r(5951),n=r(5816),i=r(9724),o=r(6499),a=r(9846),c=r(1175),l=s.Symbol,u=n("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]}},9358:(e,t,r)=>{"use strict";var s=r(5582),n=r(9724),i=r(1626),o=r(8280),a=r(9192),c=r(9595),l=r(4829),u=r(4084),p=r(2096),h=r(9259),d=r(5884),f=r(9447),m=r(7376);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],w=s.apply(null,b);if(w){var E=w.prototype;if(!m&&n(E,"cause")&&delete E.cause,!r)return w;var j=s("Error"),O=t((function(e,t){var r=p(y?t:e,void 0),s=y?new w(e):new w;return void 0!==r&&i(s,"message",r),d(s,O,s.stack,2),this&&o(E,this)&&u(s,this,O),arguments.length>v&&h(s,arguments[v]),s}));if(O.prototype=E,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):f&&g in w&&(l(O,w,g),l(O,w,"prepareStackTrace")),c(O,w),!m)try{E.name!==x&&i(E,"name",x),E.constructor=O}catch(e){}return O}}},6371:(e,t,r)=>{"use strict";var s=r(1091),n=r(5582),i=r(6024),o=r(8828),a=r(9358),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),u,!0)})},2048:(e,t,r)=>{"use strict";var s=r(1091),n=r(8280),i=r(5972),o=r(9192),a=r(9595),c=r(8075),l=r(1626),u=r(5817),p=r(9259),h=r(5884),d=r(4823),f=r(2096),m=r(6264)("toStringTag"),y=Error,g=[].push,v=function(e,t){var r,s=n(b,this);o?r=o(new y,s?i(this):b):(r=s?this:c(b),l(r,m,"Error")),void 0!==t&&l(r,"message",f(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return d(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:v})},4502:(e,t,r)=>{"use strict";r(2048)},9363:(e,t,r)=>{"use strict";var s=r(7374),n=r(2156),i=r(3742),o=r(4932),a=r(4284).f,c=r(183),l=r(9550),u=r(7376),p=r(9447),h="Array Iterator",d=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){d(this,{type:h,target:s(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)}),"values");var m=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},6605:(e,t,r)=>{"use strict";var s=r(1091),n=r(5951),i=r(6024),o=r(9358),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),s({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),s({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};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)}}))},7057:(e,t,r)=>{"use strict";var s=r(1470).charAt,n=r(160),i=r(4932),o=r(183),a=r(9550),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},1599:(e,t,r)=>{"use strict";r(4502)},2560:(e,t,r)=>{"use strict";r(9363);var s=r(9287),n=r(5951),i=r(4840),o=r(3742);for(var a in s)i(n[a],a),o[a]=o.Array},694:(e,t,r)=>{"use strict";r(1599);var s=r(7257);r(2560),e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s={};return(()=>{"use strict";r.d(s,{default:()=>MO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Yr,_areEquals:()=>os,applyOperation:()=>ts,applyPatch:()=>rs,applyReducer:()=>ss,deepClone:()=>Xr,getValueByPointer:()=>es,validate:()=>is,validator:()=>ns});var t={};r.r(t),r.d(t,{compare:()=>fs,generate:()=>hs,observe:()=>ps,unobserve:()=>us});var n={};r.r(n),r.d(n,{bJ:()=>Zi,uQ:()=>Gi,Zd:()=>Yi,q$:()=>Ki,hd:()=>Qi,aj:()=>eo,z9:()=>Xi,zj:()=>to});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>wc,includesClasses:()=>jc,includesSymbols:()=>Ec,isAnnotationElement:()=>yc,isArrayElement:()=>hc,isBooleanElement:()=>uc,isCommentElement:()=>gc,isElement:()=>oc,isLinkElement:()=>fc,isMemberElement:()=>dc,isNullElement:()=>lc,isNumberElement:()=>cc,isObjectElement:()=>pc,isParseResultElement:()=>vc,isPrimitiveElement:()=>xc,isRefElement:()=>mc,isSourceMapElement:()=>bc,isStringElement:()=>ac});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Vh,isJSONSchemaElement:()=>Uh,isLinkDescriptionElement:()=>zh,isMediaElement:()=>Hh});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Ef,isCallbackElement:()=>tf,isComponentsElement:()=>rf,isContactElement:()=>sf,isExampleElement:()=>nf,isExternalDocumentationElement:()=>of,isHeaderElement:()=>af,isInfoElement:()=>cf,isLicenseElement:()=>lf,isLinkElement:()=>uf,isMediaTypeElement:()=>Af,isOpenApi3_0Element:()=>hf,isOpenapiElement:()=>pf,isOperationElement:()=>df,isParameterElement:()=>ff,isPathItemElement:()=>mf,isPathsElement:()=>yf,isReferenceElement:()=>gf,isRequestBodyElement:()=>vf,isResponseElement:()=>bf,isResponsesElement:()=>xf,isSchemaElement:()=>wf,isSecurityRequirementElement:()=>jf,isSecuritySchemeElement:()=>Of,isServerElement:()=>Sf,isServerVariableElement:()=>Pf,isServersElement:()=>$f});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>Qb,isCallbackElement:()=>kb,isComponentsElement:()=>_b,isContactElement:()=>Cb,isExampleElement:()=>Mb,isExternalDocumentationElement:()=>Ib,isHeaderElement:()=>Fb,isInfoElement:()=>Rb,isJsonSchemaDialectElement:()=>Db,isLicenseElement:()=>Nb,isLinkElement:()=>Lb,isMediaTypeElement:()=>nx,isOpenApi3_1Element:()=>Bb,isOpenapiElement:()=>qb,isOperationElement:()=>Ub,isParameterElement:()=>Vb,isPathItemElement:()=>Hb,isPathItemElementExternal:()=>zb,isPathsElement:()=>Gb,isReferenceElement:()=>Jb,isReferenceElementExternal:()=>Kb,isRequestBodyElement:()=>Wb,isResponseElement:()=>Yb,isResponsesElement:()=>Xb,isSchemaElement:()=>Zb,isSecurityRequirementElement:()=>ex,isSecuritySchemeElement:()=>tx,isServerElement:()=>rx,isServerVariableElement:()=>sx});var l={};r.r(l),r.d(l,{cookie:()=>dO,header:()=>hO,path:()=>lO,query:()=>uO});const u="application/json, application/yaml",p="https://swagger.io",h=Object.freeze({url:"/"}),{fetch:d,Response:f,Headers:m,Request:y,FormData:g,File:v,Blob:b}=globalThis;function x(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function w(e,t){return Array.isArray(e)&&e.some((e=>x(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=d),void 0===globalThis.Headers&&(globalThis.Headers=m),void 0===globalThis.Request&&(globalThis.Request=y),void 0===globalThis.Response&&(globalThis.Response=f),void 0===globalThis.FormData&&(globalThis.FormData=g),void 0===globalThis.File&&(globalThis.File=v),void 0===globalThis.Blob&&(globalThis.Blob=b);class E extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const j=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,O=e=>/^[a-z0-9\-._~]+$/i.test(e);function S(e,t="reserved"){return[...e].map((e=>{if(O(e))return e;if(j(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join("")}function P(e){const{value:t}=e;return Array.isArray(t)?function({key:e,value:t,style:r,explode:s,escape:n}){if("simple"===r)return t.map((e=>A(e,n))).join(",");if("label"===r)return`.${t.map((e=>A(e,n))).join(".")}`;if("matrix"===r)return t.map((e=>A(e,n))).reduce(((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=s?`&${e}=`:",";return t.map((e=>A(e,n))).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>A(e,n))).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>A(e,n))).join(`|${r}`)}return}(e):"object"==typeof t?function({key:e,value:t,style:r,explode:s,escape:n}){const i=Object.keys(t);if("simple"===r)return i.reduce(((e,r)=>{const i=A(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=A(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`}),"");if("matrix"===r&&s)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${A(t[r],n)}`),"");if("matrix"===r)return i.reduce(((r,s)=>{const i=A(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=A(t[r],n);return`${e?`${e}${s?"&":","}`:""}${r}${s?"=":","}${i}`}),"");return}(e):function({key:e,value:t,style:r,escape:s}){if("simple"===r)return A(t,s);if("label"===r)return`.${A(t,s)}`;if("matrix"===r)return`;${e}=${A(t,s)}`;if("form"===r)return A(t,s);if("deepObject"===r)return A(t,s);return}(e)}function A(e,t=!1){return Array.isArray(e)||null!==e&&"object"==typeof e?e=JSON.stringify(e):"number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),t&&e.length>0?S(e,t):e}const $={form:",",spaceDelimited:"%20",pipeDelimited:"|"},T={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function k(e,t,r=!1){const{collectionFormat:s,allowEmptyValue:n,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&n)return[[l,""]];if(x(a)||w(a))return[[l,a]];if(i)return _(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:s,allowReserved:n}=o;return _(e,a,r,{style:t,explode:s,allowReserved:n})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new E(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new E(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===s?[[l,a.map(c)]]:[[l,a.map(c).join(T[s||"csv"])]]:[[l,""]]}function _(e,t,r,s){const n=s.style||"form",i=void 0===s.explode?"form"===n:s.explode,o=!r&&(s&&s.allowReserved?"unsafe":"reserved"),a=e=>A(e,o),c=r?e=>e:e=>a(e);return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join($[n])]]:"deepObject"===n?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}const C=(e,{encode:t=!0}={})=>{const r=(e,t,s)=>(null==s?e.append(t,""):Array.isArray(s)?s.reduce(((s,n)=>r(e,t,n)),e):s instanceof Date?e.append(t,s.toISOString()):"object"==typeof s?Object.entries(s).reduce(((s,[n,i])=>r(e,`${t}[${n}]`,i)),e):e.append(t,s),e),s=Object.entries(e).reduce(((e,[t,s])=>r(e,t,s)),new URLSearchParams),n=String(s);return t?n:decodeURIComponent(n)};function M(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[s,n]of k(r,e[r]))t[s]=n instanceof E?n.valueOf():n;return t}),{});return C(t,{encode:!1})}function I(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return x(t)||w(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(n=e.form,Object.entries(n).reduce(((e,[t,r])=>{for(const[s,n]of k(t,r,!0))if(Array.isArray(n))for(const t of n)if(ArrayBuffer.isView(t)){const r=new Blob([t]);e.append(s,r)}else e.append(s,t);else if(ArrayBuffer.isView(n)){const t=new Blob([n]);e.append(s,t)}else e.append(s,n);return e}),new FormData));e.formdata=t,e.body=t}else e.body=M(s);delete e.form}var n;if(r){const[s,n]=t.split("?");let i="";if(n){const e=new URLSearchParams(n);Object.keys(r).forEach((t=>e.delete(t))),i=String(e)}const o=((...e)=>{const t=e.filter((e=>e)).join("&");return t?`?${t}`:""})(i,M(r));e.url=s+o,delete e.query}return e}function F(e){return null==e}var R={isNothing:F,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:F(e)?[]:[e]},repeat:function(e,t){var r,s="";for(r=0;r<t;r+=1)s+=e;return s},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,s,n,i;if(t)for(r=0,s=(i=Object.keys(t)).length;r<s;r+=1)e[n=i[r]]=t[n];return e}};function D(e,t){var r="",s=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),s+" "+r):s}function N(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=D(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}N.prototype=Object.create(Error.prototype),N.prototype.constructor=N,N.prototype.toString=function(e){return this.name+": "+D(this,e)};var L=N;function q(e,t,r,s,n){var i="",o="",a=Math.floor(n/2)-1;return s-t>a&&(t=s-a+(i=" ... ").length),r-s>a&&(r=s+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:s-t+i.length}}function B(e,t){return R.repeat(" ",t-e.length)+e}var U=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,s=/\r?\n|\r|\0/g,n=[0],i=[],o=-1;r=s.exec(e.buffer);)i.push(r.index),n.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=q(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),p),l=R.repeat(" ",t.indent)+B((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=q(e.buffer,n[o],i[o],e.position,p),l+=R.repeat(" ",t.indent)+B((e.line+1).toString(),u)+" | "+c.str+"\n",l+=R.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=q(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),p),l+=R.repeat(" ",t.indent)+B((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},V=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],H=["scalar","sequence","mapping"];var z=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===V.indexOf(t))throw new L('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===H.indexOf(this.kind))throw new L('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function G(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,s){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=s)})),r[t]=e})),r}function J(e){return this.extend(e)}J.prototype.extend=function(e){var t=[],r=[];if(e instanceof z)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new L("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof z))throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new L("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new L("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof z))throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(J.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=G(s,"implicit"),s.compiledExplicit=G(s,"explicit"),s.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function s(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(s);return r}(s.compiledImplicit,s.compiledExplicit),s};var K=J,W=new z("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Y=new z("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),X=new z("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),Z=new K({explicit:[W,Y,X]});var Q=new z("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var ee=new z("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function te(e){return 48<=e&&e<=55}function re(e){return 48<=e&&e<=57}var se=new z("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=e.length,n=0,i=!1;if(!s)return!1;if("-"!==(t=e[n])&&"+"!==t||(t=e[++n]),"0"===t){if(n+1===s)return!0;if("b"===(t=e[++n])){for(n++;n<s;n++)if("_"!==(t=e[n])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!(48<=(r=e.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(n++;n<s;n++)if("_"!==(t=e[n])){if(!te(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!re(e.charCodeAt(n)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,s=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(s=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return s*parseInt(r.slice(2),2);if("x"===r[1])return s*parseInt(r.slice(2),16);if("o"===r[1])return s*parseInt(r.slice(2),8)}return s*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!R.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ne=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var ie=/^[-+]?[0-9]+e/;var oe=new z("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ne.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||R.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(R.isNegativeZero(e))return"-0.0";return r=e.toString(10),ie.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),ae=Z.extend({implicit:[Q,ee,se,oe]}),ce=ae,le=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ue=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var pe=new z("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==le.exec(e)||null!==ue.exec(e))},construct:function(e){var t,r,s,n,i,o,a,c,l=0,u=null;if(null===(t=le.exec(e))&&(t=ue.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],s=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,s,n));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,s,n,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var he=new z("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var fe=new z("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=de;for(r=0;r<n;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;s+=6}return s%8==0},construct:function(e){var t,r,s=e.replace(/[\r\n=]/g,""),n=s.length,i=de,o=0,a=[];for(t=0;t<n;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(s.charAt(t));return 0===(r=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,s="",n=0,i=e.length,o=de;for(t=0;t<i;t++)t%3==0&&t&&(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]),n=(n<<8)+e[t];return 0===(r=i%3)?(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]):2===r?(s+=o[n>>10&63],s+=o[n>>4&63],s+=o[n<<2&63],s+=o[64]):1===r&&(s+=o[n>>2&63],s+=o[n<<4&63],s+=o[64],s+=o[64]),s}}),me=Object.prototype.hasOwnProperty,ye=Object.prototype.toString;var ge=new z("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(s=a[t],i=!1,"[object Object]"!==ye.call(s))return!1;for(n in s)if(me.call(s,n)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(n))return!1;o.push(n)}return!0},construct:function(e){return null!==e?e:[]}}),ve=Object.prototype.toString;var be=new z("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(s=o[t],"[object Object]"!==ve.call(s))return!1;if(1!==(n=Object.keys(s)).length)return!1;i[t]=[n[0],s[n[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,s,n,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)s=o[t],n=Object.keys(s),i[t]=[n[0],s[n[0]]];return i}}),xe=Object.prototype.hasOwnProperty;var we=new z("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(xe.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Ee=ce.extend({implicit:[pe,he],explicit:[fe,ge,be,we]}),je=Object.prototype.hasOwnProperty,Oe=1,Se=2,Pe=3,Ae=4,$e=1,Te=2,ke=3,_e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ce=/[\x85\u2028\u2029]/,Me=/[,\[\]\{\}]/,Ie=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Re(e){return Object.prototype.toString.call(e)}function De(e){return 10===e||13===e}function Ne(e){return 9===e||32===e}function Le(e){return 9===e||32===e||10===e||13===e}function qe(e){return 44===e||91===e||93===e||123===e||125===e}function Be(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ue(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Ve(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var He=new Array(256),ze=new Array(256),Ge=0;Ge<256;Ge++)He[Ge]=Ue(Ge)?1:0,ze[Ge]=Ue(Ge);function Je(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ee,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ke(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=U(r),new L(t,r)}function We(e,t){throw Ke(e,t)}function Ye(e,t){e.onWarning&&e.onWarning.call(null,Ke(e,t))}var Xe={YAML:function(e,t,r){var s,n,i;null!==e.version&&We(e,"duplication of %YAML directive"),1!==r.length&&We(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&We(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&We(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Ye(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&We(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Ie.test(s)||We(e,"ill-formed tag handle (first argument) of the TAG directive"),je.call(e.tagMap,s)&&We(e,'there is a previously declared suffix for "'+s+'" tag handle'),Fe.test(n)||We(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){We(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function Ze(e,t,r,s){var n,i,o,a;if(t<r){if(a=e.input.slice(t,r),s)for(n=0,i=a.length;n<i;n+=1)9===(o=a.charCodeAt(n))||32<=o&&o<=1114111||We(e,"expected valid JSON character");else _e.test(a)&&We(e,"the stream contains non-printable characters");e.result+=a}}function Qe(e,t,r,s){var n,i,o,a;for(R.isObject(r)||We(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(n=Object.keys(r)).length;o<a;o+=1)i=n[o],je.call(t,i)||(t[i]=r[i],s[i]=!0)}function et(e,t,r,s,n,i,o,a,c){var l,u;if(Array.isArray(n))for(l=0,u=(n=Array.prototype.slice.call(n)).length;l<u;l+=1)Array.isArray(n[l])&&We(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===Re(n[l])&&(n[l]="[object Object]");if("object"==typeof n&&"[object Object]"===Re(n)&&(n="[object Object]"),n=String(n),null===t&&(t={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Qe(e,t,i[l],r);else Qe(e,t,i,r);else e.json||je.call(r,n)||!je.call(t,n)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,We(e,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[n]=i,delete r[n];return t}function tt(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):We(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function rt(e,t,r){for(var s=0,n=e.input.charCodeAt(e.position);0!==n;){for(;Ne(n);)9===n&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&35===n)do{n=e.input.charCodeAt(++e.position)}while(10!==n&&13!==n&&0!==n);if(!De(n))break;for(tt(e),n=e.input.charCodeAt(e.position),s++,e.lineIndent=0;32===n;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return-1!==r&&0!==s&&e.lineIndent<r&&Ye(e,"deficient indentation"),s}function st(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Le(t)))}function nt(e,t){1===t?e.result+=" ":t>1&&(e.result+=R.repeat("\n",t-1))}function it(e,t){var r,s,n=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),s=e.input.charCodeAt(e.position);0!==s&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,We(e,"tab characters must not be used in indentation")),45===s)&&Le(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,rt(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,ct(e,t,Pe,!1,!0),o.push(e.result),rt(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)We(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0)}function ot(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&We(e,"duplication of a tag property"),60===(n=e.input.charCodeAt(++e.position))?(i=!0,n=e.input.charCodeAt(++e.position)):33===n?(o=!0,r="!!",n=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&62!==n);e.position<e.length?(s=e.input.slice(t,e.position),n=e.input.charCodeAt(++e.position)):We(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Le(n);)33===n&&(o?We(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Ie.test(r)||We(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),n=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Me.test(s)&&We(e,"tag suffix cannot contain flow indicator characters")}s&&!Fe.test(s)&&We(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){We(e,"tag name is malformed: "+s)}return i?e.tag=s:je.call(e.tagMap,r)?e.tag=e.tagMap[r]+s:"!"===r?e.tag="!"+s:"!!"===r?e.tag="tag:yaml.org,2002:"+s:We(e,'undeclared tag handle "'+r+'"'),!0}function at(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&We(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Le(r)&&!qe(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&We(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ct(e,t,r,s,n){var i,o,a,c,l,u,p,h,d,f=1,m=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=Ae===r||Pe===r,s&&rt(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;ot(e)||at(e);)rt(e,!0,-1)?(m=!0,a=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):a=!1;if(a&&(a=m||n),1!==f&&Ae!==r||(h=Oe===r||Se===r?t:t+1,d=e.position-e.lineStart,1===f?a&&(it(e,d)||function(e,t,r){var s,n,i,o,a,c,l,u=e.tag,p=e.anchor,h={},d=Object.create(null),f=null,m=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,We(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Le(s)){if(o=e.line,a=e.lineStart,c=e.position,!ct(e,r,Se,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);Ne(l);)l=e.input.charCodeAt(++e.position);if(58===l)Le(l=e.input.charCodeAt(++e.position))||We(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(et(e,h,d,f,m,null,o,a,c),f=m=y=null),v=!0,g=!1,n=!1,f=e.tag,m=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;We(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;We(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(et(e,h,d,f,m,null,o,a,c),f=m=y=null),v=!0,g=!0,n=!0):g?(g=!1,n=!0):We(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=s;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),ct(e,t,Ae,!0,n)&&(g?m=e.result:y=e.result),g||(et(e,h,d,f,m,y,o,a,c),f=m=y=null),rt(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)We(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&et(e,h,d,f,m,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,d,h))||function(e,t){var r,s,n,i,o,a,c,l,u,p,h,d,f=!0,m=e.tag,y=e.anchor,g=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==d)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(rt(e,!0,t),(d=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;f?44===d&&We(e,"expected the node content, but found ','"):We(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&Le(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,rt(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,ct(e,t,Oe,!1,!0),p=e.tag,u=e.result,rt(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),rt(e,!0,t),ct(e,t,Oe,!1,!0),h=e.result),l?et(e,i,g,p,u,h,r,s,n):a?i.push(et(e,null,g,p,u,h,r,s,n)):i.push(u),rt(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}We(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,s,n,i,o,a=$e,c=!1,l=!1,u=t,p=0,h=!1;if(124===(i=e.input.charCodeAt(e.position)))s=!1;else{if(62!==i)return!1;s=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)$e===a?a=43===i?ke:Te:We(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?We(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?We(e,"repeat of an indentation width identifier"):(u=t+n-1,l=!0)}if(Ne(i)){do{i=e.input.charCodeAt(++e.position)}while(Ne(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!De(i)&&0!==i)}for(;0!==i;){for(tt(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),De(i))p++;else{if(e.lineIndent<u){a===ke?e.result+=R.repeat("\n",c?1+p:p):a===$e&&c&&(e.result+="\n");break}for(s?Ne(i)?(h=!0,e.result+=R.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=R.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=R.repeat("\n",p):e.result+=R.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!De(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ze(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,s,n;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,s=n=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Ze(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else De(r)?(Ze(e,s,n,!0),nt(e,rt(e,!1,t)),s=n=e.position):e.position===e.lineStart&&st(e)?We(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);We(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,s,n,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ze(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ze(e,r,e.position,!0),De(a=e.input.charCodeAt(++e.position)))rt(e,!1,t);else if(a<256&&He[a])e.result+=ze[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(n=o,i=0;n>0;n--)(o=Be(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:We(e,"expected hexadecimal character");e.result+=Ve(i),e.position++}else We(e,"unknown escape sequence");r=s=e.position}else De(a)?(Ze(e,r,s,!0),nt(e,rt(e,!1,t)),r=s=e.position):e.position===e.lineStart&&st(e)?We(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}We(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,r,s;if(42!==(s=e.input.charCodeAt(e.position)))return!1;for(s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Le(s)&&!qe(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&We(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),je.call(e.anchorMap,r)||We(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],rt(e,!0,-1),!0}(e)?function(e,t,r){var s,n,i,o,a,c,l,u,p=e.kind,h=e.result;if(Le(u=e.input.charCodeAt(e.position))||qe(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Le(s=e.input.charCodeAt(e.position+1))||r&&qe(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(Le(s=e.input.charCodeAt(e.position+1))||r&&qe(s))break}else if(35===u){if(Le(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&st(e)||r&&qe(u))break;if(De(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ze(e,n,i,!1),nt(e,e.line-a),n=i=e.position,o=!1),Ne(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ze(e,n,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,Oe===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||We(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(y=a&&it(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&We(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(je.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||We(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&We(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):We(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function lt(e){var t,r,s,n,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(n=e.input.charCodeAt(e.position))&&(rt(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Le(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&We(e,"directive name must not be less than one character in length");0!==n;){for(;Ne(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!De(n));break}if(De(n))break;for(t=e.position;0!==n&&!Le(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&tt(e),je.call(Xe,r)?Xe[r](e,r,s):Ye(e,'unknown document directive "'+r+'"')}rt(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,rt(e,!0,-1)):o&&We(e,"directives end mark is expected"),ct(e,e.lineIndent-1,Ae,!1,!0),rt(e,!0,-1),e.checkLineBreaks&&Ce.test(e.input.slice(i,e.position))&&Ye(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&st(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,rt(e,!0,-1)):e.position<e.length-1&&We(e,"end of the stream or a document separator is expected")}function ut(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new Je(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,We(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)lt(r);return r.documents}var pt={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=ut(e,r);if("function"!=typeof t)return s;for(var n=0,i=s.length;n<i;n+=1)t(s[n])},load:function(e,t){var r=ut(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new L("expected a single document in the stream, but found more")}}},ht=Object.prototype.toString,dt=Object.prototype.hasOwnProperty,ft=65279,mt=9,yt=10,gt=13,vt=32,bt=33,xt=34,wt=35,Et=37,jt=38,Ot=39,St=42,Pt=44,At=45,$t=58,Tt=61,kt=62,_t=63,Ct=64,Mt=91,It=93,Ft=96,Rt=123,Dt=124,Nt=125,Lt={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},qt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Bt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ut(e){var t,r,s;if(t=e.toString(16).toUpperCase(),e<=255)r="x",s=2;else if(e<=65535)r="u",s=4;else{if(!(e<=4294967295))throw new L("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+R.repeat("0",s-t.length)+t}var Vt=1,Ht=2;function zt(e){this.schema=e.schema||Ee,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=R.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,s,n,i,o,a,c;if(null===t)return{};for(r={},n=0,i=(s=Object.keys(t)).length;n<i;n+=1)o=s[n],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&dt.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?Ht:Vt,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Gt(e,t){for(var r,s=R.repeat(" ",t),n=0,i=-1,o="",a=e.length;n<a;)-1===(i=e.indexOf("\n",n))?(r=e.slice(n),n=a):(r=e.slice(n,i+1),n=i+1),r.length&&"\n"!==r&&(o+=s),o+=r;return o}function Jt(e,t){return"\n"+R.repeat(" ",e.indent*t)}function Kt(e){return e===vt||e===mt}function Wt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==ft||65536<=e&&e<=1114111}function Yt(e){return Wt(e)&&e!==ft&&e!==gt&&e!==yt}function Xt(e,t,r){var s=Yt(e),n=s&&!Kt(e);return(r?s:s&&e!==Pt&&e!==Mt&&e!==It&&e!==Rt&&e!==Nt)&&e!==wt&&!(t===$t&&!n)||Yt(t)&&!Kt(t)&&e===wt||t===$t&&n}function Zt(e,t){var r,s=e.charCodeAt(t);return s>=55296&&s<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(s-55296)+r-56320+65536:s}function Qt(e){return/^\n* /.test(e)}var er=1,tr=2,rr=3,sr=4,nr=5;function ir(e,t,r,s,n,i,o,a){var c,l,u=0,p=null,h=!1,d=!1,f=-1!==s,m=-1,y=Wt(l=Zt(e,0))&&l!==ft&&!Kt(l)&&l!==At&&l!==_t&&l!==$t&&l!==Pt&&l!==Mt&&l!==It&&l!==Rt&&l!==Nt&&l!==wt&&l!==jt&&l!==St&&l!==bt&&l!==Dt&&l!==Tt&&l!==kt&&l!==Ot&&l!==xt&&l!==Et&&l!==Ct&&l!==Ft&&function(e){return!Kt(e)&&e!==$t}(Zt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Wt(u=Zt(e,c)))return nr;y=y&&Xt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Zt(e,c))===yt)h=!0,f&&(d=d||c-m-1>s&&" "!==e[m+1],m=c);else if(!Wt(u))return nr;y=y&&Xt(u,p,a),p=u}d=d||f&&c-m-1>s&&" "!==e[m+1]}return h||d?r>9&&Qt(e)?nr:o?i===Ht?nr:tr:d?sr:rr:!y||o||n(e)?i===Ht?nr:tr:er}function or(e,t,r,s,n){e.dump=function(){if(0===t.length)return e.quotingType===Ht?'""':"''";if(!e.noCompatMode&&(-1!==qt.indexOf(t)||Bt.test(t)))return e.quotingType===Ht?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=s||e.flowLevel>-1&&r>=e.flowLevel;switch(ir(t,a,e.indent,o,(function(t){return function(e,t){var r,s;for(r=0,s=e.implicitTypes.length;r<s;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!s,n)){case er:return t;case tr:return"'"+t.replace(/'/g,"''")+"'";case rr:return"|"+ar(t,e.indent)+cr(Gt(t,i));case sr:return">"+ar(t,e.indent)+cr(Gt(function(e,t){var r,s,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,lr(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;s=n.exec(e);){var c=s[1],l=s[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+lr(l,t),o=r}return i}(t,o),i));case nr:return'"'+function(e){for(var t,r="",s=0,n=0;n<e.length;s>=65536?n+=2:n++)s=Zt(e,n),!(t=Lt[s])&&Wt(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||Ut(s);return r}(t)+'"';default:throw new L("impossible error: invalid scalar style")}}()}function ar(e,t){var r=Qt(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function cr(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function lr(e,t){if(""===e||" "===e[0])return e;for(var r,s,n=/ [^ ]/g,i=0,o=0,a=0,c="";r=n.exec(e);)(a=r.index)-i>t&&(s=o>i?o:a,c+="\n"+e.slice(i,s),i=s+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function ur(e,t,r,s){var n,i,o,a="",c=e.tag;for(n=0,i=r.length;n<i;n+=1)o=r[n],e.replacer&&(o=e.replacer.call(r,String(n),o)),(hr(e,t+1,o,!0,!0,!1,!0)||void 0===o&&hr(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=Jt(e,t)),e.dump&&yt===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function pr(e,t,r){var s,n,i,o,a,c;for(i=0,o=(n=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=n[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===ht.call(a.represent))s=a.represent(t,c);else{if(!dt.call(a.represent,c))throw new L("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');s=a.represent[c](t,c)}e.dump=s}return!0}return!1}function hr(e,t,r,s,n,i,o){e.tag=null,e.dump=r,pr(e,r,!1)||pr(e,r,!0);var a,c=ht.call(e.dump),l=s;s&&(s=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(n=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)s&&0!==Object.keys(e.dump).length?(!function(e,t,r,s){var n,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new L("sortKeys must be a boolean or a function");for(n=0,i=h.length;n<i;n+=1)l="",s&&""===u||(l+=Jt(e,t)),a=r[o=h[n]],e.replacer&&(a=e.replacer.call(r,o,a)),hr(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&yt===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Jt(e,t)),hr(e,t+1,a,!0,c)&&(e.dump&&yt===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o,a,c="",l=e.tag,u=Object.keys(r);for(s=0,n=u.length;s<n;s+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[s]],e.replacer&&(o=e.replacer.call(r,i,o)),hr(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),hr(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)s&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?ur(e,t-1,e.dump,n):ur(e,t,e.dump,n),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var s,n,i,o="",a=e.tag;for(s=0,n=r.length;s<n;s+=1)i=r[s],e.replacer&&(i=e.replacer.call(r,String(s),i)),(hr(e,t,i,!1,!1)||void 0===i&&hr(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new L("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&or(e,e.dump,t,i,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function dr(e,t){var r,s,n=[],i=[];for(fr(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function fr(e,t,r){var s,n,i;if(null!==e&&"object"==typeof e)if(-1!==(n=t.indexOf(e)))-1===r.indexOf(n)&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,i=e.length;n<i;n+=1)fr(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)fr(e[s[n]],t,r)}function mr(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var yr=z,gr=K,vr=Z,br=ae,xr=ce,wr=Ee,Er=pt.load,jr=pt.loadAll,Or={dump:function(e,t){var r=new zt(t=t||{});r.noRefs||dr(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),hr(r,0,s,!0,!0)?r.dump+"\n":""}}.dump,Sr=L,Pr={binary:fe,float:oe,map:X,null:Q,pairs:be,set:we,timestamp:pe,bool:ee,int:se,merge:he,omap:ge,seq:Y,str:W},Ar=mr("safeLoad","load"),$r=mr("safeLoadAll","loadAll"),Tr=mr("safeDump","dump");const kr={Type:yr,Schema:gr,FAILSAFE_SCHEMA:vr,JSON_SCHEMA:br,CORE_SCHEMA:xr,DEFAULT_SCHEMA:wr,load:Er,loadAll:jr,dump:Or,YAMLException:Sr,types:Pr,safeLoad:Ar,safeLoadAll:$r,safeDump:Tr},_r=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Cr(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,[t,r])=>(e[t]=function(e){return e.includes(", ")?e.split(", "):e}(r),e)),{})}function Mr(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Cr(e.headers)},n=s.headers["content-type"],i=r||_r(n);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(s.text=e,s.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):kr.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function Ir(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=I(t)).headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let s;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{s=await(t.userFetch||fetch)(t.url,t),s=await Mr(s,e,t),t.responseInterceptor&&(s=await t.responseInterceptor(s)||s)}catch(e){if(!s)throw e;const t=new Error(s.statusText||`response status is ${s.status}`);throw t.status=s.status,t.statusCode=s.status,t.responseError=e,t}if(!s.ok){const e=new Error(s.statusText||`response status is ${s.status}`);throw e.status=s.status,e.statusCode=s.status,e.response=s,e}return s}function Fr(e,t={}){const{requestInterceptor:r,responseInterceptor:s}=t,n=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:s,headers:{Accept:u},credentials:n}).then((e=>e.body))}const Rr=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},Dr=e=>{const{fetch:t,http:r}=e;return t||r||Ir};var Nr,Lr=(Nr=function(e,t){return Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Nr(e,t)},function(e,t){function r(){this.constructor=e}Nr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),qr=Object.prototype.hasOwnProperty;function Br(e,t){return qr.call(e,t)}function Ur(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var s=[];for(var n in e)Br(e,n)&&s.push(n);return s}function Vr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Hr(e){for(var t,r=0,s=e.length;r<s;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function zr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Gr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Jr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Jr(e[t]))return!0}else if("object"==typeof e)for(var s=Ur(e),n=s.length,i=0;i<n;i++)if(Jr(e[s[i]]))return!0;return!1}function Kr(e,t){var r=[e];for(var s in t){var n="object"==typeof t[s]?JSON.stringify(t[s],null,2):t[s];void 0!==n&&r.push(s+": "+n)}return r.join("\n")}var Wr=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,Kr(t,{name:r,index:s,operation:n,tree:i}))||this;return a.name=r,a.index=s,a.operation=n,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=Kr(t,{name:r,index:s,operation:n,tree:i}),a}return Lr(t,e),t}(Error),Yr=Wr,Xr=Vr,Zr={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var s=e[t];return delete e[t],{newDocument:r,removed:s}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:function(e,t,r){var s=es(r,this.path);s&&(s=Vr(s));var n=ts(r,{op:"remove",path:this.from}).removed;return ts(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=es(r,this.from);return ts(r,{op:"add",path:this.path,value:Vr(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:os(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Qr={add:function(e,t,r){return Hr(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var s=e[t];return e[t]=this.value,{newDocument:r,removed:s}},move:Zr.move,copy:Zr.copy,test:Zr.test,_get:Zr._get};function es(e,t){if(""==t)return e;var r={op:"_get",path:t};return ts(e,r),r.value}function ts(e,t,r,s,n,i){if(void 0===r&&(r=!1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):ns(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=es(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=os(e,t.value),!1===o.test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Yr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=Vr(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,d=void 0;for(d="function"==typeof r?r:ns;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Gr(h)),n&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&d(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!Hr(h))throw new Yr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Hr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Yr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=Qr[t.op].call(t,c,h,e)).test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=Zr[t.op].call(t,c,h,e)).test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Yr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function rs(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new Yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=Vr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=ts(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function ss(e,t,r){var s=ts(e,t);if(!1===s.test)throw new Yr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function ns(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new Yr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!Zr[e.op])throw new Yr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Yr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Yr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Yr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Yr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Jr(e.value))throw new Yr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var n=e.path.split("/").length,i=s.split("/").length;if(n!==i+1&&n!==i)throw new Yr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==s)throw new Yr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=is([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Yr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function is(e,t,r){try{if(!Array.isArray(e))throw new Yr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)rs(Vr(t),Vr(e),r||!0);else{r=r||ns;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof Yr)return e;throw e}}function os(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,n,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!=r--;)if(!os(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((s=a.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=s;0!=r--;)if(!os(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var as=new WeakMap,cs=function(e){this.observers=new Map,this.obj=e},ls=function(e,t){this.callback=e,this.observer=t};function us(e,t){t.unobserve()}function ps(e,t){var r,s=function(e){return as.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new cs(e),as.set(e,s);if(r)return r;if(r={},s.value=Vr(e),t){r.callback=t,r.next=null;var i=function(){hs(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){hs(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(s,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},s.observers.set(t,new ls(t,r)),r}function hs(e,t){void 0===t&&(t=!1);var r=as.get(e.object);ds(r.value,e.object,e.patches,"",t),e.patches.length&&rs(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function ds(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Ur(t),o=Ur(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!Br(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(n&&r.push({op:"test",path:s+"/"+zr(p),value:Vr(l)}),r.push({op:"remove",path:s+"/"+zr(p)}),a=!0):(n&&r.push({op:"test",path:s,value:e}),r.push({op:"replace",path:s,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?ds(l,u,r,s+"/"+zr(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+zr(p),value:Vr(l)}),r.push({op:"replace",path:s+"/"+zr(p),value:Vr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;Br(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:s+"/"+zr(p),value:Vr(t[p])})}}}function fs(e,t,r){void 0===r&&(r=!1);var s=[];return ds(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:Wr,deepClone:Vr,escapePathComponent:zr,unescapePathComponent:Gr});var ms=r(4744),ys=r.n(ms);const gs={add:function(e,t){return{op:"add",path:e,value:t}},replace:bs,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&vs(t.path)}).op){const r=Cs(e,t.path);Object.assign(r,t.value),rs(e,[bs(t.path,r)])}else if("mergeDeep"===t.op){const r=Cs(e,t.path),s=ys()(r,t.value);e=rs(e,[bs(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&Ps(t.value)){rs(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${vs(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&ks(t)&&(Array.isArray(t.value)||Ps(t.value))&&(s={...s,...t.meta}),e=s}else if(rs(e,[t]),r.allowMetaPatches&&t.meta&&ks(t)&&(Array.isArray(t.value)||Ps(t.value))){const r={...Cs(e,t.path),...t.meta};rs(e,[bs(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,s=t.length;r<s;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Os,fullyNormalizeArray:function(e){return Ss(Os(js(e)))},normalizeArray:js,isPromise:function(e){return Ps(e)&&As(e.then)},forEachNew:function(e,t){try{return xs(e,Es,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return xs(e,ws,t)}catch(e){return e}},isJsonPatch:$s,isContextPatch:function(e){return _s(e)&&"context"===e.type},isPatch:_s,isMutation:Ts,isAdditiveMutation:ks,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:As,isObject:Ps,isError:function(e){return e instanceof Error}};function vs(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function bs(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function xs(e,t,r){return Ss(Os(e.filter(ks).map((e=>t(e.value,r,e.path)))||[]))}function ws(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>ws(e,t,r.concat(s)))):Ps(e)?Object.keys(e).map((s=>ws(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function Es(e,t,r){let s=[];if((r=r||[]).length>0){const n=t(e,r[r.length-1],r);n&&(s=s.concat(n))}if(Array.isArray(e)){const n=e.map(((e,s)=>Es(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(Ps(e)){const n=Object.keys(e).map((s=>Es(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Os(s),s}function js(e){return Array.isArray(e)?e:[e]}function Os(e){return[].concat(...e.map((e=>Array.isArray(e)?Os(e):e)))}function Ss(e){return e.filter((e=>void 0!==e))}function Ps(e){return e&&"object"==typeof e}function As(e){return e&&"function"==typeof e}function $s(e){if(_s(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Ts(e){return $s(e)||_s(e)&&"mutation"===e.type}function ks(e){return Ts(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function _s(e){return e&&"object"==typeof e}function Cs(e,t){try{return es(e,t)}catch(e){return console.error(e),{}}}var Ms=r(8675);const Is=class extends Ms{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,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Fs extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Is,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const Rs=Fs;const Ds=class extends Rs{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};var Ns=r(5606);function Ls(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function qs(e){return function t(r){return 0===arguments.length||Ls(r)?t:e.apply(this,arguments)}}function Bs(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return Ls(r)?t:qs((function(t){return e(r,t)}));default:return Ls(r)&&Ls(s)?t:Ls(r)?qs((function(t){return e(t,s)})):Ls(s)?qs((function(t){return e(r,t)})):e(r,s)}}}function Us(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return Ls(r)?t:Bs((function(t,s){return e(r,t,s)}));case 2:return Ls(r)&&Ls(s)?t:Ls(r)?Bs((function(t,r){return e(t,s,r)})):Ls(s)?Bs((function(t,s){return e(r,t,s)})):qs((function(t){return e(r,s,t)}));default:return Ls(r)&&Ls(s)&&Ls(n)?t:Ls(r)&&Ls(s)?Bs((function(t,r){return e(t,r,n)})):Ls(r)&&Ls(n)?Bs((function(t,r){return e(t,s,r)})):Ls(s)&&Ls(n)?Bs((function(t,s){return e(r,t,s)})):Ls(r)?qs((function(t){return e(t,s,n)})):Ls(s)?qs((function(t){return e(r,t,n)})):Ls(n)?qs((function(t){return e(r,s,t)})):e(r,s,n)}}}const Vs=Number.isInteger||function(e){return(e|0)===e};function Hs(e){return"[object String]"===Object.prototype.toString.call(e)}function zs(e,t){var r=e<0?t.length+e:e;return Hs(t)?t.charAt(r):t[r]}function Gs(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=Vs(n)?zs(n,r):r[n]}return r}const Js=Us((function(e,t,r){return e(Gs(t,r))}));function Ks(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":""))}function Ws(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Ys(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function Xs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Zs="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Qs=Object.prototype.toString;const en=function(){return"[object Arguments]"===Qs.call(arguments)?function(e){return"[object Arguments]"===Qs.call(e)}:function(e){return Xs("callee",e)}}();var tn=!{toString:null}.propertyIsEnumerable("toString"),rn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],sn=function(){return arguments.propertyIsEnumerable("length")}(),nn=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},on="function"!=typeof Object.keys||sn?qs((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=sn&&en(e);for(t in e)!Xs(t,e)||n&&"length"===t||(s[s.length]=t);if(tn)for(r=rn.length-1;r>=0;)Xs(t=rn[r],e)&&!nn(s,t)&&(s[s.length]=t),r-=1;return s})):qs((function(e){return Object(e)!==e?[]:Object.keys(e)}));const an=on;const cn=qs((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ln(e,t,r,s){var n=Ws(e);function i(e,t){return un(e,t,r.slice(),s.slice())}return!Ys((function(e,t){return!Ys(i,t,e)}),Ws(t),n)}function un(e,t,r,s){if(Zs(e,t))return!0;var n,i,o=cn(e);if(o!==cn(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"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Zs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Zs(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=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&ln(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&ln(e.values(),t.values(),r.concat([e]),s.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=an(e);if(c.length!==an(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!Xs(p,t)||!un(t[p],e[p],l,u))return!1;a-=1}return!0}const pn=Bs((function(e,t){return un(e,t,[],[])}));function hn(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)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(pn(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function dn(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function fn(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 mn=function(e){return(e<10?"0":"")+e};const yn="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+mn(e.getUTCMonth()+1)+"-"+mn(e.getUTCDate())+"T"+mn(e.getUTCHours())+":"+mn(e.getUTCMinutes())+":"+mn(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function gn(e){return function(){return!e.apply(this,arguments)}}function vn(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const bn=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function xn(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!bn(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function wn(e){return"[object Object]"===Object.prototype.toString.call(e)}const En=function(){return this.xf["@@transducer/init"]()},jn=function(e){return this.xf["@@transducer/result"](e)};var On=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=En,e.prototype["@@transducer/result"]=jn,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Sn(e){return function(t){return new On(e,t)}}const Pn=Bs(xn(["fantasy-land/filter","filter"],Sn,(function(e,t){return wn(t)?vn((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},an(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const An=Bs((function(e,t){return Pn(gn(e),t)}));function $n(e,t){var r=function(r){var s=t.concat([e]);return hn(r,s)?"<Circular>":$n(r,s)},s=function(e,t){return dn((function(t){return fn(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+dn(r,e).join(", ")+"))";case"[object Array]":return"["+dn(r,e).concat(s(e,An((function(e){return/^\d+$/.test(e)}),an(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):fn(yn(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())+")":fn(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,an(e)).join(", ")+"}"}}const Tn=qs((function(e){return $n(e,[])}));var kn=Bs((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 "+Tn(e));var r;return Ks(e).test(t)}));const _n=kn;function Cn(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,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,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 Mn(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const In=qs((function(e){return!!bn(e)||!!e&&("object"==typeof e&&(!Hs(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Fn="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Rn(e,t,r){return function(s,n,i){if(In(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[Fn])return r(s,n,i[Fn]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Dn(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const Nn=Bs((function(e,t){return Cn(e.length,(function(){return e.apply(t,arguments)}))}));function Ln(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function qn(e,t,r,s){return e["@@transducer/result"](r[s](Nn(e["@@transducer/step"],e),t))}const Bn=Rn(Dn,qn,Ln);var Un=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}();function Vn(e){return new Un(e)}const Hn=Us((function(e,t,r){return Bn("function"==typeof e?Vn(e):e,t,r)}));function zn(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return bn(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const Gn=Us(zn("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Jn=qs(zn("tail",Gn(1,1/0)));function Kn(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Cn(arguments[0].length,Hn(Mn,arguments[0],Jn(arguments)))}const Wn=Bs((function(e,t){return null==t||t!=t?e:t}));const Yn=Bs((function(e,t){if(null!=t)return Vs(e)?zs(e,t):t[e]}));const Xn=Us((function(e,t,r){return Wn(e,Yn(t,r))}));const Zn=qs((function(e){return zs(-1,e)}));function Qn(e,t,r){return function(){for(var s=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var c;o<t.length&&(!Ls(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,Ls(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):Cn(Math.max(0,i),Qn(e,s,r))}}const ei=Bs((function(e,t){return 1===e?qs(t):Cn(e,Qn(e,[],t))}));const ti=qs((function(e){return ei(e.length,e)}));function ri(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const si=Bs((function(e,t){return ei(e+1,(function(){var r=arguments[e];if(null!=r&&ri(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Tn(r)+' does not have a method named "'+t+'"')}))}));const ni=si(1,"split");function ii(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Gn(0,r+1,t)}var oi=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=En,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Bn(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function ai(e){return function(t){return new oi(e,t)}}const ci=Bs(xn([],ai,ii));const li=si(1,"join");const ui=qs((function(e){return ei(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(Bs(hn));const pi=ti((function(e,t){return Kn(ni(""),ci(ui(e)),li(""))(t)}));function hi(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function di(e,t,r,s){return r[s](e,t)}const fi=Rn(vn,di,hi);var mi=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=En,e.prototype["@@transducer/result"]=jn,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const yi=Bs(xn(["fantasy-land/map","map"],(function(e){return function(t){return new mi(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return ei(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return vn((function(r,s){return r[s]=e(t[s]),r}),{},an(t));default:return dn(e,t)}})));const gi=Bs((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))}:fi((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,yi(r,t))}),[],e)}));const vi=Bs((function(e,t){var r=ei(e,t);return ei(e,(function(){return vn(gi,yi(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const bi=qs((function(e){return vi(e.length,e)}));const xi=bi(qs((function(e){return!e})));const wi=qs((function(e){return function(){return e}}));const Ei=wi(void 0);const ji=pn(Ei());const Oi=xi(ji);const Si=Bs((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Tn(e),o=r(i,Tn(t));return void 0!==o&&o===i?e:t}));const Pi=Bs((function(e,t){return yi(Yn(e),t)}));const Ai=qs((function(e){return ei(Hn(Si,0,Pi("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var $i=function(e,t){switch(arguments.length){case 0:return $i;case 1:return function t(r){return 0===arguments.length?t:Zs(e,r)};default:return Zs(e,t)}};const Ti=$i;const ki=ei(1,Kn(cn,Ti("GeneratorFunction")));const _i=ei(1,Kn(cn,Ti("AsyncFunction")));const Ci=Ai([Kn(cn,Ti("Function")),ki,_i]);var Mi=Us((function(e,t,r){return r.replace(e,t)}));const Ii=Mi;const Fi=ei(1,Kn(cn,Ti("RegExp")));const Ri=Us((function(e,t,r){return e(r)?t(r):r}));const Di=ei(1,Kn(cn,Ti("String")));const Ni=Ri(Di,Ii(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var Li=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const qi=function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),Li(r,"str"),Li(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var s=new RegExp(Fi(e)?e:Ni(e),"g");return Ii(s,t,r)};var Bi=ei(3,qi),Ui=si(2,"replaceAll");const Vi=Ci(String.prototype.replaceAll)?Ui:Bi,Hi=()=>Js(_n(/^win/),["platform"],Ns),zi=e=>{try{const t=new URL(e);return pi(":",t.protocol)}catch{return}},Gi=(Kn(zi,Oi),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Ji=e=>{if(Ns.browser)return!1;const t=zi(e);return ji(t)||"file"===t||/^[a-zA-Z]$/.test(t)},Ki=e=>{const t=zi(e);return"http"===t||"https"===t},Wi=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=Xn(!1,"keepFileProtocol",t),n=Xn(Hi,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substring(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substring(8):i.substring(7),n()&&"/"===i[1]&&(i=`${i[0]}:${i.substring(1)}`),s?i=`file:///${i}`:(o=!1,i=n()?i:`/${i}`)),n()&&!o&&(i=Vi("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},Yi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},Xi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Zi=()=>{if(Ns.browser)return Xi(globalThis.location.href);const e=Ns.cwd(),t=Zn(e);return["/","\\"].includes(t)?e:e+(Hi()?"\\":"/")},Qi=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:s}=r;return e+t+s}return r.toString()},eo=e=>{if(Ji(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;Hi()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(Wi(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},to=e=>Ji(e)?Wi(e):decodeURI(e);function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}function so(e,t){for(var r=0;r<t.length;r++){var s=t[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function no(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function io(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var s,n,i=[],o=!0,a=!1;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!t||i.length!==t);o=!0);}catch(e){a=!0,n=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw n}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ro(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(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ro(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oo(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var ao=function(e){throw TypeError(e)},co=function(e,t,r){return t.has(e)||ao("Cannot "+r)},lo=function(e,t,r){return co(e,t,"read from private field"),r?r.call(e):t.get(e)},uo=function(e,t,r){return t.has(e)?ao("Cannot add the same private member more than once"):no(t,WeakSet)?t.add(e):t.set(e,r)},po=function(e,t,r,s){return co(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},ho=function(e){return Object.prototype.toString.call(e)},fo=function(e){return ArrayBuffer.isView(e)&&!no(e,DataView)},mo=function(e){return"[object Date]"===ho(e)},yo=function(e){return"[object RegExp]"===ho(e)},go=function(e){return"[object Error]"===ho(e)},vo=function(e){return"[object Boolean]"===ho(e)},bo=function(e){return"[object Number]"===ho(e)},xo=function(e){return"[object String]"===ho(e)},wo=Array.isArray,Eo=Object.getOwnPropertyDescriptor,jo=Object.prototype.propertyIsEnumerable,Oo=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty;function Po(e){for(var t=Object.keys(e),r=Oo(e),s=0;s<r.length;s++)jo.call(e,r[s])&&t.push(r[s]);return t}function Ao(e,t){var r;return!(null===(r=Eo(e,t))||void 0===r?void 0:r.writable)}function $o(e,t){if("object"===(void 0===e?"undefined":oo(e))&&null!==e){var r;if(wo(e))r=[];else if(mo(e))r=new Date(e.getTime?e.getTime():e);else if(yo(e))r=new RegExp(e);else if(go(e))r={message:e.message};else if(vo(e)||bo(e)||xo(e))r=Object(e);else{if(fo(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?Po:Object.keys,n=!0,i=!1,o=void 0;try{for(var a,c=s(e)[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var l=a.value;r[l]=e[l]}}catch(e){i=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}return e}var To,ko,_o={includeSymbols:!1,immutable:!1};function Co(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_o,s=[],n=[],i=!0,o=r.includeSymbols?Po:Object.keys,a=!!r.immutable;return function e(c){var l=a?$o(c,r):c,u={},p=!0,h={node:l,node_:c,path:[].concat(s),parent:n[n.length-1],parents:n,key:s[s.length-1],isRoot:0===s.length,level:s.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.isRoot||(h.parent.node[h.key]=e),h.node=e,t&&(p=!1)},delete:function(e){delete h.parent.node[h.key],e&&(p=!1)},remove:function(e){wo(h.parent.node)?h.parent.node.splice(h.key,1):delete h.parent.node[h.key],e&&(p=!1)},keys:null,before:function(e){u.before=e},after:function(e){u.after=e},pre:function(e){u.pre=e},post:function(e){u.post=e},stop:function(){i=!1},block:function(){p=!1}};if(!i)return h;function d(){if("object"===oo(h.node)&&null!==h.node){h.keys&&h.node_===h.node||(h.keys=o(h.node)),h.isLeaf=0===h.keys.length;for(var e=0;e<n.length;e++)if(n[e].node_===c){h.circular=n[e];break}}else h.isLeaf=!0,h.keys=null;h.notLeaf=!h.isLeaf,h.notRoot=!h.isRoot}d();var f=t.call(h,h.node);if(void 0!==f&&h.update&&h.update(f),u.before&&u.before.call(h,h.node),!p)return h;if("object"===oo(h.node)&&null!==h.node&&!h.circular){var m;n.push(h),d();var y=!0,g=!1,v=void 0;try{for(var b,x=Object.entries(null!==(m=h.keys)&&void 0!==m?m:[])[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var w,E=io(b.value,2),j=E[0],O=E[1];s.push(O),u.pre&&u.pre.call(h,h.node[O],O);var S=e(h.node[O]);a&&So.call(h.node,O)&&!Ao(h.node,O)&&(h.node[O]=S.node),S.isLast=!!(null===(w=h.keys)||void 0===w?void 0:w.length)&&+j==h.keys.length-1,S.isFirst=0==+j,u.post&&u.post.call(h,S),s.pop()}}catch(e){g=!0,v=e}finally{try{y||null==x.return||x.return()}finally{if(g)throw v}}n.pop()}return u.after&&u.after.call(h,h.node),h}(e).node}var Mo=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),uo(this,To),uo(this,ko),po(this,To,t),po(this,ko,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=lo(this,To),r=0;t&&r<e.length;r++){var s=e[r];if(!So.call(t,s)||!lo(this,ko).includeSymbols&&"symbol"===(void 0===s?"undefined":oo(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=lo(this,To),r=0;t&&r<e.length;r++){var s=e[r];if(!So.call(t,s)||!lo(this,ko).includeSymbols&&"symbol"===(void 0===s?"undefined":oo(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=lo(this,To),s=0;for(s=0;s<e.length-1;s++){var n=e[s];So.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return Co(lo(this,To),e,{immutable:!0,includeSymbols:!!lo(this,ko).includeSymbols})}},{key:"forEach",value:function(e){return po(this,To,Co(lo(this,To),e,lo(this,ko))),lo(this,To)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?lo(this,To):t;return this.forEach((function(t){this.isRoot&&r||(s=e.call(this,s,t))})),s}},{key:"paths",value:function(){var e=[];return this.forEach((function(){e.push(this.path)})),e}},{key:"nodes",value:function(){var e=[];return this.forEach((function(){e.push(this.node)})),e}},{key:"clone",value:function(){var e=[],t=[],r=lo(this,ko);return fo(lo(this,To))?lo(this,To).slice():function s(n){for(var i=0;i<e.length;i++)if(e[i]===n)return t[i];if("object"===(void 0===n?"undefined":oo(n))&&null!==n){var o=$o(n,r);e.push(n),t.push(o);var a=r.includeSymbols?Po:Object.keys,c=!0,l=!1,u=void 0;try{for(var p,h=a(n)[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var d=p.value;o[d]=s(n[d])}}catch(e){l=!0,u=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw u}}return e.pop(),t.pop(),o}return n}(lo(this,To))}}],r&&so(t.prototype,r),s&&so(t,s),e}();To=new WeakMap,ko=new WeakMap;var Io=function(e,t){return new Mo(e,t)};Io.get=function(e,t,r){return new Mo(e,r).get(t)},Io.set=function(e,t,r,s){return new Mo(e,s).set(t,r)},Io.has=function(e,t,r){return new Mo(e,r).has(t)},Io.map=function(e,t,r){return new Mo(e,r).map(t)},Io.forEach=function(e,t,r){return new Mo(e,r).forEach(t)},Io.reduce=function(e,t,r,s){return new Mo(e,s).reduce(t,r)},Io.paths=function(e,t){return new Mo(e,t).paths()},Io.nodes=function(e,t){return new Mo(e,t).nodes()},Io.clone=function(e,t){return new Mo(e,t).clone()};var Fo=Io;const Ro=["properties"],Do=["properties"],No=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Lo=["schema/example","items/example"];function qo(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return Ro.indexOf(t)>-1&&-1===Do.indexOf(r)||No.indexOf(s)>-1||Lo.some((e=>s.indexOf(e)>-1))}function Bo(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(Ki(n))o=Qi(n,i);else{const e=Qi(p,n),t=Qi(e,i).replace(p,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const Uo=/^([a-z]+:\/\/|\/\/)/i;class Vo extends Ds{}const Ho={},zo=new WeakMap,Go=[e=>"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4],e=>"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5],e=>"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6],e=>"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]],Jo={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(qo(i)||(e=>Go.some((t=>t(e))))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new Vo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=Zo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?Yo(c,o):null}catch(t){return Xo(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=zo.get(s);n||(n={},zo.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(na).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=s.contextTree.get([]).baseDoc;if(t===c&&oa(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${na(e)}`,n[l]&&n[l].some((e=>oa(e,o)||oa(o,e))))));if(u)return!0;return void(n[a]=(n[a]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=Bo(e,u);return e===t?null:gs.replace(r,t)}if(null==u?(h=ra(l),p=s.get(h),void 0===p&&(p=new Vo(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=Qo(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw Xo(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[gs.remove(r),p];const d=Bo(e,u),f=gs.replace(i,p,{$$ref:d});if(u&&u!==o)return[f,gs.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),s(t.value);function s(e){return gs.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>s(e[t]))))}}(s.state,f)||n.useCircularStructures)return f}catch(e){return null}}},Ko=Object.assign(Jo,{docCache:Ho,absoluteify:Yo,clearCache:function(e){void 0!==e?delete Ho[e]:Object.keys(Ho).forEach((e=>{delete Ho[e]}))},JSONRefError:Vo,wrapError:Xo,getDoc:ea,split:Zo,extractFromDoc:Qo,fetchJSON:function(e){return fetch(e,{headers:{Accept:u},loadSpec:!0}).then((e=>e.text())).then((e=>kr.load(e)))},extract:ta,jsonPointerToArray:ra,unescapeJsonPointerToken:sa}),Wo=Ko;function Yo(e,t){if(!Uo.test(e)){if(!t)throw new Vo(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Qi(t,e)}return e}function Xo(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new Vo(`Could not resolve reference: ${r}`,{...t,cause:e})}function Zo(e){return(e+"").split("#")}function Qo(e,t){const r=Ho[e];if(r&&!gs.isPromise(r))try{const e=ta(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return ea(e).then((e=>ta(t,e)))}function ea(e){const t=Ho[e];return t?gs.isPromise(t)?t:Promise.resolve(t):(Ho[e]=Ko.fetchJSON(e).then((t=>(Ho[e]=t,t))),Ho[e])}function ta(e,t){const r=ra(e);if(r.length<1)return t;const s=gs.getIn(t,r);if(void 0===s)throw new Vo(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function ra(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a "+typeof e);return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(sa)}function sa(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function na(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const ia=e=>!e||"/"===e||"#"===e;function oa(e,t){if(ia(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const aa={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(qo(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=n.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(s.replace(i,{})),e.forEach(((e,t)=>{if(!s.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(s.mergeDeep(i,e));const n=function(e,t,{specmap:r,getBaseUrlForNodePath:s=e=>r.getContext([...t,...e]).baseDoc,targetKeys:n=["$ref","$$ref"]}={}){const i=[];return Fo(e).forEach((function(){if(n.includes(this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=Bo(this.node,s(e));i.push(r.replace(n,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>s.getContext([...r,t,...e]).baseDoc,specmap:s});c.push(...n)})),a.example&&c.push(s.remove([].concat(i,"example"))),c.push(s.mergeDeep(i,a)),a.$$ref||c.push(s.remove([].concat(i,"$$ref"))),c}},ca={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...gs.getIn(s.spec,n)};for(let n=0;n<e.length;n+=1){const o=e[n];try{t[n].default=s.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return gs.replace(r,t)}return gs.replace(r,e)}},la={key:"properties",plugin:(e,t,r,s)=>{const n={...e};for(const t in e)try{n[t].default=s.modelPropertyMacro(n[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return gs.replace(r,n)}};class ua{constructor(e){this.root=pa(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void ha(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?ha(n[s],t,r):n[s]=pa(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,s=this.root;for(let n=0;n<e.length&&(r=e[n],t=s.children,t[r]);n+=1)s=t[r];return s&&s.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:s}=e;return!s[r]&&t&&(s[r]=pa(null,e)),s[r]}),this.root)}}function pa(e,t){return ha({children:{}},e,t)}function ha(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=ha(r,r.value,e)})),e}const da=()=>{};class fa{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ua,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),gs,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(gs.isFunction),this.patches.push(gs.add([],this.spec)),this.patches.push(gs.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){"verbose"===this.debugLevel&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let s,n=null;return e[this.pluginProp]?(n=e,s=e[this.pluginProp]):gs.isFunction(e)?s=e:gs.isObject(e)&&(s=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(s,n){const i={};for(const[e,t]of s.filter(gs.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(s,a,c){if(gs.isObject(s)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,d=n.allowMetaPatches&&i[s.$$ref];for(const l of Object.keys(s)){const u=s[l],p=a.concat(l),f=gs.isObject(u),m=s.$$ref;if(d||f&&(n.allowMetaPatches&&m&&(i[m]=!0),yield*o(u,p,c)),!h&&l===e.key){const s=t(r,a);r&&!s||(yield e.plugin(u,l,p,n,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(s,e.key,a,n))}}}(e)),Object.assign(s.bind(n),{pluginName:e.name||t,isGenerator:gs.isGenerator(s)})}nextPlugin(){return this.wrappedPlugins.find((e=>this.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){const t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}updatePluginHistory(e,t){const r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){gs.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!gs.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),gs.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(gs.isContextPatch(e))return void this.setContext(e.path,e.value);gs.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=gs.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return gs.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(da,da)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const s=e.getCurrentMutations(),n=e.mutations.length-1;try{if(t.isGenerator)for(const n of t(s,e.getLib()))r(n);else{r(t(s,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:n})}return e.dispatch()}();function r(r){r&&(r=gs.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const ma={refs:Wo,allOf:aa,parameters:ca,properties:la};async function ya(e){const{spec:t,mode:r,allowMetaPatches:s=!0,pathDiscriminator:n,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:p}=e,h=Rr(e),d=Dr(e),f=p.find((e=>e.match(t)));return async function(e){h&&(ma.refs.docCache[h]=e);ma.refs.fetchJSON=Fr(d,{requestInterceptor:a,responseInterceptor:c});const t=[ma.refs];"function"==typeof o&&t.push(ma.parameters);"function"==typeof i&&t.push(ma.properties);"strict"!==r&&t.push(ma.allOf);const p=await(m={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new fa(m).dispatch());var m;l||(p.spec=f.normalize(p.spec));return p}(t)}const ga=e=>e.replace(/\W/gi,"_");function va(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?ga(e.operationId):function(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${ga(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function ba(e){const{spec:t}=e,{paths:r}=t,s={};if(!r||t.$$normalized)return e;for(const e in r){const n=r[e];if(null==n||!["object","function"].includes(typeof n))continue;const i=n.parameters;for(const r in n){const o=n[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=va(o,e,r);if(a){s[a]?s[a].push(o):s[a]=[o];const e=s[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const s in t)"produces"!==s&&"consumes"!==s&&"security"!==s||(r[s]=t[s],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(o[e]){if("parameters"===e)for(const r of t[e]){o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const xa={name:"generic",match:()=>!0,normalize(e){const{spec:t}=ba({spec:e});return t},resolve:async e=>ya(e)};const wa=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},Ea=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},ja=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Oa=e=>Ea(e)||ja(e),Sa={name:"openapi-2",match:e=>wa(e),normalize(e){const{spec:t}=ba({spec:e});return t},resolve:async e=>async function(e){return ya(e)}(e)};const Pa={name:"openapi-3-0",match:e=>Ea(e),normalize(e){const{spec:t}=ba({spec:e});return t},resolve:async e=>async function(e){return ya(e)}(e)},Aa=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=Rr(e),i=Dr(e),o=t||await Fr(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),$a=Aa({strategies:[Pa,Sa,xa]}),Ta=e=>async(t,r,s={})=>(async(e,t,r={})=>{const{returnEntireTree:s,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:n,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((t=>t.match(e))).normalize(e),d=await $a({spec:h,...p,allowMetaPatches:!0,skipNormalization:!ja(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...s});Ta({strategies:[Pa,Sa,xa]});const ka=Bs((function(e,t){return e&&t}));const _a=Bs((function(e,t){return ri(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:bi(ka)(e,t)}));const Ca=pn(null);const Ma=xi(Ca);function Ia(e){return Ia="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},Ia(e)}const Fa=function(e){return"object"===Ia(e)};const Ra=ei(1,_a(Ma,Fa));var Da=Kn(cn,Ti("Object")),Na=Kn(Tn,pn(Tn(Object))),La=Js(_a(Ci,Na),["constructor"]);const qa=ei(1,(function(e){if(!Ra(e)||!Da(e))return!1;var t=Object.getPrototypeOf(e);return!!Ca(t)||La(t)}));var Ba=r(4035);function Ua(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Va=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=En,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=Ua(this.xf["@@transducer/step"](e,!1))),e},e}();function Ha(e){return function(t){return new Va(e,t)}}const za=Bs(xn(["all"],Ha,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class Ga extends Ba.Om{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 Ja=Ga;class Ka extends Ba.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Wa=Ka;class Ya extends Ba.wE{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(ji(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Xa=Ya;class Za extends Ba.wE{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(void 0===e)return;const t=new Ba.wE([e.start.row,e.start.column,e.start.char]),r=new Ba.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Qa=Za,ec=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],tc=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,rc=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),sc=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Ba.wE)&&t.classes.includes(e),nc=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ic=e=>e({hasMethod:ec,hasBasicElementProps:tc,primitiveEq:rc,isElementType:nc,hasClass:sc}),oc=ic((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ba.Hg||e(r)&&t(void 0,r))),ac=ic((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ba.Om||e(r)&&t("string",r))),cc=ic((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ba.kT||e(r)&&t("number",r))),lc=ic((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ba.Os||e(r)&&t("null",r))),uc=ic((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ba.bd||e(r)&&t("boolean",r))),pc=ic((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Ba.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),hc=ic((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Ba.wE&&!(s instanceof Ba.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),dc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ba.Pr||e(s)&&t("member",s)&&r(void 0,s))),fc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ba.Ft||e(s)&&t("link",s)&&r(void 0,s))),mc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ba.sI||e(s)&&t("ref",s)&&r(void 0,s))),yc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ja||e(s)&&t("annotation",s)&&r("array",s))),gc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wa||e(s)&&t("comment",s)&&r("string",s))),vc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xa||e(s)&&t("parseResult",s)&&r("array",s))),bc=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qa||e(s)&&t("sourceMap",s)&&r("array",s))),xc=e=>nc("object",e)||nc("array",e)||nc("boolean",e)||nc("number",e)||nc("string",e)||nc("null",e)||nc("member",e),wc=e=>bc(e.meta.get("sourceMap")),Ec=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!hc(r)&&za(ui(r.toValue()),e)},jc=(e,t)=>0===e.length||za(ui(t.classes.toValue()),e);const Oc=function(){return!0};const Sc=function(){return!1},Pc=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},Ac={},$c=e=>null==e?void 0:e.type,Tc=e=>"string"==typeof $c(e),kc=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),_c=(e,{visitFnGetter:t=Pc,nodeTypeGetter:r=$c,breakSymbol:s=Ac,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,p,h,d,f){let m=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=a.call(e[l],m,u,p,h,d,g);if("function"==typeof(null==t?void 0:t.then))throw new Ds("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=m;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;m=t,y=!0}}}}return y?m:void 0},leave(n,o,l,u,p,h){let d=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=a.call(e[n],d,o,l,u,p,f);if("function"==typeof(null==t?void 0:t.then))throw new Ds("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};_c[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Pc,nodeTypeGetter:r=$c,breakSymbol:s=Ac,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,p,h,d,f){let m=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=await a.call(e[l],m,u,p,h,d,g);if(t===i)c[l]=m;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;m=t,y=!0}}}}return y?m:void 0},async leave(n,o,l,u,p,h){let d=n;const f={...h,replaceWith(e,t){h.replaceWith(e,t),d=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],r(d),!0);if("function"==typeof a){const t=await a.call(e[n],d,o,l,u,p,f);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};const Cc=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Ac,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Pc,nodeTypeGetter:c=$c,nodePredicate:l=Tc,nodeCloneFn:u=kc,detectCycles:p=!0}={})=>{const h=r||{};let d,f,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],w=[];do{g+=1;const e=g===y.length;let r;const O=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=f,f=w.pop(),O)if(m){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=d.index,y=d.keys,v=d.edits,m=d.inArray,d=d.prev}else if(f!==i&&void 0!==f){if(r=m?g:y[g],b=f[r],b===i||void 0===b)continue;x.push(r)}let S;if(!Array.isArray(b)){var E;if(!l(b))throw new Ds(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,f,x,w):f&&(f[r]=t),e||(b=t)}};S=i.call(t,b,r,f,x,w,n)}if("function"==typeof(null===(E=S)||void 0===E?void 0:E.then))throw new Ds("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===n)break;if(S===o){if(!e){x.pop();continue}}else if(void 0!==S&&(v.push([r,S]),!e)){if(!l(S)){x.pop();continue}b=S}}var j;if(void 0===S&&O&&v.push([r,b]),!e)d={inArray:m,index:g,keys:y,edits:v,prev:d},m=Array.isArray(b),y=m?b:null!==(j=h[c(b)])&&void 0!==j?j:[],g=-1,v=[],f!==i&&void 0!==f&&w.push(f),f=b}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};Cc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Ac,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Pc,nodeTypeGetter:c=$c,nodePredicate:l=Tc,nodeCloneFn:u=kc,detectCycles:p=!0}={})=>{const h=r||{};let d,f,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],w=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=f,f=w.pop(),j)if(m){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=d.index,y=d.keys,v=d.edits,m=d.inArray,d=d.prev}else if(f!==i&&void 0!==f){if(r=m?g:y[g],b=f[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new Ds(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,f,x,w):f&&(f[r]=t),e||(b=t)}};O=await i.call(t,b,r,f,x,w,n)}if(O===n)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var E;if(void 0===O&&j&&v.push([r,b]),!e)d={inArray:m,index:g,keys:y,edits:v,prev:d},m=Array.isArray(b),y=m?b:null!==(E=h[c(b)])&&void 0!==E?E:[],g=-1,v=[],f!==i&&void 0!==f&&w.push(f),f=b}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};const Mc=class extends Ds{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ic=class extends Mc{};const Fc=class extends Mc{},Rc=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Ba.KeyValuePair){const{key:t,value:n}=e,i=oc(t)?Rc(t,s):t,o=oc(n)?Rc(n,s):n,a=new Ba.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Ba.ot){const t=e=>Rc(e,s),n=[...e].map(t),i=new Ba.ot(n);return r.set(e,i),i}if(e instanceof Ba.G6){const t=e=>Rc(e,s),n=[...e].map(t),i=new Ba.G6(n);return r.set(e,i),i}if(oc(e)){const t=Lc(e);if(r.set(e,t),e.content)if(oc(e.content))t.content=Rc(e.content,s);else if(e.content instanceof Ba.KeyValuePair)t.content=Rc(e.content,s);else if(Array.isArray(e.content)){const r=e=>Rc(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Ic("Value provided to cloneDeep function couldn't be cloned",{value:e})};Rc.safe=e=>{try{return Rc(e)}catch{return e}};const Dc=e=>{const{key:t,value:r}=e;return new Ba.KeyValuePair(t,r)},Nc=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Rc(e.meta)),e.attributes.length>0&&(t._attributes=Rc(e.attributes)),oc(e.content)){const r=e.content;t.content=Nc(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Ba.KeyValuePair?t.content=Dc(e.content):t.content=e.content;return t},Lc=e=>{if(e instanceof Ba.KeyValuePair)return Dc(e);if(e instanceof Ba.ot)return(e=>{const t=[...e];return new Ba.ot(t)})(e);if(e instanceof Ba.G6)return(e=>{const t=[...e];return new Ba.G6(t)})(e);if(oc(e))return Nc(e);throw new Fc("Value provided to cloneShallow function couldn't be cloned",{value:e})};Lc.safe=e=>{try{return Lc(e)}catch{return e}};const qc=e=>pc(e)?"ObjectElement":hc(e)?"ArrayElement":dc(e)?"MemberElement":ac(e)?"StringElement":uc(e)?"BooleanElement":cc(e)?"NumberElement":lc(e)?"NullElement":fc(e)?"LinkElement":mc(e)?"RefElement":void 0,Bc=e=>oc(e)?Lc(e):kc(e),Uc=Kn(qc,Di),Vc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Hc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Sc,returnOnTrue:t,returnOnFalse:r}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const zc=(e,t,{keyMap:r=Vc,...s}={})=>Cc(e,t,{keyMap:r,nodeTypeGetter:qc,nodePredicate:Uc,nodeCloneFn:Bc,...s});zc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Vc,...s}={})=>Cc[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:qc,nodePredicate:Uc,nodeCloneFn:Bc,...s});const Gc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:qc(e),Jc={EphemeralObject:["content"],EphemeralArray:["content"],...Vc},Kc=(e,t,{keyMap:r=Jc,...s}={})=>zc(e,t,{keyMap:r,nodeTypeGetter:Gc,nodePredicate:Oc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Kc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Jc,...r}={})=>zc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Gc,nodePredicate:Oc,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Wc=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 Yc=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))}};class Xc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Yc(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Wc(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ac(e.href)?e.href.toValue():""}}const Zc=e=>oc(e)?ac(e)||cc(e)||uc(e)||lc(e)?e.toValue():Kc(e,new Xc):e;const Qc=Us((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})Xs(s,t)&&(n[s]=Xs(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)Xs(s,r)&&!Xs(s,n)&&(n[s]=r[s]);return n}));const el=Us((function e(t,r,s){return Qc((function(r,s,n){return wn(s)&&wn(n)?e(t,s,n):t(r,s,n)}),r,s)}));const tl=Bs((function(e,t){return el((function(e,t,r){return r}),e,t)}));const rl=Bs(Gs);const sl=Gn(0,-1);const nl=Bs((function(e,t){return e.apply(this,t)}));const il=xi(Ci);var ol=qs((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():bn(e)?[]:Hs(e)?"":wn(e)?{}:en(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 al=ol;const cl=qs((function(e){return null!=e&&pn(e,al(e))}));const ll=ei(1,Ci(Array.isArray)?Array.isArray:Kn(cn,Ti("Array")));const ul=_a(ll,cl);var pl=ei(3,(function(e,t,r){var s=rl(e,r),n=rl(sl(e),r);if(!il(s)&&!ul(e)){var i=Nn(s,n);return nl(i,t)}}));const hl=pl;class dl extends Ba.g${constructor(){super(),this.register("annotation",Ja),this.register("comment",Wa),this.register("parseResult",Xa),this.register("sourceMap",Qa)}}const fl=new dl,ml=e=>{const t=new dl;return qa(e)&&t.use(e),t},yl=fl,gl=()=>({predicates:{...i},namespace:yl}),vl={toolboxCreator:gl,visitorOptions:{nodeTypeGetter:qc,exposeEdits:!0}},bl=(e,t,r={})=>{if(0===t.length)return e;const s=tl(vl,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=_c(a.map(Xn({},"visitor")),{...i});a.forEach(hl(["pre"],[]));const l=zc(e,c,i);return a.forEach(hl(["post"],[])),l};bl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=tl(vl,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=_c[Symbol.for("nodejs.util.promisify.custom")],l=zc[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(Xn({},"visitor")),{...i});await Promise.allSettled(a.map(hl(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(hl(["post"],[]))),p};const xl=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return oc(e)&&(e.meta.length>0&&(s.meta=Rc(e.meta)),e.attributes.length>0&&(s.attributes=Rc(e.attributes))),bl(s,r,{toolboxCreator:gl,visitorOptions:{nodeTypeGetter:qc}})},wl=e=>(t,r={})=>xl(t,{...r,Type:e});Ba.Sh.refract=wl(Ba.Sh),Ba.wE.refract=wl(Ba.wE),Ba.Om.refract=wl(Ba.Om),Ba.bd.refract=wl(Ba.bd),Ba.Os.refract=wl(Ba.Os),Ba.kT.refract=wl(Ba.kT),Ba.Ft.refract=wl(Ba.Ft),Ba.sI.refract=wl(Ba.sI),Ja.refract=wl(Ja),Wa.refract=wl(Wa),Xa.refract=wl(Xa),Qa.refract=wl(Qa);const El=(e,t=new WeakMap)=>(dc(e)?(t.set(e.key,e),El(e.key,t),t.set(e.value,e),El(e.value,t)):e.children.forEach((r=>{t.set(r,e),El(r,t)})),t);const jl=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=null!==(r=this.edges)&&void 0!==r?r:El(this.element);const s=this.edges.get(e);return ji(s)?void 0:(pc(s)?((e,t,r)=>{const s=r.get(e);pc(s)&&(s.content=s.map(((n,i,o)=>o===e?(r.delete(e),r.set(t,s),t):o)))})(e,t,this.edges):hc(s)?((e,t,r)=>{const s=r.get(e);hc(s)&&(s.content=s.map((n=>n===e?(r.delete(e),r.set(t,s),t):n)))})(e,t,this.edges):dc(s)&&((e,t,r)=>{const s=r.get(e);dc(s)&&(s.key===e&&(s.key=t,r.delete(e),r.set(t,s)),s.value===e&&(s.value=t,r.delete(e),r.set(t,s)))})(e,t,this.edges),this.element)}},Ol=Kn(Ii(/~/g,"~0"),Ii(/\//g,"~1"),encodeURIComponent);const Sl=class extends Ds{};const Pl=class extends Sl{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Al=e=>{try{return 0===e.length?"":`/${e.map(Ol).join("/")}`}catch(t){throw new Pl("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var $l=Bs((function(e,t){return ei(Hn(Si,0,Pi("length",t)),(function(){var r=arguments,s=this;return e.apply(s,dn((function(e){return e.apply(s,r)}),t))}))}));const Tl=$l;function kl(e){return e}const _l=qs(kl);var Cl=_a(ei(1,Kn(cn,Ti("Number"))),isFinite);var Ml=ei(1,Cl);var Il=_a(Ci(Number.isFinite)?ei(1,Nn(Number.isFinite,Number)):Ml,Tl(pn,[Math.floor,_l]));var Fl=ei(1,Il);const Rl=Ci(Number.isInteger)?ei(1,Nn(Number.isInteger,Number)):Fl;var Dl=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=En,e.prototype["@@transducer/result"]=jn,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?Ua(r):r},e}();function Nl(e){return function(t){return new Dl(e,t)}}const Ll=Bs(xn(["take"],Nl,(function(e,t){return Gn(0,e<0?1/0:e,t)})));const ql=Bs((function(e,t){return pn(Ll(e.length,t),e)}));const Bl=pn("");var Ul=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=En,e.prototype["@@transducer/result"]=jn,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 Vl(e){return function(t){return new Ul(e,t)}}const Hl=Bs(xn(["dropWhile"],Vl,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return Gn(r,1/0,t)})));const zl=ti((function(e,t){return Kn(ni(""),Hl(ui(e)),li(""))(t)})),Gl=Kn(Ii(/~1/g,"/"),Ii(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const Jl=class extends Sl{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},Kl=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return zl("#",t)},Wl=e=>{if(Bl(e))return[];if(!ql("/",e))throw new Jl(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Kn(ni("/"),yi(Gl))(e);return Jn(t)}catch(t){throw new Jl(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const Yl=class extends Sl{pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},Xl=(e,t)=>{let r;try{r=Wl(e)}catch(r){throw new Yl(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Rc(t),cause:r})}return r.reduce(((t,s,n)=>{if(pc(t)){if(!t.hasKey(s))throw new Yl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Rc(t)});return t.get(s)}if(hc(t)){if(!(s in t.content)||!Rl(Number(s)))throw new Yl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Rc(t)});return t.get(Number(s))}throw new Yl(`JSON Pointer evaluation failed while evaluating token "${s}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Rc(t)})}),t)};class Zl extends Ba.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ql=Zl;class eu extends Ba.Sh{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 tu=eu;class ru extends Ba.Sh{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 su=ru;class nu extends Ba.Sh{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 iu=nu;class ou extends Ba.Sh{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 au=ou;class cu extends Ba.Sh{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 lu=cu;class uu extends Ba.Sh{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 pu=uu;class hu extends Ba.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ba.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ba.bd(!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(hu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const du=hu;class fu extends Ba.Sh{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 mu=fu;class yu extends Ba.Sh{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 gu=yu;class vu extends Ba.Sh{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 ac(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):ac(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 bu=vu;class xu extends Ba.Sh{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 wu=xu;class Eu extends Ba.Sh{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 ju=Eu;class Ou extends Ba.Sh{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 Su=Ou;class Pu extends Ba.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Au=Pu;class $u extends Ba.Sh{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 Tu=$u;class ku extends Ba.Sh{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 Ba.bd(!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 _u=ku;class Cu extends Ba.Sh{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 Ba.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ba.bd(!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(Cu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Mu=Cu;class Iu extends Ba.Sh{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 Fu=Iu;class Ru extends Ba.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Du=Ru;class Nu extends Ba.Sh{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 Lu=Nu;class qu extends Ba.Sh{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 Ba.bd(!1)}set required(e){this.set("required",e)}}const Bu=qu;class Uu extends Ba.Sh{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 Vu=Uu;class Hu extends Ba.Sh{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 zu=Hu;const Gu=class extends Rs{};class Ju extends Ba.Sh{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("$schema",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 Ku=Ju;class Wu extends Ba.Sh{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 Yu=Wu;class Xu extends Ba.Sh{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 Zu=Xu;class Qu extends Ba.Sh{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 ep=Qu;const tp=Bs((function(e,t){return vn((function(r,s){return r[s]=e(t[s],s,t),r}),{},an(t))}));const rp=qs((function(e){return null==e}));var sp=Bs((function(e,t){if(0===e.length||rp(t))return!1;for(var r=t,s=0;s<e.length;){if(rp(r)||!Xs(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const np=sp;var ip=Bs((function(e,t){return np([e],t)}));const op=ip;const ap=Us((function(e,t,r){return e(Yn(t,r))})),cp=(e,t)=>{const r=Wn(e,t);return tp((e=>{if(qa(e)&&op("$ref",e)&&ap(Di,"$ref",e)){const t=rl(["$ref"],e),s=zl("#/",t);return rl(s.split("/"),r)}return qa(e)?cp(e,r):e}),e)},lp=e=>{const t=e.meta.length>0?Rc(e.meta):void 0,r=e.attributes.length>0?Rc(e.attributes):void 0;return new e.constructor(void 0,t,r)},up=(e,t)=>t.clone&&t.isMergeableElement(e)?fp(lp(e),e,t):e,pp=e=>"function"!=typeof e.customMetaMerge?e=>Rc(e):e.customMetaMerge,hp=e=>"function"!=typeof e.customAttributesMerge?e=>Rc(e):e.customAttributesMerge,dp={clone:!0,isMergeableElement:e=>pc(e)||hc(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>up(e,r))),objectElementMerge:(e,t,r)=>{const s=pc(e)?lp(e):lp(t);return pc(e)&&e.forEach(((e,t,n)=>{const i=Lc(n);i.value=up(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=Zc(n);let a;if(pc(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=Lc(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return fp;const r=t.customMerge(e,t);return"function"==typeof r?r:fp})(n,r)(s,t)}else a=Lc(i),a.value=up(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function fp(e,t,r){var s,n,i;const o={...dp,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:dp.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:dp.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:dp.objectElementMerge;const a=hc(t);if(!(a===hc(e)))return up(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=pp(o)(e.meta,t.meta),c.attributes=hp(o)(e.attributes,t.attributes),c}fp.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Ba.Sh:e.reduce(((e,r)=>fp(e,r,t)),lp(e[0]))};const mp=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=fp(t.meta,e.meta),wc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=fp(t.attributes,e.attributes))}};const yp=class extends mp{enter(e){return this.element=Rc(e),Ac}},gp=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},vp=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:vp(r,[...t,r])},bp=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>vp(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=vp(n);for(let t of e){let e=vp(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(gp(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},xp=e=>e.filter(((t,r)=>e.indexOf(t)==r)),wp=(e,t)=>{const r=t.map((e=>vp(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},Ep=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(wp(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==wp(s,e)||void 0!==t[s],get:(r,s)=>(wp(s,e)||t)[s],set(t,r,s){const n=wp(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),jp=null,Op="copy",Sp="copy",Pp="deep",Ap=new WeakMap,$p=e=>Ap.get(e),Tp=(e,t)=>{var r,s;const n=xp([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=xp([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},kp=(e,t)=>{var r,s,n,i;return{property:Tp(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:Tp(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},_p=(e,t)=>{var r,s,n,i,o,a;return{class:xp([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:kp(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:kp(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Cp=new Map,Mp=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...vp(e.prototype).map((e=>e.constructor)),...null!==(t=$p(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>Cp.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>_p(e,t)))},Ip=e=>{let t=Cp.get(e);return t||(t={},Cp.set(e,t)),t};function Fp(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=jp;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let r of e)r.apply(this,t)},r={[i]:t};n.push(r)}function o(...t){for(const r of e)gp(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Sp?bp(n,o):(a=n,c=o,Ep([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Op?bp(e,null,["prototype"]):Ep(e,Function.prototype));let l=o;if("none"!==Pp){const n="deep"===Pp?Mp(...e):((...e)=>{const t=e.map((e=>Ip(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>_p(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Rp(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),Rp(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Ap.set(u,p),l}const Rp=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const Dp=Bs((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const Np=class extends mp{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Dp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=rl(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Js(Ci,["visitors",...e],this.specObj)?rl(["visitors",...e],this.specObj):rl(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof yp&&(null==s?void 0:s.constructor)===yp?Rc(t):(zc(t,s,r),s.element)}};const Lp=class extends Np{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(ac(s)&&r.includes(Zc(s))&&!this.ignoredFields.includes(Zc(s))){const r=this.toRefractedElement([...t,"fixedFields",Zc(s)],e),i=new Ba.Pr(Rc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Zc(s))||this.element.content.push(Rc(n))})),this.copyMetaAndAttributes(e,this.element),Ac}};class qp extends(Fp(Lp,yp)){constructor(e){super(e),this.element=new Ku,this.specPath=wi(["document","objects","JSONSchema"])}}const Bp=qp;const Up=class{parent;constructor({parent:e}){this.parent=e}},Vp=e=>pc(e)&&e.hasKey("$ref");class Hp extends(Fp(Np,Up,yp)){ObjectElement(e){const t=Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Ac}ArrayElement(e){return this.element=new Ba.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const zp=Hp;const Gp=class extends yp{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Jp=qs((function(e){return ei(Hn(Si,0,Pi("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 Kp=qs((function(e){return!cl(e)}));const Wp=Bs((function(e,t){return e||t}));var Yp=xi(ei(1,_a(Ma,Bs((function(e,t){return ri(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:bi(Wp)(e,t)}))(Fa,Ci))));const Xp=Jp([Di,Yp,Kp]);const Zp=class extends Np{specPath;ignoredFields;fieldPatternPredicate=Sc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Zc(t))&&this.fieldPatternPredicate(Zc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Ba.Pr(Rc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Zc(t))||this.element.content.push(Rc(r))})),this.copyMetaAndAttributes(e,this.element),Ac}};const Qp=class extends Zp{constructor(e){super(e),this.fieldPatternPredicate=Xp}};class eh extends(Fp(Qp,Up,yp)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const th=eh;class rh extends(Fp(Qp,Up,yp)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const sh=rh;class nh extends(Fp(Qp,Up,yp)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ih=nh;const oh=class extends yp{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ah=class extends yp{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class ch extends(Fp(Np,Up,yp)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const lh=ch;class uh extends(Fp(Np,Up,yp)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const ph=uh;class hh extends(Fp(Np,Up,yp)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const dh=hh;class fh extends(Fp(Qp,Up,yp)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Vp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const mh=fh;class yh extends(Fp(Np,Up,yp)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),Ac}}const gh=yh;class vh extends(Fp(Lp,yp)){constructor(e){super(e),this.element=new Yu,this.specPath=wi(["document","objects","JSONReference"])}ObjectElement(e){const t=Lp.prototype.ObjectElement.call(this,e);return ac(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const bh=vh;const xh=class extends yp{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const wh=Us((function(e,t,r){return ei(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Eh=qs((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var jh=Bs((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Oh=jh;const Sh=qs((function(e){return zs(0,e)}));const Ph=qs(Ua);const Ah=xi(rp);const $h=_a(ll,Kp);function Th(e){return function(e){if(Array.isArray(e))return kh(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){if("string"==typeof e)return kh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kh(e,t):void 0}}(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 kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=Array(t);r<t;r++)s[r]=e[r];return s}var _h=Kn(Oh(Eh((function(e,t){return e.length>t.length}))),Sh,Yn("length")),Ch=ti((function(e,t,r){var s=r.apply(void 0,Th(e));return Ah(s)?Ph(s):t}));const Mh=wh($h,(function(e){var t=_h(e);return ei(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return Hn(Ch(r),void 0,e)}))}),Ei);const Ih=class extends Np{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>wh(e,wi(t),Ei))),r=Mh(t)(e);return this.element=this.toRefractedElement(r,e),Ac}};const Fh=class extends Ih{constructor(e){super(e),this.alternator=[{predicate:Vp,specPath:["document","objects","JSONReference"]},{predicate:Oc,specPath:["document","objects","JSONSchema"]}]}};class Rh extends(Fp(Lp,yp)){constructor(e){super(e),this.element=new Zu,this.specPath=wi(["document","objects","Media"])}}const Dh=Rh;class Nh extends(Fp(Lp,yp)){constructor(e){super(e),this.element=new ep,this.specPath=wi(["document","objects","LinkDescription"])}}const Lh={visitors:{value:yp,JSONSchemaOrJSONReferenceVisitor:Fh,document:{objects:{JSONSchema:{$visitor:Bp,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Fh,items:zp,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Gp,properties:th,additionalProperties:Fh,patternProperties:sh,dependencies:ih,enum:oh,type:ah,allOf:lh,anyOf:ph,oneOf:dh,not:Fh,definitions:mh,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:gh,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:bh,fixedFields:{$ref:xh}},Media:{$visitor:Dh,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Nh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Fh,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Fh}}}}}},qh=e=>{if(oc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Bh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Vc},Uh=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ku||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),Vh=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yu||e(s)&&t("JSONReference",s)&&r("object",s))),Hh=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zu||e(s)&&t("media",s)&&r("object",s))),zh=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ep||e(s)&&t("linkDescription",s)&&r("object",s))),Gh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ku),t.register("jSONReference",Yu),t.register("media",Zu),t.register("linkDescription",ep),t}},Jh=()=>{const e=ml(Gh);return{predicates:{...o,isStringElement:ac},namespace:e}},Kh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Lh}={})=>{const n=(0,Ba.e)(e),i=cp(s),o=new(rl(t,i))({specObj:i});return zc(n,o),bl(o.element,r,{toolboxCreator:Jh,visitorOptions:{keyMap:Bh,nodeTypeGetter:qh}})},Wh=e=>(t,r={})=>Kh(t,{specPath:e,...r});Ku.refract=Wh(["visitors","document","objects","JSONSchema","$visitor"]),Yu.refract=Wh(["visitors","document","objects","JSONReference","$visitor"]),Zu.refract=Wh(["visitors","document","objects","Media","$visitor"]),ep.refract=Wh(["visitors","document","objects","LinkDescription","$visitor"]);const Yh=class extends Ku{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Gu("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Gu("idProp setter in Schema class is not not supported.")}get $schema(){throw new Gu("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Gu("$schema setter in Schema class is not not supported.")}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 patternProperties(){throw new Gu("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Gu("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Gu("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Gu("dependencies setter in Schema class is not not supported.")}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 definitions(){throw new Gu("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Gu("definitions setter in Schema class is not not supported.")}get base(){throw new Gu("base getter in Schema class is not not supported.")}set base(e){throw new Gu("base setter in Schema class is not not supported.")}get links(){throw new Gu("links getter in Schema class is not not supported.")}set links(e){throw new Gu("links setter in Schema class is not not supported.")}get media(){throw new Gu("media getter in Schema class is not not supported.")}set media(e){throw new Gu("media setter in Schema class is not not supported.")}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 Xh extends Ba.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Zh=Xh;class Qh extends Ba.Sh{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 ed=Qh;class td extends Ba.Sh{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 rd=td;class sd extends Ba.Sh{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 nd=sd;class id extends Ba.Sh{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 od=id;class ad extends Ba.Sh{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 cd=ad;const ld=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=fp(t.meta,e.meta),wc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=fp(t.attributes,e.attributes))}};const ud=class extends ld{enter(e){return this.element=Rc(e),Ac}};const pd=class extends ld{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Dp(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=rl(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Js(Ci,["visitors",...e],this.specObj)?rl(["visitors",...e],this.specObj):rl(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof ud&&(null==s?void 0:s.constructor)===ud?Rc(t):(zc(t,s,r),s.element)}},hd=e=>pc(e)&&e.hasKey("$ref"),dd=pc,fd=pc,md=e=>ac(e.key)&&ql("x-",Zc(e.key));const yd=class extends pd{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=md;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(ac(s)&&r.includes(Zc(s))&&!this.ignoredFields.includes(Zc(s))){const r=this.toRefractedElement([...t,"fixedFields",Zc(s)],e),i=new Ba.Pr(Rc(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(Zc(s))||this.element.content.push(Rc(n))})),this.copyMetaAndAttributes(e,this.element),Ac}};class gd extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Tu,this.specPath=wi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return yd.prototype.ObjectElement.call(this,e)}}const vd=gd;class bd extends(Fp(pd,ud)){StringElement(e){const t=new Au(Zc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ac}}const xd=bd;const wd=class extends pd{MemberElement(e){return this.element=Rc(e),this.element.classes.push("specification-extension"),Ac}};class Ed extends(Fp(yd,ud)){constructor(e){super(e),this.element=new mu,this.specPath=wi(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const jd=Ed;const Od=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Sd extends(Fp(yd,ud)){constructor(e){super(e),this.element=new su,this.specPath=wi(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Pd=Sd;class Ad extends(Fp(yd,ud)){constructor(e){super(e),this.element=new gu,this.specPath=wi(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const $d=Ad;class Td extends(Fp(yd,ud)){constructor(e){super(e),this.element=new bu,this.specPath=wi(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return(ac(this.element.operationId)||ac(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const kd=Td;const _d=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Cd=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Md=class extends pd{specPath;ignoredFields;fieldPatternPredicate=Sc;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=md;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}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(Zc(t))&&this.fieldPatternPredicate(Zc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Ba.Pr(Rc(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Zc(t))||this.element.content.push(Rc(r))})),this.copyMetaAndAttributes(e,this.element),Ac}};const Id=class extends Md{constructor(e){super(e),this.fieldPatternPredicate=Xp}};class Fd extends Ba.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Fd.primaryClass)}}const Rd=Fd;class Dd extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Rd,this.specPath=wi(["value"])}}const Nd=Dd;class Ld extends(Fp(yd,ud)){constructor(e){super(e),this.element=new rd,this.specPath=wi(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const qd=Ld;const Bd=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Ud extends Ba.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ud.primaryClass)}}const Vd=Ud;class Hd extends(Fp(pd,ud)){constructor(e){super(e),this.element=new Vd}ArrayElement(e){return e.forEach((e=>{const t=dd(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const zd=Hd;class Gd extends(Fp(yd,ud)){constructor(e){super(e),this.element=new nd,this.specPath=wi(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Jd=Gd;class Kd extends Ba.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Kd.primaryClass)}}const Wd=Kd;class Yd extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Wd,this.specPath=wi(["document","objects","ServerVariable"])}}const Xd=Yd;class Zd extends(Fp(yd,ud)){constructor(e){super(e),this.element=new wu,this.specPath=wi(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Qd=Zd;const ef=class extends pd{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>wh(e,wi(t),Ei))),r=Mh(t)(e);return this.element=this.toRefractedElement(r,e),Ac}},tf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ql||e(s)&&t("callback",s)&&r("object",s))),rf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tu||e(s)&&t("components",s)&&r("object",s))),sf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof su||e(s)&&t("contact",s)&&r("object",s))),nf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lu||e(s)&&t("example",s)&&r("object",s))),of=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pu||e(s)&&t("externalDocumentation",s)&&r("object",s))),af=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof du||e(s)&&t("header",s)&&r("object",s))),cf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mu||e(s)&&t("info",s)&&r("object",s))),lf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gu||e(s)&&t("license",s)&&r("object",s))),uf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bu||e(s)&&t("link",s)&&r("object",s))),pf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Au||e(s)&&t("openapi",s)&&r("string",s))),hf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Tu||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),df=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _u||e(s)&&t("operation",s)&&r("object",s))),ff=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mu||e(s)&&t("parameter",s)&&r("object",s))),mf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fu||e(s)&&t("pathItem",s)&&r("object",s))),yf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Du||e(s)&&t("paths",s)&&r("object",s))),gf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lu||e(s)&&t("reference",s)&&r("object",s))),vf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bu||e(s)&&t("requestBody",s)&&r("object",s))),bf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vu||e(s)&&t("response",s)&&r("object",s))),xf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zu||e(s)&&t("responses",s)&&r("object",s))),wf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yh||e(s)&&t("schema",s)&&r("object",s))),Ef=e=>uc(e)&&e.classes.includes("boolean-json-schema"),jf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zh||e(s)&&t("securityRequirement",s)&&r("object",s))),Of=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ed||e(s)&&t("securityScheme",s)&&r("object",s))),Sf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rd||e(s)&&t("server",s)&&r("object",s))),Pf=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nd||e(s)&&t("serverVariable",s)&&r("object",s))),Af=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wu||e(s)&&t("mediaType",s)&&r("object",s))),$f=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Vd||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class Tf extends(Fp(ef,ud)){constructor(e){super(e),this.alternator=[{predicate:hd,specPath:["document","objects","Reference"]},{predicate:Oc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ef.prototype.enter.call(this,e);return gf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const kf=Tf;class _f extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("examples"),this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Cf=_f;class Mf extends Ba.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Mf.primaryClass),this.classes.push("examples")}}const If=Mf;const Ff=class extends Cf{constructor(e){super(e),this.element=new If}};class Rf extends Ba.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Rf.primaryClass)}}const Df=Rf;class Nf extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Df,this.specPath=wi(["document","objects","Encoding"])}}const Lf=Nf;class qf extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Zh,this.specPath=wi(["value"])}}const Bf=qf;class Uf extends Ba.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Uf.primaryClass)}}const Vf=Uf;class Hf extends(Fp(pd,ud)){constructor(e){super(e),this.element=new Vf}ArrayElement(e){return e.forEach((e=>{if(pc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Rc(e))})),this.copyMetaAndAttributes(e,this.element),Ac}}const zf=Hf;class Gf extends(Fp(yd,ud)){constructor(e){super(e),this.element=new tu,this.specPath=wi(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Jf=Gf;class Kf extends(Fp(yd,ud)){constructor(e){super(e),this.element=new od,this.specPath=wi(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Wf=Kf;class Yf extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Lu,this.specPath=wi(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return ac(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Xf=Yf;const Zf=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Qf extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Mu,this.specPath=wi(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return pc(this.element.contentProp)&&this.element.contentProp.filter(Af).forEach(((e,t)=>{e.setMetaProperty("media-type",Zc(t))})),t}}const em=Qf;class tm extends(Fp(ef,ud)){constructor(e){super(e),this.alternator=[{predicate:hd,specPath:["document","objects","Reference"]},{predicate:Oc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ef.prototype.enter.call(this,e);return gf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const rm=tm;class sm extends(Fp(yd,ud)){constructor(e){super(e),this.element=new du,this.specPath=wi(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const nm=sm;class im extends(Fp(ef,ud)){constructor(e){super(e),this.alternator=[{predicate:hd,specPath:["document","objects","Reference"]},{predicate:Oc,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ef.prototype.enter.call(this,e);return gf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const om=im;class am extends Ba.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(am.primaryClass),this.classes.push("examples")}}const cm=am;const lm=class extends Cf{constructor(e){super(e),this.element=new cm}};class um extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("content"),this.specPath=wi(["document","objects","MediaType"])}}const pm=um;class hm extends Ba.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(hm.primaryClass),this.classes.push("content")}}const dm=hm;const fm=class extends pm{constructor(e){super(e),this.element=new dm}};class mm extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Yh,this.specPath=wi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const ym=mm,{allOf:gm}=Lh.visitors.document.objects.JSONSchema.fixedFields;const vm=class extends gm{ArrayElement(e){const t=gm.prototype.ArrayElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{anyOf:bm}=Lh.visitors.document.objects.JSONSchema.fixedFields;const xm=class extends bm{ArrayElement(e){const t=bm.prototype.ArrayElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{oneOf:wm}=Lh.visitors.document.objects.JSONSchema.fixedFields;const Em=class extends wm{ArrayElement(e){const t=wm.prototype.ArrayElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:jm}=Lh.visitors.document.objects.JSONSchema.fixedFields;const Om=class extends jm{ObjectElement(e){const t=jm.prototype.ObjectElement.call(this,e);return gf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},{properties:Sm}=Lh.visitors.document.objects.JSONSchema.fixedFields;const Pm=class extends Sm{ObjectElement(e){const t=Sm.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{type:Am}=Lh.visitors.document.objects.JSONSchema.fixedFields;const $m=class extends Am{ArrayElement(e){return this.enter(e)}},{JSONSchemaOrJSONReferenceVisitor:Tm}=Lh.visitors;const km=class extends Tm{ObjectElement(e){const t=Tm.prototype.enter.call(this,e);return gf(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class _m extends(Fp(yd,ud)){constructor(e){super(e),this.element=new iu,this.specPath=wi(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Cm=_m;class Mm extends Ba.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Mm.primaryClass)}}const Im=Mm;class Fm extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Im,this.specPath=wi(["value"])}}const Rm=Fm;class Dm extends(Fp(yd,ud)){constructor(e){super(e),this.element=new cd,this.specPath=wi(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Nm=Dm;class Lm extends Ba.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Lm.primaryClass),this.classes.push("examples")}}const qm=Lm;const Bm=class extends Cf{constructor(e){super(e),this.element=new qm}};class Um extends Ba.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Um.primaryClass),this.classes.push("content")}}const Vm=Um;const Hm=class extends pm{constructor(e){super(e),this.element=new Vm}};class zm extends Ba.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(zm.primaryClass)}}const Gm=zm;class Jm extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Gm,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Km=Jm;class Wm extends Ba.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Wm.primaryClass)}}const Ym=Wm;class Xm extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Ym,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bf).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Zc(t))})),t}}const Zm=Xm;class Qm extends Ba.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Qm.primaryClass),this.classes.push("parameters")}}const ey=Qm;class ty extends(Fp(Id,ud)){constructor(e){super(e),this.element=new ey,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const ry=ty;class sy extends Ba.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(sy.primaryClass),this.classes.push("examples")}}const ny=sy;class iy extends(Fp(Id,ud)){constructor(e){super(e),this.element=new ny,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const oy=iy;class ay extends Ba.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(ay.primaryClass)}}const cy=ay;class ly extends(Fp(Id,ud)){constructor(e){super(e),this.element=new cy,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const uy=ly;class py extends Ba.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(py.primaryClass)}}const hy=py;class dy extends(Fp(Id,ud)){constructor(e){super(e),this.element=new hy,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(af).forEach(((e,t)=>{e.setMetaProperty("header-name",Zc(t))})),t}}const fy=dy;class my extends Ba.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(my.primaryClass)}}const yy=my;class gy extends(Fp(Id,ud)){constructor(e){super(e),this.element=new yy,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const vy=gy;class by extends Ba.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(by.primaryClass)}}const xy=by;class wy extends(Fp(Id,ud)){constructor(e){super(e),this.element=new xy,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Ey=wy;class jy extends Ba.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(jy.primaryClass)}}const Oy=jy;class Sy extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Oy,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Py=Sy;class Ay extends(Fp(yd,ud)){constructor(e){super(e),this.element=new lu,this.specPath=wi(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return ac(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const $y=Ay;const Ty=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ky extends(Fp(yd,ud)){constructor(e){super(e),this.element=new pu,this.specPath=wi(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const _y=ky;class Cy extends(Fp(yd,ud)){constructor(e){super(e),this.element=new au,this.specPath=wi(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return pc(this.element.headers)&&this.element.headers.filter(af).forEach(((e,t)=>{e.setMetaProperty("header-name",Zc(t))})),t}}const My=Cy;class Iy extends Ba.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Iy.primaryClass)}}const Fy=Iy;class Ry extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Fy,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!af(e))return;const r=Zc(t);e.setMetaProperty("headerName",r)})),t}}const Dy=Ry;class Ny extends(Fp(Md,ud)){constructor(e){super(e),this.element=new Du,this.specPath=wi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Oc}ObjectElement(e){const t=Md.prototype.ObjectElement.call(this,e);return this.element.filter(mf).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Rc(t))})),t}}const Ly=Ny;class qy extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Bu,this.specPath=wi(["document","objects","RequestBody"])}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return pc(this.element.contentProp)&&this.element.contentProp.filter(Af).forEach(((e,t)=>{e.setMetaProperty("media-type",Zc(t))})),t}}const By=qy;class Uy extends Ba.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Uy.primaryClass),this.classes.push("content")}}const Vy=Uy;const Hy=class extends pm{constructor(e){super(e),this.element=new Vy}};class zy extends(Fp(Md,ud)){constructor(e){super(e),this.element=new Ql,this.specPath=wi(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(mf).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Zc(t))})),t}}const Gy=zy;class Jy extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Vu,this.specPath=wi(["document","objects","Response"])}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return pc(this.element.contentProp)&&this.element.contentProp.filter(Af).forEach(((e,t)=>{e.setMetaProperty("media-type",Zc(t))})),pc(this.element.headers)&&this.element.headers.filter(af).forEach(((e,t)=>{e.setMetaProperty("header-name",Zc(t))})),t}}const Ky=Jy;class Wy extends Ba.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Wy.primaryClass)}}const Yy=Wy;class Xy extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Yy,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!af(e))return;const r=Zc(t);e.setMetaProperty("header-name",r)})),t}}const Zy=Xy;class Qy extends Ba.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Qy.primaryClass),this.classes.push("content")}}const eg=Qy;const tg=class extends pm{constructor(e){super(e),this.element=new eg}};class rg extends Ba.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(rg.primaryClass)}}const sg=rg;class ng extends(Fp(Id,ud)){constructor(e){super(e),this.element=new sg,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const ig=ng;function og(e){return"[object Number]"===Object.prototype.toString.call(e)}var ag=Bs((function(e,t){if(!og(e)||!og(t))throw new TypeError("Both arguments to range must be numbers");for(var r=Array(e<t?t-e:0),s=e<0?t+Math.abs(e):t-e,n=0;n<s;)r[n]=n+e,n+=1;return r}));const cg=ag;function lg(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!hn(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!hn(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const ug=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!lg(e,!0,this)},e.prototype.has=function(e){return lg(e,!1,this)},e}();var pg=Bs((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new ug,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));const hg=pg;class dg extends(Fp(yd,Md)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...hg(e.keys(),t)],yd.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Md.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Ac}}const fg=dg;class mg extends(Fp(fg,ud)){constructor(e){super(e),this.element=new zu,this.specPathFixedFields=wi(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>hd(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${cg(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=fg.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(bf).forEach(((e,t)=>{const r=Rc(t);this.fieldPatternPredicate(Zc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const yg=mg;class gg extends(Fp(ef,ud)){constructor(e){super(e),this.alternator=[{predicate:hd,specPath:["document","objects","Reference"]},{predicate:Oc,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ef.prototype.enter.call(this,e);return gf(this.element)?this.element.setMetaProperty("referenced-element","response"):bf(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const vg=gg;class bg extends(Fp(yd,ud)){constructor(e){super(e),this.element=new _u,this.specPath=wi(["document","objects","Operation"])}}const xg=bg;class wg extends Ba.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(wg.primaryClass)}}const Eg=wg;const jg=class extends ud{constructor(e){super(e),this.element=new Eg}ArrayElement(e){return this.element=this.element.concat(Rc(e)),Ac}};class Og extends Ba.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Og.primaryClass),this.classes.push("parameters")}}const Sg=Og;class Pg extends(Fp(pd,ud)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=hd(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);gf(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const Ag=Pg;const $g=class extends Ag{constructor(e){super(e),this.element=new Sg}};const Tg=class extends ef{constructor(e){super(e),this.alternator=[{predicate:hd,specPath:["document","objects","Reference"]},{predicate:Oc,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=ef.prototype.enter.call(this,e);return gf(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class kg extends Ba.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(kg.primaryClass)}}const _g=kg;class Cg extends(Fp(Id,ud)){specPath;constructor(e){super(e),this.element=new _g,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(gf).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Mg=Cg;class Ig extends Ba.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Ig.primaryClass),this.classes.push("security")}}const Fg=Ig;class Rg extends(Fp(pd,ud)){constructor(e){super(e),this.element=new Fg}ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const Dg=Rg;class Ng extends Ba.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ng.primaryClass),this.classes.push("servers")}}const Lg=Ng;const qg=class extends zd{constructor(e){super(e),this.element=new Lg}};class Bg extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Fu,this.specPath=wi(["document","objects","PathItem"])}ObjectElement(e){const t=yd.prototype.ObjectElement.call(this,e);return this.element.filter(df).forEach(((e,t)=>{const r=Rc(t);r.content=Zc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),ac(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ug=Bg;const Vg=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Hg extends Ba.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Hg.primaryClass),this.classes.push("servers")}}const zg=Hg;const Gg=class extends zd{constructor(e){super(e),this.element=new zg}};class Jg extends Ba.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Jg.primaryClass),this.classes.push("parameters")}}const Kg=Jg;const Wg=class extends Ag{constructor(e){super(e),this.element=new Kg}};class Yg extends(Fp(yd,ud)){constructor(e){super(e),this.element=new ed,this.specPath=wi(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Xg=Yg;class Zg extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Su,this.specPath=wi(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Qg=Zg;class ev extends(Fp(yd,ud)){constructor(e){super(e),this.element=new ju,this.specPath=wi(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const tv=ev;class rv extends Ba.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(rv.primaryClass)}}const sv=rv;class nv extends(Fp(Id,ud)){constructor(e){super(e),this.element=new sv,this.specPath=wi(["value"])}}const iv=nv;class ov extends Ba.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(ov.primaryClass)}}const av=ov;class cv extends(Fp(pd,ud)){constructor(e){super(e),this.element=new av}ArrayElement(e){return e.forEach((e=>{const t=fd(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ac}}const lv=cv,{fixedFields:uv}=Lh.visitors.document.objects.JSONSchema,pv={visitors:{value:ud,document:{objects:{OpenApi:{$visitor:vd,fixedFields:{openapi:xd,info:{$ref:"#/visitors/document/objects/Info"},servers:zd,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:zf,tags:lv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:jd,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Od}},Contact:{$visitor:Pd,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:$d,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:qd,fixedFields:{url:Bd,description:{$ref:"#/visitors/value"},variables:Xd}},ServerVariable:{$visitor:Jd,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Jf,fixedFields:{schemas:Km,responses:Zm,parameters:ry,examples:oy,requestBodies:uy,headers:fy,securitySchemes:vy,links:Ey,callbacks:Py}},Paths:{$visitor:Ly},PathItem:{$visitor:Ug,fixedFields:{$ref:Vg,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},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:Gg,parameters:Wg}},Operation:{$visitor:xg,fixedFields:{tags:jg,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:$g,requestBody:Tg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Mg,deprecated:{$ref:"#/visitors/value"},security:Dg,servers:qg}},ExternalDocumentation:{$visitor:_y,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:em,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:rm,example:{$ref:"#/visitors/value"},examples:Bm,content:Hm}},RequestBody:{$visitor:By,fixedFields:{description:{$ref:"#/visitors/value"},content:Hy,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Qd,fixedFields:{schema:kf,example:{$ref:"#/visitors/value"},examples:Ff,encoding:Lf}},Encoding:{$visitor:My,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Dy,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:yg,fixedFields:{default:vg}},Response:{$visitor:Ky,fixedFields:{description:{$ref:"#/visitors/value"},headers:Zy,content:tg,links:ig}},Callback:{$visitor:Gy},Example:{$visitor:$y,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Ty}},Link:{$visitor:kd,fixedFields:{operationRef:_d,operationId:Cd,parameters:Nd,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:nm,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:om,example:{$ref:"#/visitors/value"},examples:lm,content:fm}},Tag:{$visitor:Wf,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Xf,fixedFields:{$ref:Zf}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:ym,fixedFields:{title:uv.title,multipleOf:uv.multipleOf,maximum:uv.maximum,exclusiveMaximum:uv.exclusiveMaximum,minimum:uv.minimum,exclusiveMinimum:uv.exclusiveMinimum,maxLength:uv.maxLength,minLength:uv.minLength,pattern:uv.pattern,maxItems:uv.maxItems,minItems:uv.minItems,uniqueItems:uv.uniqueItems,maxProperties:uv.maxProperties,minProperties:uv.minProperties,required:uv.required,enum:uv.enum,type:$m,allOf:vm,anyOf:xm,oneOf:Em,not:km,items:Om,properties:Pm,additionalProperties:km,description:uv.description,format:uv.format,default:uv.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Cm,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Rm}},XML:{$visitor:Nm,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Xg,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Qg,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:tv,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:iv}},SecurityRequirement:{$visitor:Bf}},extension:{$visitor:wd}}}},hv=e=>{if(oc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},dv={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"],...Vc},fv={namespace:e=>{const{base:t}=e;return t.register("callback",Ql),t.register("components",tu),t.register("contact",su),t.register("discriminator",iu),t.register("encoding",au),t.register("example",lu),t.register("externalDocumentation",pu),t.register("header",du),t.register("info",mu),t.register("license",gu),t.register("link",bu),t.register("mediaType",wu),t.register("oAuthFlow",ju),t.register("oAuthFlows",Su),t.register("openapi",Au),t.register("openApi3_0",Tu),t.register("operation",_u),t.register("parameter",Mu),t.register("pathItem",Fu),t.register("paths",Du),t.register("reference",Lu),t.register("requestBody",Bu),t.register("response",Vu),t.register("responses",zu),t.register("schema",Yh),t.register("securityRequirement",Zh),t.register("securityScheme",ed),t.register("server",rd),t.register("serverVariable",nd),t.register("tag",od),t.register("xml",cd),t}},mv=()=>{const e=ml(fv);return{predicates:{...a,isElement:oc,isStringElement:ac,isArrayElement:hc,isObjectElement:pc,isMemberElement:dc,includesClasses:jc,hasElementSourceMap:wc},namespace:e}},yv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Ba.e)(e),n=cp(pv),i=new(rl(t,n))({specObj:n});return zc(s,i),bl(i.element,r,{toolboxCreator:mv,visitorOptions:{keyMap:dv,nodeTypeGetter:hv}})},gv=e=>(t,r={})=>yv(t,{specPath:e,...r});Ql.refract=gv(["visitors","document","objects","Callback","$visitor"]),tu.refract=gv(["visitors","document","objects","Components","$visitor"]),su.refract=gv(["visitors","document","objects","Contact","$visitor"]),lu.refract=gv(["visitors","document","objects","Example","$visitor"]),iu.refract=gv(["visitors","document","objects","Discriminator","$visitor"]),au.refract=gv(["visitors","document","objects","Encoding","$visitor"]),pu.refract=gv(["visitors","document","objects","ExternalDocumentation","$visitor"]),du.refract=gv(["visitors","document","objects","Header","$visitor"]),mu.refract=gv(["visitors","document","objects","Info","$visitor"]),gu.refract=gv(["visitors","document","objects","License","$visitor"]),bu.refract=gv(["visitors","document","objects","Link","$visitor"]),wu.refract=gv(["visitors","document","objects","MediaType","$visitor"]),ju.refract=gv(["visitors","document","objects","OAuthFlow","$visitor"]),Su.refract=gv(["visitors","document","objects","OAuthFlows","$visitor"]),Au.refract=gv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Tu.refract=gv(["visitors","document","objects","OpenApi","$visitor"]),_u.refract=gv(["visitors","document","objects","Operation","$visitor"]),Mu.refract=gv(["visitors","document","objects","Parameter","$visitor"]),Fu.refract=gv(["visitors","document","objects","PathItem","$visitor"]),Du.refract=gv(["visitors","document","objects","Paths","$visitor"]),Lu.refract=gv(["visitors","document","objects","Reference","$visitor"]),Bu.refract=gv(["visitors","document","objects","RequestBody","$visitor"]),Vu.refract=gv(["visitors","document","objects","Response","$visitor"]),zu.refract=gv(["visitors","document","objects","Responses","$visitor"]),Yh.refract=gv(["visitors","document","objects","Schema","$visitor"]),Zh.refract=gv(["visitors","document","objects","SecurityRequirement","$visitor"]),ed.refract=gv(["visitors","document","objects","SecurityScheme","$visitor"]),rd.refract=gv(["visitors","document","objects","Server","$visitor"]),nd.refract=gv(["visitors","document","objects","ServerVariable","$visitor"]),od.refract=gv(["visitors","document","objects","Tag","$visitor"]),cd.refract=gv(["visitors","document","objects","XML","$visitor"]);const vv=class extends Ql{};const bv=class extends tu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const xv=class extends su{};const wv=class extends iu{};const Ev=class extends au{};const jv=class extends lu{};const Ov=class extends pu{};const Sv=class extends du{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Pv=class extends mu{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 Av extends Ba.Om{static default=new Av("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const $v=Av;const Tv=class extends gu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const kv=class extends bu{};const _v=class extends wu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Cv=class extends ju{};const Mv=class extends Su{};const Iv=class extends Au{};class Fv extends Ba.Sh{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 Rv=Fv;const Dv=class extends _u{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Nv=class extends Mu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Lv=class extends Fu{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 qv=class extends Du{};class Bv extends Lu{}Object.defineProperty(Bv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Bv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Uv=Bv;const Vv=class extends Bu{};const Hv=class extends Vu{};const zv=class extends zu{};class Gv extends Ba.Sh{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 Jv=Gv;const Kv=class extends Zh{};const Wv=class extends ed{};const Yv=class extends rd{};const Xv=class extends nd{};const Zv=class extends od{};const Qv=class extends cd{};class eb extends(Fp(yd,ud)){constructor(e){super(e),this.element=new Rv,this.specPath=wi(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,yd.prototype.ObjectElement.call(this,e)}}const tb=eb,{visitors:{document:{objects:{Info:{$visitor:rb}}}}}=pv;const sb=class extends rb{constructor(e){super(e),this.element=new Pv}},{visitors:{document:{objects:{Contact:{$visitor:nb}}}}}=pv;const ib=class extends nb{constructor(e){super(e),this.element=new xv}},{visitors:{document:{objects:{License:{$visitor:ob}}}}}=pv;const ab=class extends ob{constructor(e){super(e),this.element=new Tv}},{visitors:{document:{objects:{Link:{$visitor:cb}}}}}=pv;const lb=class extends cb{constructor(e){super(e),this.element=new kv}};class ub extends(Fp(pd,ud)){StringElement(e){const t=new $v(Zc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ac}}const pb=ub,{visitors:{document:{objects:{Server:{$visitor:hb}}}}}=pv;const db=class extends hb{constructor(e){super(e),this.element=new Yv}},{visitors:{document:{objects:{ServerVariable:{$visitor:fb}}}}}=pv;const mb=class extends fb{constructor(e){super(e),this.element=new Xv}},{visitors:{document:{objects:{MediaType:{$visitor:yb}}}}}=pv;const gb=class extends yb{constructor(e){super(e),this.element=new _v}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:vb}}}}}=pv;const bb=class extends vb{constructor(e){super(e),this.element=new Kv}},{visitors:{document:{objects:{Components:{$visitor:xb}}}}}=pv;const wb=class extends xb{constructor(e){super(e),this.element=new bv}},{visitors:{document:{objects:{Tag:{$visitor:Eb}}}}}=pv;const jb=class extends Eb{constructor(e){super(e),this.element=new Zv}},{visitors:{document:{objects:{Reference:{$visitor:Ob}}}}}=pv;const Sb=class extends Ob{constructor(e){super(e),this.element=new Uv}},{visitors:{document:{objects:{Parameter:{$visitor:Pb}}}}}=pv;const Ab=class extends Pb{constructor(e){super(e),this.element=new Nv}},{visitors:{document:{objects:{Header:{$visitor:$b}}}}}=pv;const Tb=class extends $b{constructor(e){super(e),this.element=new Sv}},kb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vv||e(s)&&t("callback",s)&&r("object",s))),_b=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bv||e(s)&&t("components",s)&&r("object",s))),Cb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xv||e(s)&&t("contact",s)&&r("object",s))),Mb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jv||e(s)&&t("example",s)&&r("object",s))),Ib=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ov||e(s)&&t("externalDocumentation",s)&&r("object",s))),Fb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sv||e(s)&&t("header",s)&&r("object",s))),Rb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pv||e(s)&&t("info",s)&&r("object",s))),Db=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $v||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),Nb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tv||e(s)&&t("license",s)&&r("object",s))),Lb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kv||e(s)&&t("link",s)&&r("object",s))),qb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Iv||e(s)&&t("openapi",s)&&r("string",s))),Bb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Rv||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),Ub=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dv||e(s)&&t("operation",s)&&r("object",s))),Vb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nv||e(s)&&t("parameter",s)&&r("object",s))),Hb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lv||e(s)&&t("pathItem",s)&&r("object",s))),zb=e=>{if(!Hb(e))return!1;if(!ac(e.$ref))return!1;const t=Zc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Gb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qv||e(s)&&t("paths",s)&&r("object",s))),Jb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Uv||e(s)&&t("reference",s)&&r("object",s))),Kb=e=>{if(!Jb(e))return!1;if(!ac(e.$ref))return!1;const t=Zc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Wb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vv||e(s)&&t("requestBody",s)&&r("object",s))),Yb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hv||e(s)&&t("response",s)&&r("object",s))),Xb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zv||e(s)&&t("responses",s)&&r("object",s))),Zb=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jv||e(s)&&t("schema",s)&&r("object",s))),Qb=e=>uc(e)&&e.classes.includes("boolean-json-schema"),ex=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kv||e(s)&&t("securityRequirement",s)&&r("object",s))),tx=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wv||e(s)&&t("securityScheme",s)&&r("object",s))),rx=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yv||e(s)&&t("server",s)&&r("object",s))),sx=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xv||e(s)&&t("serverVariable",s)&&r("object",s))),nx=ic((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _v||e(s)&&t("mediaType",s)&&r("object",s)));const ix=class{parent;constructor({parent:e}){this.parent=e}};class ox extends(Fp(yd,ix,ud)){constructor(e){super(e),this.element=new Jv,this.specPath=wi(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=$v.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=yd.prototype.ObjectElement.call(this,e);return ac(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&Db(this.openApiSemanticElement.jsonSchemaDialect)?Zc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&ac(this.openApiGenericElement.get("jsonSchemaDialect"))?Zc(this.openApiGenericElement.get("jsonSchemaDialect")):Zc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(ji(this.parent)&&!ac(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(Zb(this.parent)&&!ac(e.get("$schema"))){const e=Wn(Zc(this.parent.meta.get("inherited$schema")),Zc(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Rc(this.parent.getMetaProperty("inherited$id",[])):new Ba.wE,r=Zc(e.get("$id"));Xp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const ax=ox;const cx=class extends ud{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const lx=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ux extends(Fp(Id,ix,ud)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const px=ux;class hx extends(Fp(pd,ix,ud)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(pc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Rc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ac}}const dx=hx;class fx extends(Fp(pd,ix,ud)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(pc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Rc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ac}}const mx=fx;class yx extends(Fp(pd,ix,ud)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(pc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Rc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ac}}const gx=yx;class vx extends(Fp(Id,ix,ud)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const bx=vx;class xx extends(Fp(pd,ix,ud)){constructor(e){super(e),this.element=new Ba.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(pc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Rc(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ac}}const wx=xx;class Ex extends(Fp(Id,ix,ud)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-properties"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const jx=Ex;class Ox extends(Fp(Id,ix,ud)){constructor(e){super(e),this.element=new Ba.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=wi(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Sx=Ox;const Px=class extends ud{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}};const Ax=class extends ud{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const $x=class extends ud{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Tx=class extends ud{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:kx}}}}}=pv;const _x=class extends kx{constructor(e){super(e),this.element=new wv,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:Cx}}}}}=pv;const Mx=class extends Cx{constructor(e){super(e),this.element=new Qv}};class Ix extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Gm,this.specPath=wi(["document","objects","Schema"])}}const Fx=Ix;class Rx extends Ba.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(Rx.primaryClass)}}const Dx=Rx;class Nx extends(Fp(Id,ud)){constructor(e){super(e),this.element=new Dx,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(Jb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Lx=Nx,{visitors:{document:{objects:{Example:{$visitor:qx}}}}}=pv;const Bx=class extends qx{constructor(e){super(e),this.element=new jv}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Ux}}}}}=pv;const Vx=class extends Ux{constructor(e){super(e),this.element=new Ov}},{visitors:{document:{objects:{Encoding:{$visitor:Hx}}}}}=pv;const zx=class extends Hx{constructor(e){super(e),this.element=new Ev}},{visitors:{document:{objects:{Paths:{$visitor:Gx}}}}}=pv;const Jx=class extends Gx{constructor(e){super(e),this.element=new qv}},{visitors:{document:{objects:{RequestBody:{$visitor:Kx}}}}}=pv;const Wx=class extends Kx{constructor(e){super(e),this.element=new Vv}},{visitors:{document:{objects:{Callback:{$visitor:Yx}}}}}=pv;const Xx=class extends Yx{constructor(e){super(e),this.element=new vv,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Yx.prototype.ObjectElement.call(this,e);return this.element.filter(Jb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:Zx}}}}}=pv;const Qx=class extends Zx{constructor(e){super(e),this.element=new Hv}},{visitors:{document:{objects:{Responses:{$visitor:ew}}}}}=pv;const tw=class extends ew{constructor(e){super(e),this.element=new zv}},{visitors:{document:{objects:{Operation:{$visitor:rw}}}}}=pv;const sw=class extends rw{constructor(e){super(e),this.element=new Dv}},{visitors:{document:{objects:{PathItem:{$visitor:nw}}}}}=pv;const iw=class extends nw{constructor(e){super(e),this.element=new Lv}},{visitors:{document:{objects:{SecurityScheme:{$visitor:ow}}}}}=pv;const aw=class extends ow{constructor(e){super(e),this.element=new Wv}},{visitors:{document:{objects:{OAuthFlows:{$visitor:cw}}}}}=pv;const lw=class extends cw{constructor(e){super(e),this.element=new Mv}},{visitors:{document:{objects:{OAuthFlow:{$visitor:uw}}}}}=pv;const pw=class extends uw{constructor(e){super(e),this.element=new Cv}};class hw extends Ba.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(hw.primaryClass)}}const dw=hw;class fw extends(Fp(Id,ud)){constructor(e){super(e),this.element=new dw,this.specPath=e=>hd(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Id.prototype.ObjectElement.call(this,e);return this.element.filter(Jb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Hb).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Zc(t))})),t}}const mw=fw,yw={visitors:{value:pv.visitors.value,document:{objects:{OpenApi:{$visitor:tb,fixedFields:{openapi:pv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:pb,servers:pv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:mw,components:{$ref:"#/visitors/document/objects/Components"},security:pv.visitors.document.objects.OpenApi.fixedFields.security,tags:pv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sb,fixedFields:{title:pv.visitors.document.objects.Info.fixedFields.title,description:pv.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:pv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:pv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:ib,fixedFields:{name:pv.visitors.document.objects.Contact.fixedFields.name,url:pv.visitors.document.objects.Contact.fixedFields.url,email:pv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:ab,fixedFields:{name:pv.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:pv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:db,fixedFields:{url:pv.visitors.document.objects.Server.fixedFields.url,description:pv.visitors.document.objects.Server.fixedFields.description,variables:pv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:mb,fixedFields:{enum:pv.visitors.document.objects.ServerVariable.fixedFields.enum,default:pv.visitors.document.objects.ServerVariable.fixedFields.default,description:pv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:wb,fixedFields:{schemas:Fx,responses:pv.visitors.document.objects.Components.fixedFields.responses,parameters:pv.visitors.document.objects.Components.fixedFields.parameters,examples:pv.visitors.document.objects.Components.fixedFields.examples,requestBodies:pv.visitors.document.objects.Components.fixedFields.requestBodies,headers:pv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:pv.visitors.document.objects.Components.fixedFields.securitySchemes,links:pv.visitors.document.objects.Components.fixedFields.links,callbacks:pv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Lx}},Paths:{$visitor:Jx},PathItem:{$visitor:iw,fixedFields:{$ref:pv.visitors.document.objects.PathItem.fixedFields.$ref,summary:pv.visitors.document.objects.PathItem.fixedFields.summary,description:pv.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:pv.visitors.document.objects.PathItem.fixedFields.servers,parameters:pv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:sw,fixedFields:{tags:pv.visitors.document.objects.Operation.fixedFields.tags,summary:pv.visitors.document.objects.Operation.fixedFields.summary,description:pv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:pv.visitors.document.objects.Operation.fixedFields.operationId,parameters:pv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:pv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:pv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:pv.visitors.document.objects.Operation.fixedFields.deprecated,security:pv.visitors.document.objects.Operation.fixedFields.security,servers:pv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Vx,fixedFields:{description:pv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:pv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Ab,fixedFields:{name:pv.visitors.document.objects.Parameter.fixedFields.name,in:pv.visitors.document.objects.Parameter.fixedFields.in,description:pv.visitors.document.objects.Parameter.fixedFields.description,required:pv.visitors.document.objects.Parameter.fixedFields.required,deprecated:pv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:pv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:pv.visitors.document.objects.Parameter.fixedFields.style,explode:pv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:pv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pv.visitors.document.objects.Parameter.fixedFields.example,examples:pv.visitors.document.objects.Parameter.fixedFields.examples,content:pv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Wx,fixedFields:{description:pv.visitors.document.objects.RequestBody.fixedFields.description,content:pv.visitors.document.objects.RequestBody.fixedFields.content,required:pv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:gb,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:pv.visitors.document.objects.MediaType.fixedFields.example,examples:pv.visitors.document.objects.MediaType.fixedFields.examples,encoding:pv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:zx,fixedFields:{contentType:pv.visitors.document.objects.Encoding.fixedFields.contentType,headers:pv.visitors.document.objects.Encoding.fixedFields.headers,style:pv.visitors.document.objects.Encoding.fixedFields.style,explode:pv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:pv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:tw,fixedFields:{default:pv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Qx,fixedFields:{description:pv.visitors.document.objects.Response.fixedFields.description,headers:pv.visitors.document.objects.Response.fixedFields.headers,content:pv.visitors.document.objects.Response.fixedFields.content,links:pv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Xx},Example:{$visitor:Bx,fixedFields:{summary:pv.visitors.document.objects.Example.fixedFields.summary,description:pv.visitors.document.objects.Example.fixedFields.description,value:pv.visitors.document.objects.Example.fixedFields.value,externalValue:pv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:lb,fixedFields:{operationRef:pv.visitors.document.objects.Link.fixedFields.operationRef,operationId:pv.visitors.document.objects.Link.fixedFields.operationId,parameters:pv.visitors.document.objects.Link.fixedFields.parameters,requestBody:pv.visitors.document.objects.Link.fixedFields.requestBody,description:pv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Tb,fixedFields:{description:pv.visitors.document.objects.Header.fixedFields.description,required:pv.visitors.document.objects.Header.fixedFields.required,deprecated:pv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:pv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:pv.visitors.document.objects.Header.fixedFields.style,explode:pv.visitors.document.objects.Header.fixedFields.explode,allowReserved:pv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:pv.visitors.document.objects.Header.fixedFields.example,examples:pv.visitors.document.objects.Header.fixedFields.examples,content:pv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:jb,fixedFields:{name:pv.visitors.document.objects.Tag.fixedFields.name,description:pv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Sb,fixedFields:{$ref:pv.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:ax,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:cx,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:lx,$defs:px,$comment:{$ref:"#/visitors/value"},allOf:dx,anyOf:mx,oneOf:gx,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:bx,prefixItems:wx,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:jx,patternProperties:Sx,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:Px,enum:Ax,const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:$x,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:Tx,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},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:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:_x,fixedFields:{propertyName:pv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:pv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Mx,fixedFields:{name:pv.visitors.document.objects.XML.fixedFields.name,namespace:pv.visitors.document.objects.XML.fixedFields.namespace,prefix:pv.visitors.document.objects.XML.fixedFields.prefix,attribute:pv.visitors.document.objects.XML.fixedFields.attribute,wrapped:pv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:aw,fixedFields:{type:pv.visitors.document.objects.SecurityScheme.fixedFields.type,description:pv.visitors.document.objects.SecurityScheme.fixedFields.description,name:pv.visitors.document.objects.SecurityScheme.fixedFields.name,in:pv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:pv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:pv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:pv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:lw,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:pw,fixedFields:{authorizationUrl:pv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:pv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:pv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:pv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:bb}},extension:{$visitor:pv.visitors.document.extension.$visitor}}}},gw=e=>{if(oc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},vw={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"],...Vc},bw={namespace:e=>{const{base:t}=e;return t.register("callback",vv),t.register("components",bv),t.register("contact",xv),t.register("discriminator",wv),t.register("encoding",Ev),t.register("example",jv),t.register("externalDocumentation",Ov),t.register("header",Sv),t.register("info",Pv),t.register("jsonSchemaDialect",$v),t.register("license",Tv),t.register("link",kv),t.register("mediaType",_v),t.register("oAuthFlow",Cv),t.register("oAuthFlows",Mv),t.register("openapi",Iv),t.register("openApi3_1",Rv),t.register("operation",Dv),t.register("parameter",Nv),t.register("pathItem",Lv),t.register("paths",qv),t.register("reference",Uv),t.register("requestBody",Vv),t.register("response",Hv),t.register("responses",zv),t.register("schema",Jv),t.register("securityRequirement",Kv),t.register("securityScheme",Wv),t.register("server",Yv),t.register("serverVariable",Xv),t.register("tag",Zv),t.register("xml",Qv),t}},xw=e=>{const t=e.reduce(((t,r,s)=>{if(dc(r)){const e=String(Zc(r.key));t.push(e)}else if(hc(e[s-2])){const n=String(e[s-2].content.indexOf(r));t.push(n)}return t}),[]);return Al(t)},ww=()=>{const e=ml(bw);return{predicates:{...c,isElement:oc,isStringElement:ac,isArrayElement:hc,isObjectElement:pc,isMemberElement:dc,isServersElement:$f,includesClasses:jc,hasElementSourceMap:wc},ancestorLineageToJSONPointer:xw,namespace:e}},Ew=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Ba.e)(e),n=cp(yw),i=new(rl(t,n))({specObj:n});return zc(s,i),bl(i.element,r,{toolboxCreator:ww,visitorOptions:{keyMap:vw,nodeTypeGetter:gw}})},jw=e=>(t,r={})=>Ew(t,{specPath:e,...r});vv.refract=jw(["visitors","document","objects","Callback","$visitor"]),bv.refract=jw(["visitors","document","objects","Components","$visitor"]),xv.refract=jw(["visitors","document","objects","Contact","$visitor"]),jv.refract=jw(["visitors","document","objects","Example","$visitor"]),wv.refract=jw(["visitors","document","objects","Discriminator","$visitor"]),Ev.refract=jw(["visitors","document","objects","Encoding","$visitor"]),Ov.refract=jw(["visitors","document","objects","ExternalDocumentation","$visitor"]),Sv.refract=jw(["visitors","document","objects","Header","$visitor"]),Pv.refract=jw(["visitors","document","objects","Info","$visitor"]),$v.refract=jw(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Tv.refract=jw(["visitors","document","objects","License","$visitor"]),kv.refract=jw(["visitors","document","objects","Link","$visitor"]),_v.refract=jw(["visitors","document","objects","MediaType","$visitor"]),Cv.refract=jw(["visitors","document","objects","OAuthFlow","$visitor"]),Mv.refract=jw(["visitors","document","objects","OAuthFlows","$visitor"]),Iv.refract=jw(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Rv.refract=jw(["visitors","document","objects","OpenApi","$visitor"]),Dv.refract=jw(["visitors","document","objects","Operation","$visitor"]),Nv.refract=jw(["visitors","document","objects","Parameter","$visitor"]),Lv.refract=jw(["visitors","document","objects","PathItem","$visitor"]),qv.refract=jw(["visitors","document","objects","Paths","$visitor"]),Uv.refract=jw(["visitors","document","objects","Reference","$visitor"]),Vv.refract=jw(["visitors","document","objects","RequestBody","$visitor"]),Hv.refract=jw(["visitors","document","objects","Response","$visitor"]),zv.refract=jw(["visitors","document","objects","Responses","$visitor"]),Jv.refract=jw(["visitors","document","objects","Schema","$visitor"]),Kv.refract=jw(["visitors","document","objects","SecurityRequirement","$visitor"]),Wv.refract=jw(["visitors","document","objects","SecurityScheme","$visitor"]),Yv.refract=jw(["visitors","document","objects","Server","$visitor"]),Xv.refract=jw(["visitors","document","objects","ServerVariable","$visitor"]),Zv.refract=jw(["visitors","document","objects","Tag","$visitor"]),Qv.refract=jw(["visitors","document","objects","XML","$visitor"]);const Ow=class extends Gu{};const Sw=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Ow("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Ow("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Ow("latest method in MediaTypes class is not yet implemented.")}};class Pw extends Sw{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 Zn(this.filterByFormat(e))}}const Aw=new Pw("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");const $w=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:r,value:s}){this.uri=e,this.value=s,this.depth=t,this.refSet=r,this.errors=[]}};const Tw=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=void 0===this.rootRef?e:this.rootRef,e.refSet=this),this}merge(e){for(const t of e.values())this.add(t);return this}has(e){const t=Di(e)?e:e.uri;return Oi(this.find((e=>e.uri===t)))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach((e=>{e.refSet=void 0})),this.rootRef=void 0,this.refs.length=0}},kw={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:_l,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const _w=Bs((function(e,t){return function(r){return function(s){return yi((function(e){return t(e,s)}),r(e(s)))}}}));var Cw=Us((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!rp(s)&&Xs(n,s)&&"object"==typeof s[n]?s[n]:Vs(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Vs(e)&&bn(r)){var s=[].concat(r);return s[e]=t,s}var n={};for(var i in r)n[i]=r[i];return n[e]=t,n}(n,r,s)}));const Mw=Cw;var Iw=function(e){return{value:e,map:function(t){return Iw(t(e))}}},Fw=Us((function(e,t,r){return e((function(e){return Iw(t(e))}))(r).value}));const Rw=Fw,Dw=_w(rl(["resolve","baseURI"]),Mw(["resolve","baseURI"])),Nw=e=>Bl(e)?Zi():e,Lw=(e,t)=>{const r=tl(e,t);return Rw(Dw,Nw,r)};const qw=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t="text/plain",data:r,parseResult:s}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=s}get extension(){return Di(this.uri)?Gi(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(cn(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const Bw=class extends Rs{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},Uw=async(e,t,r)=>{const s=await Promise.all(r.map(hl([e],t)));return r.filter(((e,t)=>s[t]))},Vw=async(e,t,r)=>{let s;for(const n of r)try{const r=await n[e].call(n,...t);return{plugin:n,result:r}}catch(e){s=new Bw("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const Hw=class extends Rs{};const zw=class extends Hw{},Gw=async(e,t)=>{let r=e,s=!1;if(!vc(e)){const t=Lc(e);t.classes.push("result"),r=new Xa([t]),s=!0}const n=new qw({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await Uw("canDereference",[n,t],t.dereference.strategies);if(cl(i))throw new zw(n.uri);try{const{result:e}=await Vw("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new Hw(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const Jw=class extends Rs{};const Kw=class extends Jw{};const Ww=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:r=!1,fileExtensions:s=[],mediaTypes:n=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=r,this.fileExtensions=s,this.mediaTypes=n}};const Yw=class extends Ww{constructor(e){super({...null!=e?e:{},name:"binary"})}canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)}parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),s=new Xa;if(0!==r.length){const e=new Ba.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new Kw(`Error parsing "${e.uri}"`,{cause:t})}}};const Xw=class{name;constructor({name:e}){this.name=e}};const Zw=class extends Xw{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canResolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));return void 0!==r&&r.canDereference(e,t)}async resolve(e,t){const r=t.dereference.strategies.find((e=>"openapi-3-1"===e.name));if(void 0===r)throw new zw('"openapi-3-1" dereference strategy is not available.');const s=new Tw,n=Lw(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const Qw=class{name;constructor({name:e}){this.name=e}};const eE=class extends Qw{timeout;redirects;withCredentials;constructor(e){const{name:t="http-resolver",timeout:r=5e3,redirects:s=5,withCredentials:n=!1}=null!=e?e:{};super({name:t}),this.timeout=r,this.redirects=s,this.withCredentials=n}canRead(e){return Ki(e.uri)}};const tE=class extends Rs{};const rE=class extends tE{},{AbortController:sE,AbortSignal:nE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=sE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=nE);const iE=class extends eE{swaggerHTTPClient=Ir;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Ir,swaggerHTTPClientConfig:t={},...r}={}){super({...r,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:s}=r,n=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:s,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new rE(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},oE=(e,t=yl)=>{if(Di(e))try{return t.fromRefract(JSON.parse(e))}catch{}return qa(e)&&op("element",e)?t.fromRefract(e):t.toElement(e)};const aE=class extends Ww{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Kw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new Xa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=oE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new Kw(`Error parsing "${e.uri}"`,{cause:t})}}};const cE=class extends Ww{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return kr.load(e.toString(),{schema:br}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Kw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new Xa,r=e.toString();try{const e=kr.load(r,{schema:br});if(this.allowEmpty&&void 0===e)return t;const s=oE(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new Kw(`Error parsing "${e.uri}"`,{cause:t})}}};const lE=class extends Ww{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new Pw(...Aw.filterByFormat("generic"),...Aw.filterByFormat("json")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Kw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Xa,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=Rv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new Kw(`Error parsing "${e.uri}"`,{cause:t})}}};const uE=class extends Ww{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new Pw(...Aw.filterByFormat("generic"),...Aw.filterByFormat("yaml")),...e})}async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return kr.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new Kw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new Xa,r=e.toString();try{const e=kr.load(r,{schema:br});if(this.allowEmpty&&void 0===e)return t;const s=Rv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new Kw(`Error parsing "${e.uri}"`,{cause:t})}}};const pE=Us((function(e,t,r){return pn(e,Yn(t,r))}));const hE=class{name;constructor({name:e}){this.name=e}};const dE=Bs((function(e,t){return za(gn(e),t)}));var fE=r(8068);const mE=class extends Ds{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class yE{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new fE({length:e}),this.identityMap=new WeakMap}identify(e){if(!oc(e))throw new mE("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&ac(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new Ba.Om(this.generateId());return this.identityMap.set(e,t),t}forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)}generateId(){return this.uuid.randomUUID()}}new yE;const gE=Us((function(e,t,r){return Wn(e,Gs(t,r))})),vE=(e,t)=>{const r=new Hc({predicate:e,returnOnTrue:Ac});return zc(t,r),gE(void 0,[0],r.result)};const bE=class extends Rs{};const xE=class extends bE{};const wE=class extends bE{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},EE=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),jE=e=>{const t=Yi(e);return zl("#",t)},OE=(e,t)=>{const r=(e=>{if(!EE(e))throw new wE(e);return e})(e),s=vE((e=>Zb(e)&&Zc(e.$anchor)===r),t);if(ji(s))throw new xE(`Evaluation failed on token: "${r}"`);return s},SE=(e,t)=>{const r=new Hc({predicate:e});return zc(t,r),new Ba.G6(r.result)};const PE=class extends Rs{};const AE=class extends PE{},$E=(e,t)=>{if(void 0===t.$ref)return;const r=Yi(Zc(t.$ref)),s=Zc(t.meta.get("inherited$id"));return`${Hn(((e,t)=>Qi(e,eo(Xi(t)))),e,[...s,Zc(t.$ref)])}${"#"===r?"":r}`},TE=e=>{if(TE.cache.has(e))return TE.cache.get(e);const t=Jv.refract(e);return TE.cache.set(e,t),t};TE.cache=new WeakMap;const kE=e=>xc(e)?TE(e):e,_E=(e,t)=>{const{cache:r}=_E,s=Xi(e),n=e=>Zb(e)&&void 0!==e.$id;if(!r.has(t)){const e=SE(n,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=Zc(t.meta.get("inherited$id"));return Hn(((e,t)=>Qi(e,eo(Xi(t)))),e,[...r,Zc(t.$id)])})(s,e)===s));if(ji(i))throw new AE(`Evaluation failed on URI: "${e}"`);let o,a;return EE(jE(e))?(o=OE,a=jE(e)):(o=Xl,a=Kl(e)),o(a,i)};_E.cache=new WeakMap;const CE=class extends Hw{};const ME=class extends tE{};const IE=class extends rE{},FE=async(e,t)=>{const r=new qw({uri:eo(Xi(e)),mediaType:t.parse.mediaType}),s=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),s=await Uw("canRead",[e,t],r);if(cl(s))throw new IE(e.uri);try{const{result:t}=await Vw("read",[e],s);return t}catch(t){throw new tE(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),s=await Uw("canParse",[e,t],r);if(cl(s))throw new IE(e.uri);try{const{plugin:r,result:n}=await Vw("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new Jw(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new Jw(`Error while parsing file "${e.uri}"`,{cause:t})}})(new qw({...r,data:s}),t)};class RE extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(oc(r)&&e(r))return r}}const DE=zc[Symbol.for("nodejs.util.promisify.custom")],NE=new yE,LE=(e,t,r,s)=>{dc(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class qE{indirections;namespace;reference;options;ancestors;refractCache;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new RE,refractCache:i=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new RE(...n),this.refractCache=i}toBaseURI(e){return Qi(this.reference.uri,eo(Xi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new ME(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(pE(t,"uri"));const s=await FE(to(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new $w({uri:t,value:Rc(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new $w({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(oc));return[new RE(...this.ancestors,t),t]}async ReferenceElement(e,t,r,s,n,i){if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(Zc(e.$ref)),l=Xi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(Zc(e.$ref)),h=Qi(c,Zc(e.$ref));this.indirections.push(e);const d=Kl(h);let f=Xl(d,p.value.result);if(f.id=NE.identify(f),xc(f)){const t=Zc(e.meta.get("referenced-element")),r=`${t}-${Zc(NE.identify(f))}`;if(this.refractCache.has(r))f=this.refractCache.get(r);else if(hd(f))f=Uv.refract(f),f.setMetaProperty("referenced-element",t),this.refractCache.set(r,f);else{f=this.namespace.getElementClass(t).refract(f),this.refractCache.set(r,f)}}if(e===f)throw new Rs("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new CE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){var m,y;const t=new Ba.sI(f.id,{type:"reference",uri:p.uri,$ref:Zc(e.$ref)}),s=(null!==(m=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,LE),!r&&s}}const g=Xi(p.refSet.rootRef.uri)!==p.uri,v=["error","replace"].includes(this.options.dereference.circular);if((u||g||Jb(f)||v)&&!o.includesCycle(f)){a.add(e);const t=new qE({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await DE(f,t,{keyMap:vw,nodeTypeGetter:gw}),a.delete(e)}this.indirections.pop();const b=Lc(f);return b.setMetaProperty("id",NE.generateId()),b.setMetaProperty("ref-fields",{$ref:Zc(e.$ref),description:Zc(e.description),summary:Zc(e.summary)}),b.setMetaProperty("ref-origin",p.uri),b.setMetaProperty("ref-referencing-element-id",Rc(NE.identify(e))),pc(f)&&pc(b)&&(e.hasKey("description")&&"description"in f&&(b.remove("description"),b.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in f&&(b.remove("summary"),b.set("summary",e.get("summary")))),i.replaceWith(b,LE),!r&&b}async PathItemElement(e,t,r,s,n,i){if(!ac(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(Zc(e.$ref)),l=Xi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(Zc(e.$ref)),h=Qi(c,Zc(e.$ref));this.indirections.push(e);const d=Kl(h);let f=Xl(d,p.value.result);if(f.id=NE.identify(f),xc(f)){const e=`path-item-${Zc(NE.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=Lv.refract(f),this.refractCache.set(e,f))}if(e===f)throw new Rs("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new CE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){var m,y;const t=new Ba.sI(f.id,{type:"path-item",uri:p.uri,$ref:Zc(e.$ref)}),s=(null!==(m=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,LE),!r&&s}}const g=Xi(p.refSet.rootRef.uri)!==p.uri,v=["error","replace"].includes(this.options.dereference.circular);if((u||g||Hb(f)&&ac(f.$ref)||v)&&!o.includesCycle(f)){a.add(e);const t=new qE({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await DE(f,t,{keyMap:vw,nodeTypeGetter:gw}),a.delete(e)}if(this.indirections.pop(),Hb(f)){const t=new Lv([...f.content],Rc(f.meta),Rc(f.attributes));t.setMetaProperty("id",NE.generateId()),e.forEach(((e,r,s)=>{t.remove(Zc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Zc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Rc(NE.identify(e))),f=t}return i.replaceWith(f,LE),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!ac(e.operationRef)&&!ac(e.operationId))return;if(ac(e.operationRef)&&ac(e.operationId))throw new Rs("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ac(e.operationRef)){var a;const t=Kl(Zc(e.operationRef)),s=this.toBaseURI(Zc(e.operationRef)),n=Xi(this.reference.uri)===s,c=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Zc(e.operationRef));if(o=Xl(t,l.value.result),xc(o)){const e=`operation-${Zc(NE.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=Dv.refract(o),this.refractCache.set(e,o))}o=Lc(o),o.setMetaProperty("ref-origin",l.uri);const u=Lc(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(u,LE),r?void 0:u}if(ac(e.operationId)){var c;const t=Zc(e.operationId),s=await this.toReference(to(this.reference.uri));if(o=vE((e=>Ub(e)&&oc(e.operationId)&&e.operationId.equals(t)),s.value.result),ji(o))throw new Rs(`OperationElement(operationId=${t}) not found.`);const n=Lc(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,LE),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!ac(e.externalValue))return;if(e.hasKey("value")&&ac(e.externalValue))throw new Rs("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Zc(e.externalValue)),a=Xi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Zc(e.externalValue)),u=Lc(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=Lc(e);return p.value=u,i.replaceWith(p,LE),r?void 0:p}async SchemaElement(e,t,r,s,n,i){if(!ac(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]);let c=await this.toReference(to(this.reference.uri)),{uri:l}=c;const u=$E(l,e),p=Xi(u),h=new qw({uri:p}),d=dE((e=>e.canRead(h)),this.options.resolve.resolvers),f=!d;let m,y=Xi(this.reference.uri)===u,g=!y;this.indirections.push(e);try{if(d||f){l=this.toBaseURI(u);const e=u,t=kE(c.value.result);if(m=_E(e,t),m=kE(m),m.id=NE.identify(m),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return}else{if(l=this.toBaseURI(u),y=Xi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(to(u));const e=Kl(u),t=kE(c.value.result);m=Xl(e,t),m=kE(m),m.id=NE.identify(m)}}catch(e){if(!(f&&e instanceof AE))throw e;if(EE(jE(u))){if(y=Xi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(to(u));const e=jE(u),t=kE(c.value.result);m=OE(e,t),m=kE(m),m.id=NE.identify(m)}else{if(l=this.toBaseURI(u),y=Xi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(to(u));const e=Kl(u),t=kE(c.value.result);m=Xl(e,t),m=kE(m),m.id=NE.identify(m)}}if(e===m)throw new Rs("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new CE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(c.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){var v,b;const t=new Ba.sI(m.id,{type:"json-schema",uri:c.uri,$ref:Zc(e.$ref)}),s=(null!==(v=null===(b=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===b?void 0:b.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,LE),!r&&s}}const x=Xi(c.refSet.rootRef.uri)!==c.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||x||Zb(m)&&ac(m.$ref)||w)&&!o.includesCycle(m)){a.add(e);const t=new qE({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await DE(m,t,{keyMap:vw,nodeTypeGetter:gw}),a.delete(e)}if(this.indirections.pop(),Qb(m)){const t=Rc(m);return t.setMetaProperty("id",NE.generateId()),t.setMetaProperty("ref-fields",{$ref:Zc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Rc(NE.identify(e))),i.replaceWith(t,LE),!r&&t}if(Zb(m)){const t=new Jv([...m.content],Rc(m.meta),Rc(m.attributes));t.setMetaProperty("id",NE.generateId()),e.forEach(((e,r,s)=>{t.remove(Zc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Zc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Rc(NE.identify(e))),m=t}return i.replaceWith(m,LE),r?void 0:m}}const BE=qE,UE=zc[Symbol.for("nodejs.util.promisify.custom")];const VE=class extends hE{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?Aw.includes(e.mediaType):Bb(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=ml(bw),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Tw,i=new Tw;let o,a=n;n.has(e.uri)?o=n.find(pE(e.uri,"uri")):(o=new $w({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new $w({...e,value:Rc(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new BE({reference:o,namespace:s,options:t}),l=await UE(a.rootRef.value,c,{keyMap:vw,nodeTypeGetter:gw});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new $w({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},HE=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(dc(r)){const t=String(Zc(r.key));e.push(t)}else if(hc(t[s-2])){const n=t[s-2].content.indexOf(r);e.push(n)}return e}),[])};const zE=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,r,s,n)=>{void 0!==e.properties&&pc(e.properties)&&e.properties.forEach((t=>{if(pc(t))try{const e=this.modelPropertyMacro(Zc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...HE([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const GE=class{options;SchemaElement={leave(e,t,r,s,n){if(void 0===e.allOf)return;if(!hc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...HE([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return void e.remove("allOf");if(!e.allOf.content.every(Zb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...HE([...n,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}for(;e.hasKey("allOf");){const{allOf:t}=e;e.remove("allOf");const r=fp.all([...t.content,e]);if(e.hasKey("$$ref")||r.remove("$$ref"),e.hasKey("example")){const t=r.getMember("example");t&&(t.value=e.get("example"))}if(e.hasKey("examples")){const t=r.getMember("examples");t&&(t.value=e.get("examples"))}e.content=r.content}}};constructor({options:e}){this.options=e}};const JE=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#e?Zc(this.#e):null,o=Zc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=HE([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},KE=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const WE=class extends Ds{},{wrapError:YE}=Wo,XE=zc[Symbol.for("nodejs.util.promisify.custom")],ZE=new yE,QE=(e,t,r,s)=>{dc(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class ej extends BE{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:r=null,...s}){super(s),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r}async ReferenceElement(e,t,r,s,n,i){try{if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Zc(e.$ref)),a=Xi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return!1;if(!this.options.resolve.external&&c)return!1;const l=await this.toReference(Zc(e.$ref)),u=Qi(o,Zc(e.$ref));this.indirections.push(e);const p=Kl(u);let h=Xl(p,l.value.result);if(h.id=ZE.identify(h),xc(h)){const t=Zc(e.meta.get("referenced-element")),r=`${t}-${Zc(ZE.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(hd(h))h=Uv.refract(h),h.setMetaProperty("referenced-element",t),this.refractCache.set(r,h);else{h=this.namespace.getElementClass(t).refract(h),this.refractCache.set(r,h)}}if(e===h)throw new Rs("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new CE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ba.sI(h.id,{type:"reference",uri:l.uri,$ref:Zc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,QE),!r&&s}}const d=Xi(l.refSet.rootRef.uri)!==l.uri,f=["error","replace"].includes(this.options.dereference.circular);if((c||d||Jb(h)||f)&&!t.includesCycle(h)){s.add(e);const i=new ej({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...HE([...n,r,e]),"$ref"]});h=await XE(h,i,{keyMap:vw,nodeTypeGetter:gw}),s.delete(e)}this.indirections.pop();const m=Lc(h);if(m.setMetaProperty("ref-fields",{$ref:Zc(e.$ref),description:Zc(e.description),summary:Zc(e.summary)}),m.setMetaProperty("ref-origin",l.uri),m.setMetaProperty("ref-referencing-element-id",Rc(ZE.identify(e))),pc(h)&&(e.hasKey("description")&&"description"in h&&(m.remove("description"),m.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(m.remove("summary"),m.set("summary",e.get("summary")))),this.allowMetaPatches&&pc(m)&&!m.hasKey("$$ref")){const e=Qi(o,u);m.set("$$ref",e)}return i.replaceWith(m,QE),!r&&m}catch(t){const s=KE(t),i=YE(s,{baseDoc:this.reference.uri,$ref:Zc(e.$ref),pointer:Kl(Zc(e.$ref)),fullPath:this.basePath??[...HE([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{if(!ac(e.$ref))return;if(this.indirections.includes(e))return!1;if(jc(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(Zc(e.$ref)),a=Xi(this.reference.uri)===o,c=!a;if(!this.options.resolve.internal&&a)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(Zc(e.$ref)),u=Qi(o,Zc(e.$ref));this.indirections.push(e);const p=Kl(u);let h=Xl(p,l.value.result);if(h.id=ZE.identify(h),xc(h)){const e=`path-item-${Zc(ZE.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=Lv.refract(h),this.refractCache.set(e,h))}if(e===h)throw new Rs("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new CE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(h)){if(l.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ba.sI(h.id,{type:"path-item",uri:l.uri,$ref:Zc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,QE),!r&&s}}const d=Xi(l.refSet.rootRef.uri)!==l.uri,f=["error","replace"].includes(this.options.dereference.circular);if((c||d||Hb(h)&&ac(h.$ref)||f)&&!t.includesCycle(h)){s.add(e);const i=new ej({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...HE([...n,r,e]),"$ref"]});h=await XE(h,i,{keyMap:vw,nodeTypeGetter:gw}),s.delete(e)}if(this.indirections.pop(),Hb(h)){const t=new Lv([...h.content],Rc(h.meta),Rc(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(Zc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Zc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Rc(ZE.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Qi(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,QE),r?void 0:h}catch(t){const s=KE(t),i=YE(s,{baseDoc:this.reference.uri,$ref:Zc(e.$ref),pointer:Kl(Zc(e.$ref)),fullPath:this.basePath??[...HE([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{if(!ac(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let o=await this.toReference(to(this.reference.uri)),{uri:a}=o;const c=$E(a,e),l=Xi(c),u=new qw({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,f=Xi(this.reference.uri)===c,m=!f;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=kE(o.value.result);if(d=_E(e,t),d=kE(d),d.id=ZE.identify(d),!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return}else{if(a=this.toBaseURI(c),f=Xi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(to(c));const e=Kl(c),t=kE(o.value.result);d=Xl(e,t),d=kE(d),d.id=ZE.identify(d)}}catch(e){if(!(h&&e instanceof AE))throw e;if(EE(jE(c))){if(f=Xi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(to(c));const e=jE(c),t=kE(o.value.result);d=OE(e,t),d=kE(d),d.id=ZE.identify(d)}else{if(a=this.toBaseURI(Zc(c)),f=Xi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(to(c));const e=Kl(c),t=kE(o.value.result);d=Xl(e,t),d=kE(d),d.id=ZE.identify(d)}}if(e===d)throw new Rs("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new CE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(t.includes(d)){if(o.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Rs("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ba.sI(d.id,{type:"json-schema",uri:o.uri,$ref:Zc(e.$ref),baseURI:Qi(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,QE),!r&&s}}const y=Xi(o.refSet.rootRef.uri)!==o.uri,g=["error","replace"].includes(this.options.dereference.circular);if((m||y||Zb(d)&&ac(d.$ref)||g)&&!t.includesCycle(d)){s.add(e);const i=new ej({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...HE([...n,r,e]),"$ref"]});d=await XE(d,i,{keyMap:vw,nodeTypeGetter:gw}),s.delete(e)}if(this.indirections.pop(),Qb(d)){const t=Rc(d);return t.setMetaProperty("ref-fields",{$ref:Zc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Rc(ZE.identify(e))),i.replaceWith(t,QE),!r&&t}if(Zb(d)){const t=new Jv([...d.content],Rc(d.meta),Rc(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(Zc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:Zc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Rc(ZE.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=Qi(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,QE),r?void 0:d}catch(t){const s=KE(t),i=new WE(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:Zc(e.$ref),fullPath:this.basePath??[...HE([...n,r,e]),"$ref"],cause:s});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async LinkElement(){}async ExampleElement(e,t,r,s,n,i){try{return await super.ExampleElement(e,t,r,s,n,i)}catch(t){const s=KE(t),i=YE(s,{baseDoc:this.reference.uri,externalValue:Zc(e.externalValue),fullPath:this.basePath??[...HE([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const tj=ej,rj=_c[Symbol.for("nodejs.util.promisify.custom")];const sj=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new tj({...n,options:s})),"function"==typeof t&&i.push(new zE({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new GE({options:s})),"function"==typeof e&&i.push(new JE({parameterMacro:e,options:s}));const o=rj(i,{nodeTypeGetter:gw});Object.assign(this,o)}},nj=zc[Symbol.for("nodejs.util.promisify.custom")];const ij=class extends VE{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:r=null,mode:s="non-strict",ancestors:n=[],...i}={}){super({...i}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=r,this.mode=s,this.ancestors=[...n]}async dereference(e,t){const r=ml(bw),s=t.dereference.refSet??new Tw,n=new Tw;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new $w({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new $w({...e,value:Rc(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new sj({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await nj(o.rootRef.value,a,{keyMap:vw,nodeTypeGetter:gw});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new $w({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},oj=e=>{const t=Zc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Ba.Sh({$ref:t},Rc(r.meta),Rc(r.attributes))},aj=async e=>{const{spec:t,timeout:r,redirects:s,requestInterceptor:n,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:h=null,mode:d="non-strict",strategies:f}=e;try{const{cache:m}=aj,y=f.find((e=>e.match(t))),g=Ki(Zi())?Zi():p,v=Rr(e),b=Qi(g,v);let x;m.has(t)?x=m.get(t):(x=Rv.refract(t),x.classes.push("result"),m.set(t,x));const w=new Xa([x]),E=Al(o),j=""===E?"":`#${E}`,O=Xl(E,x),S=new $w({uri:b,value:w}),P=new Tw({refs:[S]});""!==E&&(P.rootRef=void 0);const A=[new Set([O])],$=[],T=await(async(e,t={})=>{const r=Lw(kw,t);return Gw(e,r)})(O,{resolve:{baseURI:`${b}${j}`,resolvers:[new iE({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new Zw]},parse:{mediaType:Aw.latest(),parsers:[new lE({allowEmpty:!1,sourceMap:!1}),new uE({allowEmpty:!1,sourceMap:!1}),new aE({allowEmpty:!1,sourceMap:!1}),new cE({allowEmpty:!1,sourceMap:!1}),new Yw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new ij({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:h,mode:d,ancestors:A})],refSet:P,dereferenceOpts:{errors:$},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?kw.dereference.circularReplacer:oj}}),k=((e,t,r)=>new jl({element:r}).transclude(e,t))(O,T,x),_=l?k:y.normalize(k);return{spec:Zc(_),errors:$}}catch(e){if(e instanceof Jl||e instanceof Yl)return{spec:null,errors:[]};throw e}};aj.cache=new WeakMap;const cj=aj;function lj(e,t,r){if(r||(r=new uj),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var s=function(s){var n=r.get(e);if(n)return n;for(var i in r.set(e,s),e)Object.prototype.hasOwnProperty.call(e,i)&&(s[i]=t?lj(e[i],!0,r):e[i]);return s};switch(cn(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return Ks(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var uj=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),s=this.map[r];s||(this.map[r]=s=[]),s.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],s=0;s<r.length;s+=1){if((i=r[s])[0]===e)return i[1]}else{var n=this.hash(e);if(r=this.map[n])for(s=0;s<r.length;s+=1){var i;if((i=r[s])[0]===e)return i[1]}}},e}(),pj=function(){function e(e,t,r,s){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=s,this.inputs={}}return e.prototype["@@transducer/init"]=En,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Xs(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,lj(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function hj(e,t,r){return function(s){return new pj(e,t,r,s)}}const dj=Bs(zn("groupBy",Qn(4,[],xn([],hj,(function(e,t,r,s){var n=Vn((function(s,n){var i=r(n),o=e(Xs(i,s)?s[i]:lj(t,!1),n);return o&&o["@@transducer/reduced"]?Ua(s):(s[i]=o,s)}));return Bn(n,{},s)})))((function(e,t){return e.push(t),e}),[])));const fj=class{internalStore;constructor(e,t,r){this.storageElement=e,this.storageField=t,this.storageSubField=r}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);pc(e)||(e=new Ba.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);hc(t)||(t=new Ba.wE,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},mj=e=>e.replace(/\s/g,""),yj=e=>e.replace(/\W/gi,"_"),gj=(e,t,r)=>{const s=mj(e);return s.length>0?yj(s):((e,t)=>`${yj(mj(t.toLowerCase()))}${yj(mj(e))}`)(t,r)},vj=({storageField:e="x-normalized",operationIdNormalizer:t=gj}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new fj(t,e,"operation-ids")},leave(){const e=dj((e=>Zc(e.operationId)),a);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,r)=>{const s=`${e}${r+1}`;t.operationId=new i.elements.String(s)})))})),c.forEach((e=>{if(void 0===e.operationId)return;const t=String(Zc(e.operationId)),r=a.find((e=>Zc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Rc.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),a.length=0,c.length=0,l=void 0}},PathItemElement:{enter(e){const t=Wn("path",Zc(e.meta.get("path")));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,r,s,c,u){if(void 0===e.operationId)return;const p=n([...u,s,e]);if(l.includes(p))return;const h=String(Zc(e.operationId)),d=Zn(o),f=Wn("method",Zc(e.meta.get("http-method"))),m=t(h,d,f);h!==m&&(e.operationId=new i.elements.String(m),e.set("__originalOperationId",h),e.meta.set("originalOperationId",h),a.push(e),l.append(p))}},LinkElement:{leave(e){s.isLinkElement(e)&&void 0!==e.operationId&&c.push(e)}}}}};var bj=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=En,e.prototype["@@transducer/result"]=jn,e.prototype["@@transducer/step"]=function(e,t){return Ys(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function xj(e){return function(t){return new bj(e,t)}}const wj=Bs(xn([],xj,(function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)Ys(e,r=t[s],i)||(i[i.length]=r),s+=1;return i}))),Ej=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t,n=(e,t)=>!!r.isParameterElement(e)&&(!!r.isParameterElement(t)&&(!!r.isStringElement(e.name)&&(!!r.isStringElement(e.in)&&(!!r.isStringElement(t.name)&&(!!r.isStringElement(t.in)&&(Zc(e.name)===Zc(t.name)&&Zc(e.in)===Zc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new fj(t,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e,t,s,n,o){if(o.some(r.isComponentsElement))return;const{parameters:a}=e;r.isArrayElement(a)?i.push([...a.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e,t,r,a,c){const l=Zn(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=gE([],["parameters","content"],e),h=wj(n,[...p,...l]);e.parameters=new Sg(h),o.append(u)}}}}},jj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new fj(t,e,"security-requirements"),r.isArrayElement(t.security)&&(n=t.security)},leave(){i=void 0,n=void 0}},OperationElement:{leave(e,t,o,a,c){if(c.some(r.isComponentsElement))return;const l=s([...c,o,e]);if(i.includes(l))return;var u;void 0===e.security&&void 0!==n&&(e.security=new Fg(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},Oj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new fj(t,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Rc.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Rc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Rc(e.example)),n.append(u)))}}}}}},Sj=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new fj(t,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e,t,i,o,a){var c,l;if(a.some(r.isComponentsElement))return;if(void 0===e.schema||!r.isSchemaElement(e.schema))return;if(void 0===(null===(c=e.schema)||void 0===c?void 0:c.example)&&void 0===(null===(l=e.schema)||void 0===l?void 0:l.examples))return;const u=s([...a,i,e]);if(!n.includes(u)){if(void 0!==e.examples&&r.isObjectElement(e.examples)){const t=e.examples.map((e=>Rc.safe(e.value)));return void 0!==e.schema.examples&&(e.schema.set("examples",t),n.append(u)),void(void 0!==e.schema.example&&(e.schema.set("example",t[0]),n.append(u)))}void 0!==e.example&&(void 0!==e.schema.examples&&(e.schema.set("examples",[Rc(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Rc(e.example)),n.append(u)))}}}}}},Pj=e=>{if(!pc(e))return e;const t=[vj({operationIdNormalizer:(e,t,r)=>va({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Ej(),jj(),Oj(),Sj()];return bl(e,t,{toolboxCreator:ww,visitorOptions:{keyMap:vw,nodeTypeGetter:gw}})},Aj={name:"openapi-3-1-apidom",match:e=>ja(e),normalize(e){if(!oc(e)&&qa(e)&&!e.$$normalized){const r=(t=Pj,e=>{const r=Rv.refract(e);r.classes.push("result");const s=t(r),n=Zc(s);return cj.cache.set(n,s),Zc(s)})(e);return r.$$normalized=!0,r}var t;return oc(e)?Pj(e):e},resolve:async e=>cj(e)};function $j(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:s}=e;for(const n in s)for(const i in s[n]){if("PARAMETERS"===i.toUpperCase())continue;const o=s[n][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:n,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const Tj=()=>null,kj={mapTagOperations:function({spec:e,cb:t=Tj,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return $j(e,(({pathName:o,method:a,operation:c})=>{var l;(c.tags?(l=c.tags,Array.isArray(l)?l:[l]):[r]).forEach((r=>{if("string"!=typeof r)return;i[r]=i[r]||{};const l=i[r],u=va(c,o,a,{v2OperationIdCompatibilityMode:s}),p=t({spec:e,pathName:o,method:a,operation:c,operationId:u});if(n[u])n[u]+=1,l[`${u}${n[u]}`]=p;else if(void 0!==l[u]){const e=n[u]||1;n[u]=e+1,l[`${u}${n[u]}`]=p;const t=l[u];delete l[u],l[`${u}${e}`]=t}else l[u]=p}))})),i},makeExecute:function(e={}){return({pathName:t,method:r,operationId:s})=>(n,i={})=>{const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:t,method:r,parameters:n,operationId:s,...i})}}};var _j=r(7427);const Cj=function(){const e=Fj,t=Ij,r=this,s="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let n,i,o,a,c,l,u,p=0,h=0,d=0,f=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(g,v,x,w)=>{const E=`${s}parse(): `;p=0,h=0,d=0,f=0,m=0,n=void 0,i=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(x),n=g.rules,i=g.udts;const j=v.toLowerCase();let O;for(const e in n)if(n.hasOwnProperty(e)&&j===n[e].lower){O=n[e].index;break}if(void 0===O)throw new Error(`${E}start rule name '${startRule}' not recognized`);(()=>{const e=`${s}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const s in r.callbacks)if(r.callbacks.hasOwnProperty(s)){if(t=a.indexOf(s.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${s}' not a rule or udt name`);if(o=r.callbacks[s]?r.callbacks[s]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${s}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),r.trace&&r.trace.init(n,i,a),r.stats&&r.stats.init(n,i),r.ast&&r.ast.init(n,i,a),u=w,o=[{type:e.RNM,index:O}],b(0,0),o=void 0;let S=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:S,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:d,nodeHits:f}};const g=(t,r,n,i)=>{if(r.phraseLength>n){let e=`${s}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${s}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},v=(t,c)=>{let h,d,f;const m=o[t],g=i[m.index];y.UdtIndex=g.index,p||(f=r.ast&&r.ast.udtDefined(m.index),f&&(d=n.length+m.index,h=r.ast.getLength(),r.ast.down(d,g.name)));const v=a.length-c;l[m.index](y,a,c,u),((t,r,n)=>{if(r.phraseLength>n){let e=`${s}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${s}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${s}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${s}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(g,y,v),p||f&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,g.name,c,y.phraseLength))},b=(t,i)=>{const l=`${s}opExecute(): `,x=o[t];switch(f+=1,h>d&&(d=h),h+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const s=o[t];for(let t=0;t<s.children.length&&(b(s.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,s)=>{let n,i,a,c;const l=o[t];r.ast&&(i=r.ast.getLength()),n=!0,a=s,c=0;for(let t=0;t<l.children.length;t+=1){if(b(l.children[t],a),y.state===e.NOMATCH){n=!1;break}a+=y.phraseLength,c+=y.phraseLength}n?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,s)=>{let n,i,c,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=s,c=0,l=0,r.ast&&(n=r.ast.getLength());!(i>=a.length)&&(b(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,c+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(n))})(t,i);break;case e.RNM:((t,s)=>{let i,l,h;const d=o[t],f=n[d.index],m=c[f.index];if(p||(l=r.ast&&r.ast.ruleDefined(d.index),l&&(i=r.ast.getLength(),r.ast.down(d.index,n[d.index].name))),m){const t=a.length-s;m(y,a,s,u),g(f,y,t,!0),y.state===e.ACTIVE&&(h=o,o=f.opcodes,b(0,s),o=h,m(y,a,s,u),g(f,y,t,!1))}else h=o,o=f.opcodes,b(0,s,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(d.index,f.name,s,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const s=o[t];y.state=e.NOMATCH,r<a.length&&s.min<=a[r]&&a[r]<=s.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const s=o[t],n=s.string.length;if(y.state=e.NOMATCH,r+n<=a.length){for(let e=0;e<n;e+=1)if(a[r+e]!==s.string[e])return;y.state=e.MATCH,y.phraseLength=n}})(t,i);break;case e.TLS:((t,r)=>{let s;const n=o[t];y.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(s=a[r+e],s>=65&&s<=90&&(s+=32),s!==n.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:v(t,i);break;case e.AND:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(p+=1,b(t+1,r),p-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}p||i+y.phraseLength>m&&(m=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},Mj=function(){const e=Fj,t=Ij,r=this;let s,n,i,o=0;const a=[],c=[],l=[];function u(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,u)=>{let p;c.length=0,l.length=0,o=0,s=e,n=t,i=u;const h=[];for(p=0;p<s.length;p+=1)h.push(s[p].lower);for(p=0;p<n.length;p+=1)h.push(n[p].lower);for(o=s.length+n.length,p=0;p<o;p+=1)a[p]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(p=h.indexOf(t),p<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[p]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[s.length+e],r.down=(t,r)=>{const s=l.length;return c.push(s),l.push({name:r,thisIndex:s,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),s},r.up=(t,r,s,n)=>{const i=l.length,o=c.pop();return l.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:s,phraseLength:n,stack:c.length}),l[o].thatIndex=i,l[o].phraseIndex=s,l[o].phraseLength=n,i},r.translate=t=>{let r,s;for(let n=0;n<l.length;n+=1)s=l[n],r=a[s.callbackIndex],r&&(s.state===e.SEM_PRE?r(e.SEM_PRE,i,s.phraseIndex,s.phraseLength,t):r&&r(e.SEM_POST,i,s.phraseIndex,s.phraseLength,t))},r.setLength=e=>{l.length=e,c.length=e>0?l[e-1].stack:0},r.getLength=()=>l.length,r.toXml=()=>{let r="",s=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${l.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=u(s+2),r+=t.charsToString(i),r+="\n",l.forEach((n=>{n.state===e.SEM_PRE?(s+=1,r+=u(s),r+=`<node name="${n.name}" index="${n.phraseIndex}" length="${n.phraseLength}">\n`,r+=u(s+2),r+=t.charsToString(i,n.phraseIndex,n.phraseLength),r+="\n"):(r+=u(s),r+=`</node>\x3c!-- name="${n.name}" --\x3e\n`,s-=1)})),r+="</root>\n",r}},Ij={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let s=e;for(;!(void 0===t||t<0);){if(void 0===r){s=e.slice(t);break}if(r<=0)return"";s=e.slice(t,t+r);break}return String.fromCodePoint(...s)}},Fj={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Fj.ALT:return"ALT";case Fj.CAT:return"CAT";case Fj.REP:return"REP";case Fj.RNM:return"RNM";case Fj.TRG:return"TRG";case Fj.TBS:return"TBS";case Fj.TLS:return"TLS";case Fj.UDT:return"UDT";case Fj.AND:return"AND";case Fj.NOT:return"NOT";case Fj.ACTIVE:return"ACTIVE";case Fj.EMPTY:return"EMPTY";case Fj.MATCH:return"MATCH";case Fj.NOMATCH:return"NOMATCH";case Fj.SEM_PRE:return"SEM_PRE";case Fj.SEM_POST:return"SEM_POST";case Fj.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const Rj=(e,t,r,s,n)=>{if(e===Fj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",Ij.charsToString(t,r,s)])}return Fj.SEM_OK},Dj=(e,t,r,s,n)=>{if(e===Fj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",Ij.charsToString(t,r,s)])}return Fj.SEM_OK},Nj=(e,t,r,s,n)=>{if(e===Fj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",Ij.charsToString(t,r,s)])}return Fj.SEM_OK},Lj=(e,t,r,s,n)=>{if(e===Fj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",Ij.charsToString(t,r,s)])}return Fj.SEM_OK},qj=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"ALPHA",lower:"alpha",index:4,isBkr:!1},this.rules[5]={name:"DIGIT",lower:"digit",index:5,isBkr:!1},this.rules[6]={name:"HEXDIG",lower:"hexdig",index:6,isBkr:!1},this.rules[7]={name:"pct-encoded",lower:"pct-encoded",index:7,isBkr:!1},this.rules[8]={name:"unreserved",lower:"unreserved",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ucschar",lower:"ucschar",index:10,isBkr:!1},this.rules[11]={name:"iprivate",lower:"iprivate",index:11,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[2].opcodes[2]={type:4,index:8},this.rules[2].opcodes[3]={type:4,index:7},this.rules[2].opcodes[4]={type:4,index:9},this.rules[2].opcodes[5]={type:7,string:[58]},this.rules[2].opcodes[6]={type:7,string:[64]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13,14]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:6,string:[38]},this.rules[3].opcodes[5]={type:5,min:40,max:59},this.rules[3].opcodes[6]={type:6,string:[61]},this.rules[3].opcodes[7]={type:5,min:63,max:91},this.rules[3].opcodes[8]={type:6,string:[93]},this.rules[3].opcodes[9]={type:6,string:[95]},this.rules[3].opcodes[10]={type:5,min:97,max:122},this.rules[3].opcodes[11]={type:6,string:[126]},this.rules[3].opcodes[12]={type:4,index:10},this.rules[3].opcodes[13]={type:4,index:11},this.rules[3].opcodes[14]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:65,max:90},this.rules[4].opcodes[2]={type:5,min:97,max:122},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[6].opcodes[1]={type:4,index:5},this.rules[6].opcodes[2]={type:7,string:[97]},this.rules[6].opcodes[3]={type:7,string:[98]},this.rules[6].opcodes[4]={type:7,string:[99]},this.rules[6].opcodes[5]={type:7,string:[100]},this.rules[6].opcodes[6]={type:7,string:[101]},this.rules[6].opcodes[7]={type:7,string:[102]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:2,children:[1,2,3]},this.rules[7].opcodes[1]={type:7,string:[37]},this.rules[7].opcodes[2]={type:4,index:6},this.rules[7].opcodes[3]={type:4,index:6},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[8].opcodes[1]={type:4,index:4},this.rules[8].opcodes[2]={type:4,index:5},this.rules[8].opcodes[3]={type:7,string:[45]},this.rules[8].opcodes[4]={type:7,string:[46]},this.rules[8].opcodes[5]={type:7,string:[95]},this.rules[8].opcodes[6]={type:7,string:[126]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[10].opcodes[1]={type:5,min:160,max:55295},this.rules[10].opcodes[2]={type:5,min:63744,max:64975},this.rules[10].opcodes[3]={type:5,min:65008,max:65519},this.rules[10].opcodes[4]={type:5,min:65536,max:131069},this.rules[10].opcodes[5]={type:5,min:131072,max:196605},this.rules[10].opcodes[6]={type:5,min:196608,max:262141},this.rules[10].opcodes[7]={type:5,min:262144,max:327677},this.rules[10].opcodes[8]={type:5,min:327680,max:393213},this.rules[10].opcodes[9]={type:5,min:393216,max:458749},this.rules[10].opcodes[10]={type:5,min:458752,max:524285},this.rules[10].opcodes[11]={type:5,min:524288,max:589821},this.rules[10].opcodes[12]={type:5,min:589824,max:655357},this.rules[10].opcodes[13]={type:5,min:655360,max:720893},this.rules[10].opcodes[14]={type:5,min:720896,max:786429},this.rules[10].opcodes[15]={type:5,min:786432,max:851965},this.rules[10].opcodes[16]={type:5,min:851968,max:917501},this.rules[10].opcodes[17]={type:5,min:921600,max:983037},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3]},this.rules[11].opcodes[1]={type:5,min:57344,max:63743},this.rules[11].opcodes[2]={type:5,min:983040,max:1048573},this.rules[11].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+="; OpenAPI Server URL templating ABNF syntax\n",e+="server-url-template = 1*( literals / server-variable )\n",e+='server-variable = "{" server-variable-name "}"\n',e+='server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="literals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n",e+=" / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n",e+=" / pct-encoded)\n",e+=" ; any Unicode character except: CTL, SP,\n",e+=' ; DQUOTE, "\'", "%" (aside from pct-encoded),\n',e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+="\n",e+="; Characters definitions (from RFC 6570)\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+=" ; case-insensitive\n",e+="\n",e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="\n",e+="ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n",e+=" / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n",e+=" / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n",e+=" / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n",e+=" / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n",e+=" / %xD0000-DFFFD / %xE1000-EFFFD\n",e+="\n",e+="iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n",'; OpenAPI Server URL templating ABNF syntax\nserver-url-template = 1*( literals / server-variable )\nserver-variable = "{" server-variable-name "}"\nserver-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\nliterals = 1*( %x21 / %x23-24 / %x26 / %x28-3B / %x3D / %x3F-5B\n / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate\n / pct-encoded)\n ; any Unicode character except: CTL, SP,\n ; DQUOTE, "\'", "%" (aside from pct-encoded),\n ; "<", ">", "\\", "^", "`", "{", "|", "}"\n\n; Characters definitions (from RFC 6570)\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n ; case-insensitive\n\npct-encoded = "%" HEXDIG HEXDIG\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\nucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF\n / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD\n / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD\n / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD\n / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD\n / %xD0000-DFFFD / %xE1000-EFFFD\n\niprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD\n'}},Bj=e=>{const t=new Cj;t.ast=new Mj,t.ast.callbacks["server-url-template"]=Rj,t.ast.callbacks["server-variable"]=Dj,t.ast.callbacks["server-variable-name"]=Nj,t.ast.callbacks.literals=Lj;return{result:t.parse(qj,"server-url-template",e),ast:t.ast}},Uj=(e,{strict:t=!1}={})=>{try{const r=Bj(e);if(!r.result.success)return!1;const s=[];r.ast.translate(s);const n=s.some((([e])=>"server-variable"===e));if(!t&&!n)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return!t||n}catch{return!1}},Vj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Hj=["literals","server-variable-name"],zj=(e,t,r={})=>{const s={...{encoder:Vj},...r},n=Bj(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>Hj.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};const Gj=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["slash",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),Jj=(e,t,r,s,n)=>{if(e===Fj.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",Ij.charsToString(t,r,s)])}return Fj.SEM_OK},Kj=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["path",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),Wj=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["path-literal",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),Yj=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["query",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),Xj=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["query-marker",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),Zj=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["fragment",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),Qj=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["fragment-marker",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),eO=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["template-expression",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),tO=(e,t,r,s,n)=>(e===Fj.SEM_PRE?n.push(["template-expression-param-name",Ij.charsToString(t,r,s)]):Fj.SEM_POST,Fj.SEM_OK),rO=new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path",lower:"path",index:1,isBkr:!1},this.rules[2]={name:"path-segment",lower:"path-segment",index:2,isBkr:!1},this.rules[3]={name:"query",lower:"query",index:3,isBkr:!1},this.rules[4]={name:"query-literal",lower:"query-literal",index:4,isBkr:!1},this.rules[5]={name:"query-marker",lower:"query-marker",index:5,isBkr:!1},this.rules[6]={name:"fragment",lower:"fragment",index:6,isBkr:!1},this.rules[7]={name:"fragment-literal",lower:"fragment-literal",index:7,isBkr:!1},this.rules[8]={name:"fragment-marker",lower:"fragment-marker",index:8,isBkr:!1},this.rules[9]={name:"slash",lower:"slash",index:9,isBkr:!1},this.rules[10]={name:"path-literal",lower:"path-literal",index:10,isBkr:!1},this.rules[11]={name:"template-expression",lower:"template-expression",index:11,isBkr:!1},this.rules[12]={name:"template-expression-param-name",lower:"template-expression-param-name",index:12,isBkr:!1},this.rules[13]={name:"unreserved",lower:"unreserved",index:13,isBkr:!1},this.rules[14]={name:"pct-encoded",lower:"pct-encoded",index:14,isBkr:!1},this.rules[15]={name:"sub-delims",lower:"sub-delims",index:15,isBkr:!1},this.rules[16]={name:"ALPHA",lower:"alpha",index:16,isBkr:!1},this.rules[17]={name:"DIGIT",lower:"digit",index:17,isBkr:!1},this.rules[18]={name:"HEXDIG",lower:"hexdig",index:18,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:5},this.rules[0].opcodes[5]={type:4,index:3},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:2,children:[8,9]},this.rules[0].opcodes[8]={type:4,index:8},this.rules[0].opcodes[9]={type:4,index:6},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,6]},this.rules[1].opcodes[1]={type:4,index:9},this.rules[1].opcodes[2]={type:3,min:0,max:1/0},this.rules[1].opcodes[3]={type:2,children:[4,5]},this.rules[1].opcodes[4]={type:4,index:2},this.rules[1].opcodes[5]={type:4,index:9},this.rules[1].opcodes[6]={type:3,min:0,max:1},this.rules[1].opcodes[7]={type:4,index:2},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:10},this.rules[2].opcodes[3]={type:4,index:11},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:4},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10]},this.rules[4].opcodes[2]={type:4,index:13},this.rules[4].opcodes[3]={type:4,index:14},this.rules[4].opcodes[4]={type:4,index:15},this.rules[4].opcodes[5]={type:7,string:[58]},this.rules[4].opcodes[6]={type:7,string:[64]},this.rules[4].opcodes[7]={type:7,string:[47]},this.rules[4].opcodes[8]={type:7,string:[63]},this.rules[4].opcodes[9]={type:7,string:[38]},this.rules[4].opcodes[10]={type:7,string:[61]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:7,string:[63]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:0,max:1/0},this.rules[6].opcodes[1]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:3,min:1,max:1/0},this.rules[7].opcodes[1]={type:1,children:[2,3,4,5,6,7,8]},this.rules[7].opcodes[2]={type:4,index:13},this.rules[7].opcodes[3]={type:4,index:14},this.rules[7].opcodes[4]={type:4,index:15},this.rules[7].opcodes[5]={type:7,string:[58]},this.rules[7].opcodes[6]={type:7,string:[64]},this.rules[7].opcodes[7]={type:7,string:[47]},this.rules[7].opcodes[8]={type:7,string:[63]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:7,string:[35]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:7,string:[47]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:3,min:1,max:1/0},this.rules[10].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[10].opcodes[2]={type:4,index:13},this.rules[10].opcodes[3]={type:4,index:14},this.rules[10].opcodes[4]={type:4,index:15},this.rules[10].opcodes[5]={type:7,string:[58]},this.rules[10].opcodes[6]={type:7,string:[64]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:2,children:[1,2,3]},this.rules[11].opcodes[1]={type:7,string:[123]},this.rules[11].opcodes[2]={type:4,index:12},this.rules[11].opcodes[3]={type:7,string:[125]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:3,min:1,max:1/0},this.rules[12].opcodes[1]={type:1,children:[2,3,4,5,6]},this.rules[12].opcodes[2]={type:4,index:13},this.rules[12].opcodes[3]={type:4,index:14},this.rules[12].opcodes[4]={type:4,index:15},this.rules[12].opcodes[5]={type:7,string:[58]},this.rules[12].opcodes[6]={type:7,string:[64]},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[13].opcodes[1]={type:4,index:16},this.rules[13].opcodes[2]={type:4,index:17},this.rules[13].opcodes[3]={type:7,string:[45]},this.rules[13].opcodes[4]={type:7,string:[46]},this.rules[13].opcodes[5]={type:7,string:[95]},this.rules[13].opcodes[6]={type:7,string:[126]},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2,3]},this.rules[14].opcodes[1]={type:7,string:[37]},this.rules[14].opcodes[2]={type:4,index:18},this.rules[14].opcodes[3]={type:4,index:18},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[15].opcodes[1]={type:7,string:[33]},this.rules[15].opcodes[2]={type:7,string:[36]},this.rules[15].opcodes[3]={type:7,string:[38]},this.rules[15].opcodes[4]={type:7,string:[39]},this.rules[15].opcodes[5]={type:7,string:[40]},this.rules[15].opcodes[6]={type:7,string:[41]},this.rules[15].opcodes[7]={type:7,string:[42]},this.rules[15].opcodes[8]={type:7,string:[43]},this.rules[15].opcodes[9]={type:7,string:[44]},this.rules[15].opcodes[10]={type:7,string:[59]},this.rules[15].opcodes[11]={type:7,string:[61]},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2]},this.rules[16].opcodes[1]={type:5,min:65,max:90},this.rules[16].opcodes[2]={type:5,min:97,max:122},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:48,max:57},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[18].opcodes[1]={type:4,index:17},this.rules[18].opcodes[2]={type:7,string:[97]},this.rules[18].opcodes[3]={type:7,string:[98]},this.rules[18].opcodes[4]={type:7,string:[99]},this.rules[18].opcodes[5]={type:7,string:[100]},this.rules[18].opcodes[6]={type:7,string:[101]},this.rules[18].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+="; OpenAPI Path Templating ABNF syntax\n",e+="path-template = path [ query-marker query ] [ fragment-marker fragment ]\n",e+="path = slash *( path-segment slash ) [ path-segment ]\n",e+="path-segment = 1*( path-literal / template-expression )\n",e+="query = *( query-literal )\n",e+='query-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\n',e+='query-marker = "?"\n',e+="fragment = *( fragment-literal )\n",e+='fragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\n',e+='fragment-marker = "#"\n',e+='slash = "/"\n',e+='path-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+='template-expression = "{" template-expression-param-name "}"\n',e+='template-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n',e+="\n",e+="; Characters definitions (from RFC 3986)\n",e+='unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\n',e+='pct-encoded = "%" HEXDIG HEXDIG\n',e+='sub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n',e+=' / "*" / "+" / "," / ";" / "="\n',e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="DIGIT = %x30-39 ; 0-9\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n','; OpenAPI Path Templating ABNF syntax\npath-template = path [ query-marker query ] [ fragment-marker fragment ]\npath = slash *( path-segment slash ) [ path-segment ]\npath-segment = 1*( path-literal / template-expression )\nquery = *( query-literal )\nquery-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" / "&" / "=" )\nquery-marker = "?"\nfragment = *( fragment-literal )\nfragment-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" / "/" / "?" )\nfragment-marker = "#"\nslash = "/"\npath-literal = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\ntemplate-expression = "{" template-expression-param-name "}"\ntemplate-expression-param-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )\n\n; Characters definitions (from RFC 3986)\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\npct-encoded = "%" HEXDIG HEXDIG\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nDIGIT = %x30-39 ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n'}},sO=e=>{const t=new Cj;t.ast=new Mj,t.ast.callbacks["path-template"]=Jj,t.ast.callbacks.path=Kj,t.ast.callbacks.query=Yj,t.ast.callbacks["query-marker"]=Xj,t.ast.callbacks.fragment=Zj,t.ast.callbacks["fragment-marker"]=Qj,t.ast.callbacks.slash=Gj,t.ast.callbacks["path-literal"]=Wj,t.ast.callbacks["template-expression"]=eO,t.ast.callbacks["template-expression-param-name"]=tO;return{result:t.parse(rO,"path-template",e),ast:t.ast}},nO=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),iO=["slash","path-literal","query-marker","query-literal","template-expression-param-name"],oO=(e,t,r={})=>{const s={...{encoder:nO},...r},n=sO(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>iO.includes(e))).map((([e,r])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")},aO={body:function({req:e,value:t}){void 0!==t&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},void 0!==r&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){e.query=e.query||{},!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r,baseURL:s}){if(void 0!==t){const n=e.url.replace(s,""),i=oO(n,{[r.name]:t});e.url=s+i}},formData:function({req:e,value:t,parameter:r}){!1===t&&"boolean"===r.type&&(t="false");0===t&&["number","integer"].indexOf(r.type)>-1&&(t="0");if(t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&void 0!==t){e.form=e.form||{};const t=r.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}};function cO(e,t){return t.includes("application/json")?"string"==typeof e?e:(Array.isArray(e)&&(e=e.map((e=>{try{return JSON.parse(e)}catch(t){return e}}))),JSON.stringify(e)):String(e)}function lO({req:e,value:t,parameter:r,baseURL:s}){const{name:n,style:i,explode:o,content:a}=r;if(void 0===t)return;const c=e.url.replace(s,"");let l;if(a){const e=Object.keys(a)[0];l=oO(c,{[n]:t},{encoder:t=>S(cO(t,e))})}else l=oO(c,{[n]:t},{encoder:e=>P({key:r.name,value:e,style:i||"simple",explode:o||!1,escape:"reserved"})});e.url=s+l}function uO({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=cO(t,Object.keys(r.content)[0]);if(s)e.query[r.name]=s;else if(r.allowEmptyValue){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}else if(!1===t&&(t="false"),0===t&&(t="0"),t){const{style:s,explode:n,allowReserved:i}=r;e.query[r.name]={value:t,serializationOption:{style:s,explode:n,allowReserved:i}}}else if(r.allowEmptyValue&&void 0!==t){const t=r.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}const pO=["accept","authorization","content-type"];function hO({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(pO.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=cO(r,s)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=P({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function dO({req:e,parameter:t,value:r}){e.headers=e.headers||{};const s=typeof r;if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${cO(r,s)}`}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n="object"===s&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=n+P({key:t.name,value:r,escape:!1,style:t.style||"form",explode:void 0!==t.explode&&t.explode})}}const fO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:mO}=fO,yO=mO;function gO(e,t){const{operation:r,requestBody:s,securities:n,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={}}=t,o=r.security||s.security||[],a=i&&!!Object.keys(i).length,c=s?.components?.securitySchemes||{};if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!a||!o||Array.isArray(r.security)&&!r.security.length)return e;return o.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e],r=c[e];if(!t)return;const s=t.value||t,{type:o}=r;if(t)if("apiKey"===o)"query"===r.in&&(n.query[r.name]=s),"header"===r.in&&(n.headers[r.name]=s),"cookie"===r.in&&(n.cookies[r.name]=s);else if("http"===o){if(/^basic$/i.test(r.scheme)){const e=s.username||"",t=s.password||"",r=yO(`${e}:${t}`);n.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(n.headers.Authorization=`Bearer ${s}`)}else if("oauth2"===o||"openIdConnect"===o){const e=t.token||{},s=e[r["x-tokenName"]||"access_token"];let i=e.token_type;i&&"bearer"!==i.toLowerCase()||(i="Bearer"),n.headers.Authorization=`${i} ${s}`}}))})),n}({request:t,securities:n,operation:r,spec:i});const c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(s||o){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((([e,t])=>{const r=parseInt(e,10);return r>=200&&r<300&&qa(t.content)})).reduce(((e,[,t])=>e.concat(Object.keys(t.content))),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(s)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof s){const e=c.content[a]?.encoding??{};t.form={},Object.keys(s).forEach((r=>{let n;try{n=JSON.parse(s[r])}catch{n=s[r]}t.form[r]={value:n,encoding:e[r]||{}}}))}else if("string"==typeof s){const e=c.content[a]?.encoding??{};try{t.form={};const r=JSON.parse(s);Object.entries(r).forEach((([r,s])=>{t.form[r]={value:s,encoding:e[r]||{}}}))}catch{t.form=s}}else t.form=s;else t.body=s}else t.body=s;return t}function vO(e,t){const{spec:r,operation:s,securities:n,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function({request:e,securities:t={},operation:r={},spec:s}){const n={...e},{authorized:i={},specSecurity:o=[]}=t,a=r.security||o,c=i&&!!Object.keys(i).length,l=s.securityDefinitions;if(n.headers=n.headers||{},n.query=n.query||{},!Object.keys(t).length||!c||!a||Array.isArray(r.security)&&!r.security.length)return e;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=i[e];if(!t)return;const{token:r}=t,s=t.value||t,o=l[e],{type:a}=o,c=o["x-tokenName"]||"access_token",u=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===o.in?"query":"headers";n[e]=n[e]||{},n[e][o.name]=s}else if("basic"===a)if(s.header)n.headers.authorization=s.header;else{const e=s.username||"",t=s.password||"";s.base64=yO(`${e}:${t}`),n.headers.authorization=`Basic ${s.base64}`}else"oauth2"===a&&u&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",n.headers.authorization=`${p} ${u}`)}))})),n}({request:t,securities:n,operation:s,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(s.consumes)?[t.headers["Content-Type"]]=s.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:s.parameters&&s.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=s.parameters&&s.parameters.filter((e=>"body"===e.in)).length>0,r=s.parameters&&s.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(s.produces)&&s.produces.length>0&&(t.headers.accept=s.produces.join(", ")),t}function bO(e,t){return`${t.toLowerCase()}-${e}`}function xO(e,t){return e&&e.paths?function(e,t){return $j(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[va(s,e,r),bO(e,r),n].some((e=>e&&e===t))})):null}const wO=e=>Array.isArray(e)?e:[],EO=e=>{try{return new URL(e)}catch{const t=new URL(e,p),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class jO extends Ds{}const OO={buildRequest:SO};function SO(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:u,serverVariables:p,http:h,signal:d}=e;let{parameters:f,parameterBuilders:m}=e;const y=Oa(t);m||(m=y?l:aO);let g={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};d&&(g.signal=d),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),c&&(g.userFetch=c);const v=xO(t,r);if(!v)throw new jO(`Operation ${r} not found`);const{operation:b={},method:x,pathName:w}=v,E=AO({spec:t,scheme:n,contextUrl:a,server:u,serverVariables:p,pathName:w,method:x});if(g.url+=E,!r)return delete g.cookies,g;g.url+=w,g.method=`${x}`.toUpperCase(),f=f||{};const j=t.paths[w]||{};s&&(g.headers.accept=s);const O=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((s=>{r.push(t[e][s])}))})),r})([].concat(wO(b.parameters)).concat(wO(j.parameters)));O.forEach((e=>{const r=m[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=f),s=e&&e.name&&f[e.name],void 0===s?s=e&&e.name&&f[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,O).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==s){if(void 0!==e.default&&void 0===s&&(s=e.default),void 0===s&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(y&&e.schema&&"object"===e.schema.type&&"string"==typeof s)try{s=JSON.parse(s)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:g,parameter:e,value:s,operation:b,spec:t,baseURL:E})}}));const S={...e,operation:b};if(g=y?gO(S,g):vO(S,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+_j.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,I(g)}const PO=e=>e?e.replace(/\W/g,""):null;function AO(e){return Oa(e.spec)?function({spec:e,pathName:t,method:r,server:s,contextUrl:n,serverVariables:i={}}){let o,a=[],c="";const l=e?.paths?.[t]?.[(r||"").toLowerCase()]?.servers,u=e?.paths?.[t]?.servers,p=e?.servers;a=$O(l)?l:$O(u)?u:$O(p)?p:[h],s&&(o=a.find((e=>e.url===s)),o&&(c=s));c||([o]=a,c=o.url);if(Uj(c,{strict:!0})){const e=Object.entries({...o.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});c=zj(c,{...e,...i})}return function(e="",t=""){const r=EO(e&&t?Qi(t,e):e),s=EO(t),n=PO(r.protocol)||PO(s.protocol),i=r.host||s.host,o=r.pathname;let a;a=n&&i?`${n}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(c,n)}(e):function({spec:e,scheme:t,contextUrl:r=""}){const s=EO(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||PO(s.protocol)||"http",o=e.host||s.host||"",a=e.basePath||"";let c;c=i&&o?`${i}://${o+a}`:a;return"/"===c[c.length-1]?c.slice(0,-1):c}(e)}const $O=e=>Array.isArray(e)&&e.length>0;const{q$:TO}=n,kO=TO;function _O(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof _O))return new _O(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,_O.makeApisTagOperation(this)),this)));return r.client=this,r}_O.http=Ir,_O.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=I(s),s=t(s),r(e(s)))}.bind(null,_O.http),_O.resolveStrategies={"openapi-3-1-apidom":Aj,"openapi-3-0":Pa,"openapi-2-0":Sa,generic:xa},_O.resolve=Aa({strategies:[_O.resolveStrategies["openapi-3-1-apidom"],_O.resolveStrategies["openapi-3-0"],_O.resolveStrategies["openapi-2-0"],_O.resolveStrategies.generic]}),_O.resolveSubtree=Ta({strategies:[_O.resolveStrategies["openapi-3-1-apidom"],_O.resolveStrategies["openapi-3-0"],_O.resolveStrategies["openapi-2-0"],_O.resolveStrategies.generic]}),_O.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...c}){const l=e||t||Ir;n&&i&&!s&&(s=bO(n,i));const u=OO.buildRequest({spec:r,operationId:s,parameters:o,securities:a,http:l,...c});return u.body&&(qa(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},_O.serializeRes=Mr,_O.serializeHeaders=Cr,_O.clearCache=function(){ma.refs.clearCache()},_O.makeApisTagOperation=function(e={}){const t=kj.makeExecute(e);return{apis:kj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},_O.buildRequest=SO,_O.helpers={opId:va},_O.getBaseUrl=AO,_O.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:iE}},parse:{parsers:{JsonParser:aE,YamlParser:cE,OpenApiJson3_1Parser:lE,OpenApiYaml3_1Parser:uE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:ij}}},_O.prototype={http:Ir,execute(e){return this.applyDefaults(),_O.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(e={}){return _O.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},_O.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(wa(e)&&kO(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(Oa(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[h])}};const{helpers:CO}=_O,MO=_O})(),s=s.default})()));
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|