@swagger-api/apidom-json-pointer-relative 1.0.0-alpha.2 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.3](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2024-05-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-json-pointer-relative
|
|
9
|
+
|
|
6
10
|
# [1.0.0-alpha.2](https://github.com/swagger-api/apidom/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2024-05-20)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @swagger-api/apidom-json-pointer-relative
|
|
@@ -14187,7 +14187,7 @@ const cloneNode = node => Object.create(Object.getPrototypeOf(node), Object.getO
|
|
|
14187
14187
|
* parallel. Each visitor will be visited for each node before moving on.
|
|
14188
14188
|
*
|
|
14189
14189
|
* If a prior visitor edits a node, no following visitors will see that node.
|
|
14190
|
-
* `exposeEdits=true` can be used to
|
|
14190
|
+
* `exposeEdits=true` can be used to expose the edited node from the previous visitors.
|
|
14191
14191
|
*/
|
|
14192
14192
|
|
|
14193
14193
|
const mergeAll = (visitors, {
|
|
@@ -14201,14 +14201,21 @@ const mergeAll = (visitors, {
|
|
|
14201
14201
|
const skipSymbol = Symbol('skip');
|
|
14202
14202
|
const skipping = new Array(visitors.length).fill(skipSymbol);
|
|
14203
14203
|
return {
|
|
14204
|
-
enter(node,
|
|
14204
|
+
enter(node, key, parent, path, ancestors, link) {
|
|
14205
14205
|
let currentNode = node;
|
|
14206
14206
|
let hasChanged = false;
|
|
14207
|
+
const linkProxy = {
|
|
14208
|
+
...link,
|
|
14209
|
+
replaceWith(newNode, replacer) {
|
|
14210
|
+
link.replaceWith(newNode, replacer);
|
|
14211
|
+
currentNode = newNode;
|
|
14212
|
+
}
|
|
14213
|
+
};
|
|
14207
14214
|
for (let i = 0; i < visitors.length; i += 1) {
|
|
14208
14215
|
if (skipping[i] === skipSymbol) {
|
|
14209
14216
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
|
|
14210
14217
|
if (typeof visitFn === 'function') {
|
|
14211
|
-
const result = visitFn.call(visitors[i], currentNode,
|
|
14218
|
+
const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
|
|
14212
14219
|
|
|
14213
14220
|
// check if the visitor is async
|
|
14214
14221
|
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
@@ -14218,7 +14225,7 @@ const mergeAll = (visitors, {
|
|
|
14218
14225
|
});
|
|
14219
14226
|
}
|
|
14220
14227
|
if (result === skipVisitingNodeSymbol) {
|
|
14221
|
-
skipping[i] =
|
|
14228
|
+
skipping[i] = currentNode;
|
|
14222
14229
|
} else if (result === breakSymbol) {
|
|
14223
14230
|
skipping[i] = breakSymbol;
|
|
14224
14231
|
} else if (result === deleteNodeSymbol) {
|
|
@@ -14236,12 +14243,20 @@ const mergeAll = (visitors, {
|
|
|
14236
14243
|
}
|
|
14237
14244
|
return hasChanged ? currentNode : undefined;
|
|
14238
14245
|
},
|
|
14239
|
-
leave(node,
|
|
14246
|
+
leave(node, key, parent, path, ancestors, link) {
|
|
14247
|
+
let currentNode = node;
|
|
14248
|
+
const linkProxy = {
|
|
14249
|
+
...link,
|
|
14250
|
+
replaceWith(newNode, replacer) {
|
|
14251
|
+
link.replaceWith(newNode, replacer);
|
|
14252
|
+
currentNode = newNode;
|
|
14253
|
+
}
|
|
14254
|
+
};
|
|
14240
14255
|
for (let i = 0; i < visitors.length; i += 1) {
|
|
14241
14256
|
if (skipping[i] === skipSymbol) {
|
|
14242
|
-
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(
|
|
14257
|
+
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
|
|
14243
14258
|
if (typeof visitFn === 'function') {
|
|
14244
|
-
const result = visitFn.call(visitors[i],
|
|
14259
|
+
const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
|
|
14245
14260
|
|
|
14246
14261
|
// check if the visitor is async
|
|
14247
14262
|
if (typeof (result === null || result === void 0 ? void 0 : result.then) === 'function') {
|
|
@@ -14256,7 +14271,7 @@ const mergeAll = (visitors, {
|
|
|
14256
14271
|
return result;
|
|
14257
14272
|
}
|
|
14258
14273
|
}
|
|
14259
|
-
} else if (skipping[i] ===
|
|
14274
|
+
} else if (skipping[i] === currentNode) {
|
|
14260
14275
|
skipping[i] = skipSymbol;
|
|
14261
14276
|
}
|
|
14262
14277
|
}
|
|
@@ -14275,17 +14290,24 @@ const mergeAllAsync = (visitors, {
|
|
|
14275
14290
|
const skipSymbol = Symbol('skip');
|
|
14276
14291
|
const skipping = new Array(visitors.length).fill(skipSymbol);
|
|
14277
14292
|
return {
|
|
14278
|
-
async enter(node,
|
|
14293
|
+
async enter(node, key, parent, path, ancestors, link) {
|
|
14279
14294
|
let currentNode = node;
|
|
14280
14295
|
let hasChanged = false;
|
|
14296
|
+
const linkProxy = {
|
|
14297
|
+
...link,
|
|
14298
|
+
replaceWith(newNode, replacer) {
|
|
14299
|
+
link.replaceWith(newNode, replacer);
|
|
14300
|
+
currentNode = newNode;
|
|
14301
|
+
}
|
|
14302
|
+
};
|
|
14281
14303
|
for (let i = 0; i < visitors.length; i += 1) {
|
|
14282
14304
|
if (skipping[i] === skipSymbol) {
|
|
14283
14305
|
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
|
|
14284
14306
|
if (typeof visitFn === 'function') {
|
|
14285
14307
|
// eslint-disable-next-line no-await-in-loop
|
|
14286
|
-
const result = await visitFn.call(visitors[i], currentNode,
|
|
14308
|
+
const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
|
|
14287
14309
|
if (result === skipVisitingNodeSymbol) {
|
|
14288
|
-
skipping[i] =
|
|
14310
|
+
skipping[i] = currentNode;
|
|
14289
14311
|
} else if (result === breakSymbol) {
|
|
14290
14312
|
skipping[i] = breakSymbol;
|
|
14291
14313
|
} else if (result === deleteNodeSymbol) {
|
|
@@ -14303,20 +14325,28 @@ const mergeAllAsync = (visitors, {
|
|
|
14303
14325
|
}
|
|
14304
14326
|
return hasChanged ? currentNode : undefined;
|
|
14305
14327
|
},
|
|
14306
|
-
async leave(node,
|
|
14328
|
+
async leave(node, key, parent, path, ancestors, link) {
|
|
14329
|
+
let currentNode = node;
|
|
14330
|
+
const linkProxy = {
|
|
14331
|
+
...link,
|
|
14332
|
+
replaceWith(newNode, replacer) {
|
|
14333
|
+
link.replaceWith(newNode, replacer);
|
|
14334
|
+
currentNode = newNode;
|
|
14335
|
+
}
|
|
14336
|
+
};
|
|
14307
14337
|
for (let i = 0; i < visitors.length; i += 1) {
|
|
14308
14338
|
if (skipping[i] === skipSymbol) {
|
|
14309
|
-
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(
|
|
14339
|
+
const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
|
|
14310
14340
|
if (typeof visitFn === 'function') {
|
|
14311
14341
|
// eslint-disable-next-line no-await-in-loop
|
|
14312
|
-
const result = await visitFn.call(visitors[i],
|
|
14342
|
+
const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
|
|
14313
14343
|
if (result === breakSymbol) {
|
|
14314
14344
|
skipping[i] = breakSymbol;
|
|
14315
14345
|
} else if (result !== undefined && result !== skipVisitingNodeSymbol) {
|
|
14316
14346
|
return result;
|
|
14317
14347
|
}
|
|
14318
14348
|
}
|
|
14319
|
-
} else if (skipping[i] ===
|
|
14349
|
+
} else if (skipping[i] === currentNode) {
|
|
14320
14350
|
skipping[i] = skipSymbol;
|
|
14321
14351
|
}
|
|
14322
14352
|
}
|
|
@@ -14520,7 +14550,9 @@ visitor, {
|
|
|
14520
14550
|
} else if (parent) {
|
|
14521
14551
|
parent[key] = newNode;
|
|
14522
14552
|
}
|
|
14523
|
-
|
|
14553
|
+
if (!isLeaving) {
|
|
14554
|
+
node = newNode;
|
|
14555
|
+
}
|
|
14524
14556
|
}
|
|
14525
14557
|
};
|
|
14526
14558
|
|
|
@@ -14690,7 +14722,9 @@ visitor, {
|
|
|
14690
14722
|
} else if (parent) {
|
|
14691
14723
|
parent[key] = newNode;
|
|
14692
14724
|
}
|
|
14693
|
-
|
|
14725
|
+
if (!isLeaving) {
|
|
14726
|
+
node = newNode;
|
|
14727
|
+
}
|
|
14694
14728
|
}
|
|
14695
14729
|
};
|
|
14696
14730
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomJsonPointerRelative=e():t.apidomJsonPointerRelative=e()}(self,(()=>(()=>{var t={3103:(t,e,r)=>{var n=r(4715)(r(8942),"DataView");t.exports=n},5098:(t,e,r)=>{var n=r(3305),o=r(9361),i=r(1112),s=r(5276),a=r(5071);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},1386:(t,e,r)=>{var n=r(2393),o=r(2049),i=r(7144),s=r(7452),a=r(3964);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},9770:(t,e,r)=>{var n=r(4715)(r(8942),"Map");t.exports=n},8250:(t,e,r)=>{var n=r(9753),o=r(5681),i=r(88),s=r(4732),a=r(9068);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},9413:(t,e,r)=>{var n=r(4715)(r(8942),"Promise");t.exports=n},4512:(t,e,r)=>{var n=r(4715)(r(8942),"Set");t.exports=n},3212:(t,e,r)=>{var n=r(8250),o=r(1877),i=r(8006);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},1340:(t,e,r)=>{var n=r(1386),o=r(4103),i=r(1779),s=r(4162),a=r(7462),c=r(6638);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},5650:(t,e,r)=>{var n=r(8942).Symbol;t.exports=n},1623:(t,e,r)=>{var n=r(8942).Uint8Array;t.exports=n},9270:(t,e,r)=>{var n=r(4715)(r(8942),"WeakMap");t.exports=n},9847:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var s=t[r];e(s,r,t)&&(i[o++]=s)}return i}},358:(t,e,r)=>{var n=r(6137),o=r(3283),i=r(3142),s=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&s(t),p=!r&&!l&&!f&&c(t),h=r||l||f||p,m=h?n(t.length,String):[],y=m.length;for(var v in t)!e&&!u.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,y))||m.push(v);return m}},1129:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},6465:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7034:(t,e,r)=>{var n=r(6285);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8244:(t,e,r)=>{var n=r(1129),o=r(3142);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},7379:(t,e,r)=>{var n=r(5650),o=r(8870),i=r(9005),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):i(t)}},6027:(t,e,r)=>{var n=r(7379),o=r(547);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},4687:(t,e,r)=>{var n=r(353),o=r(547);t.exports=function t(e,r,i,s,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,s,t,a))}},353:(t,e,r)=>{var n=r(1340),o=r(3934),i=r(8861),s=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,d){var b=c(t),g=c(e),x=b?p:a(t),E=g?p:a(e),w=(x=x==f?h:x)==h,j=(E=E==f?h:E)==h,O=x==E;if(O&&u(t)){if(!u(e))return!1;b=!0,w=!1}if(O&&!w)return d||(d=new n),b||l(t)?o(t,e,r,y,v,d):i(t,e,x,r,y,v,d);if(!(1&r)){var S=w&&m.call(t,"__wrapped__"),k=j&&m.call(e,"__wrapped__");if(S||k){var _=S?t.value():t,A=k?e.value():e;return d||(d=new n),v(_,A,r,y,d)}}return!!O&&(d||(d=new n),s(t,e,r,y,v,d))}},9624:(t,e,r)=>{var n=r(3655),o=r(4759),i=r(1580),s=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:a).test(s(t))}},674:(t,e,r)=>{var n=r(7379),o=r(5387),i=r(547),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[n(t)]}},195:(t,e,r)=>{var n=r(4882),o=r(8121),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6137:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},9460:t=>{t.exports=function(t){return function(e){return t(e)}}},5568:t=>{t.exports=function(t,e){return t.has(e)}},1950:(t,e,r)=>{var n=r(8942)["__core-js_shared__"];t.exports=n},3934:(t,e,r)=>{var n=r(3212),o=r(6465),i=r(5568);t.exports=function(t,e,r,s,a,c){var u=1&r,l=t.length,f=e.length;if(l!=f&&!(u&&f>l))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var m=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++m<l;){var d=t[m],b=e[m];if(s)var g=u?s(b,d,m,e,t,c):s(d,b,m,t,e,c);if(void 0!==g){if(g)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(d===t||a(d,t,r,s,c)))return v.push(e)}))){y=!1;break}}else if(d!==b&&!a(d,b,r,s,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},8861:(t,e,r)=>{var n=r(5650),o=r(1623),i=r(6285),s=r(3934),a=r(5894),c=r(7447),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var m=1&n;if(h||(h=c),t.size!=e.size&&!m)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=s(h(t),h(e),n,u,f,p);return p.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},1182:(t,e,r)=>{var n=r(393),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,s,a){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=u[f];if(!(c?p in e:o.call(e,p)))return!1}var h=a.get(t),m=a.get(e);if(h&&m)return h==e&&m==t;var y=!0;a.set(t,e),a.set(e,t);for(var v=c;++f<l;){var d=t[p=u[f]],b=e[p];if(i)var g=c?i(b,d,p,e,t,a):i(d,b,p,t,e,a);if(!(void 0===g?d===b||s(d,b,r,i,a):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,E=e.constructor;x==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(y=!1)}return a.delete(t),a.delete(e),y}},4967:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},393:(t,e,r)=>{var n=r(8244),o=r(7979),i=r(1211);t.exports=function(t){return n(t,i,o)}},4700:(t,e,r)=>{var n=r(9067);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},4715:(t,e,r)=>{var n=r(9624),o=r(155);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},8870:(t,e,r)=>{var n=r(5650),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=s.call(t);return n&&(e?t[a]=r:delete t[a]),o}},7979:(t,e,r)=>{var n=r(9847),o=r(9306),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},8486:(t,e,r)=>{var n=r(3103),o=r(9770),i=r(9413),s=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",y=u(n),v=u(o),d=u(i),b=u(s),g=u(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=m||o&&x(new o)!=l||i&&x(i.resolve())!=f||s&&x(new s)!=p||a&&x(new a)!=h)&&(x=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case y:return m;case v:return l;case d:return f;case b:return p;case g:return h}return e}),t.exports=x},155:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},3305:(t,e,r)=>{var n=r(4497);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},1112:(t,e,r)=>{var n=r(4497),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},5276:(t,e,r)=>{var n=r(4497),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5071:(t,e,r)=>{var n=r(4497);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9632:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},9067:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4759:(t,e,r)=>{var n,o=r(1950),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},4882:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},2393:t=>{t.exports=function(){this.__data__=[],this.size=0}},2049:(t,e,r)=>{var n=r(7034),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},7144:(t,e,r)=>{var n=r(7034);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7452:(t,e,r)=>{var n=r(7034);t.exports=function(t){return n(this.__data__,t)>-1}},3964:(t,e,r)=>{var n=r(7034);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},9753:(t,e,r)=>{var n=r(5098),o=r(1386),i=r(9770);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},5681:(t,e,r)=>{var n=r(4700);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},88:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).get(t)}},4732:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).has(t)}},9068:(t,e,r)=>{var n=r(4700);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},5894:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},4497:(t,e,r)=>{var n=r(4715)(Object,"create");t.exports=n},8121:(t,e,r)=>{var n=r(3766)(Object.keys,Object);t.exports=n},2306:(t,e,r)=>{t=r.nmd(t);var n=r(4967),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},9005:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3766:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},8942:(t,e,r)=>{var n=r(4967),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1877:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},8006:t=>{t.exports=function(t){return this.__data__.has(t)}},7447:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4103:(t,e,r)=>{var n=r(1386);t.exports=function(){this.__data__=new n,this.size=0}},1779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4162:t=>{t.exports=function(t){return this.__data__.get(t)}},7462:t=>{t.exports=function(t){return this.__data__.has(t)}},6638:(t,e,r)=>{var n=r(1386),o=r(9770),i=r(8250);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(t,e),this.size=r.size,this}},4066:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6285:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3283:(t,e,r)=>{var n=r(6027),o=r(547),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},3142:t=>{var e=Array.isArray;t.exports=e},6529:(t,e,r)=>{var n=r(3655),o=r(5387);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},2563:(t,e,r)=>{var n=r(7379),o=r(547);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},5853:(t,e,r)=>{t=r.nmd(t);var n=r(8942),o=r(4772),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;t.exports=c},6343:(t,e,r)=>{var n=r(4687);t.exports=function(t,e){return n(t,e)}},3655:(t,e,r)=>{var n=r(7379),o=r(1580);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5387:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},9310:t=>{t.exports=function(t){return null===t}},986:(t,e,r)=>{var n=r(7379),o=r(547);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},1580:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},547:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8138:(t,e,r)=>{var n=r(7379),o=r(3142),i=r(547);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},8666:(t,e,r)=>{var n=r(674),o=r(9460),i=r(2306),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},1211:(t,e,r)=>{var n=r(358),o=r(195),i=r(6529);t.exports=function(t){return i(t)?n(t):o(t)}},1517:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},9306:t=>{t.exports=function(){return[]}},4772:t=>{t.exports=function(){return!1}},4123:(t,e,r)=>{const n=r(1517);function o(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const o=t.bind(e)(n);o&&r.push(o)})),r}filter(t,e){return t=o(t),new i(this.elements.filter(t,e))}reject(t,e){return t=o(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=o(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.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]()}),t.exports=i},2322:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5735:(t,e,r)=>{const n=r(9310),o=r(8138),i=r(986),s=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(o,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(s,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],o=this.elementDetection[r][1];if(n(t)){e=new o(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},3311:(t,e,r)=>{const n=r(1517),o=r(4123);class i extends o{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},7547:(t,e,r)=>{const n=r(8631),o=r(3004),i=r(8712),s=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),f=r(9620),p=r(593),h=r(4123),m=r(3311),y=r(2322);function v(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new s(t);if("boolean"==typeof t)return new a(t);if(null===t)return new o;if(Array.isArray(t))return new c(t.map(v));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=v,h.prototype.refract=v,t.exports={Element:n,NullElement:o,StringElement:i,NumberElement:s,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:p,refract:v,ArraySlice:h,ObjectSlice:m,KeyValuePair:y}},9620:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},593:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},8326:(t,e,r)=>{const n=r(5735),o=r(7547);e.g$=n,e.KeyValuePair=r(2322),e.G6=o.ArraySlice,e.ot=o.ObjectSlice,e.Hg=o.Element,e.Om=o.StringElement,e.kT=o.NumberElement,e.bd=o.BooleanElement,e.Os=o.NullElement,e.wE=o.ArrayElement,e.Sh=o.ObjectElement,e.Pr=o.MemberElement,e.sI=o.RefElement,e.Ft=o.LinkElement,o.refract,r(394),r(3148)},9796:(t,e,r)=>{const n=r(1517),o=r(8631),i=r(4123);class s extends o{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const o=t.bind(e)(n);o&&r.push(o)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,o=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:o,recursive:n}),t(e,r,i)&&o.push(e)})),o}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}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)}}s.empty=function(){return new this},s["fantasy-land/empty"]=s.empty,"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=s},2555:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(t,e,r)=>{const n=r(6343),o=r(2322),i=r(4123);class s{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof s?this.content.toValue():this.content instanceof o?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),s=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof o&&(r.content.key&&s(t,r.content.key),r.content.value&&s(t,r.content.value)),t};return this.content&&(this.content.element&&s(r,this.content),Array.isArray(this.content)&&this.content.reduce(s,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],o=r.indexOf(n);if(-1===o)return!1;r=r.splice(0,o)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof s)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof o)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof o){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof s?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=s},7309:(t,e,r)=>{const n=r(2322),o=r(8631);t.exports=class extends o{constructor(t,e,r,o){super(new n,r,o),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},3004:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},5642:(t,e,r)=>{const n=r(1517),o=r(1580),i=r(9796),s=r(7309),a=r(3311);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(o(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new s(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,o,i)=>{const s=t.bind(e)(n,o,i);s&&r.push(s)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},8712:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(t,e,r)=>{const n=r(394);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let o=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),o.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&o.unshift(t.content),o=o.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),o.length&&e.set("samples",o),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const o=new e(n);o.element=r.element,t.push(o)}))}));const o=t.shift();r.content=o?o.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},394:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},1212:(t,e,r)=>{t.exports=r(8411)},7202:(t,e,r)=>{"use strict";var n=r(239);t.exports=n},6656:(t,e,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);t.exports=n.AggregateError},8411:(t,e,r)=>{"use strict";t.exports=r(8337)},8337:(t,e,r)=>{"use strict";r(5442);var n=r(7202);t.exports=n},814:(t,e,r)=>{"use strict";var n=r(2769),o=r(459),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},1966:(t,e,r)=>{"use strict";var n=r(2937),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},8137:t=>{"use strict";t.exports=function(){}},7235:(t,e,r)=>{"use strict";var n=r(262),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},1005:(t,e,r)=>{"use strict";var n=r(3273),o=r(4574),i=r(8130),s=function(t){return function(e,r,s){var a,c=n(e),u=i(c),l=o(s,u);if(t&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},9932:(t,e,r)=>{"use strict";var n=r(6100),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},8407:(t,e,r)=>{"use strict";var n=r(4904),o=r(2769),i=r(9932),s=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:c?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7464:(t,e,r)=>{"use strict";var n=r(701),o=r(5691),i=r(4543),s=r(9989);t.exports=function(t,e,r){for(var a=o(e),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||c(t,f,u(e,f))}}},2871:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},877:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},3999:(t,e,r)=>{"use strict";var n=r(5024),o=r(9989),i=r(480);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},480:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3508:(t,e,r)=>{"use strict";var n=r(3999);t.exports=function(t,e,r,o){return o&&o.enumerable?t[e]=r:n(t,e,r),t}},7525:(t,e,r)=>{"use strict";var n=r(1063),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},5024:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(t,e,r)=>{"use strict";var n=r(1063),o=r(262),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},1100:t=>{"use strict";t.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}},7868:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(t,e,r)=>{"use strict";var n,o,i=r(1063),s=r(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},9683:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(t,e,r)=>{"use strict";var n=r(6100),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},4279:(t,e,r)=>{"use strict";var n=r(3999),o=r(3885),i=r(5791),s=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(s?s(t,e):n(t,"stack",o(r,a)))}},5791:(t,e,r)=>{"use strict";var n=r(1203),o=r(480);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},9098:(t,e,r)=>{"use strict";var n=r(1063),o=r(7013),i=r(9344),s=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),f=r(3999),p=r(701),h=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,o,m,y,v,d,b,g,x,E=t.target,w=t.global,j=t.stat,O=t.proto,S=w?n:j?n[E]:n[E]&&n[E].prototype,k=w?u:u[E]||f(u,E,{})[E],_=k.prototype;for(y in e)o=!(r=c(w?y:E+(j?".":"#")+y,t.forced))&&S&&p(S,y),d=k[y],o&&(b=t.dontCallGetSet?(x=a(S,y))&&x.value:S[y]),v=o&&b?b:e[y],(r||O||typeof d!=typeof v)&&(g=t.bind&&o?l(v,n):t.wrap&&o?h(v):O&&s(v)?i(v):v,(t.sham||v&&v.sham||d&&d.sham)&&f(g,"sham",!0),f(k,y,g),O&&(p(u,m=E+"Prototype")||f(u,m,{}),f(u[m],y,v),t.real&&_&&(r||!_[y])&&f(_,y,v)))}},1203:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},7013:(t,e,r)=>{"use strict";var n=r(1780),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},4572:(t,e,r)=>{"use strict";var n=r(9344),o=r(814),i=r(1780),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},1780:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4713:(t,e,r)=>{"use strict";var n=r(1780),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3410:(t,e,r)=>{"use strict";var n=r(5024),o=r(701),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(t,e,r)=>{"use strict";var n=r(6100),o=r(814);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},9344:(t,e,r)=>{"use strict";var n=r(9932),o=r(6100);t.exports=function(t){if("Function"===n(t))return o(t)}},6100:(t,e,r)=>{"use strict";var n=r(1780),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},1003:(t,e,r)=>{"use strict";var n=r(8099),o=r(1063),i=r(2769),s=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(n[t])||s(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},967:(t,e,r)=>{"use strict";var n=r(8407),o=r(4674),i=r(3057),s=r(6625),a=r(8655)("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||s[n(t)]}},1613:(t,e,r)=>{"use strict";var n=r(4713),o=r(814),i=r(7235),s=r(459),a=r(967),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw new c(s(t)+" is not iterable")}},4674:(t,e,r)=>{"use strict";var n=r(814),o=r(3057);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},1063:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(t,e,r)=>{"use strict";var n=r(6100),o=r(2137),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},5241:t=>{"use strict";t.exports={}},3489:(t,e,r)=>{"use strict";var n=r(1003);t.exports=n("document","documentElement")},9665:(t,e,r)=>{"use strict";var n=r(5024),o=r(1203),i=r(9619);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(t,e,r)=>{"use strict";var n=r(6100),o=r(1203),i=r(9932),s=Object,a=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3507:(t,e,r)=>{"use strict";var n=r(2769),o=r(262),i=r(3491);t.exports=function(t,e,r){var s,a;return i&&n(s=e.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},8148:(t,e,r)=>{"use strict";var n=r(262),o=r(3999);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},8417:(t,e,r)=>{"use strict";var n,o,i,s=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),f=r(3753),p=r(4275),h=r(5241),m="Object already initialized",y=a.TypeError,v=a.WeakMap;if(s||f.state){var d=f.state||(f.state=new v);d.get=d.get,d.has=d.has,d.set=d.set,n=function(t,e){if(d.has(t))throw new y(m);return e.facade=t,d.set(t,e),e},o=function(t){return d.get(t)||{}},i=function(t){return d.has(t)}}else{var b=p("state");h[b]=!0,n=function(t,e){if(l(t,b))throw new y(m);return e.facade=t,u(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return r}}}},2877:(t,e,r)=>{"use strict";var n=r(8655),o=r(6625),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},2769:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},8696:(t,e,r)=>{"use strict";var n=r(1203),o=r(2769),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===l||r!==u&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},3057:t=>{"use strict";t.exports=function(t){return null==t}},262:(t,e,r)=>{"use strict";var n=r(2769);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},2937:(t,e,r)=>{"use strict";var n=r(262);t.exports=function(t){return n(t)||null===t}},4871:t=>{"use strict";t.exports=!0},6281:(t,e,r)=>{"use strict";var n=r(1003),o=r(2769),i=r(4317),s=r(7460),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},208:(t,e,r)=>{"use strict";var n=r(4572),o=r(4713),i=r(7235),s=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),f=r(967),p=r(1743),h=TypeError,m=function(t,e){this.stopped=t,this.result=e},y=m.prototype;t.exports=function(t,e,r){var v,d,b,g,x,E,w,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),_=!(!r||!r.INTERRUPTED),A=n(e,j),P=function(t){return v&&p(v,"normal",t),new m(!0,t)},T=function(t){return O?(i(t),_?A(t[0],t[1],P):A(t[0],t[1])):_?A(t,P):A(t)};if(S)v=t.iterator;else if(k)v=t;else{if(!(d=f(t)))throw new h(s(t)+" is not iterable");if(a(d)){for(b=0,g=c(t);g>b;b++)if((x=T(t[b]))&&u(y,x))return x;return new m(!1)}v=l(t,d)}for(E=S?t.next:v.next;!(w=o(E,v)).done;){try{x=T(w.value)}catch(t){p(v,"throw",t)}if("object"==typeof x&&x&&u(y,x))return x}return new m(!1)}},1743:(t,e,r)=>{"use strict";var n=r(4713),o=r(7235),i=r(4674);t.exports=function(t,e,r){var s,a;o(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw r;if(a)throw s;return o(s),r}},1926:(t,e,r)=>{"use strict";var n=r(2621).IteratorPrototype,o=r(5780),i=r(480),s=r(1811),a=r(6625),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!u,r)}),s(t,l,!1,!0),a[l]=c,t}},164:(t,e,r)=>{"use strict";var n=r(9098),o=r(4713),i=r(4871),s=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),f=r(1811),p=r(3999),h=r(3508),m=r(8655),y=r(6625),v=r(2621),d=s.PROPER,b=s.CONFIGURABLE,g=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,E=m("iterator"),w="keys",j="values",O="entries",S=function(){return this};t.exports=function(t,e,r,s,m,v,k){c(r,e,s);var _,A,P,T=function(t){if(t===m&&I)return I;if(!x&&t&&t in N)return N[t];switch(t){case w:case j:case O:return function(){return new r(this,t)}}return function(){return new r(this)}},M=e+" Iterator",C=!1,N=t.prototype,R=N[E]||N["@@iterator"]||m&&N[m],I=!x&&R||T(m),F="Array"===e&&N.entries||R;if(F&&(_=u(F.call(new t)))!==Object.prototype&&_.next&&(i||u(_)===g||(l?l(_,g):a(_[E])||h(_,E,S)),f(_,M,!0,!0),i&&(y[M]=S)),d&&m===j&&R&&R.name!==j&&(!i&&b?p(N,"name",j):(C=!0,I=function(){return o(R,this)})),m)if(A={values:T(j),keys:v?I:T(w),entries:T(O)},k)for(P in A)(x||C||!(P in N))&&h(N,P,A[P]);else n({target:e,proto:!0,forced:x||C},A);return i&&!k||N[E]===I||h(N,E,I,{name:m}),y[e]=I,A}},2621:(t,e,r)=>{"use strict";var n,o,i,s=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),f=r(3508),p=r(8655),h=r(4871),m=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):y=!0),!c(n)||s((function(){var t={};return n[m].call(t)!==t}))?n={}:h&&(n=u(n)),a(n[m])||f(n,m,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},6625:t=>{"use strict";t.exports={}},8130:(t,e,r)=>{"use strict";var n=r(8146);t.exports=function(t){return n(t.length)}},5777:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},4879:(t,e,r)=>{"use strict";var n=r(1139);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},5780:(t,e,r)=>{"use strict";var n,o=r(7235),i=r(7389),s=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),f="prototype",p="script",h=l("IE_PROTO"),m=function(){},y=function(t){return"<"+p+">"+t+"</"+p+">"},v=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;d="undefined"!=typeof document?document.domain&&n?v(n):(e=u("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):v(n);for(var o=s.length;o--;)delete d[f][s[o]];return d()};a[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(m[f]=o(t),r=new m,m[f]=null,r[h]=t):r=d(),void 0===e?r:i.f(r,e)}},7389:(t,e,r)=>{"use strict";var n=r(5024),o=r(1330),i=r(9989),s=r(7235),a=r(3273),c=r(8364);e.f=n&&!o?Object.defineProperties:function(t,e){s(t);for(var r,n=a(e),o=c(e),u=o.length,l=0;u>l;)i.f(t,r=o[l++],n[r]);return t}},9989:(t,e,r)=>{"use strict";var n=r(5024),o=r(9665),i=r(1330),s=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4543:(t,e,r)=>{"use strict";var n=r(5024),o=r(4713),i=r(7161),s=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},5116:(t,e,r)=>{"use strict";var n=r(8600),o=r(9683).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7313:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},3671:(t,e,r)=>{"use strict";var n=r(701),o=r(2769),i=r(2137),s=r(4275),a=r(2871),c=s("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},4317:(t,e,r)=>{"use strict";var n=r(6100);t.exports=n({}.isPrototypeOf)},8600:(t,e,r)=>{"use strict";var n=r(6100),o=r(701),i=r(3273),s=r(1005).indexOf,a=r(5241),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);for(;e.length>u;)o(n,r=e[u++])&&(~s(l,r)||c(l,r));return l}},8364:(t,e,r)=>{"use strict";var n=r(8600),o=r(9683);t.exports=Object.keys||function(t){return n(t,o)}},7161:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},3491:(t,e,r)=>{"use strict";var n=r(3574),o=r(7235),i=r(1966);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},9559:(t,e,r)=>{"use strict";var n=r(4904),o=r(8407);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9258:(t,e,r)=>{"use strict";var n=r(4713),o=r(2769),i=r(262),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},5691:(t,e,r)=>{"use strict";var n=r(1003),o=r(6100),i=r(5116),s=r(7313),a=r(7235),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},8099:t=>{"use strict";t.exports={}},5516:(t,e,r)=>{"use strict";var n=r(9989).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},5426:(t,e,r)=>{"use strict";var n=r(3057),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},1811:(t,e,r)=>{"use strict";var n=r(4904),o=r(9989).f,i=r(3999),s=r(701),a=r(9559),c=r(8655)("toStringTag");t.exports=function(t,e,r,u){var l=r?t:t&&t.prototype;l&&(s(l,c)||o(l,c,{configurable:!0,value:e}),u&&!n&&i(l,"toString",a))}},4275:(t,e,r)=>{"use strict";var n=r(8141),o=r(1268),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},3753:(t,e,r)=>{"use strict";var n=r(1063),o=r(7525),i="__core-js_shared__",s=n[i]||o(i,{});t.exports=s},8141:(t,e,r)=>{"use strict";var n=r(4871),o=r(3753);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(t,e,r)=>{"use strict";var n=r(6100),o=r(9903),i=r(1139),s=r(5426),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(t){return function(e,r){var n,l,f=i(s(e)),p=o(r),h=f.length;return p<0||p>=h?t?"":void 0:(n=c(f,p))<55296||n>56319||p+1===h||(l=c(f,p+1))<56320||l>57343?t?a(f,p):n:t?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},4603:(t,e,r)=>{"use strict";var n=r(4432),o=r(1203),i=r(1063).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(t,e,r)=>{"use strict";var n=r(9903),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},3273:(t,e,r)=>{"use strict";var n=r(1395),o=r(5426);t.exports=function(t){return n(o(t))}},9903:(t,e,r)=>{"use strict";var n=r(5777);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8146:(t,e,r)=>{"use strict";var n=r(9903),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},2137:(t,e,r)=>{"use strict";var n=r(5426),o=Object;t.exports=function(t){return o(n(t))}},493:(t,e,r)=>{"use strict";var n=r(4713),o=r(262),i=r(6281),s=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=s(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},5341:(t,e,r)=>{"use strict";var n=r(493),o=r(6281);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},4904:(t,e,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",t.exports="[object z]"===String(n)},1139:(t,e,r)=>{"use strict";var n=r(8407),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},459:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},1268:(t,e,r)=>{"use strict";var n=r(6100),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7460:(t,e,r)=>{"use strict";var n=r(4603);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(t,e,r)=>{"use strict";var n=r(5024),o=r(1203);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(t,e,r)=>{"use strict";var n=r(1063),o=r(2769),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8655:(t,e,r)=>{"use strict";var n=r(1063),o=r(8141),i=r(701),s=r(1268),a=r(4603),c=r(7460),u=n.Symbol,l=o("wks"),f=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},6453:(t,e,r)=>{"use strict";var n=r(1003),o=r(701),i=r(3999),s=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),f=r(4879),p=r(8148),h=r(4279),m=r(5024),y=r(4871);t.exports=function(t,e,r,v){var d="stackTraceLimit",b=v?2:1,g=t.split("."),x=g[g.length-1],E=n.apply(null,g);if(E){var w=E.prototype;if(!y&&o(w,"cause")&&delete w.cause,!r)return E;var j=n("Error"),O=e((function(t,e){var r=f(v?e:t,void 0),n=v?new E(t):new E;return void 0!==r&&i(n,"message",r),h(n,O,n.stack,2),this&&s(w,this)&&l(n,this,O),arguments.length>b&&p(n,arguments[b]),n}));if(O.prototype=w,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):m&&d in E&&(u(O,E,d),u(O,E,"prepareStackTrace")),c(O,E),!y)try{w.name!==x&&i(w,"name",x),w.constructor=O}catch(t){}return O}}},6138:(t,e,r)=>{"use strict";var n=r(9098),o=r(1003),i=r(7013),s=r(1203),a=r(6453),c="AggregateError",u=o(c),l=!s((function(){return 1!==u([1]).errors[0]}))&&s((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},3085:(t,e,r)=>{"use strict";var n=r(9098),o=r(4317),i=r(3671),s=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),f=r(8148),p=r(4279),h=r(208),m=r(4879),y=r(8655)("toStringTag"),v=Error,d=[].push,b=function(t,e){var r,n=o(g,this);s?r=s(new v,n?i(this):g):(r=n?this:c(g),u(r,y,"Error")),void 0!==e&&u(r,"message",m(e)),p(r,b,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return h(t,d,{that:a}),u(r,"errors",a),r};s?s(b,v):a(b,v,{name:!0});var g=b.prototype=c(v.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},5695:(t,e,r)=>{"use strict";r(3085)},9828:(t,e,r)=>{"use strict";var n=r(3273),o=r(8137),i=r(6625),s=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),f=r(5024),p="Array Iterator",h=s.set,m=s.getterFor(p);t.exports=c(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=m(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==y.name)try{a(y,"name",{value:"values"})}catch(t){}},484:(t,e,r)=>{"use strict";var n=r(9098),o=r(1063),i=r(7013),s=r(6453),a="WebAssembly",c=o[a],u=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=s(t,e,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(t,e){if(c&&c[t]){var r={};r[t]=s(a+"."+t,e,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},3832:(t,e,r)=>{"use strict";var n=r(5571).charAt,o=r(1139),i=r(8417),s=r(164),a=r(877),c="String Iterator",u=i.set,l=i.getterFor(c);s(String,"String",(function(t){u(this,{type:c,string:o(t),index:0})}),(function(){var t,e=l(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))}))},5442:(t,e,r)=>{"use strict";r(5695)},85:(t,e,r)=>{"use strict";r(9828);var n=r(1100),o=r(1063),i=r(1811),s=r(6625);for(var a in n)i(o[a],a),s[a]=s.Array},239:(t,e,r)=>{"use strict";r(5442);var n=r(6656);r(85),t.exports=n}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{CompilationRelativeJsonPointerError:()=>f,EvaluationRelativeJsonPointerError:()=>l,InvalidRelativeJsonPointerError:()=>u,RelativeJsonPointerError:()=>c,compile:()=>Ft,evaluate:()=>Dr,isRelativeJsonPointer:()=>Mt,parse:()=>Ct});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>Pe,includesClasses:()=>Me,includesSymbols:()=>Te,isAnnotationElement:()=>Oe,isArrayElement:()=>xe,isBooleanElement:()=>be,isCommentElement:()=>Se,isElement:()=>me,isLinkElement:()=>we,isMemberElement:()=>Ee,isNullElement:()=>de,isNumberElement:()=>ve,isObjectElement:()=>ge,isParseResultElement:()=>ke,isPrimitiveElement:()=>Ae,isRefElement:()=>je,isSourceMapElement:()=>_e,isStringElement:()=>ye});var e=r(1212);const o=class extends e{constructor(t,e,r){if(super(t,e,r),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!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:t}=r;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}};class i extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(o,t)}constructor(t,e){if(super(t,e),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!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}const s=i;const a=class extends s{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...r}=e;Object.assign(this,r)}}};const c=class extends a{};class u extends c{relativePointer;constructor(t,e){super(t,e),void 0!==e&&(this.relativePointer=e.relativePointer)}}const l=class extends c{relativePointer;currentElement;rootElement;cursorElement;constructor(t,e){super(t,e),void 0!==e&&(this.relativePointer=e.relativePointer,this.currentElement=e.currentElement,this.rootElement=e.rootElement,this.cursorElement=e.cursorElement)}};const f=class extends c{nonNegativeIntegerPrefix;indexManipulation;jsonPointerTokens;hashCharacter;constructor(t,e){super(t,e),void 0!==e&&(this.nonNegativeIntegerPrefix=e.relativePointer.nonNegativeIntegerPrefix,this.indexManipulation=e.relativePointer.indexManipulation,this.hashCharacter=e.relativePointer.hashCharacter,Array.isArray(e.relativePointer.jsonPointerTokens)&&(this.jsonPointerTokens=[...e.relativePointer.jsonPointerTokens]))}},p={"@@functional/placeholder":!0};function h(t){return t===p}function m(t){return function e(r){return 0===arguments.length||h(r)?e:t.apply(this,arguments)}}function y(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return h(r)?e:m((function(e){return t(r,e)}));default:return h(r)&&h(n)?e:h(r)?m((function(e){return t(e,n)})):h(n)?m((function(e){return t(r,e)})):t(r,n)}}}function v(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function d(t,e,r){for(var n=0,o=r.length;n<o;){if(t(e,r[n]))return!0;n+=1}return!1}function b(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const g="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var x=Object.prototype.toString;const E=function(){return"[object Arguments]"===x.call(arguments)?function(t){return"[object Arguments]"===x.call(t)}:function(t){return b("callee",t)}}();var w=!{toString:null}.propertyIsEnumerable("toString"),j=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],O=function(){return arguments.propertyIsEnumerable("length")}(),S=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},k="function"!=typeof Object.keys||O?m((function(t){if(Object(t)!==t)return[];var e,r,n=[],o=O&&E(t);for(e in t)!b(e,t)||o&&"length"===e||(n[n.length]=e);if(w)for(r=j.length-1;r>=0;)b(e=j[r],t)&&!S(n,e)&&(n[n.length]=e),r-=1;return n})):m((function(t){return Object(t)!==t?[]:Object.keys(t)}));const _=k;const A=m((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function P(t,e,r,n){var o=v(t);function i(t,e){return T(t,e,r.slice(),n.slice())}return!d((function(t,e){return!d(i,e,t)}),v(e),o)}function T(t,e,r,n){if(g(t,e))return!0;var o,i,s=A(t);if(s!==A(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!g(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!g(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(s){case"Map":return t.size===e.size&&P(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&P(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=_(t);if(c.length!==_(e).length)return!1;var u=r.concat([t]),l=n.concat([e]);for(a=c.length-1;a>=0;){var f=c[a];if(!b(f,e)||!T(e[f],t[f],u,l))return!1;a-=1}return!0}const M=y((function(t,e){return T(t,e,[],[])})),C=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function N(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!C(n)){for(var o=0;o<t.length;){if("function"==typeof n[t[o]])return n[t[o]].apply(n,Array.prototype.slice.call(arguments,0,-1));o+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function R(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const I=function(){return this.xf["@@transducer/init"]()},F=function(t){return this.xf["@@transducer/result"](t)};var V=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=F,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var r=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.n>=0&&this.i>=this.n?R(r):r},t}();function z(t){return function(e){return new V(t,e)}}function L(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return C(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}function B(t){return function e(r,n,o){switch(arguments.length){case 0:return e;case 1:return h(r)?e:y((function(e,n){return t(r,e,n)}));case 2:return h(r)&&h(n)?e:h(r)?y((function(e,r){return t(e,n,r)})):h(n)?y((function(e,n){return t(r,e,n)})):m((function(e){return t(r,n,e)}));default:return h(r)&&h(n)&&h(o)?e:h(r)&&h(n)?y((function(e,r){return t(e,r,o)})):h(r)&&h(o)?y((function(e,r){return t(e,n,r)})):h(n)&&h(o)?y((function(e,n){return t(r,e,n)})):h(r)?m((function(e){return t(e,n,o)})):h(n)?m((function(e){return t(r,e,o)})):h(o)?m((function(e){return t(r,n,e)})):t(r,n,o)}}}const D=B(L("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const q=y(N(["take"],z,(function(t,e){return D(0,t<0?1/0:t,e)})));const G=y((function(t,e){return M(q(t.length,e),t)}));function U(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,o){return e.apply(this,arguments)};case 5:return function(t,r,n,o,i){return e.apply(this,arguments)};case 6:return function(t,r,n,o,i,s){return e.apply(this,arguments)};case 7:return function(t,r,n,o,i,s,a){return e.apply(this,arguments)};case 8:return function(t,r,n,o,i,s,a,c){return e.apply(this,arguments)};case 9:return function(t,r,n,o,i,s,a,c,u){return e.apply(this,arguments)};case 10:return function(t,r,n,o,i,s,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function $(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function J(t){return"[object String]"===Object.prototype.toString.call(t)}const K=m((function(t){return!!C(t)||!!t&&("object"==typeof t&&(!J(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var W="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function H(t,e,r){return function(n,o,i){if(K(i))return t(n,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return e(n,o,i,"fantasy-land/reduce");if(null!=i[W])return r(n,o,i[W]());if("function"==typeof i.next)return r(n,o,i);if("function"==typeof i.reduce)return e(n,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Y(t,e,r){for(var n=0,o=r.length;n<o;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}const X=y((function(t,e){return U(t.length,(function(){return t.apply(e,arguments)}))}));function Z(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function Q(t,e,r,n){return t["@@transducer/result"](r[n](X(t["@@transducer/step"],t),e))}const tt=H(Y,Q,Z);var et=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();const rt=B((function(t,e,r){return tt("function"==typeof t?new et(t):t,e,r)}));const nt=m(L("tail",D(1,1/0)));function ot(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return U(arguments[0].length,rt($,arguments[0],nt(arguments)))}function it(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}function st(t,e,r){return function(){for(var n=[],o=0,i=t,s=0,a=!1;s<e.length||o<arguments.length;){var c;s<e.length&&(!h(e[s])||o>=arguments.length)?c=e[s]:(c=arguments[o],o+=1),n[s]=c,h(c)?a=!0:i-=1,s+=1}return!a&&i<=0?r.apply(this,n):U(Math.max(0,i),st(t,n,r))}}const at=y((function(t,e){return 1===t?m(e):U(t,st(t,[],e))}));function ct(t,e){return function(t,e,r){var n,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(o=t[r])&&1/o===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(o=t[r])&&o!=o)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(M(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function ut(t,e){for(var r=0,n=e.length,o=Array(n);r<n;)o[r]=t(e[r]),r+=1;return o}function lt(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ft=function(t){return(t<10?"0":"")+t};const pt="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+ft(t.getUTCMonth()+1)+"-"+ft(t.getUTCDate())+"T"+ft(t.getUTCHours())+":"+ft(t.getUTCMinutes())+":"+ft(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ht(t,e,r){for(var n=0,o=r.length;n<o;)e=t(e,r[n]),n+=1;return e}function mt(t){return"[object Object]"===Object.prototype.toString.call(t)}var yt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=F,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function vt(t){return function(e){return new yt(t,e)}}const dt=y(N(["fantasy-land/filter","filter"],vt,(function(t,e){return mt(e)?ht((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},_(e)):function(t,e){for(var r=0,n=e.length,o=[];r<n;)t(e[r])&&(o[o.length]=e[r]),r+=1;return o}(t,e)})));const bt=y((function(t,e){return dt((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function gt(t,e){var r=function(r){var n=e.concat([t]);return ct(r,n)?"<Circular>":gt(r,n)},n=function(t,e){return ut((function(e){return lt(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+ut(r,t).join(", ")+"))";case"[object Array]":return"["+ut(r,t).concat(n(t,bt((function(t){return/^\d+$/.test(t)}),_(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):lt(pt(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":lt(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+n(t,_(t)).join(", ")+"}"}}const xt=m((function(t){return gt(t,[])}));const Et=y((function(t,e){return at(t+1,(function(){var r=arguments[t];if(null!=r&&it(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(xt(r)+' does not have a method named "'+e+'"')}))}))(1,"split");var wt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=F,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const jt=y(N(["fantasy-land/map","map"],(function(t){return function(e){return new wt(t,e)}}),(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return at(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return ht((function(r,n){return r[n]=t(e[n]),r}),{},_(e));default:return ut(t,e)}})));const Ot=M("");const St=B((function(t,e,r){return r.replace(t,e)})),kt=ot(St(/~1/g,"/"),St(/~0/g,"~"),(t=>{try{return decodeURIComponent(t)}catch{return t}}));const _t=class extends a{};const At=class extends _t{pointer;constructor(t,e){super(t,e),void 0!==e&&(this.pointer=e.pointer)}},Pt=t=>{if(Ot(t))return[];if(!G("/",t))throw new At(`Invalid JSON Pointer "${t}". JSON Pointers must begin with "/"`,{pointer:t});try{const e=ot(Et("/"),jt(kt))(t);return nt(e)}catch(e){throw new At(`JSON Pointer parsing of "${t}" encountered an error.`,{pointer:t,cause:e})}},Tt=new RegExp("^(?<nonNegativeIntegerPrefix>[1-9]\\d*|0)(?<indexManipulation>[+-][1-9]\\d*|0)?((?<hashCharacter>#)|(?<jsonPointer>\\/.*))?$"),Mt=t=>"string"==typeof t&&Tt.test(t),Ct=t=>{const e=t.match(Tt);if(null===e||void 0===e.groups)throw new u(`Invalid Relative JSON Pointer "${t}".`,{relativePointer:t});try{const t=parseInt(e.groups.nonNegativeIntegerPrefix,10),r="string"==typeof e.groups.indexManipulation?parseInt(e.groups.indexManipulation,10):void 0,n="string"==typeof e.groups.jsonPointer?Pt(e.groups.jsonPointer):void 0;return{nonNegativeIntegerPrefix:t,indexManipulation:r,jsonPointerTokens:n,hashCharacter:"string"==typeof e.groups.hashCharacter}}catch(e){throw new u(`Relative JSON Pointer parsing of "${t}" encountered an error.`,{relativePointer:t,cause:e})}},Nt=ot(St(/~/g,"~0"),St(/\//g,"~1"),encodeURIComponent);const Rt=class extends _t{tokens;constructor(t,e){super(t,e),void 0!==e&&(this.tokens=[...e.tokens])}},It=t=>{try{return 0===t.length?"":`/${t.map(Nt).join("/")}`}catch(e){throw new Rt("JSON Pointer compilation of tokens encountered an error.",{tokens:t,cause:e})}},Ft=t=>{try{let e="";return e+=String(t.nonNegativeIntegerPrefix),"number"==typeof t.indexManipulation&&(e+=String(t.indexManipulation)),Array.isArray(t.jsonPointerTokens)?e+=It(t.jsonPointerTokens):t.hashCharacter&&(e+="#"),e}catch(e){throw new f("Relative JSON Pointer compilation encountered an error.",{relativePointer:t,cause:e})}};var Vt=function(t,e){switch(arguments.length){case 0:return Vt;case 1:return function e(r){return 0===arguments.length?e:g(t,r)};default:return g(t,e)}};const zt=Vt;const Lt=at(1,ot(A,zt("String"))),Bt=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Dt={},qt=t=>null==t?void 0:t.type,Gt=t=>"string"==typeof qt(t),Ut=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),$t=(t,{visitFnGetter:e=Bt,nodeTypeGetter:r=qt,breakSymbol:n=Dt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,exposeEdits:s=!1}={})=>{const c=Symbol("skip"),u=new Array(t.length).fill(c);return{enter(l,...f){let p=l,h=!1;for(let m=0;m<t.length;m+=1)if(u[m]===c){const c=e(t[m],r(p),!1);if("function"==typeof c){const e=c.call(t[m],p,...f);if("function"==typeof(null==e?void 0:e.then))throw new a("Async visitor not supported in sync mode",{visitor:t[m],visitFn:c});if(e===i)u[m]=l;else if(e===n)u[m]=n;else{if(e===o)return e;if(void 0!==e){if(!s)return e;p=e,h=!0}}}}return h?p:void 0},leave(o,...s){for(let l=0;l<t.length;l+=1)if(u[l]===c){const c=e(t[l],r(o),!0);if("function"==typeof c){const e=c.call(t[l],o,...s);if("function"==typeof(null==e?void 0:e.then))throw new a("Async visitor not supported in sync mode",{visitor:t[l],visitFn:c});if(e===n)u[l]=n;else if(void 0!==e&&e!==i)return e}}else u[l]===o&&(u[l]=c)}}};$t[Symbol.for("nodejs.util.promisify.custom")]=(t,{visitFnGetter:e=Bt,nodeTypeGetter:r=qt,breakSymbol:n=Dt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,exposeEdits:s=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{async enter(u,...l){let f=u,p=!1;for(let h=0;h<t.length;h+=1)if(c[h]===a){const a=e(t[h],r(f),!1);if("function"==typeof a){const e=await a.call(t[h],f,...l);if(e===i)c[h]=u;else if(e===n)c[h]=n;else{if(e===o)return e;if(void 0!==e){if(!s)return e;f=e,p=!0}}}}return p?f:void 0},async leave(o,...s){for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],r(o),!0);if("function"==typeof a){const e=await a.call(t[u],o,...s);if(e===n)c[u]=n;else if(void 0!==e&&e!==i)return e}}else c[u]===o&&(c[u]=a)}}};const Jt=(t,e,{keyMap:r=null,state:n={},breakSymbol:o=Dt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=Bt,nodeTypeGetter:u=qt,nodePredicate:l=Gt,nodeCloneFn:f=Ut,detectCycles:p=!0}={})=>{const h=r||{};let m,y,v=Array.isArray(t),d=[t],b=-1,g=[],x=t;const E=[],w=[];do{b+=1;const t=b===d.length;let r;const S=t&&0!==g.length;if(t){if(r=0===w.length?void 0:E.pop(),x=y,y=w.pop(),S)if(v){x=x.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(x.splice(n,1),t+=1):x[n]=r}}else{x=f(x);for(const[t,e]of g)x[t]=e}b=m.index,d=m.keys,g=m.edits,v=m.inArray,m=m.prev}else if(y!==i&&void 0!==y){if(r=v?b:d[b],x=y[r],x===i||void 0===x)continue;E.push(r)}let k;if(!Array.isArray(x)){var j;if(!l(x))throw new a(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){E.pop();continue}const i=c(e,u(x),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;const t={replaceWith(t,e){"function"==typeof e?e(t,x,r,y,E,w):y&&(y[r]=t),x=t}};k=i.call(e,x,r,y,E,w,t)}if("function"==typeof(null===(j=k)||void 0===j?void 0:j.then))throw new a("Async visitor not supported in sync mode",{visitor:e,visitFn:i});if(k===o)break;if(k===s){if(!t){E.pop();continue}}else if(void 0!==k&&(g.push([r,k]),!t)){if(!l(k)){E.pop();continue}x=k}}var O;if(void 0===k&&S&&g.push([r,x]),!t)m={inArray:v,index:b,keys:d,edits:g,prev:m},v=Array.isArray(x),d=v?x:null!==(O=h[u(x)])&&void 0!==O?O:[],b=-1,g=[],y!==i&&void 0!==y&&w.push(y),y=x}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};Jt[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:o=Dt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=Bt,nodeTypeGetter:u=qt,nodePredicate:l=Gt,nodeCloneFn:f=Ut,detectCycles:p=!0}={})=>{const h=r||{};let m,y,v=Array.isArray(t),d=[t],b=-1,g=[],x=t;const E=[],w=[];do{b+=1;const t=b===d.length;let r;const O=t&&0!==g.length;if(t){if(r=0===w.length?void 0:E.pop(),x=y,y=w.pop(),O)if(v){x=x.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(x.splice(n,1),t+=1):x[n]=r}}else{x=f(x);for(const[t,e]of g)x[t]=e}b=m.index,d=m.keys,g=m.edits,v=m.inArray,m=m.prev}else if(y!==i&&void 0!==y){if(r=v?b:d[b],x=y[r],x===i||void 0===x)continue;E.push(r)}let S;if(!Array.isArray(x)){if(!l(x))throw new a(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){E.pop();continue}const i=c(e,u(x),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;const t={replaceWith(t,e){"function"==typeof e?e(t,x,r,y,E,w):y&&(y[r]=t),x=t}};S=await i.call(e,x,r,y,E,w,t)}if(S===o)break;if(S===s){if(!t){E.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!t)){if(!l(S)){E.pop();continue}x=S}}var j;if(void 0===S&&O&&g.push([r,x]),!t)m={inArray:v,index:b,keys:d,edits:g,prev:m},v=Array.isArray(x),d=v?x:null!==(j=h[u(x)])&&void 0!==j?j:[],b=-1,g=[],y!==i&&void 0!==y&&w.push(y),y=x}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};var Kt=r(8326),Wt=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=R(this.xf["@@transducer/step"](t,!1))),t},t}();function Ht(t){return function(e){return new Wt(t,e)}}const Yt=y(N(["all"],Ht,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));const Xt=m((function(t){return at(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}))(y(ct));class Zt extends Kt.Om{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const Qt=Zt;class te extends Kt.Om{constructor(t,e,r){super(t,e,r),this.element="comment"}}const ee=te;var re=m((function(t){return function(){return t}}))(void 0);const ne=M(re());class oe extends Kt.wE{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(ne(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const ie=oe;class se extends Kt.wE{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(void 0===t)return;const e=new Kt.wE([t.start.row,t.start.column,t.start.char]),r=new Kt.wE([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const ae=se,ce=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],ue=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,le=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),fe=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof Kt.wE)&&e.classes.includes(t),pe=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,he=t=>t({hasMethod:ce,hasBasicElementProps:ue,primitiveEq:le,isElementType:pe,hasClass:fe}),me=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.Hg||t(r)&&e(void 0,r))),ye=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.Om||t(r)&&e("string",r))),ve=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.kT||t(r)&&e("number",r))),de=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.Os||t(r)&&e("null",r))),be=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.bd||t(r)&&e("boolean",r))),ge=he((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Kt.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),xe=he((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Kt.wE&&!(n instanceof Kt.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Ee=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kt.Pr||t(n)&&e("member",n)&&r(void 0,n))),we=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kt.Ft||t(n)&&e("link",n)&&r(void 0,n))),je=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kt.sI||t(n)&&e("ref",n)&&r(void 0,n))),Oe=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qt||t(n)&&e("annotation",n)&&r("array",n))),Se=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ee||t(n)&&e("comment",n)&&r("string",n))),ke=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ie||t(n)&&e("parseResult",n)&&r("array",n))),_e=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ae||t(n)&&e("sourceMap",n)&&r("array",n))),Ae=t=>pe("object",t)||pe("array",t)||pe("boolean",t)||pe("number",t)||pe("string",t)||pe("null",t)||pe("member",t),Pe=t=>_e(t.meta.get("sourceMap")),Te=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!xe(r)&&Yt(Xt(r.toValue()),t)},Me=(t,e)=>0===t.length||Yt(Xt(e.classes.toValue()),t);const Ce=class extends a{value;constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};const Ne=class extends Ce{};const Re=class extends Ce{},Ie=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof Kt.KeyValuePair){const{key:e,value:o}=t,i=me(e)?Ie(e,n):e,s=me(o)?Ie(o,n):o,a=new Kt.KeyValuePair(i,s);return r.set(t,a),a}if(t instanceof Kt.ot){const e=t=>Ie(t,n),o=[...t].map(e),i=new Kt.ot(o);return r.set(t,i),i}if(t instanceof Kt.G6){const e=t=>Ie(t,n),o=[...t].map(e),i=new Kt.G6(o);return r.set(t,i),i}if(me(t)){const e=ze(t);if(r.set(t,e),t.content)if(me(t.content))e.content=Ie(t.content,n);else if(t.content instanceof Kt.KeyValuePair)e.content=Ie(t.content,n);else if(Array.isArray(t.content)){const r=t=>Ie(t,n);e.content=t.content.map(r)}else e.content=t.content;else e.content=t.content;return e}throw new Ne("Value provided to cloneDeep function couldn't be cloned",{value:t})};Ie.safe=t=>{try{return Ie(t)}catch{return t}};const Fe=t=>{const{key:e,value:r}=t;return new Kt.KeyValuePair(e,r)},Ve=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=Ie(t.meta)),t.attributes.length>0&&(e._attributes=Ie(t.attributes)),me(t.content)){const r=t.content;e.content=Ve(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof Kt.KeyValuePair?e.content=Fe(t.content):e.content=t.content;return e},ze=t=>{if(t instanceof Kt.KeyValuePair)return Fe(t);if(t instanceof Kt.ot)return(t=>{const e=[...t];return new Kt.ot(e)})(t);if(t instanceof Kt.G6)return(t=>{const e=[...t];return new Kt.G6(e)})(t);if(me(t))return Ve(t);throw new Re("Value provided to cloneShallow function couldn't be cloned",{value:t})};ze.safe=t=>{try{return ze(t)}catch{return t}};const Le=t=>ge(t)?"ObjectElement":xe(t)?"ArrayElement":Ee(t)?"MemberElement":ye(t)?"StringElement":be(t)?"BooleanElement":ve(t)?"NumberElement":de(t)?"NullElement":we(t)?"LinkElement":je(t)?"RefElement":void 0,Be=t=>me(t)?ze(t):Ut(t),De=ot(Le,Lt),qe={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Ge=(t,e,{keyMap:r=qe,...n}={})=>Jt(t,e,{keyMap:r,nodeTypeGetter:Le,nodePredicate:De,nodeCloneFn:Be,...n});Ge[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=qe,...n}={})=>Jt[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Le,nodePredicate:De,nodeCloneFn:Be,...n});const Ue=B((function(t,e,r){var n,o={};for(n in r=r||{},e=e||{})b(n,e)&&(o[n]=b(n,r)?t(n,e[n],r[n]):e[n]);for(n in r)b(n,r)&&!b(n,o)&&(o[n]=r[n]);return o}));const $e=B((function t(e,r,n){return Ue((function(r,n,o){return mt(n)&&mt(o)?t(e,n,o):e(r,n,o)}),r,n)}));const Je=y((function(t,e){return $e((function(t,e,r){return r}),t,e)}));const Ke=y((function(t,e){return null==e||e!=e?t:e})),We=Number.isInteger||function(t){return t<<0===t};function He(t,e){var r=t<0?e.length+t:t;return J(e)?e.charAt(r):e[r]}const Ye=y((function(t,e){if(null!=e)return We(t)?He(t,e):e[t]}));const Xe=B((function(t,e,r){return Ke(t,Ye(e,r))}));function Ze(t,e){for(var r=e,n=0;n<t.length;n+=1){if(null==r)return;var o=t[n];r=We(o)?He(o,r):r[o]}return r}const Qe=y(Ze);const tr=D(0,-1);const er=y((function(t,e){return t.apply(this,e)}));function rr(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function nr(t,e,r,n){return r[n](t,e)}const or=H(ht,nr,rr);const ir=y((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:or((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,o=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<o;)i[i.length]=e[r],r+=1;return i}(t,jt(r,e))}),[],t)}));const sr=y((function(t,e){var r=at(t,e);return at(t,(function(){return ht(ir,jt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ar=m((function(t){return sr(t.length,t)}));const cr=ar(m((function(t){return!t})));const ur=y((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var o=r(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var i=xt(t),s=r(i,xt(e));return void 0!==s&&s===i?t:e}));const lr=y((function(t,e){return jt(Ye(t),e)}));const fr=m((function(t){return at(rt(ur,0,lr("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));const pr=at(1,ot(A,zt("GeneratorFunction")));const hr=at(1,ot(A,zt("AsyncFunction")));const mr=fr([ot(A,zt("Function")),pr,hr]);const yr=cr(mr);const vr=y((function(t,e){return t&&e}));const dr=y((function(t,e){return it(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:ar(vr)(t,e)}));var br=m((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():C(t)?[]:J(t)?"":mt(t)?{}:E(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const gr=br;const xr=m((function(t){return null!=t&&M(t,gr(t))}));const Er=dr(at(1,mr(Array.isArray)?Array.isArray:ot(A,zt("Array"))),xr);const wr=at(3,(function(t,e,r){var n=Qe(t,r),o=Qe(tr(t),r);if(!yr(n)&&!Er(t)){var i=X(n,o);return er(i,e)}}));class jr extends Kt.g${constructor(){super(),this.register("annotation",Qt),this.register("comment",ee),this.register("parseResult",ie),this.register("sourceMap",ae)}}const Or=new jr,Sr=()=>({predicates:{...t},namespace:Or}),kr={toolboxCreator:Sr,visitorOptions:{nodeTypeGetter:Le,exposeEdits:!0}},_r=(t,e,r={})=>{if(0===e.length)return t;const n=Je(kr,r),{toolboxCreator:o,visitorOptions:i}=n,s=o(),a=e.map((t=>t(s))),c=$t(a.map(Xe({},"visitor")),{...i});a.forEach(wr(["pre"],[]));const u=Ge(t,c,i);return a.forEach(wr(["post"],[])),u};_r[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{if(0===e.length)return t;const n=Je(kr,r),{toolboxCreator:o,visitorOptions:i}=n,s=o(),a=e.map((t=>t(s))),c=$t[Symbol.for("nodejs.util.promisify.custom")],u=Ge[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(Xe({},"visitor")),{...i});await Promise.allSettled(a.map(wr(["pre"],[])));const f=await u(t,l,i);return await Promise.allSettled(a.map(wr(["post"],[]))),f};const Ar=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return me(t)&&(t.meta.length>0&&(n.meta=Ie(t.meta)),t.attributes.length>0&&(n.attributes=Ie(t.attributes))),_r(n,r,{toolboxCreator:Sr,visitorOptions:{nodeTypeGetter:Le}})},Pr=t=>(e,r={})=>Ar(e,{...r,Type:t});Kt.Sh.refract=Pr(Kt.Sh),Kt.wE.refract=Pr(Kt.wE),Kt.Om.refract=Pr(Kt.Om),Kt.bd.refract=Pr(Kt.bd),Kt.Os.refract=Pr(Kt.Os),Kt.kT.refract=Pr(Kt.kT),Kt.Ft.refract=Pr(Kt.Ft),Kt.sI.refract=Pr(Kt.sI),Qt.refract=Pr(Qt),ee.refract=Pr(ee),ie.refract=Pr(ie),ae.refract=Pr(ae);const Tr=y((function(t,e){return at(rt(ur,0,lr("length",e)),(function(){var r=arguments,n=this;return t.apply(n,ut((function(t){return t.apply(n,r)}),e))}))}));function Mr(t){return t}const Cr=m(Mr);var Nr=dr(at(1,ot(A,zt("Number"))),isFinite);var Rr=at(1,Nr);var Ir=dr(mr(Number.isFinite)?at(1,X(Number.isFinite,Number)):Rr,Tr(M,[Math.floor,Cr]));var Fr=at(1,Ir);const Vr=mr(Number.isInteger)?at(1,X(Number.isInteger,Number)):Fr;const zr=class extends _t{pointer;tokens;failedToken;failedTokenPosition;element;constructor(t,e){super(t,e),void 0!==e&&(this.pointer=e.pointer,Array.isArray(e.tokens)&&(this.tokens=[...e.tokens]),this.failedToken=e.failedToken,this.failedTokenPosition=e.failedTokenPosition,this.element=e.element)}},Lr=(t,e)=>{let r;try{r=Pt(t)}catch(r){throw new zr(`JSON Pointer evaluation failed while parsing the pointer "${t}".`,{pointer:t,element:Ie(e),cause:r})}return r.reduce(((e,n,o)=>{if(ge(e)){if(!e.hasKey(n))throw new zr(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:t,tokens:r,failedToken:n,failedTokenPosition:o,element:Ie(e)});return e.get(n)}if(xe(e)){if(!(n in e.content)||!Vr(Number(n)))throw new zr(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:t,tokens:r,failedToken:n,failedTokenPosition:o,element:Ie(e)});return e.get(Number(n))}throw new zr(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:t,tokens:r,failedToken:n,failedTokenPosition:o,element:Ie(e)})}),e)};const Br=m((function(t){return He(-1,t)})),Dr=(t,e,r)=>{let n,o=[],i=e;if(Ge(r,{enter(t,r,n,i,s){if(t===e)return o=[...s,n].filter(me),Dt}}),0===o.length)throw new l("Relative JSON Pointer evaluation failed. Current element not found inside the root element",{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});if(Br(o)===r)throw new l("Relative JSON Pointer evaluation failed. Current element cannot be the root element",{relativePointer:t,currentElement:e,rootElement:r,cursorElement:i});try{n=Ct(t)}catch(r){throw new l("Relative JSON Pointer evaluation failed while parsing the pointer.",{relativePointer:t,currentElement:Ie(e),rootElement:Ie(e),cursorElement:Ie.safe(i),cause:r})}if(n.nonNegativeIntegerPrefix>0){const s=[...o];for(let{nonNegativeIntegerPrefix:t}=n;t>0;t-=1)i=s.pop(),Ee(i)&&(i=s.pop());if(void 0===i)throw new l(`Relative JSON Pointer evaluation failed on non-negative-integer prefix of "${n.nonNegativeIntegerPrefix}"`,{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});o=s}if("number"==typeof n.indexManipulation){const s=Br(o);if(void 0===s||!xe(s))throw new l(`Relative JSON Pointer evaluation failed failed on index-manipulation "${n.indexManipulation}"`,{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});const a=s.content.indexOf(i)+n.indexManipulation;if(i=s.content[a],void 0===i)throw new l(`Relative JSON Pointer evaluation failed on index-manipulation "${n.indexManipulation}"`,{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)})}if(Array.isArray(n.jsonPointerTokens)){const t=It(n.jsonPointerTokens);i=Lr(t,i)}else if(n.hashCharacter){if(i===r)throw new l('Relative JSON Pointer evaluation failed. Current element cannot be the root element to apply "#"',{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});const n=Br(o);void 0!==n&&(Ee(n)?i=n.key:xe(n)&&(i=new Kt.kT(n.content.indexOf(i))))}return i}})(),n})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomJsonPointerRelative=e():t.apidomJsonPointerRelative=e()}(self,(()=>(()=>{var t={3103:(t,e,r)=>{var n=r(4715)(r(8942),"DataView");t.exports=n},5098:(t,e,r)=>{var n=r(3305),o=r(9361),i=r(1112),s=r(5276),a=r(5071);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},1386:(t,e,r)=>{var n=r(2393),o=r(2049),i=r(7144),s=r(7452),a=r(3964);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},9770:(t,e,r)=>{var n=r(4715)(r(8942),"Map");t.exports=n},8250:(t,e,r)=>{var n=r(9753),o=r(5681),i=r(88),s=r(4732),a=r(9068);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=a,t.exports=c},9413:(t,e,r)=>{var n=r(4715)(r(8942),"Promise");t.exports=n},4512:(t,e,r)=>{var n=r(4715)(r(8942),"Set");t.exports=n},3212:(t,e,r)=>{var n=r(8250),o=r(1877),i=r(8006);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},1340:(t,e,r)=>{var n=r(1386),o=r(4103),i=r(1779),s=r(4162),a=r(7462),c=r(6638);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=a,u.prototype.set=c,t.exports=u},5650:(t,e,r)=>{var n=r(8942).Symbol;t.exports=n},1623:(t,e,r)=>{var n=r(8942).Uint8Array;t.exports=n},9270:(t,e,r)=>{var n=r(4715)(r(8942),"WeakMap");t.exports=n},9847:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var s=t[r];e(s,r,t)&&(i[o++]=s)}return i}},358:(t,e,r)=>{var n=r(6137),o=r(3283),i=r(3142),s=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&s(t),p=!r&&!l&&!f&&c(t),h=r||l||f||p,m=h?n(t.length,String):[],y=m.length;for(var v in t)!e&&!u.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,y))||m.push(v);return m}},1129:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},6465:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},7034:(t,e,r)=>{var n=r(6285);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8244:(t,e,r)=>{var n=r(1129),o=r(3142);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},7379:(t,e,r)=>{var n=r(5650),o=r(8870),i=r(9005),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):i(t)}},6027:(t,e,r)=>{var n=r(7379),o=r(547);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},4687:(t,e,r)=>{var n=r(353),o=r(547);t.exports=function t(e,r,i,s,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,s,t,a))}},353:(t,e,r)=>{var n=r(1340),o=r(3934),i=r(8861),s=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,d){var b=c(t),g=c(e),x=b?p:a(t),E=g?p:a(e),w=(x=x==f?h:x)==h,j=(E=E==f?h:E)==h,O=x==E;if(O&&u(t)){if(!u(e))return!1;b=!0,w=!1}if(O&&!w)return d||(d=new n),b||l(t)?o(t,e,r,y,v,d):i(t,e,x,r,y,v,d);if(!(1&r)){var S=w&&m.call(t,"__wrapped__"),k=j&&m.call(e,"__wrapped__");if(S||k){var _=S?t.value():t,A=k?e.value():e;return d||(d=new n),v(_,A,r,y,d)}}return!!O&&(d||(d=new n),s(t,e,r,y,v,d))}},9624:(t,e,r)=>{var n=r(3655),o=r(4759),i=r(1580),s=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:a).test(s(t))}},674:(t,e,r)=>{var n=r(7379),o=r(5387),i=r(547),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[n(t)]}},195:(t,e,r)=>{var n=r(4882),o=r(8121),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6137:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},9460:t=>{t.exports=function(t){return function(e){return t(e)}}},5568:t=>{t.exports=function(t,e){return t.has(e)}},1950:(t,e,r)=>{var n=r(8942)["__core-js_shared__"];t.exports=n},3934:(t,e,r)=>{var n=r(3212),o=r(6465),i=r(5568);t.exports=function(t,e,r,s,a,c){var u=1&r,l=t.length,f=e.length;if(l!=f&&!(u&&f>l))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var m=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++m<l;){var d=t[m],b=e[m];if(s)var g=u?s(b,d,m,e,t,c):s(d,b,m,t,e,c);if(void 0!==g){if(g)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(d===t||a(d,t,r,s,c)))return v.push(e)}))){y=!1;break}}else if(d!==b&&!a(d,b,r,s,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},8861:(t,e,r)=>{var n=r(5650),o=r(1623),i=r(6285),s=r(3934),a=r(5894),c=r(7447),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var m=1&n;if(h||(h=c),t.size!=e.size&&!m)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=s(h(t),h(e),n,u,f,p);return p.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},1182:(t,e,r)=>{var n=r(393),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,s,a){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=u[f];if(!(c?p in e:o.call(e,p)))return!1}var h=a.get(t),m=a.get(e);if(h&&m)return h==e&&m==t;var y=!0;a.set(t,e),a.set(e,t);for(var v=c;++f<l;){var d=t[p=u[f]],b=e[p];if(i)var g=c?i(b,d,p,e,t,a):i(d,b,p,t,e,a);if(!(void 0===g?d===b||s(d,b,r,i,a):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,E=e.constructor;x==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(y=!1)}return a.delete(t),a.delete(e),y}},4967:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},393:(t,e,r)=>{var n=r(8244),o=r(7979),i=r(1211);t.exports=function(t){return n(t,i,o)}},4700:(t,e,r)=>{var n=r(9067);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},4715:(t,e,r)=>{var n=r(9624),o=r(155);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},8870:(t,e,r)=>{var n=r(5650),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=s.call(t);return n&&(e?t[a]=r:delete t[a]),o}},7979:(t,e,r)=>{var n=r(9847),o=r(9306),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},8486:(t,e,r)=>{var n=r(3103),o=r(9770),i=r(9413),s=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",m="[object DataView]",y=u(n),v=u(o),d=u(i),b=u(s),g=u(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=m||o&&x(new o)!=l||i&&x(i.resolve())!=f||s&&x(new s)!=p||a&&x(new a)!=h)&&(x=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case y:return m;case v:return l;case d:return f;case b:return p;case g:return h}return e}),t.exports=x},155:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},3305:(t,e,r)=>{var n=r(4497);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},9361:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},1112:(t,e,r)=>{var n=r(4497),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},5276:(t,e,r)=>{var n=r(4497),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5071:(t,e,r)=>{var n=r(4497);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9632:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},9067:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},4759:(t,e,r)=>{var n,o=r(1950),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},4882:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},2393:t=>{t.exports=function(){this.__data__=[],this.size=0}},2049:(t,e,r)=>{var n=r(7034),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},7144:(t,e,r)=>{var n=r(7034);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7452:(t,e,r)=>{var n=r(7034);t.exports=function(t){return n(this.__data__,t)>-1}},3964:(t,e,r)=>{var n=r(7034);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},9753:(t,e,r)=>{var n=r(5098),o=r(1386),i=r(9770);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},5681:(t,e,r)=>{var n=r(4700);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},88:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).get(t)}},4732:(t,e,r)=>{var n=r(4700);t.exports=function(t){return n(this,t).has(t)}},9068:(t,e,r)=>{var n=r(4700);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},5894:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},4497:(t,e,r)=>{var n=r(4715)(Object,"create");t.exports=n},8121:(t,e,r)=>{var n=r(3766)(Object.keys,Object);t.exports=n},2306:(t,e,r)=>{t=r.nmd(t);var n=r(4967),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},9005:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3766:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},8942:(t,e,r)=>{var n=r(4967),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},1877:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},8006:t=>{t.exports=function(t){return this.__data__.has(t)}},7447:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},4103:(t,e,r)=>{var n=r(1386);t.exports=function(){this.__data__=new n,this.size=0}},1779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4162:t=>{t.exports=function(t){return this.__data__.get(t)}},7462:t=>{t.exports=function(t){return this.__data__.has(t)}},6638:(t,e,r)=>{var n=r(1386),o=r(9770),i=r(8250);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(t,e),this.size=r.size,this}},4066:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6285:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3283:(t,e,r)=>{var n=r(6027),o=r(547),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},3142:t=>{var e=Array.isArray;t.exports=e},6529:(t,e,r)=>{var n=r(3655),o=r(5387);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},2563:(t,e,r)=>{var n=r(7379),o=r(547);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},5853:(t,e,r)=>{t=r.nmd(t);var n=r(8942),o=r(4772),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;t.exports=c},6343:(t,e,r)=>{var n=r(4687);t.exports=function(t,e){return n(t,e)}},3655:(t,e,r)=>{var n=r(7379),o=r(1580);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5387:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},9310:t=>{t.exports=function(t){return null===t}},986:(t,e,r)=>{var n=r(7379),o=r(547);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},1580:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},547:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8138:(t,e,r)=>{var n=r(7379),o=r(3142),i=r(547);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},8666:(t,e,r)=>{var n=r(674),o=r(9460),i=r(2306),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},1211:(t,e,r)=>{var n=r(358),o=r(195),i=r(6529);t.exports=function(t){return i(t)?n(t):o(t)}},1517:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},9306:t=>{t.exports=function(){return[]}},4772:t=>{t.exports=function(){return!1}},4123:(t,e,r)=>{const n=r(1517);function o(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const o=t.bind(e)(n);o&&r.push(o)})),r}filter(t,e){return t=o(t),new i(this.elements.filter(t,e))}reject(t,e){return t=o(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=o(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.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]()}),t.exports=i},2322:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5735:(t,e,r)=>{const n=r(9310),o=r(8138),i=r(986),s=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(o,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(s,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],o=this.elementDetection[r][1];if(n(t)){e=new o(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},3311:(t,e,r)=>{const n=r(1517),o=r(4123);class i extends o{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},7547:(t,e,r)=>{const n=r(8631),o=r(3004),i=r(8712),s=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),f=r(9620),p=r(593),h=r(4123),m=r(3311),y=r(2322);function v(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new s(t);if("boolean"==typeof t)return new a(t);if(null===t)return new o;if(Array.isArray(t))return new c(t.map(v));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=v,h.prototype.refract=v,t.exports={Element:n,NullElement:o,StringElement:i,NumberElement:s,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:p,refract:v,ArraySlice:h,ObjectSlice:m,KeyValuePair:y}},9620:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},593:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},8326:(t,e,r)=>{const n=r(5735),o=r(7547);e.g$=n,e.KeyValuePair=r(2322),e.G6=o.ArraySlice,e.ot=o.ObjectSlice,e.Hg=o.Element,e.Om=o.StringElement,e.kT=o.NumberElement,e.bd=o.BooleanElement,e.Os=o.NullElement,e.wE=o.ArrayElement,e.Sh=o.ObjectElement,e.Pr=o.MemberElement,e.sI=o.RefElement,e.Ft=o.LinkElement,o.refract,r(394),r(3148)},9796:(t,e,r)=>{const n=r(1517),o=r(8631),i=r(4123);class s extends o{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const o=t.bind(e)(n);o&&r.push(o)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,o=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:o,recursive:n}),t(e,r,i)&&o.push(e)})),o}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}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)}}s.empty=function(){return new this},s["fantasy-land/empty"]=s.empty,"undefined"!=typeof Symbol&&(s.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=s},2555:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(t,e,r)=>{const n=r(6343),o=r(2322),i=r(4123);class s{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof s?this.content.toValue():this.content instanceof o?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),s=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof o&&(r.content.key&&s(t,r.content.key),r.content.value&&s(t,r.content.value)),t};return this.content&&(this.content.element&&s(r,this.content),Array.isArray(this.content)&&this.content.reduce(s,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],o=r.indexOf(n);if(-1===o)return!1;r=r.splice(0,o)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof s)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof o)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof o){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof s?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=s},7309:(t,e,r)=>{const n=r(2322),o=r(8631);t.exports=class extends o{constructor(t,e,r,o){super(new n,r,o),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},3004:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},5642:(t,e,r)=>{const n=r(1517),o=r(1580),i=r(9796),s=r(7309),a=r(3311);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(o(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new s(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,o,i)=>{const s=t.bind(e)(n,o,i);s&&r.push(s)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},8712:(t,e,r)=>{const n=r(8631);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(t,e,r)=>{const n=r(394);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let o=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),o.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&o.unshift(t.content),o=o.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),o.length&&e.set("samples",o),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const o=new e(n);o.element=r.element,t.push(o)}))}));const o=t.shift();r.content=o?o.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},394:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},1212:(t,e,r)=>{t.exports=r(8411)},7202:(t,e,r)=>{"use strict";var n=r(239);t.exports=n},6656:(t,e,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);t.exports=n.AggregateError},8411:(t,e,r)=>{"use strict";t.exports=r(8337)},8337:(t,e,r)=>{"use strict";r(5442);var n=r(7202);t.exports=n},814:(t,e,r)=>{"use strict";var n=r(2769),o=r(459),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},1966:(t,e,r)=>{"use strict";var n=r(2937),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},8137:t=>{"use strict";t.exports=function(){}},7235:(t,e,r)=>{"use strict";var n=r(262),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},1005:(t,e,r)=>{"use strict";var n=r(3273),o=r(4574),i=r(8130),s=function(t){return function(e,r,s){var a,c=n(e),u=i(c),l=o(s,u);if(t&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},9932:(t,e,r)=>{"use strict";var n=r(6100),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},8407:(t,e,r)=>{"use strict";var n=r(4904),o=r(2769),i=r(9932),s=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:c?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7464:(t,e,r)=>{"use strict";var n=r(701),o=r(5691),i=r(4543),s=r(9989);t.exports=function(t,e,r){for(var a=o(e),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||c(t,f,u(e,f))}}},2871:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},877:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},3999:(t,e,r)=>{"use strict";var n=r(5024),o=r(9989),i=r(480);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},480:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3508:(t,e,r)=>{"use strict";var n=r(3999);t.exports=function(t,e,r,o){return o&&o.enumerable?t[e]=r:n(t,e,r),t}},7525:(t,e,r)=>{"use strict";var n=r(1063),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},5024:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(t,e,r)=>{"use strict";var n=r(1063),o=r(262),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},1100:t=>{"use strict";t.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}},7868:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(t,e,r)=>{"use strict";var n,o,i=r(1063),s=r(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},9683:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(t,e,r)=>{"use strict";var n=r(6100),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},4279:(t,e,r)=>{"use strict";var n=r(3999),o=r(3885),i=r(5791),s=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(s?s(t,e):n(t,"stack",o(r,a)))}},5791:(t,e,r)=>{"use strict";var n=r(1203),o=r(480);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},9098:(t,e,r)=>{"use strict";var n=r(1063),o=r(7013),i=r(9344),s=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),f=r(3999),p=r(701),h=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,o,m,y,v,d,b,g,x,E=t.target,w=t.global,j=t.stat,O=t.proto,S=w?n:j?n[E]:n[E]&&n[E].prototype,k=w?u:u[E]||f(u,E,{})[E],_=k.prototype;for(y in e)o=!(r=c(w?y:E+(j?".":"#")+y,t.forced))&&S&&p(S,y),d=k[y],o&&(b=t.dontCallGetSet?(x=a(S,y))&&x.value:S[y]),v=o&&b?b:e[y],(r||O||typeof d!=typeof v)&&(g=t.bind&&o?l(v,n):t.wrap&&o?h(v):O&&s(v)?i(v):v,(t.sham||v&&v.sham||d&&d.sham)&&f(g,"sham",!0),f(k,y,g),O&&(p(u,m=E+"Prototype")||f(u,m,{}),f(u[m],y,v),t.real&&_&&(r||!_[y])&&f(_,y,v)))}},1203:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},7013:(t,e,r)=>{"use strict";var n=r(1780),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},4572:(t,e,r)=>{"use strict";var n=r(9344),o=r(814),i=r(1780),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},1780:(t,e,r)=>{"use strict";var n=r(1203);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4713:(t,e,r)=>{"use strict";var n=r(1780),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3410:(t,e,r)=>{"use strict";var n=r(5024),o=r(701),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(t,e,r)=>{"use strict";var n=r(6100),o=r(814);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},9344:(t,e,r)=>{"use strict";var n=r(9932),o=r(6100);t.exports=function(t){if("Function"===n(t))return o(t)}},6100:(t,e,r)=>{"use strict";var n=r(1780),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},1003:(t,e,r)=>{"use strict";var n=r(8099),o=r(1063),i=r(2769),s=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(n[t])||s(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},967:(t,e,r)=>{"use strict";var n=r(8407),o=r(4674),i=r(3057),s=r(6625),a=r(8655)("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||s[n(t)]}},1613:(t,e,r)=>{"use strict";var n=r(4713),o=r(814),i=r(7235),s=r(459),a=r(967),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw new c(s(t)+" is not iterable")}},4674:(t,e,r)=>{"use strict";var n=r(814),o=r(3057);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},1063:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(t,e,r)=>{"use strict";var n=r(6100),o=r(2137),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},5241:t=>{"use strict";t.exports={}},3489:(t,e,r)=>{"use strict";var n=r(1003);t.exports=n("document","documentElement")},9665:(t,e,r)=>{"use strict";var n=r(5024),o=r(1203),i=r(9619);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(t,e,r)=>{"use strict";var n=r(6100),o=r(1203),i=r(9932),s=Object,a=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3507:(t,e,r)=>{"use strict";var n=r(2769),o=r(262),i=r(3491);t.exports=function(t,e,r){var s,a;return i&&n(s=e.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},8148:(t,e,r)=>{"use strict";var n=r(262),o=r(3999);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},8417:(t,e,r)=>{"use strict";var n,o,i,s=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),f=r(3753),p=r(4275),h=r(5241),m="Object already initialized",y=a.TypeError,v=a.WeakMap;if(s||f.state){var d=f.state||(f.state=new v);d.get=d.get,d.has=d.has,d.set=d.set,n=function(t,e){if(d.has(t))throw new y(m);return e.facade=t,d.set(t,e),e},o=function(t){return d.get(t)||{}},i=function(t){return d.has(t)}}else{var b=p("state");h[b]=!0,n=function(t,e){if(l(t,b))throw new y(m);return e.facade=t,u(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return r}}}},2877:(t,e,r)=>{"use strict";var n=r(8655),o=r(6625),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},2769:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},8696:(t,e,r)=>{"use strict";var n=r(1203),o=r(2769),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===l||r!==u&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},3057:t=>{"use strict";t.exports=function(t){return null==t}},262:(t,e,r)=>{"use strict";var n=r(2769);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},2937:(t,e,r)=>{"use strict";var n=r(262);t.exports=function(t){return n(t)||null===t}},4871:t=>{"use strict";t.exports=!0},6281:(t,e,r)=>{"use strict";var n=r(1003),o=r(2769),i=r(4317),s=r(7460),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},208:(t,e,r)=>{"use strict";var n=r(4572),o=r(4713),i=r(7235),s=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),f=r(967),p=r(1743),h=TypeError,m=function(t,e){this.stopped=t,this.result=e},y=m.prototype;t.exports=function(t,e,r){var v,d,b,g,x,E,w,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),_=!(!r||!r.INTERRUPTED),A=n(e,j),P=function(t){return v&&p(v,"normal",t),new m(!0,t)},T=function(t){return O?(i(t),_?A(t[0],t[1],P):A(t[0],t[1])):_?A(t,P):A(t)};if(S)v=t.iterator;else if(k)v=t;else{if(!(d=f(t)))throw new h(s(t)+" is not iterable");if(a(d)){for(b=0,g=c(t);g>b;b++)if((x=T(t[b]))&&u(y,x))return x;return new m(!1)}v=l(t,d)}for(E=S?t.next:v.next;!(w=o(E,v)).done;){try{x=T(w.value)}catch(t){p(v,"throw",t)}if("object"==typeof x&&x&&u(y,x))return x}return new m(!1)}},1743:(t,e,r)=>{"use strict";var n=r(4713),o=r(7235),i=r(4674);t.exports=function(t,e,r){var s,a;o(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw r;if(a)throw s;return o(s),r}},1926:(t,e,r)=>{"use strict";var n=r(2621).IteratorPrototype,o=r(5780),i=r(480),s=r(1811),a=r(6625),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=o(n,{next:i(+!u,r)}),s(t,l,!1,!0),a[l]=c,t}},164:(t,e,r)=>{"use strict";var n=r(9098),o=r(4713),i=r(4871),s=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),f=r(1811),p=r(3999),h=r(3508),m=r(8655),y=r(6625),v=r(2621),d=s.PROPER,b=s.CONFIGURABLE,g=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,E=m("iterator"),w="keys",j="values",O="entries",S=function(){return this};t.exports=function(t,e,r,s,m,v,k){c(r,e,s);var _,A,P,T=function(t){if(t===m&&I)return I;if(!x&&t&&t in N)return N[t];switch(t){case w:case j:case O:return function(){return new r(this,t)}}return function(){return new r(this)}},M=e+" Iterator",C=!1,N=t.prototype,R=N[E]||N["@@iterator"]||m&&N[m],I=!x&&R||T(m),F="Array"===e&&N.entries||R;if(F&&(_=u(F.call(new t)))!==Object.prototype&&_.next&&(i||u(_)===g||(l?l(_,g):a(_[E])||h(_,E,S)),f(_,M,!0,!0),i&&(y[M]=S)),d&&m===j&&R&&R.name!==j&&(!i&&b?p(N,"name",j):(C=!0,I=function(){return o(R,this)})),m)if(A={values:T(j),keys:v?I:T(w),entries:T(O)},k)for(P in A)(x||C||!(P in N))&&h(N,P,A[P]);else n({target:e,proto:!0,forced:x||C},A);return i&&!k||N[E]===I||h(N,E,I,{name:m}),y[e]=I,A}},2621:(t,e,r)=>{"use strict";var n,o,i,s=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),f=r(3508),p=r(8655),h=r(4871),m=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):y=!0),!c(n)||s((function(){var t={};return n[m].call(t)!==t}))?n={}:h&&(n=u(n)),a(n[m])||f(n,m,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},6625:t=>{"use strict";t.exports={}},8130:(t,e,r)=>{"use strict";var n=r(8146);t.exports=function(t){return n(t.length)}},5777:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},4879:(t,e,r)=>{"use strict";var n=r(1139);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},5780:(t,e,r)=>{"use strict";var n,o=r(7235),i=r(7389),s=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),f="prototype",p="script",h=l("IE_PROTO"),m=function(){},y=function(t){return"<"+p+">"+t+"</"+p+">"},v=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;d="undefined"!=typeof document?document.domain&&n?v(n):(e=u("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(y("document.F=Object")),t.close(),t.F):v(n);for(var o=s.length;o--;)delete d[f][s[o]];return d()};a[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(m[f]=o(t),r=new m,m[f]=null,r[h]=t):r=d(),void 0===e?r:i.f(r,e)}},7389:(t,e,r)=>{"use strict";var n=r(5024),o=r(1330),i=r(9989),s=r(7235),a=r(3273),c=r(8364);e.f=n&&!o?Object.defineProperties:function(t,e){s(t);for(var r,n=a(e),o=c(e),u=o.length,l=0;u>l;)i.f(t,r=o[l++],n[r]);return t}},9989:(t,e,r)=>{"use strict";var n=r(5024),o=r(9665),i=r(1330),s=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4543:(t,e,r)=>{"use strict";var n=r(5024),o=r(4713),i=r(7161),s=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},5116:(t,e,r)=>{"use strict";var n=r(8600),o=r(9683).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},7313:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},3671:(t,e,r)=>{"use strict";var n=r(701),o=r(2769),i=r(2137),s=r(4275),a=r(2871),c=s("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},4317:(t,e,r)=>{"use strict";var n=r(6100);t.exports=n({}.isPrototypeOf)},8600:(t,e,r)=>{"use strict";var n=r(6100),o=r(701),i=r(3273),s=r(1005).indexOf,a=r(5241),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);for(;e.length>u;)o(n,r=e[u++])&&(~s(l,r)||c(l,r));return l}},8364:(t,e,r)=>{"use strict";var n=r(8600),o=r(9683);t.exports=Object.keys||function(t){return n(t,o)}},7161:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},3491:(t,e,r)=>{"use strict";var n=r(3574),o=r(7235),i=r(1966);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},9559:(t,e,r)=>{"use strict";var n=r(4904),o=r(8407);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9258:(t,e,r)=>{"use strict";var n=r(4713),o=r(2769),i=r(262),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},5691:(t,e,r)=>{"use strict";var n=r(1003),o=r(6100),i=r(5116),s=r(7313),a=r(7235),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},8099:t=>{"use strict";t.exports={}},5516:(t,e,r)=>{"use strict";var n=r(9989).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},5426:(t,e,r)=>{"use strict";var n=r(3057),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},1811:(t,e,r)=>{"use strict";var n=r(4904),o=r(9989).f,i=r(3999),s=r(701),a=r(9559),c=r(8655)("toStringTag");t.exports=function(t,e,r,u){var l=r?t:t&&t.prototype;l&&(s(l,c)||o(l,c,{configurable:!0,value:e}),u&&!n&&i(l,"toString",a))}},4275:(t,e,r)=>{"use strict";var n=r(8141),o=r(1268),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},3753:(t,e,r)=>{"use strict";var n=r(1063),o=r(7525),i="__core-js_shared__",s=n[i]||o(i,{});t.exports=s},8141:(t,e,r)=>{"use strict";var n=r(4871),o=r(3753);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(t,e,r)=>{"use strict";var n=r(6100),o=r(9903),i=r(1139),s=r(5426),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(t){return function(e,r){var n,l,f=i(s(e)),p=o(r),h=f.length;return p<0||p>=h?t?"":void 0:(n=c(f,p))<55296||n>56319||p+1===h||(l=c(f,p+1))<56320||l>57343?t?a(f,p):n:t?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},4603:(t,e,r)=>{"use strict";var n=r(4432),o=r(1203),i=r(1063).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4574:(t,e,r)=>{"use strict";var n=r(9903),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},3273:(t,e,r)=>{"use strict";var n=r(1395),o=r(5426);t.exports=function(t){return n(o(t))}},9903:(t,e,r)=>{"use strict";var n=r(5777);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8146:(t,e,r)=>{"use strict";var n=r(9903),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},2137:(t,e,r)=>{"use strict";var n=r(5426),o=Object;t.exports=function(t){return o(n(t))}},493:(t,e,r)=>{"use strict";var n=r(4713),o=r(262),i=r(6281),s=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=s(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},5341:(t,e,r)=>{"use strict";var n=r(493),o=r(6281);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},4904:(t,e,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",t.exports="[object z]"===String(n)},1139:(t,e,r)=>{"use strict";var n=r(8407),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},459:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},1268:(t,e,r)=>{"use strict";var n=r(6100),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7460:(t,e,r)=>{"use strict";var n=r(4603);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(t,e,r)=>{"use strict";var n=r(5024),o=r(1203);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(t,e,r)=>{"use strict";var n=r(1063),o=r(2769),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8655:(t,e,r)=>{"use strict";var n=r(1063),o=r(8141),i=r(701),s=r(1268),a=r(4603),c=r(7460),u=n.Symbol,l=o("wks"),f=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},6453:(t,e,r)=>{"use strict";var n=r(1003),o=r(701),i=r(3999),s=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),f=r(4879),p=r(8148),h=r(4279),m=r(5024),y=r(4871);t.exports=function(t,e,r,v){var d="stackTraceLimit",b=v?2:1,g=t.split("."),x=g[g.length-1],E=n.apply(null,g);if(E){var w=E.prototype;if(!y&&o(w,"cause")&&delete w.cause,!r)return E;var j=n("Error"),O=e((function(t,e){var r=f(v?e:t,void 0),n=v?new E(t):new E;return void 0!==r&&i(n,"message",r),h(n,O,n.stack,2),this&&s(w,this)&&l(n,this,O),arguments.length>b&&p(n,arguments[b]),n}));if(O.prototype=w,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):m&&d in E&&(u(O,E,d),u(O,E,"prepareStackTrace")),c(O,E),!y)try{w.name!==x&&i(w,"name",x),w.constructor=O}catch(t){}return O}}},6138:(t,e,r)=>{"use strict";var n=r(9098),o=r(1003),i=r(7013),s=r(1203),a=r(6453),c="AggregateError",u=o(c),l=!s((function(){return 1!==u([1]).errors[0]}))&&s((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},3085:(t,e,r)=>{"use strict";var n=r(9098),o=r(4317),i=r(3671),s=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),f=r(8148),p=r(4279),h=r(208),m=r(4879),y=r(8655)("toStringTag"),v=Error,d=[].push,b=function(t,e){var r,n=o(g,this);s?r=s(new v,n?i(this):g):(r=n?this:c(g),u(r,y,"Error")),void 0!==e&&u(r,"message",m(e)),p(r,b,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return h(t,d,{that:a}),u(r,"errors",a),r};s?s(b,v):a(b,v,{name:!0});var g=b.prototype=c(v.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},5695:(t,e,r)=>{"use strict";r(3085)},9828:(t,e,r)=>{"use strict";var n=r(3273),o=r(8137),i=r(6625),s=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),f=r(5024),p="Array Iterator",h=s.set,m=s.getterFor(p);t.exports=c(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=m(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==y.name)try{a(y,"name",{value:"values"})}catch(t){}},484:(t,e,r)=>{"use strict";var n=r(9098),o=r(1063),i=r(7013),s=r(6453),a="WebAssembly",c=o[a],u=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=s(t,e,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(t,e){if(c&&c[t]){var r={};r[t]=s(a+"."+t,e,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},3832:(t,e,r)=>{"use strict";var n=r(5571).charAt,o=r(1139),i=r(8417),s=r(164),a=r(877),c="String Iterator",u=i.set,l=i.getterFor(c);s(String,"String",(function(t){u(this,{type:c,string:o(t),index:0})}),(function(){var t,e=l(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))}))},5442:(t,e,r)=>{"use strict";r(5695)},85:(t,e,r)=>{"use strict";r(9828);var n=r(1100),o=r(1063),i=r(1811),s=r(6625);for(var a in n)i(o[a],a),s[a]=s.Array},239:(t,e,r)=>{"use strict";r(5442);var n=r(6656);r(85),t.exports=n}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{CompilationRelativeJsonPointerError:()=>f,EvaluationRelativeJsonPointerError:()=>l,InvalidRelativeJsonPointerError:()=>u,RelativeJsonPointerError:()=>c,compile:()=>Ft,evaluate:()=>Dr,isRelativeJsonPointer:()=>Mt,parse:()=>Ct});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>Pe,includesClasses:()=>Me,includesSymbols:()=>Te,isAnnotationElement:()=>Oe,isArrayElement:()=>xe,isBooleanElement:()=>be,isCommentElement:()=>Se,isElement:()=>me,isLinkElement:()=>we,isMemberElement:()=>Ee,isNullElement:()=>de,isNumberElement:()=>ve,isObjectElement:()=>ge,isParseResultElement:()=>ke,isPrimitiveElement:()=>Ae,isRefElement:()=>je,isSourceMapElement:()=>_e,isStringElement:()=>ye});var e=r(1212);const o=class extends e{constructor(t,e,r){if(super(t,e,r),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!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:t}=r;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}};class i extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(o,t)}constructor(t,e){if(super(t,e),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!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}const s=i;const a=class extends s{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...r}=e;Object.assign(this,r)}}};const c=class extends a{};class u extends c{relativePointer;constructor(t,e){super(t,e),void 0!==e&&(this.relativePointer=e.relativePointer)}}const l=class extends c{relativePointer;currentElement;rootElement;cursorElement;constructor(t,e){super(t,e),void 0!==e&&(this.relativePointer=e.relativePointer,this.currentElement=e.currentElement,this.rootElement=e.rootElement,this.cursorElement=e.cursorElement)}};const f=class extends c{nonNegativeIntegerPrefix;indexManipulation;jsonPointerTokens;hashCharacter;constructor(t,e){super(t,e),void 0!==e&&(this.nonNegativeIntegerPrefix=e.relativePointer.nonNegativeIntegerPrefix,this.indexManipulation=e.relativePointer.indexManipulation,this.hashCharacter=e.relativePointer.hashCharacter,Array.isArray(e.relativePointer.jsonPointerTokens)&&(this.jsonPointerTokens=[...e.relativePointer.jsonPointerTokens]))}},p={"@@functional/placeholder":!0};function h(t){return t===p}function m(t){return function e(r){return 0===arguments.length||h(r)?e:t.apply(this,arguments)}}function y(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return h(r)?e:m((function(e){return t(r,e)}));default:return h(r)&&h(n)?e:h(r)?m((function(e){return t(e,n)})):h(n)?m((function(e){return t(r,e)})):t(r,n)}}}function v(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function d(t,e,r){for(var n=0,o=r.length;n<o;){if(t(e,r[n]))return!0;n+=1}return!1}function b(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const g="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var x=Object.prototype.toString;const E=function(){return"[object Arguments]"===x.call(arguments)?function(t){return"[object Arguments]"===x.call(t)}:function(t){return b("callee",t)}}();var w=!{toString:null}.propertyIsEnumerable("toString"),j=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],O=function(){return arguments.propertyIsEnumerable("length")}(),S=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},k="function"!=typeof Object.keys||O?m((function(t){if(Object(t)!==t)return[];var e,r,n=[],o=O&&E(t);for(e in t)!b(e,t)||o&&"length"===e||(n[n.length]=e);if(w)for(r=j.length-1;r>=0;)b(e=j[r],t)&&!S(n,e)&&(n[n.length]=e),r-=1;return n})):m((function(t){return Object(t)!==t?[]:Object.keys(t)}));const _=k;const A=m((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function P(t,e,r,n){var o=v(t);function i(t,e){return T(t,e,r.slice(),n.slice())}return!d((function(t,e){return!d(i,e,t)}),v(e),o)}function T(t,e,r,n){if(g(t,e))return!0;var o,i,s=A(t);if(s!==A(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!g(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!g(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(s){case"Map":return t.size===e.size&&P(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&P(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=_(t);if(c.length!==_(e).length)return!1;var u=r.concat([t]),l=n.concat([e]);for(a=c.length-1;a>=0;){var f=c[a];if(!b(f,e)||!T(e[f],t[f],u,l))return!1;a-=1}return!0}const M=y((function(t,e){return T(t,e,[],[])})),C=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function N(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!C(n)){for(var o=0;o<t.length;){if("function"==typeof n[t[o]])return n[t[o]].apply(n,Array.prototype.slice.call(arguments,0,-1));o+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function R(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const I=function(){return this.xf["@@transducer/init"]()},F=function(t){return this.xf["@@transducer/result"](t)};var V=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=F,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var r=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.n>=0&&this.i>=this.n?R(r):r},t}();function z(t){return function(e){return new V(t,e)}}function L(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return C(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}function B(t){return function e(r,n,o){switch(arguments.length){case 0:return e;case 1:return h(r)?e:y((function(e,n){return t(r,e,n)}));case 2:return h(r)&&h(n)?e:h(r)?y((function(e,r){return t(e,n,r)})):h(n)?y((function(e,n){return t(r,e,n)})):m((function(e){return t(r,n,e)}));default:return h(r)&&h(n)&&h(o)?e:h(r)&&h(n)?y((function(e,r){return t(e,r,o)})):h(r)&&h(o)?y((function(e,r){return t(e,n,r)})):h(n)&&h(o)?y((function(e,n){return t(r,e,n)})):h(r)?m((function(e){return t(e,n,o)})):h(n)?m((function(e){return t(r,e,o)})):h(o)?m((function(e){return t(r,n,e)})):t(r,n,o)}}}const D=B(L("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const q=y(N(["take"],z,(function(t,e){return D(0,t<0?1/0:t,e)})));const G=y((function(t,e){return M(q(t.length,e),t)}));function U(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,o){return e.apply(this,arguments)};case 5:return function(t,r,n,o,i){return e.apply(this,arguments)};case 6:return function(t,r,n,o,i,s){return e.apply(this,arguments)};case 7:return function(t,r,n,o,i,s,a){return e.apply(this,arguments)};case 8:return function(t,r,n,o,i,s,a,c){return e.apply(this,arguments)};case 9:return function(t,r,n,o,i,s,a,c,u){return e.apply(this,arguments)};case 10:return function(t,r,n,o,i,s,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function $(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function J(t){return"[object String]"===Object.prototype.toString.call(t)}const K=m((function(t){return!!C(t)||!!t&&("object"==typeof t&&(!J(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var W="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function H(t,e,r){return function(n,o,i){if(K(i))return t(n,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return e(n,o,i,"fantasy-land/reduce");if(null!=i[W])return r(n,o,i[W]());if("function"==typeof i.next)return r(n,o,i);if("function"==typeof i.reduce)return e(n,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Y(t,e,r){for(var n=0,o=r.length;n<o;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}const X=y((function(t,e){return U(t.length,(function(){return t.apply(e,arguments)}))}));function Z(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function Q(t,e,r,n){return t["@@transducer/result"](r[n](X(t["@@transducer/step"],t),e))}const tt=H(Y,Q,Z);var et=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();const rt=B((function(t,e,r){return tt("function"==typeof t?new et(t):t,e,r)}));const nt=m(L("tail",D(1,1/0)));function ot(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return U(arguments[0].length,rt($,arguments[0],nt(arguments)))}function it(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}function st(t,e,r){return function(){for(var n=[],o=0,i=t,s=0,a=!1;s<e.length||o<arguments.length;){var c;s<e.length&&(!h(e[s])||o>=arguments.length)?c=e[s]:(c=arguments[o],o+=1),n[s]=c,h(c)?a=!0:i-=1,s+=1}return!a&&i<=0?r.apply(this,n):U(Math.max(0,i),st(t,n,r))}}const at=y((function(t,e){return 1===t?m(e):U(t,st(t,[],e))}));function ct(t,e){return function(t,e,r){var n,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(o=t[r])&&1/o===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(o=t[r])&&o!=o)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(M(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function ut(t,e){for(var r=0,n=e.length,o=Array(n);r<n;)o[r]=t(e[r]),r+=1;return o}function lt(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var ft=function(t){return(t<10?"0":"")+t};const pt="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+ft(t.getUTCMonth()+1)+"-"+ft(t.getUTCDate())+"T"+ft(t.getUTCHours())+":"+ft(t.getUTCMinutes())+":"+ft(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function ht(t,e,r){for(var n=0,o=r.length;n<o;)e=t(e,r[n]),n+=1;return e}function mt(t){return"[object Object]"===Object.prototype.toString.call(t)}var yt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=F,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function vt(t){return function(e){return new yt(t,e)}}const dt=y(N(["fantasy-land/filter","filter"],vt,(function(t,e){return mt(e)?ht((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},_(e)):function(t,e){for(var r=0,n=e.length,o=[];r<n;)t(e[r])&&(o[o.length]=e[r]),r+=1;return o}(t,e)})));const bt=y((function(t,e){return dt((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function gt(t,e){var r=function(r){var n=e.concat([t]);return ct(r,n)?"<Circular>":gt(r,n)},n=function(t,e){return ut((function(e){return lt(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+ut(r,t).join(", ")+"))";case"[object Array]":return"["+ut(r,t).concat(n(t,bt((function(t){return/^\d+$/.test(t)}),_(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):lt(pt(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":lt(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+n(t,_(t)).join(", ")+"}"}}const xt=m((function(t){return gt(t,[])}));const Et=y((function(t,e){return at(t+1,(function(){var r=arguments[t];if(null!=r&&it(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(xt(r)+' does not have a method named "'+e+'"')}))}))(1,"split");var wt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=F,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const jt=y(N(["fantasy-land/map","map"],(function(t){return function(e){return new wt(t,e)}}),(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return at(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return ht((function(r,n){return r[n]=t(e[n]),r}),{},_(e));default:return ut(t,e)}})));const Ot=M("");const St=B((function(t,e,r){return r.replace(t,e)})),kt=ot(St(/~1/g,"/"),St(/~0/g,"~"),(t=>{try{return decodeURIComponent(t)}catch{return t}}));const _t=class extends a{};const At=class extends _t{pointer;constructor(t,e){super(t,e),void 0!==e&&(this.pointer=e.pointer)}},Pt=t=>{if(Ot(t))return[];if(!G("/",t))throw new At(`Invalid JSON Pointer "${t}". JSON Pointers must begin with "/"`,{pointer:t});try{const e=ot(Et("/"),jt(kt))(t);return nt(e)}catch(e){throw new At(`JSON Pointer parsing of "${t}" encountered an error.`,{pointer:t,cause:e})}},Tt=new RegExp("^(?<nonNegativeIntegerPrefix>[1-9]\\d*|0)(?<indexManipulation>[+-][1-9]\\d*|0)?((?<hashCharacter>#)|(?<jsonPointer>\\/.*))?$"),Mt=t=>"string"==typeof t&&Tt.test(t),Ct=t=>{const e=t.match(Tt);if(null===e||void 0===e.groups)throw new u(`Invalid Relative JSON Pointer "${t}".`,{relativePointer:t});try{const t=parseInt(e.groups.nonNegativeIntegerPrefix,10),r="string"==typeof e.groups.indexManipulation?parseInt(e.groups.indexManipulation,10):void 0,n="string"==typeof e.groups.jsonPointer?Pt(e.groups.jsonPointer):void 0;return{nonNegativeIntegerPrefix:t,indexManipulation:r,jsonPointerTokens:n,hashCharacter:"string"==typeof e.groups.hashCharacter}}catch(e){throw new u(`Relative JSON Pointer parsing of "${t}" encountered an error.`,{relativePointer:t,cause:e})}},Nt=ot(St(/~/g,"~0"),St(/\//g,"~1"),encodeURIComponent);const Rt=class extends _t{tokens;constructor(t,e){super(t,e),void 0!==e&&(this.tokens=[...e.tokens])}},It=t=>{try{return 0===t.length?"":`/${t.map(Nt).join("/")}`}catch(e){throw new Rt("JSON Pointer compilation of tokens encountered an error.",{tokens:t,cause:e})}},Ft=t=>{try{let e="";return e+=String(t.nonNegativeIntegerPrefix),"number"==typeof t.indexManipulation&&(e+=String(t.indexManipulation)),Array.isArray(t.jsonPointerTokens)?e+=It(t.jsonPointerTokens):t.hashCharacter&&(e+="#"),e}catch(e){throw new f("Relative JSON Pointer compilation encountered an error.",{relativePointer:t,cause:e})}};var Vt=function(t,e){switch(arguments.length){case 0:return Vt;case 1:return function e(r){return 0===arguments.length?e:g(t,r)};default:return g(t,e)}};const zt=Vt;const Lt=at(1,ot(A,zt("String"))),Bt=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Dt={},qt=t=>null==t?void 0:t.type,Gt=t=>"string"==typeof qt(t),Ut=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),$t=(t,{visitFnGetter:e=Bt,nodeTypeGetter:r=qt,breakSymbol:n=Dt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,exposeEdits:s=!1}={})=>{const c=Symbol("skip"),u=new Array(t.length).fill(c);return{enter(l,f,p,h,m,y){let v=l,d=!1;const b={...y,replaceWith(t,e){y.replaceWith(t,e),v=t}};for(let l=0;l<t.length;l+=1)if(u[l]===c){const c=e(t[l],r(v),!1);if("function"==typeof c){const e=c.call(t[l],v,f,p,h,m,b);if("function"==typeof(null==e?void 0:e.then))throw new a("Async visitor not supported in sync mode",{visitor:t[l],visitFn:c});if(e===i)u[l]=v;else if(e===n)u[l]=n;else{if(e===o)return e;if(void 0!==e){if(!s)return e;v=e,d=!0}}}}return d?v:void 0},leave(o,s,l,f,p,h){let m=o;const y={...h,replaceWith(t,e){h.replaceWith(t,e),m=t}};for(let o=0;o<t.length;o+=1)if(u[o]===c){const c=e(t[o],r(m),!0);if("function"==typeof c){const e=c.call(t[o],m,s,l,f,p,y);if("function"==typeof(null==e?void 0:e.then))throw new a("Async visitor not supported in sync mode",{visitor:t[o],visitFn:c});if(e===n)u[o]=n;else if(void 0!==e&&e!==i)return e}}else u[o]===m&&(u[o]=c)}}};$t[Symbol.for("nodejs.util.promisify.custom")]=(t,{visitFnGetter:e=Bt,nodeTypeGetter:r=qt,breakSymbol:n=Dt,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:i=!1,exposeEdits:s=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{async enter(u,l,f,p,h,m){let y=u,v=!1;const d={...m,replaceWith(t,e){m.replaceWith(t,e),y=t}};for(let u=0;u<t.length;u+=1)if(c[u]===a){const a=e(t[u],r(y),!1);if("function"==typeof a){const e=await a.call(t[u],y,l,f,p,h,d);if(e===i)c[u]=y;else if(e===n)c[u]=n;else{if(e===o)return e;if(void 0!==e){if(!s)return e;y=e,v=!0}}}}return v?y:void 0},async leave(o,s,u,l,f,p){let h=o;const m={...p,replaceWith(t,e){p.replaceWith(t,e),h=t}};for(let o=0;o<t.length;o+=1)if(c[o]===a){const a=e(t[o],r(h),!0);if("function"==typeof a){const e=await a.call(t[o],h,s,u,l,f,m);if(e===n)c[o]=n;else if(void 0!==e&&e!==i)return e}}else c[o]===h&&(c[o]=a)}}};const Jt=(t,e,{keyMap:r=null,state:n={},breakSymbol:o=Dt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=Bt,nodeTypeGetter:u=qt,nodePredicate:l=Gt,nodeCloneFn:f=Ut,detectCycles:p=!0}={})=>{const h=r||{};let m,y,v=Array.isArray(t),d=[t],b=-1,g=[],x=t;const E=[],w=[];do{b+=1;const t=b===d.length;let r;const S=t&&0!==g.length;if(t){if(r=0===w.length?void 0:E.pop(),x=y,y=w.pop(),S)if(v){x=x.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(x.splice(n,1),t+=1):x[n]=r}}else{x=f(x);for(const[t,e]of g)x[t]=e}b=m.index,d=m.keys,g=m.edits,v=m.inArray,m=m.prev}else if(y!==i&&void 0!==y){if(r=v?b:d[b],x=y[r],x===i||void 0===x)continue;E.push(r)}let k;if(!Array.isArray(x)){var j;if(!l(x))throw new a(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){E.pop();continue}const i=c(e,u(x),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;const o={replaceWith(e,n){"function"==typeof n?n(e,x,r,y,E,w):y&&(y[r]=e),t||(x=e)}};k=i.call(e,x,r,y,E,w,o)}if("function"==typeof(null===(j=k)||void 0===j?void 0:j.then))throw new a("Async visitor not supported in sync mode",{visitor:e,visitFn:i});if(k===o)break;if(k===s){if(!t){E.pop();continue}}else if(void 0!==k&&(g.push([r,k]),!t)){if(!l(k)){E.pop();continue}x=k}}var O;if(void 0===k&&S&&g.push([r,x]),!t)m={inArray:v,index:b,keys:d,edits:g,prev:m},v=Array.isArray(x),d=v?x:null!==(O=h[u(x)])&&void 0!==O?O:[],b=-1,g=[],y!==i&&void 0!==y&&w.push(y),y=x}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};Jt[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:o=Dt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=Bt,nodeTypeGetter:u=qt,nodePredicate:l=Gt,nodeCloneFn:f=Ut,detectCycles:p=!0}={})=>{const h=r||{};let m,y,v=Array.isArray(t),d=[t],b=-1,g=[],x=t;const E=[],w=[];do{b+=1;const t=b===d.length;let r;const O=t&&0!==g.length;if(t){if(r=0===w.length?void 0:E.pop(),x=y,y=w.pop(),O)if(v){x=x.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(x.splice(n,1),t+=1):x[n]=r}}else{x=f(x);for(const[t,e]of g)x[t]=e}b=m.index,d=m.keys,g=m.edits,v=m.inArray,m=m.prev}else if(y!==i&&void 0!==y){if(r=v?b:d[b],x=y[r],x===i||void 0===x)continue;E.push(r)}let S;if(!Array.isArray(x)){if(!l(x))throw new a(`Invalid AST Node: ${String(x)}`,{node:x});if(p&&w.includes(x)){E.pop();continue}const i=c(e,u(x),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;const o={replaceWith(e,n){"function"==typeof n?n(e,x,r,y,E,w):y&&(y[r]=e),t||(x=e)}};S=await i.call(e,x,r,y,E,w,o)}if(S===o)break;if(S===s){if(!t){E.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!t)){if(!l(S)){E.pop();continue}x=S}}var j;if(void 0===S&&O&&g.push([r,x]),!t)m={inArray:v,index:b,keys:d,edits:g,prev:m},v=Array.isArray(x),d=v?x:null!==(j=h[u(x)])&&void 0!==j?j:[],b=-1,g=[],y!==i&&void 0!==y&&w.push(y),y=x}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};var Kt=r(8326),Wt=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=I,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=R(this.xf["@@transducer/step"](t,!1))),t},t}();function Ht(t){return function(e){return new Wt(t,e)}}const Yt=y(N(["all"],Ht,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));const Xt=m((function(t){return at(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}))(y(ct));class Zt extends Kt.Om{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const Qt=Zt;class te extends Kt.Om{constructor(t,e,r){super(t,e,r),this.element="comment"}}const ee=te;var re=m((function(t){return function(){return t}}))(void 0);const ne=M(re());class oe extends Kt.wE{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(ne(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const ie=oe;class se extends Kt.wE{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(void 0===t)return;const e=new Kt.wE([t.start.row,t.start.column,t.start.char]),r=new Kt.wE([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const ae=se,ce=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],ue=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,le=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),fe=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof Kt.wE)&&e.classes.includes(t),pe=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,he=t=>t({hasMethod:ce,hasBasicElementProps:ue,primitiveEq:le,isElementType:pe,hasClass:fe}),me=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.Hg||t(r)&&e(void 0,r))),ye=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.Om||t(r)&&e("string",r))),ve=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.kT||t(r)&&e("number",r))),de=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.Os||t(r)&&e("null",r))),be=he((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Kt.bd||t(r)&&e("boolean",r))),ge=he((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Kt.Sh||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),xe=he((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Kt.wE&&!(n instanceof Kt.Sh)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Ee=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kt.Pr||t(n)&&e("member",n)&&r(void 0,n))),we=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kt.Ft||t(n)&&e("link",n)&&r(void 0,n))),je=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kt.sI||t(n)&&e("ref",n)&&r(void 0,n))),Oe=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qt||t(n)&&e("annotation",n)&&r("array",n))),Se=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ee||t(n)&&e("comment",n)&&r("string",n))),ke=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ie||t(n)&&e("parseResult",n)&&r("array",n))),_e=he((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ae||t(n)&&e("sourceMap",n)&&r("array",n))),Ae=t=>pe("object",t)||pe("array",t)||pe("boolean",t)||pe("number",t)||pe("string",t)||pe("null",t)||pe("member",t),Pe=t=>_e(t.meta.get("sourceMap")),Te=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!xe(r)&&Yt(Xt(r.toValue()),t)},Me=(t,e)=>0===t.length||Yt(Xt(e.classes.toValue()),t);const Ce=class extends a{value;constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};const Ne=class extends Ce{};const Re=class extends Ce{},Ie=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof Kt.KeyValuePair){const{key:e,value:o}=t,i=me(e)?Ie(e,n):e,s=me(o)?Ie(o,n):o,a=new Kt.KeyValuePair(i,s);return r.set(t,a),a}if(t instanceof Kt.ot){const e=t=>Ie(t,n),o=[...t].map(e),i=new Kt.ot(o);return r.set(t,i),i}if(t instanceof Kt.G6){const e=t=>Ie(t,n),o=[...t].map(e),i=new Kt.G6(o);return r.set(t,i),i}if(me(t)){const e=ze(t);if(r.set(t,e),t.content)if(me(t.content))e.content=Ie(t.content,n);else if(t.content instanceof Kt.KeyValuePair)e.content=Ie(t.content,n);else if(Array.isArray(t.content)){const r=t=>Ie(t,n);e.content=t.content.map(r)}else e.content=t.content;else e.content=t.content;return e}throw new Ne("Value provided to cloneDeep function couldn't be cloned",{value:t})};Ie.safe=t=>{try{return Ie(t)}catch{return t}};const Fe=t=>{const{key:e,value:r}=t;return new Kt.KeyValuePair(e,r)},Ve=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=Ie(t.meta)),t.attributes.length>0&&(e._attributes=Ie(t.attributes)),me(t.content)){const r=t.content;e.content=Ve(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof Kt.KeyValuePair?e.content=Fe(t.content):e.content=t.content;return e},ze=t=>{if(t instanceof Kt.KeyValuePair)return Fe(t);if(t instanceof Kt.ot)return(t=>{const e=[...t];return new Kt.ot(e)})(t);if(t instanceof Kt.G6)return(t=>{const e=[...t];return new Kt.G6(e)})(t);if(me(t))return Ve(t);throw new Re("Value provided to cloneShallow function couldn't be cloned",{value:t})};ze.safe=t=>{try{return ze(t)}catch{return t}};const Le=t=>ge(t)?"ObjectElement":xe(t)?"ArrayElement":Ee(t)?"MemberElement":ye(t)?"StringElement":be(t)?"BooleanElement":ve(t)?"NumberElement":de(t)?"NullElement":we(t)?"LinkElement":je(t)?"RefElement":void 0,Be=t=>me(t)?ze(t):Ut(t),De=ot(Le,Lt),qe={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Ge=(t,e,{keyMap:r=qe,...n}={})=>Jt(t,e,{keyMap:r,nodeTypeGetter:Le,nodePredicate:De,nodeCloneFn:Be,...n});Ge[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=qe,...n}={})=>Jt[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:Le,nodePredicate:De,nodeCloneFn:Be,...n});const Ue=B((function(t,e,r){var n,o={};for(n in r=r||{},e=e||{})b(n,e)&&(o[n]=b(n,r)?t(n,e[n],r[n]):e[n]);for(n in r)b(n,r)&&!b(n,o)&&(o[n]=r[n]);return o}));const $e=B((function t(e,r,n){return Ue((function(r,n,o){return mt(n)&&mt(o)?t(e,n,o):e(r,n,o)}),r,n)}));const Je=y((function(t,e){return $e((function(t,e,r){return r}),t,e)}));const Ke=y((function(t,e){return null==e||e!=e?t:e})),We=Number.isInteger||function(t){return t<<0===t};function He(t,e){var r=t<0?e.length+t:t;return J(e)?e.charAt(r):e[r]}const Ye=y((function(t,e){if(null!=e)return We(t)?He(t,e):e[t]}));const Xe=B((function(t,e,r){return Ke(t,Ye(e,r))}));function Ze(t,e){for(var r=e,n=0;n<t.length;n+=1){if(null==r)return;var o=t[n];r=We(o)?He(o,r):r[o]}return r}const Qe=y(Ze);const tr=D(0,-1);const er=y((function(t,e){return t.apply(this,e)}));function rr(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function nr(t,e,r,n){return r[n](t,e)}const or=H(ht,nr,rr);const ir=y((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:or((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,o=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<o;)i[i.length]=e[r],r+=1;return i}(t,jt(r,e))}),[],t)}));const sr=y((function(t,e){var r=at(t,e);return at(t,(function(){return ht(ir,jt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ar=m((function(t){return sr(t.length,t)}));const cr=ar(m((function(t){return!t})));const ur=y((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var o=r(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var i=xt(t),s=r(i,xt(e));return void 0!==s&&s===i?t:e}));const lr=y((function(t,e){return jt(Ye(t),e)}));const fr=m((function(t){return at(rt(ur,0,lr("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));const pr=at(1,ot(A,zt("GeneratorFunction")));const hr=at(1,ot(A,zt("AsyncFunction")));const mr=fr([ot(A,zt("Function")),pr,hr]);const yr=cr(mr);const vr=y((function(t,e){return t&&e}));const dr=y((function(t,e){return it(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:ar(vr)(t,e)}));var br=m((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():C(t)?[]:J(t)?"":mt(t)?{}:E(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const gr=br;const xr=m((function(t){return null!=t&&M(t,gr(t))}));const Er=dr(at(1,mr(Array.isArray)?Array.isArray:ot(A,zt("Array"))),xr);const wr=at(3,(function(t,e,r){var n=Qe(t,r),o=Qe(tr(t),r);if(!yr(n)&&!Er(t)){var i=X(n,o);return er(i,e)}}));class jr extends Kt.g${constructor(){super(),this.register("annotation",Qt),this.register("comment",ee),this.register("parseResult",ie),this.register("sourceMap",ae)}}const Or=new jr,Sr=()=>({predicates:{...t},namespace:Or}),kr={toolboxCreator:Sr,visitorOptions:{nodeTypeGetter:Le,exposeEdits:!0}},_r=(t,e,r={})=>{if(0===e.length)return t;const n=Je(kr,r),{toolboxCreator:o,visitorOptions:i}=n,s=o(),a=e.map((t=>t(s))),c=$t(a.map(Xe({},"visitor")),{...i});a.forEach(wr(["pre"],[]));const u=Ge(t,c,i);return a.forEach(wr(["post"],[])),u};_r[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,r={})=>{if(0===e.length)return t;const n=Je(kr,r),{toolboxCreator:o,visitorOptions:i}=n,s=o(),a=e.map((t=>t(s))),c=$t[Symbol.for("nodejs.util.promisify.custom")],u=Ge[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(Xe({},"visitor")),{...i});await Promise.allSettled(a.map(wr(["pre"],[])));const f=await u(t,l,i);return await Promise.allSettled(a.map(wr(["post"],[]))),f};const Ar=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return me(t)&&(t.meta.length>0&&(n.meta=Ie(t.meta)),t.attributes.length>0&&(n.attributes=Ie(t.attributes))),_r(n,r,{toolboxCreator:Sr,visitorOptions:{nodeTypeGetter:Le}})},Pr=t=>(e,r={})=>Ar(e,{...r,Type:t});Kt.Sh.refract=Pr(Kt.Sh),Kt.wE.refract=Pr(Kt.wE),Kt.Om.refract=Pr(Kt.Om),Kt.bd.refract=Pr(Kt.bd),Kt.Os.refract=Pr(Kt.Os),Kt.kT.refract=Pr(Kt.kT),Kt.Ft.refract=Pr(Kt.Ft),Kt.sI.refract=Pr(Kt.sI),Qt.refract=Pr(Qt),ee.refract=Pr(ee),ie.refract=Pr(ie),ae.refract=Pr(ae);const Tr=y((function(t,e){return at(rt(ur,0,lr("length",e)),(function(){var r=arguments,n=this;return t.apply(n,ut((function(t){return t.apply(n,r)}),e))}))}));function Mr(t){return t}const Cr=m(Mr);var Nr=dr(at(1,ot(A,zt("Number"))),isFinite);var Rr=at(1,Nr);var Ir=dr(mr(Number.isFinite)?at(1,X(Number.isFinite,Number)):Rr,Tr(M,[Math.floor,Cr]));var Fr=at(1,Ir);const Vr=mr(Number.isInteger)?at(1,X(Number.isInteger,Number)):Fr;const zr=class extends _t{pointer;tokens;failedToken;failedTokenPosition;element;constructor(t,e){super(t,e),void 0!==e&&(this.pointer=e.pointer,Array.isArray(e.tokens)&&(this.tokens=[...e.tokens]),this.failedToken=e.failedToken,this.failedTokenPosition=e.failedTokenPosition,this.element=e.element)}},Lr=(t,e)=>{let r;try{r=Pt(t)}catch(r){throw new zr(`JSON Pointer evaluation failed while parsing the pointer "${t}".`,{pointer:t,element:Ie(e),cause:r})}return r.reduce(((e,n,o)=>{if(ge(e)){if(!e.hasKey(n))throw new zr(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:t,tokens:r,failedToken:n,failedTokenPosition:o,element:Ie(e)});return e.get(n)}if(xe(e)){if(!(n in e.content)||!Vr(Number(n)))throw new zr(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:t,tokens:r,failedToken:n,failedTokenPosition:o,element:Ie(e)});return e.get(Number(n))}throw new zr(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:t,tokens:r,failedToken:n,failedTokenPosition:o,element:Ie(e)})}),e)};const Br=m((function(t){return He(-1,t)})),Dr=(t,e,r)=>{let n,o=[],i=e;if(Ge(r,{enter(t,r,n,i,s){if(t===e)return o=[...s,n].filter(me),Dt}}),0===o.length)throw new l("Relative JSON Pointer evaluation failed. Current element not found inside the root element",{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});if(Br(o)===r)throw new l("Relative JSON Pointer evaluation failed. Current element cannot be the root element",{relativePointer:t,currentElement:e,rootElement:r,cursorElement:i});try{n=Ct(t)}catch(r){throw new l("Relative JSON Pointer evaluation failed while parsing the pointer.",{relativePointer:t,currentElement:Ie(e),rootElement:Ie(e),cursorElement:Ie.safe(i),cause:r})}if(n.nonNegativeIntegerPrefix>0){const s=[...o];for(let{nonNegativeIntegerPrefix:t}=n;t>0;t-=1)i=s.pop(),Ee(i)&&(i=s.pop());if(void 0===i)throw new l(`Relative JSON Pointer evaluation failed on non-negative-integer prefix of "${n.nonNegativeIntegerPrefix}"`,{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});o=s}if("number"==typeof n.indexManipulation){const s=Br(o);if(void 0===s||!xe(s))throw new l(`Relative JSON Pointer evaluation failed failed on index-manipulation "${n.indexManipulation}"`,{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});const a=s.content.indexOf(i)+n.indexManipulation;if(i=s.content[a],void 0===i)throw new l(`Relative JSON Pointer evaluation failed on index-manipulation "${n.indexManipulation}"`,{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)})}if(Array.isArray(n.jsonPointerTokens)){const t=It(n.jsonPointerTokens);i=Lr(t,i)}else if(n.hashCharacter){if(i===r)throw new l('Relative JSON Pointer evaluation failed. Current element cannot be the root element to apply "#"',{relativePointer:t,currentElement:Ie(e),rootElement:Ie(r),cursorElement:Ie.safe(i)});const n=Br(o);void 0!==n&&(Ee(n)?i=n.key:xe(n)&&(i=new Kt.kT(n.content.indexOf(i))))}return i}})(),n})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-json-pointer-relative",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"description": "Evaluate Relative JSON Pointer expressions against ApiDOM.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime-corejs3": "^7.20.7",
|
|
41
|
-
"@swagger-api/apidom-core": "^1.0.0-alpha.
|
|
41
|
+
"@swagger-api/apidom-core": "^1.0.0-alpha.3",
|
|
42
42
|
"@swagger-api/apidom-error": "^1.0.0-alpha.1",
|
|
43
|
-
"@swagger-api/apidom-json-pointer": "^1.0.0-alpha.
|
|
43
|
+
"@swagger-api/apidom-json-pointer": "^1.0.0-alpha.3",
|
|
44
44
|
"@types/ramda": "~0.30.0",
|
|
45
45
|
"ramda": "~0.30.0",
|
|
46
46
|
"ramda-adjunct": "^5.0.0"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"README.md",
|
|
56
56
|
"CHANGELOG.md"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "6e63209f9bc1b2a51172ced05ba6dc53417c611a"
|
|
59
59
|
}
|