package.dist.apidom-ns-json-schema-draft-7.browser.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apidom-ns-json-schema-draft-7 Show documentation
Show all versions of apidom-ns-json-schema-draft-7 Show documentation
JSON Schema Draft 7 namespace for ApiDOM.
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsJSONSchemaDraft7=t():e.apidomNsJSONSchemaDraft7=t()}(self,(()=>(()=>{var e={9515:(e,t,n)=>{var r=n(8761)(n(7772),"DataView");e.exports=r},9612:(e,t,n)=>{var r=n(2118),s=n(6909),i=n(8138),o=n(4174),c=n(7942);function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(3945),s=n(1846),i=n(8028),o=n(2344),c=n(4769);function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(8761)(n(7772),"Map");e.exports=r},6738:(e,t,n)=>{var r=n(2411),s=n(6417),i=n(6928),o=n(9493),c=n(4150);function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(8761)(n(7772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(8761)(n(7772),"Set");e.exports=r},5386:(e,t,n)=>{var r=n(6738),s=n(2842),i=n(2482);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(235),s=n(5243),i=n(2858),o=n(4417),c=n(8605),a=n(1418);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},9162:(e,t,n)=>{var r=n(7772).Uint8Array;e.exports=r},3215:(e,t,n)=>{var r=n(8761)(n(7772),"WeakMap");e.exports=r},7552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n{var r=n(6473),s=n(9631),i=n(6152),o=n(3226),c=n(9045),a=n(7598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),f=!n&&!l&&!p&&a(e),h=n||l||p||f,m=h?r(e.length,String):[],d=m.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,d))||m.push(y);return m}},5067:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,s=e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(1225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1897:(e,t,n)=>{var r=n(5067),s=n(6152);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},3366:(e,t,n)=>{var r=n(857),s=n(2107),i=n(7157),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},8746:(e,t,n)=>{var r=n(1952),s=n(5125);e.exports=function e(t,n,i,o,c){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,c))}},1952:(e,t,n)=>{var r=n(6571),s=n(4871),i=n(1491),o=n(7416),c=n(940),a=n(6152),u=n(3226),l=n(7598),p="[object Arguments]",f="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,y,b){var v=a(e),g=a(t),O=v?f:c(e),j=g?f:c(t),S=(O=O==p?h:O)==h,E=(j=j==p?h:j)==h,x=O==j;if(x&&u(e)){if(!u(t))return!1;v=!0,S=!1}if(x&&!S)return b||(b=new r),v||l(e)?s(e,t,n,d,y,b):i(e,t,O,n,d,y,b);if(!(1&n)){var w=S&&m.call(e,"__wrapped__"),A=E&&m.call(t,"__wrapped__");if(w||A){var k=w?e.value():e,P=A?t.value():t;return b||(b=new r),y(k,P,n,d,b)}}return!!x&&(b||(b=new r),o(e,t,n,d,y,b))}},6840:(e,t,n)=>{var r=n(1049),s=n(7394),i=n(9259),o=n(7035),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(r(e)?f:c).test(o(e))}},5522:(e,t,n)=>{var r=n(3366),s=n(1158),i=n(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[r(e)]}},6411:(e,t,n)=>{var r=n(6001),s=n(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,n)=>{var r=n(7772)["__core-js_shared__"];e.exports=r},4871:(e,t,n)=>{var r=n(5386),s=n(7064),i=n(9950);e.exports=function(e,t,n,o,c,a){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var m=-1,d=!0,y=2&n?new r:void 0;for(a.set(e,t),a.set(t,e);++m{var r=n(857),s=n(9162),i=n(1225),o=n(4871),c=n(5179),a=n(4207),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=c;case"[object Set]":var m=1&r;if(h||(h=a),e.size!=t.size&&!m)return!1;var d=f.get(e);if(d)return d==t;r|=2,f.set(e,t);var y=o(h(e),h(t),r,u,p,f);return f.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,n)=>{var r=n(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,c){var a=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!a)return!1;for(var p=l;p--;){var f=u[p];if(!(a?f in t:s.call(t,f)))return!1}var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var d=!0;c.set(e,t),c.set(t,e);for(var y=a;++p{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3483:(e,t,n)=>{var r=n(1897),s=n(633),i=n(249);e.exports=function(e){return r(e,i,s)}},7937:(e,t,n)=>{var r=n(8304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},8761:(e,t,n)=>{var r=n(6840),s=n(8109);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},2107:(e,t,n)=>{var r=n(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[c]=n:delete e[c]),s}},633:(e,t,n)=>{var r=n(7552),s=n(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},940:(e,t,n)=>{var r=n(9515),s=n(326),i=n(2760),o=n(2143),c=n(3215),a=n(3366),u=n(7035),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",m="[object DataView]",d=u(r),y=u(s),b=u(i),v=u(o),g=u(c),O=a;(r&&O(new r(new ArrayBuffer(1)))!=m||s&&O(new s)!=l||i&&O(i.resolve())!=p||o&&O(new o)!=f||c&&O(new c)!=h)&&(O=function(e){var t=a(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return m;case y:return l;case b:return p;case v:return f;case g:return h}return t}),e.exports=O},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,n)=>{var r=n(9191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},7942:(e,t,n)=>{var r=n(9191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,n)=>{var r,s=n(4019),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,n)=>{var r=n(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},8028:(e,t,n)=>{var r=n(2218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},2344:(e,t,n)=>{var r=n(2218);e.exports=function(e){return r(this.__data__,e)>-1}},4769:(e,t,n)=>{var r=n(2218);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},2411:(e,t,n)=>{var r=n(9612),s=n(235),i=n(326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},6417:(e,t,n)=>{var r=n(7937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).get(e)}},9493:(e,t,n)=>{var r=n(7937);e.exports=function(e){return r(this,e).has(e)}},4150:(e,t,n)=>{var r=n(7937);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},9191:(e,t,n)=>{var r=n(8761)(Object,"create");e.exports=r},4248:(e,t,n)=>{var r=n(241)(Object.keys,Object);e.exports=r},4146:(e,t,n)=>{e=n.nmd(e);var r=n(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},7772:(e,t,n)=>{var r=n(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},5243:(e,t,n)=>{var r=n(235);e.exports=function(){this.__data__=new r,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,n)=>{var r=n(235),s=n(326),i=n(6738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,n)=>{var r=n(5183),s=n(5125),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,n)=>{var r=n(1049),s=n(1158);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},4335:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},3226:(e,t,n)=>{e=n.nmd(e);var r=n(7772),s=n(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?r.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},8149:(e,t,n)=>{var r=n(8746);e.exports=function(e,t){return r(e,t)}},1049:(e,t,n)=>{var r=n(3366),s=n(9259);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,n)=>{var r=n(3366),s=n(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,n)=>{var r=n(3366),s=n(6152),i=n(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},7598:(e,t,n)=>{var r=n(5522),s=n(7826),i=n(4146),o=i&&i.isTypedArray,c=o?s(o):r;e.exports=c},249:(e,t,n)=>{var r=n(1634),s=n(6411),i=n(7878);e.exports=function(e){return i(e)?r(e):s(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,n)=>{const r=n(1570);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,n)=>{const r=n(5877),s=n(5505),i=n(537),o=n(4335),c=n(9259),a=n(2947),u=n(3756);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=l,e.exports=l},3853:(e,t,n)=>{const r=n(1570),s=n(1178);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,n)=>{const r=n(6420),s=n(4152),i=n(9542),o=n(3710),c=n(3312),a=n(1641),u=n(8858),l=n(3860),p=n(5202),f=n(2320),h=n(1178),m=n(3853),d=n(3026);function y(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=f,r.prototype.MemberElement=u,r.prototype.refract=y,h.prototype.refract=y,e.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:y,ArraySlice:h,ObjectSlice:m,KeyValuePair:d}},5202:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,n)=>{const r=n(5140),s=n(3756);t.lS=r,t.KeyValuePair=n(3026),t.O4=s.ArraySlice,t.rm=s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,n(2947),n(8910)},1641:(e,t,n)=>{const r=n(1570),s=n(6420),i=n(1178);class o extends s{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t{e.bind(t)(n,this.refract(r))}))}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 n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},3312:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,n)=>{const r=n(8149),s=n(3026),i=n(1178);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,n)=>{const r=n(3026),s=n(6420);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},3860:(e,t,n)=>{const r=n(1570),s=n(9259),i=n(1641),o=n(8858),c=n(3853);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},9542:(e,t,n)=>{const r=n(6420);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,n)=>{const r=n(2947);e.exports=class extends r{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 n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},6591:e=>{!function(){"use strict";var t,n,r,s,i,o="properties",c="deepProperties",a="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",f="configuration",h="deepConfiguration",m="deepProps",d="deepStatics",y="deepConf",b="initializers",v="methods",g="composers",O="compose";function j(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function S(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var E=S.bind(0,(function(e,t){if(t)for(var n=j(t),r=0;r{e.exports=n(1125)},1681:(e,t,n)=>{"use strict";var r=n(7497);e.exports=r},3258:(e,t,n)=>{"use strict";n(2777),n(733),n(1835),n(6449),n(9383);var r=n(8422);e.exports=r.AggregateError},1125:(e,t,n)=>{"use strict";e.exports=n(3985)},3985:(e,t,n)=>{"use strict";n(3584);var r=n(1681);e.exports=r},5375:(e,t,n)=>{"use strict";var r=n(8563),s=n(5787),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},692:(e,t,n)=>{"use strict";var r=n(8563),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},7171:e=>{"use strict";e.exports=function(){}},457:(e,t,n)=>{"use strict";var r=n(8257),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},3346:(e,t,n)=>{"use strict";var r=n(4312),s=n(1940),i=n(8960),o=function(e){return function(t,n,o){var c,a=r(t),u=i(a),l=s(o,u);if(e&&n!=n){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},88:(e,t,n)=>{"use strict";var r=n(8814),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},2327:(e,t,n)=>{"use strict";var r=n(6694),s=n(8563),i=n(88),o=n(379)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?n:a?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},1318:(e,t,n)=>{"use strict";var r=n(3941),s=n(5956),i=n(3335),o=n(4376);e.exports=function(e,t,n){for(var c=s(t),a=o.f,u=i.f,l=0;l{"use strict";var r=n(2998);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9497:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},1370:(e,t,n)=>{"use strict";var r=n(1815),s=n(4376),i=n(7971);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},7971:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4500:(e,t,n)=>{"use strict";var r=n(1370);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},8194:(e,t,n)=>{"use strict";var r=n(8426),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},1815:(e,t,n)=>{"use strict";var r=n(2998);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5361:e=>{"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},6327:(e,t,n)=>{"use strict";var r=n(8426),s=n(8257),i=r.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},8987: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}},9954:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5057:(e,t,n)=>{"use strict";var r,s,i=n(8426),o=n(9954),c=i.process,a=i.Deno,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},8573:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4456:(e,t,n)=>{"use strict";var r=n(8814),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4151:(e,t,n)=>{"use strict";var r=n(1370),s=n(4456),i=n(5111),o=Error.captureStackTrace;e.exports=function(e,t,n,c){i&&(o?o(e,t):r(e,"stack",s(n,c)))}},5111:(e,t,n)=>{"use strict";var r=n(2998),s=n(7971);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9011:(e,t,n)=>{"use strict";var r=n(8426),s=n(4877),i=n(9730),o=n(8563),c=n(3335).f,a=n(8722),u=n(8422),l=n(1207),p=n(1370),f=n(3941),h=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,m,d,y,b,v,g,O,j=e.target,S=e.global,E=e.stat,x=e.proto,w=S?r:E?r[j]:(r[j]||{}).prototype,A=S?u:u[j]||p(u,j,{})[j],k=A.prototype;for(d in t)s=!(n=a(S?d:j+(E?".":"#")+d,e.forced))&&w&&f(w,d),b=A[d],s&&(v=e.dontCallGetSet?(O=c(w,d))&&O.value:w[d]),y=s&&v?v:t[d],s&&typeof b==typeof y||(g=e.bind&&s?l(y,r):e.wrap&&s?h(y):x&&o(y)?i(y):y,(e.sham||y&&y.sham||b&&b.sham)&&p(g,"sham",!0),p(A,d,g),x&&(f(u,m=j+"Prototype")||p(u,m,{}),p(u[m],d,y),e.real&&k&&(n||!k[d])&&p(k,d,y)))}},2998:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},4877:(e,t,n)=>{"use strict";var r=n(5083),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},1207:(e,t,n)=>{"use strict";var r=n(9730),s=n(5375),i=n(5083),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},5083:(e,t,n)=>{"use strict";var r=n(2998);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},200:(e,t,n)=>{"use strict";var r=n(5083),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},5339:(e,t,n)=>{"use strict";var r=n(1815),s=n(3941),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,u=c&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},2799:(e,t,n)=>{"use strict";var r=n(8814),s=n(5375);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},9730:(e,t,n)=>{"use strict";var r=n(88),s=n(8814);e.exports=function(e){if("Function"===r(e))return s(e)}},8814:(e,t,n)=>{"use strict";var r=n(5083),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6589:(e,t,n)=>{"use strict";var r=n(8422),s=n(8426),i=n(8563),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},2630:(e,t,n)=>{"use strict";var r=n(2327),s=n(2833),i=n(5157),o=n(2444),c=n(379)("iterator");e.exports=function(e){if(!i(e))return s(e,c)||s(e,"@@iterator")||o[r(e)]}},1291:(e,t,n)=>{"use strict";var r=n(200),s=n(5375),i=n(457),o=n(5787),c=n(2630),a=TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(s(n))return i(r(n,e));throw new a(o(e)+" is not iterable")}},2833:(e,t,n)=>{"use strict";var r=n(5375),s=n(5157);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},8426:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},3941:(e,t,n)=>{"use strict";var r=n(8814),s=n(8389),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},3006:e=>{"use strict";e.exports={}},4812:(e,t,n)=>{"use strict";var r=n(6589);e.exports=r("document","documentElement")},4632:(e,t,n)=>{"use strict";var r=n(1815),s=n(2998),i=n(6327);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6541:(e,t,n)=>{"use strict";var r=n(8814),s=n(2998),i=n(88),o=Object,c=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},9330:(e,t,n)=>{"use strict";var r=n(8563),s=n(8257),i=n(8597);e.exports=function(e,t,n){var o,c;return i&&r(o=t.constructor)&&o!==n&&s(c=o.prototype)&&c!==n.prototype&&i(e,c),e}},1609:(e,t,n)=>{"use strict";var r=n(8257),s=n(1370);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8551:(e,t,n)=>{"use strict";var r,s,i,o=n(8268),c=n(8426),a=n(8257),u=n(1370),l=n(3941),p=n(6028),f=n(5430),h=n(3006),m="Object already initialized",d=c.TypeError,y=c.WeakMap;if(o||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new d(m);return t.facade=e,b.set(e,t),t},s=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var v=f("state");h[v]=!0,r=function(e,t){if(l(e,v))throw new d(m);return t.facade=e,u(e,v,t),t},s=function(e){return l(e,v)?e[v]:{}},i=function(e){return l(e,v)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},2576:(e,t,n)=>{"use strict";var r=n(379),s=n(2444),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},8563:(e,t,n)=>{"use strict";var r=n(5361),s=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},8722:(e,t,n)=>{"use strict";var r=n(2998),s=n(8563),i=/#|\.prototype\./,o=function(e,t){var n=a[c(e)];return n===l||n!==u&&(s(t)?r(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5157:e=>{"use strict";e.exports=function(e){return null==e}},8257:(e,t,n)=>{"use strict";var r=n(8563),s=n(5361),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},7736:e=>{"use strict";e.exports=!0},6753:(e,t,n)=>{"use strict";var r=n(6589),s=n(8563),i=n(7367),o=n(9378),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,c(e))}},3490:(e,t,n)=>{"use strict";var r=n(1207),s=n(200),i=n(457),o=n(5787),c=n(2576),a=n(8960),u=n(7367),l=n(1291),p=n(2630),f=n(6889),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,n){var y,b,v,g,O,j,S,E=n&&n.that,x=!(!n||!n.AS_ENTRIES),w=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),P=r(t,E),_=function(e){return y&&f(y,"normal",e),new m(!0,e)},N=function(e){return x?(i(e),k?P(e[0],e[1],_):P(e[0],e[1])):k?P(e,_):P(e)};if(w)y=e.iterator;else if(A)y=e;else{if(!(b=p(e)))throw new h(o(e)+" is not iterable");if(c(b)){for(v=0,g=a(e);g>v;v++)if((O=N(e[v]))&&u(d,O))return O;return new m(!1)}y=l(e,b)}for(j=w?e.next:y.next;!(S=s(j,y)).done;){try{O=N(S.value)}catch(e){f(y,"throw",e)}if("object"==typeof O&&O&&u(d,O))return O}return new m(!1)}},6889:(e,t,n)=>{"use strict";var r=n(200),s=n(457),i=n(2833);e.exports=function(e,t,n){var o,c;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw n;if(c)throw o;return s(o),n}},7323:(e,t,n)=>{"use strict";var r=n(374).IteratorPrototype,s=n(1504),i=n(7971),o=n(9468),c=n(2444),a=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),c[l]=a,e}},5994:(e,t,n)=>{"use strict";var r=n(9011),s=n(200),i=n(7736),o=n(5339),c=n(8563),a=n(7323),u=n(9814),l=n(8597),p=n(9468),f=n(1370),h=n(4500),m=n(379),d=n(2444),y=n(374),b=o.PROPER,v=o.CONFIGURABLE,g=y.IteratorPrototype,O=y.BUGGY_SAFARI_ITERATORS,j=m("iterator"),S="keys",E="values",x="entries",w=function(){return this};e.exports=function(e,t,n,o,m,y,A){a(n,t,o);var k,P,_,N=function(e){if(e===m&&D)return D;if(!O&&e&&e in R)return R[e];switch(e){case S:case E:case x:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",M=!1,R=e.prototype,F=R[j]||R["@@iterator"]||m&&R[m],D=!O&&F||N(m),L="Array"===t&&R.entries||F;if(L&&(k=u(L.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===g||(l?l(k,g):c(k[j])||h(k,j,w)),p(k,T,!0,!0),i&&(d[T]=w)),b&&m===E&&F&&F.name!==E&&(!i&&v?f(R,"name",E):(M=!0,D=function(){return s(F,this)})),m)if(P={values:N(E),keys:y?D:N(S),entries:N(x)},A)for(_ in P)(O||M||!(_ in R))&&h(R,_,P[_]);else r({target:t,proto:!0,forced:O||M},P);return i&&!A||R[j]===D||h(R,j,D,{name:m}),d[t]=D,P}},374:(e,t,n)=>{"use strict";var r,s,i,o=n(2998),c=n(8563),a=n(8257),u=n(1504),l=n(9814),p=n(4500),f=n(379),h=n(7736),m=f("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!a(r)||o((function(){var e={};return r[m].call(e)!==e}))?r={}:h&&(r=u(r)),c(r[m])||p(r,m,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},2444:e=>{"use strict";e.exports={}},8960:(e,t,n)=>{"use strict";var r=n(9261);e.exports=function(e){return r(e.length)}},5703:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},5517:(e,t,n)=>{"use strict";var r=n(4809);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},1504:(e,t,n)=>{"use strict";var r,s=n(457),i=n(8253),o=n(8573),c=n(3006),a=n(4812),u=n(6327),l=n(5430),p="prototype",f="script",h=l("IE_PROTO"),m=function(){},d=function(e){return"<"+f+">"+e+""+f+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&r?y(r):(t=u("iframe"),n="java"+f+":",t.style.display="none",a.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(r);for(var s=o.length;s--;)delete b[p][o[s]];return b()};c[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[p]=s(e),n=new m,m[p]=null,n[h]=e):n=b(),void 0===t?n:i.f(n,t)}},8253:(e,t,n)=>{"use strict";var r=n(1815),s=n(4210),i=n(4376),o=n(457),c=n(4312),a=n(4230);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=c(t),s=a(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},4376:(e,t,n)=>{"use strict";var r=n(1815),s=n(4632),i=n(4210),o=n(457),c=n(9722),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";t.f=r?i?function(e,t,n){if(o(e),t=c(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=l(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=c(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},3335:(e,t,n)=>{"use strict";var r=n(1815),s=n(200),i=n(2886),o=n(7971),c=n(4312),a=n(9722),u=n(3941),l=n(4632),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=c(e),t=a(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4243:(e,t,n)=>{"use strict";var r=n(4062),s=n(8573).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},2306:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},9814:(e,t,n)=>{"use strict";var r=n(3941),s=n(8563),i=n(8389),o=n(5430),c=n(8536),a=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=c?u.getPrototypeOf:function(e){var t=i(e);if(r(t,a))return t[a];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},7367:(e,t,n)=>{"use strict";var r=n(8814);e.exports=r({}.isPrototypeOf)},4062:(e,t,n)=>{"use strict";var r=n(8814),s=n(3941),i=n(4312),o=n(3346).indexOf,c=n(3006),a=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(c,n)&&s(r,n)&&a(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||a(l,n));return l}},4230:(e,t,n)=>{"use strict";var r=n(4062),s=n(8573);e.exports=Object.keys||function(e){return r(e,s)}},2886:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},8597:(e,t,n)=>{"use strict";var r=n(2799),s=n(457),i=n(692);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},3024:(e,t,n)=>{"use strict";var r=n(6694),s=n(2327);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},2483:(e,t,n)=>{"use strict";var r=n(200),s=n(8563),i=n(8257),o=TypeError;e.exports=function(e,t){var n,c;if("string"===t&&s(n=e.toString)&&!i(c=r(n,e)))return c;if(s(n=e.valueOf)&&!i(c=r(n,e)))return c;if("string"!==t&&s(n=e.toString)&&!i(c=r(n,e)))return c;throw new o("Can't convert object to primitive value")}},5956:(e,t,n)=>{"use strict";var r=n(6589),s=n(8814),i=n(4243),o=n(2306),c=n(457),a=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(c(e)),n=o.f;return n?a(t,n(e)):t}},8422:e=>{"use strict";e.exports={}},3142:(e,t,n)=>{"use strict";var r=n(4376).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},8280:(e,t,n)=>{"use strict";var r=n(5157),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},9468:(e,t,n)=>{"use strict";var r=n(6694),s=n(4376).f,i=n(1370),o=n(3941),c=n(3024),a=n(379)("toStringTag");e.exports=function(e,t,n,u){if(e){var l=n?e:e.prototype;o(l,a)||s(l,a,{configurable:!0,value:t}),u&&!r&&i(l,"toString",c)}}},5430:(e,t,n)=>{"use strict";var r=n(3771),s=n(9216),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6028:(e,t,n)=>{"use strict";var r=n(8426),s=n(8194),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},3771:(e,t,n)=>{"use strict";var r=n(7736),s=n(6028);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"})},7415:(e,t,n)=>{"use strict";var r=n(8814),s=n(1061),i=n(4809),o=n(8280),c=r("".charAt),a=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),f=s(n),h=p.length;return f<0||f>=h?e?"":void 0:(r=a(p,f))<55296||r>56319||f+1===h||(l=a(p,f+1))<56320||l>57343?e?c(p,f):r:e?u(p,f,f+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3772:(e,t,n)=>{"use strict";var r=n(5057),s=n(2998),i=n(8426).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1940:(e,t,n)=>{"use strict";var r=n(1061),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},4312:(e,t,n)=>{"use strict";var r=n(6541),s=n(8280);e.exports=function(e){return r(s(e))}},1061:(e,t,n)=>{"use strict";var r=n(5703);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9261:(e,t,n)=>{"use strict";var r=n(1061),s=Math.min;e.exports=function(e){return e>0?s(r(e),9007199254740991):0}},8389:(e,t,n)=>{"use strict";var r=n(8280),s=Object;e.exports=function(e){return s(r(e))}},6561:(e,t,n)=>{"use strict";var r=n(200),s=n(8257),i=n(6753),o=n(2833),c=n(2483),a=n(379),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,a=o(e,l);if(a){if(void 0===t&&(t="default"),n=r(a,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},9722:(e,t,n)=>{"use strict";var r=n(6561),s=n(6753);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},6694:(e,t,n)=>{"use strict";var r={};r[n(379)("toStringTag")]="z",e.exports="[object z]"===String(r)},4809:(e,t,n)=>{"use strict";var r=n(2327),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},5787:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9216:(e,t,n)=>{"use strict";var r=n(8814),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},9378:(e,t,n)=>{"use strict";var r=n(3772);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4210:(e,t,n)=>{"use strict";var r=n(1815),s=n(2998);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8268:(e,t,n)=>{"use strict";var r=n(8426),s=n(8563),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},379:(e,t,n)=>{"use strict";var r=n(8426),s=n(3771),i=n(3941),o=n(9216),c=n(3772),a=n(9378),u=r.Symbol,l=s("wks"),p=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},9791:(e,t,n)=>{"use strict";var r=n(6589),s=n(3941),i=n(1370),o=n(7367),c=n(8597),a=n(1318),u=n(3142),l=n(9330),p=n(5517),f=n(1609),h=n(4151),m=n(1815),d=n(7736);e.exports=function(e,t,n,y){var b="stackTraceLimit",v=y?2:1,g=e.split("."),O=g[g.length-1],j=r.apply(null,g);if(j){var S=j.prototype;if(!d&&s(S,"cause")&&delete S.cause,!n)return j;var E=r("Error"),x=t((function(e,t){var n=p(y?t:e,void 0),r=y?new j(e):new j;return void 0!==n&&i(r,"message",n),h(r,x,r.stack,2),this&&o(S,this)&&l(r,this,x),arguments.length>v&&f(r,arguments[v]),r}));if(x.prototype=S,"Error"!==O?c?c(x,E):a(x,E,{name:!0}):m&&b in j&&(u(x,j,b),u(x,j,"prepareStackTrace")),a(x,j),!d)try{S.name!==O&&i(S,"name",O),S.constructor=x}catch(e){}return x}}},1835:(e,t,n)=>{"use strict";var r=n(9011),s=n(6589),i=n(4877),o=n(2998),c=n(9791),a="AggregateError",u=s(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},1320:(e,t,n)=>{"use strict";var r=n(9011),s=n(7367),i=n(9814),o=n(8597),c=n(1318),a=n(1504),u=n(1370),l=n(7971),p=n(1609),f=n(4151),h=n(3490),m=n(5517),d=n(379)("toStringTag"),y=Error,b=[].push,v=function(e,t){var n,r=s(g,this);o?n=o(new y,r?i(this):g):(n=r?this:a(g),u(n,d,"Error")),void 0!==t&&u(n,"message",m(t)),f(n,v,n.stack,1),arguments.length>2&&p(n,arguments[2]);var c=[];return h(e,b,{that:c}),u(n,"errors",c),n};o?o(v,y):c(v,y,{name:!0});var g=v.prototype=a(y.prototype,{constructor:l(1,v),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:v})},733:(e,t,n)=>{"use strict";n(1320)},6449:(e,t,n)=>{"use strict";var r=n(4312),s=n(7171),i=n(2444),o=n(8551),c=n(4376).f,a=n(5994),u=n(9497),l=n(7736),p=n(1815),f="Array Iterator",h=o.set,m=o.getterFor(f);e.exports=a(Array,"Array",(function(e,t){h(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(e){}},2777:(e,t,n)=>{"use strict";var r=n(9011),s=n(8426),i=n(4877),o=n(9791),c="WebAssembly",a=s[c],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(a&&a[e]){var n={};n[e]=o(c+"."+e,t,u),r({target:c,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},9383:(e,t,n)=>{"use strict";var r=n(7415).charAt,s=n(4809),i=n(8551),o=n(5994),c=n(9497),a="String Iterator",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?c(void 0,!0):(e=r(n,s),t.index+=e.length,c(e,!1))}))},3584:(e,t,n)=>{"use strict";n(733)},6128:(e,t,n)=>{"use strict";n(6449);var r=n(8987),s=n(8426),i=n(2327),o=n(1370),c=n(2444),a=n(379)("toStringTag");for(var u in r){var l=s[u],p=l&&l.prototype;p&&i(p)!==a&&o(p,a,u),c[u]=c.Array}},7497:(e,t,n)=>{"use strict";n(3584);var r=n(3258);n(6128),e.exports=r}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};return(()=>{"use strict";n.r(r),n.d(r,{AlternatingVisitor:()=>Es,FallbackVisitor:()=>sr,FixedFieldsVisitor:()=>vr,JSONReferenceElement:()=>Vn,JSONSchemaDraft7MediaTypes:()=>Te,JSONSchemaElement:()=>ui,LinkDescriptionElement:()=>li,MapVisitor:()=>Ur,ParentSchemaAwareVisitor:()=>Nr,PatternedFieldsVisitor:()=>zr,SpecificationVisitor:()=>br,createRefractor:()=>Di,default:()=>pi,getNodeType:()=>fi,isArrayElement:()=>ue,isBooleanElement:()=>ce,isElement:()=>re,isJSONReferenceElement:()=>Ts,isJSONReferenceLikeElement:()=>Tr,isJSONSchemaElement:()=>Ti,isLinkDescriptionElement:()=>Mi,isLinkElement:()=>pe,isMemberElement:()=>le,isNullElement:()=>oe,isNumberElement:()=>ie,isObjectElement:()=>ae,isRefElement:()=>fe,isStringElement:()=>se,keyMap:()=>hi,mediaTypes:()=>Me,refract:()=>Li,refractorPluginReplaceEmptyElement:()=>yi,specificationObj:()=>Ni});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>ve,includesClasses:()=>Oe,includesSymbols:()=>ge,isAnnotationElement:()=>he,isArrayElement:()=>ue,isBooleanElement:()=>ce,isCommentElement:()=>me,isElement:()=>re,isLinkElement:()=>pe,isMemberElement:()=>le,isNullElement:()=>oe,isNumberElement:()=>ie,isObjectElement:()=>ae,isParseResultElement:()=>de,isPrimitiveElement:()=>be,isRefElement:()=>fe,isSourceMapElement:()=>ye,isStringElement:()=>se});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>Ts,isJSONSchemaElement:()=>Ns,isLinkDescriptionElement:()=>Rs,isMediaElement:()=>Ms});var s={};n.r(s),n.d(s,{isJSONReferenceElement:()=>Ts,isJSONSchemaElement:()=>ri,isLinkDescriptionElement:()=>si,isMediaElement:()=>Ms});var i={};n.r(i),n.d(i,{isJSONReferenceElement:()=>Ts,isJSONSchemaElement:()=>Ti,isLinkDescriptionElement:()=>Mi});var o=n(7952);function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0===arguments.length||c(n)?t:e.apply(this,arguments)}}function u(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return c(n)?t:a((function(t){return e(n,t)}));default:return c(n)&&c(r)?t:c(n)?a((function(t){return e(t,r)})):c(r)?a((function(t){return e(n,t)})):e(n,r)}}}const l=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function p(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!l(r)){for(var s=0;s=arguments.length)?u=t[o]:(u=arguments[s],s+=1),r[o]=u,c(u)?a=!0:i-=1,o+=1}return!a&&i<=0?n.apply(this,r):v(Math.max(0,i),g(e,r,n))}}const O=u((function(e,t){return 1===e?a(t):v(e,g(e,[],t))}));const j=a((function(e){return O(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));function S(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function E(e,t,n){for(var r=0,s=n.length;r=0;)x(t=_[n],e)&&!T(r,t)&&(r[r.length]=t),n-=1;return r})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const R=M;const F=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function D(e,t,n,r){var s=S(e);function i(e,t){return L(e,t,n.slice(),r.slice())}return!E((function(e,t){return!E(i,t,e)}),S(t),s)}function L(e,t,n,r){if(w(e,t))return!0;var s,i,o=F(e);if(o!==F(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===e)return r[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&D(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&D(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=R(e);if(a.length!==R(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!x(p,t)||!L(t[p],e[p],u,l))return!1;c-=1}return!0}const V=u((function(e,t){return L(e,t,[],[])}));function J(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n=0}const C=j(u(J));class I extends o.RP{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const $=I;class B extends o.RP{constructor(e,t,n){super(e,t,n),this.element="comment"}}const q=B;const z=a((function(e){return function(){return e}}));const U=z(void 0);const G=V(U());class K extends o.ON{constructor(e,t,n){super(e,t,n),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(G(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const H=K;class W extends o.ON{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new o.ON([e.start.row,e.start.column,e.start.char]),n=new o.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const Q=W,Y=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],X=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Z=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),ee=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof o.ON)&&t.classes.includes(e),te=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,ne=e=>e({hasMethod:Y,hasBasicElementProps:X,primitiveEq:Z,isElementType:te,hasClass:ee}),re=ne((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.W_||e(n)&&t(void 0,n))),se=ne((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.RP||e(n)&&t("string",n))),ie=ne((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.VL||e(n)&&t("number",n))),oe=ne((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.zr||e(n)&&t("null",n))),ce=ne((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof o.hh||e(n)&&t("boolean",n))),ae=ne((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof o.Sb||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),ue=ne((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof o.ON&&!(r instanceof o.Sb)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),le=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof o.c6||e(r)&&t("member",r)&&n(void 0,r))),pe=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof o.EA||e(r)&&t("link",r)&&n(void 0,r))),fe=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof o.tK||e(r)&&t("ref",r)&&n(void 0,r))),he=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $||e(r)&&t("annotation",r)&&n("array",r))),me=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof q||e(r)&&t("comment",r)&&n("string",r))),de=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof H||e(r)&&t("parseResult",r)&&n("array",r))),ye=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Q||e(r)&&t("sourceMap",r)&&n("array",r))),be=e=>te("object",e)||te("array",e)||te("boolean",e)||te("number",e)||te("string",e)||te("null",e)||te("member",e),ve=e=>ye(e.meta.get("sourceMap")),ge=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!ue(n)&&b(C(n.toValue()),e)},Oe=(e,t)=>0===e.length||b(C(t.classes.toValue()),e);function je(e){return"[object String]"===Object.prototype.toString.call(e)}const Se=u((function(e,t){var n=e<0?t.length+e:e;return je(t)?t.charAt(n):t[n]}));const Ee=Se(-1);var xe=n(1427);const we=class extends xe{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class Ae extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(we,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 ke=Ae;const Pe=class extends ke{};const _e=class extends Pe{};const Ne=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new _e("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new _e("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new _e("latest method in MediaTypes class is not yet implemented.")}};class Te extends Ne{filterByFormat(e="generic"){const t="generic"===e?"schema;version":e;return this.filter((e=>e.includes(t)))}findBy(e="draft-07",t="generic"){const n="generic"===t?`schema;version=${e}`:`schema+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return Ee(this.filterByFormat(e))}}const Me=new Te("application/schema;version=draft-07","application/schema+json;version=draft-07","application/schema+yaml;version=draft-07");function Re(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return c(n)?t:u((function(t,r){return e(n,t,r)}));case 2:return c(n)&&c(r)?t:c(n)?u((function(t,n){return e(t,r,n)})):c(r)?u((function(t,r){return e(n,t,r)})):a((function(t){return e(n,r,t)}));default:return c(n)&&c(r)&&c(s)?t:c(n)&&c(r)?u((function(t,n){return e(t,n,s)})):c(n)&&c(s)?u((function(t,n){return e(t,r,n)})):c(r)&&c(s)?u((function(t,r){return e(n,t,r)})):c(n)?a((function(t){return e(t,r,s)})):c(r)?a((function(t){return e(n,t,s)})):c(s)?a((function(t){return e(n,r,t)})):e(n,r,s)}}}function Fe(e){return"[object Object]"===Object.prototype.toString.call(e)}const De=Re((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})x(r,t)&&(s[r]=x(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)x(r,n)&&!x(r,s)&&(s[r]=n[r]);return s}));const Le=Re((function e(t,n,r){return De((function(n,r,s){return Fe(r)&&Fe(s)?e(t,r,s):t(n,r,s)}),n,r)}));const Ve=u((function(e,t){return Le((function(e,t,n){return n}),e,t)}));const Je=u((function(e,t){return null==t||t!=t?e:t})),Ce=Number.isInteger||function(e){return e<<0===e};const Ie=u((function(e,t){if(null!=t)return Ce(e)?Se(e,t):t[e]}));const $e=Re((function(e,t,n){return Je(e,Ie(t,n))}));const Be=u((function(e,t){return e.map((function(e){for(var n,r=t,s=0;s0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ye="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Xe(e,t,n){return function(r,s,i){if(Qe(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[Ye])return n(r,s,i[Ye]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Ze(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function et(e,t,n,r){return n[r](e,t)}const tt=Xe(We,et,Ze);function nt(e,t){for(var n=0,r=t.length,s=Array(r);n":yt(n,r)},r=function(e,t){return nt((function(t){return ut(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+nt(n,e).join(", ")+"))";case"[object Array]":return"["+nt(n,e).concat(r(e,dt((function(e){return/^\d+$/.test(e)}),R(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):ut(pt(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":ut(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,R(e)).join(", ")+"}"}}const bt=a((function(e){return yt(e,[])}));const vt=u((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=bt(e),o=n(i,bt(t));return void 0!==o&&o===i?e:t}));const gt=u((function(e,t){return st(Ie(e),t)}));function Ot(e,t,n){for(var r=0,s=n.length;r{const t=new tn;return en(e)&&t.use(e),t},sn=nn,on=()=>({predicates:{...e},namespace:sn});var cn=n(6591),an=n.n(cn);const un=function(){return!1};const ln=O(1,_t(F,Tt("String")));const pn=class extends ke{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}},fn=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},hn={},mn=e=>null==e?void 0:e.type,dn=e=>"string"==typeof mn(e),yn=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),bn=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=hn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=fn,nodeTypeGetter:a=mn,nodePredicate:u=dn,nodeCloneFn:l=yn,detectCycles:p=!0}={})=>{const f=n||{};let h,m,d=Array.isArray(e),y=[e],b=-1,v=[],g=e;const O=[],j=[];do{b+=1;const e=b===y.length;let n;const E=e&&0!==v.length;if(e){if(n=0===j.length?void 0:O.pop(),g=m,m=j.pop(),E)if(d){g=g.slice();let e=0;for(const[t,n]of v){const r=t-e;n===i?(g.splice(r,1),e+=1):g[r]=n}}else{g=l(g);for(const[e,t]of v)g[e]=t}b=h.index,y=h.keys,v=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(n=d?b:y[b],g=m[n],g===i||void 0===g)continue;O.push(n)}let x;if(!Array.isArray(g)){if(!u(g))throw new pn(`Invalid AST Node: ${String(g)}`,{node:g});if(p&&j.includes(g)){O.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;x=i.call(t,g,n,m,O,j)}if(x===s)break;if(x===o){if(!e){O.pop();continue}}else if(void 0!==x&&(v.push([n,x]),!e)){if(!u(x)){O.pop();continue}g=x}}var S;if(void 0===x&&E&&v.push([n,g]),!e)h={inArray:d,index:b,keys:y,edits:v,prev:h},d=Array.isArray(g),y=d?g:null!==(S=f[a(g)])&&void 0!==S?S:[],b=-1,v=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==v.length?v[v.length-1][1]:e};bn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=hn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=fn,nodeTypeGetter:a=mn,nodePredicate:u=dn,nodeCloneFn:l=yn,detectCycles:p=!0}={})=>{const f=n||{};let h,m,d=Array.isArray(e),y=[e],b=-1,v=[],g=e;const O=[],j=[];do{b+=1;const e=b===y.length;let n;const E=e&&0!==v.length;if(e){if(n=0===j.length?void 0:O.pop(),g=m,m=j.pop(),E)if(d){g=g.slice();let e=0;for(const[t,n]of v){const r=t-e;n===i?(g.splice(r,1),e+=1):g[r]=n}}else{g=l(g);for(const[e,t]of v)g[e]=t}b=h.index,y=h.keys,v=h.edits,d=h.inArray,h=h.prev}else if(m!==i&&void 0!==m){if(n=d?b:y[b],g=m[n],g===i||void 0===g)continue;O.push(n)}let x;if(!Array.isArray(g)){if(!u(g))throw new pn(`Invalid AST Node: ${String(g)}`,{node:g});if(p&&j.includes(g)){O.pop();continue}const i=c(t,a(g),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;x=await i.call(t,g,n,m,O,j)}if(x===s)break;if(x===o){if(!e){O.pop();continue}}else if(void 0!==x&&(v.push([n,x]),!e)){if(!u(x)){O.pop();continue}g=x}}var S;if(void 0===x&&E&&v.push([n,g]),!e)h={inArray:d,index:b,keys:y,edits:v,prev:h},d=Array.isArray(g),y=d?g:null!==(S=f[a(g)])&&void 0!==S?S:[],b=-1,v=[],m!==i&&void 0!==m&&j.push(m),m=g}while(void 0!==h);return 0!==v.length?v[v.length-1][1]:e};const vn=class extends pn{constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const gn=class extends vn{};const On=class extends vn{},jn=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof o.KeyValuePair){const{key:t,value:s}=e,i=re(t)?jn(t,r):t,c=re(s)?jn(s,r):s,a=new o.KeyValuePair(i,c);return n.set(e,a),a}if(e instanceof o.rm){const t=e=>jn(e,r),s=[...e].map(t),i=new o.rm(s);return n.set(e,i),i}if(e instanceof o.O4){const t=e=>jn(e,r),s=[...e].map(t),i=new o.O4(s);return n.set(e,i),i}if(re(e)){const t=xn(e);if(n.set(e,t),e.content)if(re(e.content))t.content=jn(e.content,r);else if(e.content instanceof o.KeyValuePair)t.content=jn(e.content,r);else if(Array.isArray(e.content)){const n=e=>jn(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new gn("Value provided to cloneDeep function couldn't be cloned",{value:e})};jn.safe=e=>{try{return jn(e)}catch{return e}};const Sn=e=>{const{key:t,value:n}=e;return new o.KeyValuePair(t,n)},En=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=jn(e.meta)),e.attributes.length>0&&(t._attributes=jn(e.attributes)),re(e.content)){const n=e.content;t.content=En(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof o.KeyValuePair?t.content=Sn(e.content):t.content=e.content;return t},xn=e=>{if(e instanceof o.KeyValuePair)return Sn(e);if(e instanceof o.rm)return(e=>{const t=[...e];return new o.rm(t)})(e);if(e instanceof o.O4)return(e=>{const t=[...e];return new o.O4(t)})(e);if(re(e))return En(e);throw new On("Value provided to cloneShallow function couldn't be cloned",{value:e})};xn.safe=e=>{try{return xn(e)}catch{return e}};const wn=e=>ae(e)?"ObjectElement":ue(e)?"ArrayElement":le(e)?"MemberElement":se(e)?"StringElement":ce(e)?"BooleanElement":ie(e)?"NumberElement":oe(e)?"NullElement":pe(e)?"LinkElement":fe(e)?"RefElement":void 0,An=e=>re(e)?xn(e):yn(e),kn=_t(wn,ln),Pn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},_n=(cn({props:{result:[],predicate:un,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:n=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=n},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),(e,t,{keyMap:n=Pn,...r}={})=>bn(e,t,{keyMap:n,nodeTypeGetter:wn,nodePredicate:kn,nodeCloneFn:An,...r}));_n[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=Pn,...r}={})=>bn[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:wn,nodePredicate:kn,nodeCloneFn:An,...r});const Nn={toolboxCreator:on,visitorOptions:{nodeTypeGetter:wn,exposeEdits:!0}},Tn=(e,t,n={})=>{if(0===t.length)return e;const r=Ve(Nn,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),c=t.map((e=>e(o))),a=((e,{visitFnGetter:t=fn,nodeTypeGetter:n=mn,breakSymbol:r=hn,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,...l){let p=u,f=!1;for(let h=0;h{const r=new t(e);return Tn(r,n,{toolboxCreator:on,visitorOptions:{nodeTypeGetter:wn}})},Rn=e=>(t,n={})=>Mn(t,{...n,Type:e});o.Sb.refract=Rn(o.Sb),o.ON.refract=Rn(o.ON),o.RP.refract=Rn(o.RP),o.hh.refract=Rn(o.hh),o.zr.refract=Rn(o.zr),o.VL.refract=Rn(o.VL),o.EA.refract=Rn(o.EA),o.tK.refract=Rn(o.tK),$.refract=Rn($),q.refract=Rn(q),H.refract=Rn(H),Q.refract=Rn(Q);class Fn extends o.Sb{constructor(e,t,n){super(e,t,n),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 Dn=Fn;class Ln extends o.Sb{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Vn=Ln;class Jn extends o.Sb{constructor(e,t,n){super(e,t,n),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 Cn=Jn;class In extends o.Sb{constructor(e,t,n){super(e,t,n),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 $n=In;const Bn=u((function(e,t){return We((function(n,r){return n[r]=e(t[r],r,t),n}),{},R(t))}));const qn=a((function(e){return null==e}));const zn=u((function(e,t){if(0===e.length||qn(t))return!1;for(var n=t,r=0;r{const n=Je(e,t);return Bn((e=>{if(en(e)&&Gn("$ref",e)&&Kn(ln,"$ref",e)){const t=qe(["$ref"],e),r=tr("#/",t);return qe(r.split("/"),n)}return en(e)?nr(e,n):e}),e)},rr=cn({props:{element:null},methods:{copyMetaAndAttributes(e,t){ve(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),sr=cn(rr,{methods:{enter(e){return this.element=jn(e),hn}}});const ir=z(U());const or=function(){return!0},cr=e=>"string"==typeof(null==e?void 0:e.type)?e.type:wn(e),ar={EphemeralObject:["content"],EphemeralArray:["content"],...Pn},ur=(e,t,{keyMap:n=ar,...r}={})=>_n(e,t,{keyMap:n,nodeTypeGetter:cr,nodePredicate:or,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});ur[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=ar,...n}={})=>_n[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:cr,nodePredicate:or,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const lr=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 pr=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))}},fr=cn.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new pr(t.content);return e.set(t,n),n}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const n=new lr(t.content);return e.set(t,n),n}},this.EphemeralArray={leave:e=>e.toArray()}})),hr=e=>re(e)?se(e)||ie(e)||ce(e)||oe(e)?e.toValue():ur(e,fr()):e;const mr=u((function(e,t){for(var n={},r=0;r{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},yr={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Pn},br=cn(rr,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return mr(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=qe(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Ut(Ft,["visitors",...e],this.specObj)?qe(["visitors",...e],this.specObj):qe(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(e)({...n,...t})},toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n),s=Object.getPrototypeOf(r);return G(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?jn(t):(_n(t,r,{keyMap:yr,nodeTypeGetter:dr,...n}),r.element)}}}),vr=cn(br,{props:{specPath:ir,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(se(r)&&n.includes(hr(r))&&!this.ignoredFields.includes(hr(r))){const n=this.toRefractedElement([...t,"fixedFields",hr(r)],e),i=new o.c6(jn(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(hr(r))||this.element.content.push(jn(s))})),this.copyMetaAndAttributes(e,this.element),hn}}}),gr=cn(vr,sr,{props:{specPath:z(["document","objects","JSONSchema"])},init(){this.element=new Dn}}),Or=sr,jr=sr,Sr=sr,Er=sr,xr=sr,wr=sr,Ar=sr,kr=sr,Pr=sr,_r=sr,Nr=cn({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Tr=e=>ae(e)&&e.hasKey("$ref"),Mr=cn(br,Nr,sr,{methods:{ObjectElement(e){const t=Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),hn},ArrayElement(e){return this.element=new o.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),hn}}}),Rr=sr,Fr=sr,Dr=sr,Lr=sr,Vr=sr,Jr=cn(sr,{methods:{ArrayElement(e){return this.element=jn(e),this.element.classes.push("json-schema-required"),hn}}});const Cr=a((function(e){return O(wt(vt,0,gt("length",e)),(function(){for(var t=0,n=e.length;t{if(!this.ignoredFields.includes(hr(t))&&this.fieldPatternPredicate(hr(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new o.c6(jn(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(hr(t))||this.element.content.push(jn(n))})),this.copyMetaAndAttributes(e,this.element),hn}}}),Ur=cn(zr,{props:{fieldPatternPredicate:qr}}),Gr=cn(Ur,Nr,sr,{props:{specPath:e=>Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new o.Sb,this.element.classes.push("json-schema-properties")}}),Kr=cn(Ur,Nr,sr,{props:{specPath:e=>Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new o.Sb,this.element.classes.push("json-schema-patternProperties")}}),Hr=cn(Ur,Nr,sr,{props:{specPath:e=>Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new o.Sb,this.element.classes.push("json-schema-dependencies")}}),Wr=cn(sr,{methods:{ArrayElement(e){return this.element=jn(e),this.element.classes.push("json-schema-enum"),hn}}}),Qr=cn(sr,{methods:{StringElement(e){return this.element=jn(e),this.element.classes.push("json-schema-type"),hn},ArrayElement(e){return this.element=jn(e),this.element.classes.push("json-schema-type"),hn}}}),Yr=cn(br,Nr,sr,{init(){this.element=new o.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),hn}}}),Xr=cn(br,Nr,sr,{init(){this.element=new o.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),hn}}}),Zr=cn(br,Nr,sr,{init(){this.element=new o.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),hn}}}),es=cn(Ur,Nr,sr,{props:{specPath:e=>Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new o.Sb,this.element.classes.push("json-schema-definitions")}}),ts=sr,ns=sr,rs=sr,ss=sr,is=sr,os=cn(br,Nr,sr,{init(){this.element=new o.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),hn}}}),cs=sr,as=cn(vr,sr,{props:{specPath:z(["document","objects","JSONReference"])},init(){this.element=new Vn},methods:{ObjectElement(e){const t=vr.compose.methods.ObjectElement.call(this,e);return se(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),us=cn(sr,{methods:{StringElement(e){return this.element=jn(e),this.element.classes.push("reference-value"),hn}}});const ls=Re((function(e,t,n){return O(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const ps=a((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var fs=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const hs=fs;const ms=Se(0);const ds=a(f);const ys=at(qn);const bs=Jt(Bt,Br);function vs(e){return function(e){if(Array.isArray(e))return gs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return gs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.length}))),ms,Ie("length")),js=Hn((function(e,t,n){var r=n.apply(void 0,vs(e));return ys(r)?ds(r):t}));const Ss=ls(bs,(function(e){var t=Os(e);return O(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;rls(e,z(t),U))),n=Ss(t)(e);return this.element=this.toRefractedElement(n,e),hn}}}),xs=cn(Es,{props:{alternator:[{predicate:Tr,specPath:["document","objects","JSONReference"]},{predicate:or,specPath:["document","objects","JSONSchema"]}]}}),ws=cn(vr,sr,{props:{specPath:z(["document","objects","Media"])},init(){this.element=new Cn}}),As=sr,ks=sr,Ps=cn(vr,sr,{props:{specPath:z(["document","objects","LinkDescription"])},init(){this.element=new $n}}),_s={visitors:{value:sr,JSONSchemaOrJSONReferenceVisitor:xs,document:{objects:{JSONSchema:{$visitor:gr,fixedFields:{id:Or,$schema:jr,multipleOf:Sr,maximum:Er,exclusiveMaximum:xr,minimum:wr,exclusiveMinimum:Ar,maxLength:kr,minLength:Pr,pattern:_r,additionalItems:xs,items:Mr,maxItems:Rr,minItems:Fr,uniqueItems:Dr,maxProperties:Lr,minProperties:Vr,required:Jr,properties:Gr,additionalProperties:xs,patternProperties:Kr,dependencies:Hr,enum:Wr,type:Qr,allOf:Yr,anyOf:Xr,oneOf:Zr,not:xs,definitions:es,title:ts,description:ns,default:rs,format:ss,base:is,links:os,media:{$ref:"#/visitors/document/objects/Media"},readOnly:cs}},JSONReference:{$visitor:as,fixedFields:{$ref:us}},Media:{$visitor:ws,fixedFields:{binaryEncoding:As,type:ks}},LinkDescription:{$visitor:Ps,fixedFields:{href:sr,rel:sr,title:sr,targetSchema:xs,mediaType:sr,method:sr,encType:sr,schema:xs}}}}}},Ns=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Dn||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),Ts=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Vn||e(r)&&t("JSONReference",r)&&n("object",r))),Ms=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Cn||e(r)&&t("media",r)&&n("object",r))),Rs=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $n||e(r)&&t("linkDescription",r)&&n("object",r))),Fs={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Dn),t.register("jSONReference",Vn),t.register("media",Cn),t.register("linkDescription",$n),t}},Ds=()=>{const e=rn(Fs);return{predicates:{...t,isStringElement:se},namespace:e}},Ls=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=_s}={})=>{const s=(0,o.Qc)(e),i=nr(r),c=zt(t,[],i);return _n(s,c,{state:{specObj:i}}),Tn(c.element,n,{toolboxCreator:Ds,visitorOptions:{keyMap:yr,nodeTypeGetter:dr}})},Vs=e=>(t,n={})=>Ls(t,{specPath:e,...n});Dn.refract=Vs(["visitors","document","objects","JSONSchema","$visitor"]),Vn.refract=Vs(["visitors","document","objects","JSONReference","$visitor"]),Cn.refract=Vs(["visitors","document","objects","Media","$visitor"]),$n.refract=Vs(["visitors","document","objects","LinkDescription","$visitor"]);const Js=class extends Dn{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft6"}get idProp(){throw new Pe("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Pe("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Cs=class extends $n{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Pe("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Pe("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Pe("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Pe("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Pe("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Pe("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Is=Re((function e(t,n,r){if(0===t.length)return n;var s=t[0];if(t.length>1){var i=!qn(r)&&x(s,r)&&"object"==typeof r[s]?r[s]:Ce(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,i)}return function(e,t,n){if(Ce(e)&&l(n)){var r=[].concat(n);return r[e]=t,r}var s={};for(var i in n)s[i]=n[i];return s[e]=t,s}(s,n,r)}));const $s=Is;const Bs=Re((function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r}));var qs=Re((function(e,t,n){return $s([e],t,n)}));const zs=qs;var Us=u((function e(t,n){if(null==n)return n;switch(t.length){case 0:return n;case 1:return function(e,t){if(null==t)return t;if(Ce(e)&&l(t))return Bs(e,1,t);var n={};for(var r in t)n[r]=t[r];return delete n[e],n}(t[0],n);default:var r=t[0],s=Array.prototype.slice.call(t,1);return null==n[r]?function(e,t){if(Ce(e)&&l(t))return[].concat(t);var n={};for(var r in t)n[r]=t[r];return n}(r,n):zs(r,e(s,n[r]),n)}}));const Gs=Us,Ks=cn(vr,sr,{props:{specPath:z(["document","objects","JSONSchema"])},methods:{ObjectElement(e){return this.element=new Js,vr.compose.methods.ObjectElement.call(this,e)},BooleanElement(e){return this.element=jn(e),this.element.classes.push("boolean-json-schema"),hn}}}),Hs=sr,Ws=cn(br,Nr,sr,{methods:{ObjectElement(e){const t=Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),hn},ArrayElement(e){return this.element=new o.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Tr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),hn},BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),hn}}}),Qs=sr,Ys=cn(sr,{methods:{ArrayElement(e){return this.element=jn(e),this.element.classes.push("json-schema-examples"),hn}}}),Xs=cn(vr,sr,{props:{specPath:z(["document","objects","LinkDescription"])},init(){this.element=new Cs}}),Zs=sr,ei=_t($s(["visitors","document","objects","JSONSchema","$visitor"],Ks),Gs(["visitors","document","objects","JSONSchema","fixedFields","id"]),$s(["visitors","document","objects","JSONSchema","fixedFields","$id"],Hs),$s(["visitors","document","objects","JSONSchema","fixedFields","contains"],_s.visitors.JSONSchemaOrJSONReferenceVisitor),$s(["visitors","document","objects","JSONSchema","fixedFields","items"],Ws),$s(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],_s.visitors.JSONSchemaOrJSONReferenceVisitor),$s(["visitors","document","objects","JSONSchema","fixedFields","const"],Qs),$s(["visitors","document","objects","JSONSchema","fixedFields","examples"],Ys),$s(["visitors","document","objects","LinkDescription","$visitor"],Xs),$s(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],_s.visitors.JSONSchemaOrJSONReferenceVisitor),Gs(["visitors","document","objects","LinkDescription","fixedFields","schema"]),$s(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],_s.visitors.JSONSchemaOrJSONReferenceVisitor),Gs(["visitors","document","objects","LinkDescription","fixedFields","method"]),Gs(["visitors","document","objects","LinkDescription","fixedFields","encType"]),$s(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Zs))(_s),ti=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ni={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Pn},ri=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Js||e(r)&&t("JSONSchemaDraft6",r)&&n("object",r))),si=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Cs||e(r)&&t("linkDescription",r)&&n("object",r))),ii={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Js),t.register("jSONReference",Vn),t.register("media",Cn),t.register("linkDescription",Cs),t}},oi=()=>{const e=rn(ii);return{predicates:{...s,isStringElement:se},namespace:e}},ci=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=ei}={})=>{const s=(0,o.Qc)(e),i=nr(r),c=zt(t,[],i);return _n(s,c,{state:{specObj:i}}),Tn(c.element,n,{toolboxCreator:oi,visitorOptions:{keyMap:ni,nodeTypeGetter:ti}})},ai=e=>(t,n={})=>ci(t,{specPath:e,...n});Js.refract=ai(["visitors","document","objects","JSONSchema","$visitor"]),Cs.refract=ai(["visitors","document","objects","LinkDescription","$visitor"]);const ui=class extends Js{constructor(e,t,n){super(e,t,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",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 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 media(){throw new Pe('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Pe('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const li=class extends Cs{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get mediaType(){throw new Pe("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Pe("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get submissionEncType(){throw new Pe("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Pe("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}},pi={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",ui),t.register("jSONReference",Vn),t.register("linkDescription",li),t}},fi=e=>{if(re(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},hi={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Pn},mi={JSONSchemaDraft7Element:{additionalItems:(...e)=>new ui(...e),items:(...e)=>new ui(...e),contains:(...e)=>new ui(...e),required(...e){const t=new o.ON(...e);return t.classes.push("json-schema-required"),t},properties(...e){const t=new o.Sb(...e);return t.classes.push("json-schema-properties"),t},additionalProperties:(...e)=>new ui(...e),patternProperties(...e){const t=new o.Sb(...e);return t.classes.push("json-schema-patternProperties"),t},dependencies(...e){const t=new o.Sb(...e);return t.classes.push("json-schema-dependencies"),t},propertyNames:(...e)=>new ui(...e),enum(...e){const t=new o.ON(...e);return t.classes.push("json-schema-enum"),t},allOf(...e){const t=new o.ON(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new o.ON(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new o.ON(...e);return t.classes.push("json-schema-oneOf"),t},if:(...e)=>new ui(...e),then:(...e)=>new ui(...e),else:(...e)=>new ui(...e),not:(...e)=>new ui(...e),definitions(...e){const t=new o.Sb(...e);return t.classes.push("json-schema-definitions"),t},examples(...e){const t=new o.ON(...e);return t.classes.push("json-schema-examples"),t},links(...e){const t=new o.ON(...e);return t.classes.push("json-schema-links"),t}},LinkDescriptionElement:{hrefSchema:(...e)=>new ui(...e),targetSchema:(...e)=>new ui(...e),submissionSchema:(...e)=>new ui(...e),templatePointers:(...e)=>new o.Sb(...e),templateRequired:(...e)=>new o.ON(...e),targetHints:(...e)=>new o.Sb(...e)},"json-schema-properties":{"[key: *]":function(...e){return new ui(...e)}},"json-schema-patternProperties":{"[key: *]":function(...e){return new ui(...e)}},"json-schema-dependencies":{"[key: *]":function(...e){return new ui(...e)}},"json-schema-allOf":{"<*>":function(...e){return new ui(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new ui(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new ui(...e)}},"json-schema-definitions":{"[key: *]":function(...e){return new ui(...e)}},"json-schema-links":{"<*>":function(...e){return new li(...e)}}},di=(e,t)=>{const n=fi(e),r=mi[n]||mi[hr(e.classes.first)];return void 0===r?void 0:Object.prototype.hasOwnProperty.call(r,"[key: *]")?r["[key: *]"]:r[t]},yi=()=>()=>({visitor:{StringElement(e,t,n,r,s){if(!(e=>se(e)&&Oe(["yaml-e-node","yaml-e-scalar"],e))(e))return;const i=[...s,n].filter(re),o=i[i.length-1];let c,a;return ue(o)?(a=e,c=di(o,"<*>")):le(o)&&(a=i[i.length-2],c=di(a,hr(o.key))),"function"==typeof c?c.call({context:a},void 0,jn(e.meta),jn(e.attributes)):void 0}}}),bi=an()(vr,sr,{props:{specPath:z(["document","objects","JSONSchema"])},methods:{ObjectElement(e){return this.element=new ui,vr.compose.methods.ObjectElement.call(this,e)},BooleanElement(e){return this.element=jn(e),this.element.classes.push("boolean-json-schema"),hn}}}),vi=sr,gi=sr,Oi=sr,ji=sr,Si=an()(vr,sr,{props:{specPath:z(["document","objects","LinkDescription"])},init(){this.element=new li}}),Ei=sr,xi=sr,wi=sr,Ai=sr,ki=sr,Pi=sr,_i=sr,Ni=_t($s(["visitors","document","objects","JSONSchema","$visitor"],bi),$s(["visitors","document","objects","JSONSchema","fixedFields","$comment"],vi),$s(["visitors","document","objects","JSONSchema","fixedFields","if"],ei.visitors.JSONSchemaOrJSONReferenceVisitor),$s(["visitors","document","objects","JSONSchema","fixedFields","then"],ei.visitors.JSONSchemaOrJSONReferenceVisitor),$s(["visitors","document","objects","JSONSchema","fixedFields","else"],ei.visitors.JSONSchemaOrJSONReferenceVisitor),Gs(["visitors","document","objects","JSONSchema","fixedFields","media"]),$s(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],gi),$s(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Oi),$s(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],ji),$s(["visitors","document","objects","LinkDescription","$visitor"],Si),$s(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Ei),$s(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],xi),Gs(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),$s(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],wi),$s(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Ai),$s(["visitors","document","objects","LinkDescription","fixedFields","description"],ki),$s(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Pi),Gs(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),$s(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],_i))(ei),Ti=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ui||e(r)&&t("JSONSchemaDraft7",r)&&n("object",r))),Mi=ne((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof li||e(r)&&t("linkDescription",r)&&n("object",r))),Ri=()=>{const e=rn(pi);return{predicates:{...i,isStringElement:se},namespace:e}},Fi=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=Ni}={})=>{const s=(0,o.Qc)(e),i=nr(r),c=zt(t,[],i);return _n(s,c,{state:{specObj:i}}),Tn(c.element,n,{toolboxCreator:Ri,visitorOptions:{keyMap:hi,nodeTypeGetter:fi}})},Di=e=>(t,n={})=>Fi(t,{specPath:e,...n}),Li=Fi})(),r})()));