@swagger-api/apidom-json-path 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomJsonPath=t():e.apidomJsonPath=t()}(self,(()=>(()=>{var e={85:(e,t,r)=>{"use strict";r(9828);var n=r(1100),s=r(8900),i=r(1811),o=r(6625);for(var a in n)i(s[a],a),o[a]=o.Array},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),h=r(1811),p=r(3999),f=r(3508),d=r(8655),m=r(6625),y=r(2621),b=o.PROPER,g=o.CONFIGURABLE,v=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=d("iterator"),w="keys",O="values",A="entries",_=function(){return this};e.exports=function(e,t,r,o,d,y,k){c(r,t,o);var T,S,j,P=function(e){if(e===d&&L)return L;if(!x&&e&&e in N)return N[e];switch(e){case w:case O:case A:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",M=!1,N=e.prototype,R=N[E]||N["@@iterator"]||d&&N[d],L=!x&&R||P(d),I="Array"===t&&N.entries||R;if(I&&(T=u(I.call(new e)))!==Object.prototype&&T.next&&(i||u(T)===v||(l?l(T,v):a(T[E])||f(T,E,_)),h(T,C,!0,!0),i&&(m[C]=_)),b&&d===O&&R&&R.name!==O&&(!i&&g?p(N,"name",O):(M=!0,L=function(){return s(R,this)})),d)if(S={values:P(O),keys:y?L:P(w),entries:P(A)},k)for(j in S)(x||M||!(j in N))&&f(N,j,S[j]);else n({target:t,proto:!0,forced:x||M},S);return i&&!k||N[E]===L||f(N,E,L,{name:d}),m[t]=L,S}},195:(e,t,r)=>{var n=r(4882),s=r(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),h=r(967),p=r(1743),f=TypeError,d=function(e,t){this.stopped=e,this.result=t},m=d.prototype;e.exports=function(e,t,r){var y,b,g,v,x,E,w,O=r&&r.that,A=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),k=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),S=n(t,O),j=function(e){return y&&p(y,"normal",e),new d(!0,e)},P=function(e){return A?(i(e),T?S(e[0],e[1],j):S(e[0],e[1])):T?S(e,j):S(e)};if(_)y=e.iterator;else if(k)y=e;else{if(!(b=h(e)))throw new f(o(e)+" is not iterable");if(a(b)){for(g=0,v=c(e);v>g;g++)if((x=P(e[g]))&&u(m,x))return x;return new d(!1)}y=l(e,b)}for(E=_?e.next:y.next;!(w=s(E,y)).done;){try{x=P(w.value)}catch(e){p(y,"throw",e)}if("object"==typeof x&&x&&u(m,x))return x}return new d(!1)}},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},353:(e,t,r)=>{var n=r(1340),s=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),h="[object Arguments]",p="[object Array]",f="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,y,b){var g=c(e),v=c(t),x=g?p:a(e),E=v?p:a(t),w=(x=x==h?f:x)==f,O=(E=E==h?f:E)==f,A=x==E;if(A&&u(e)){if(!u(t))return!1;g=!0,w=!1}if(A&&!w)return b||(b=new n),g||l(e)?s(e,t,r,m,y,b):i(e,t,x,r,m,y,b);if(!(1&r)){var _=w&&d.call(e,"__wrapped__"),k=O&&d.call(t,"__wrapped__");if(_||k){var T=_?e.value():e,S=k?t.value():t;return b||(b=new n),y(T,S,r,m,b)}}return!!A&&(b||(b=new n),o(e,t,r,m,y,b))}},358:(e,t,r)=>{var n=r(6137),s=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),h=!r&&!l&&o(e),p=!r&&!l&&!h&&c(e),f=r||l||h||p,d=f?n(e.length,String):[],m=d.length;for(var y in e)!t&&!u.call(e,y)||f&&("length"==y||h&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,m))||d.push(y);return d}},393:(e,t,r)=>{var n=r(8244),s=r(7979),i=r(1211);e.exports=function(e){return n(e,i,s)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,r)=>{"use strict";var n=r(9098),s=r(8900),i=r(7013),o=r(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},h=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("URIError",(function(e){return function(t){return i(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),i=r(6281),o=r(4674),a=r(9258),c=r(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var n=r(7379),s=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),i=r(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),i=r(8130),o=function(e){return function(t,r,o){var a=n(t),c=i(a);if(0===c)return!e&&-1;var u,l=s(o,c);if(e&&r!=r){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},1112:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var h=l;h--;){var p=u[h];if(!(c?p in t:s.call(t,p)))return!1}var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=c;++h<l;){var b=e[p=u[h]],g=t[p];if(i)var v=c?i(g,b,p,t,e,a):i(b,g,p,e,t,a);if(!(void 0===v?b===g||o(b,g,r,i,a):v)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(m=!1)}return a.delete(e),a.delete(t),m}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var n=r(358),s=r(195),i=r(6529);e.exports=function(e){return i(e)?n(e):s(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var n=r(1386),s=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},1386:(e,t,r)=>{var n=r(2393),s=r(2049),i=r(7144),o=r(7452),a=r(3964);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),i=r(9932),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,r)=>{"use strict";var n=r(4713),s=r(814),i=r(7235),o=r(459),a=r(967),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return i(n(r,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),i=r(4674);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),i=r(480),o=r(1811),a=r(6625),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},2621:(e,t,r)=>{"use strict";var n,s,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),h=r(3508),p=r(8655),f=r(4871),d=p("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):m=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:f&&(n=u(n)),a(n[d])||h(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),h=r(8148),p=r(4279),f=r(208),d=r(4879),m=r(8655)("toStringTag"),y=Error,b=[].push,g=function(e,t){var r,n=s(v,this);o?r=o(new y,n?i(this):v):(r=n?this:c(v),u(r,m,"Error")),void 0!==t&&u(r,"message",d(t)),p(r,g,r.stack,1),arguments.length>2&&h(r,arguments[2]);var a=[];return f(e,b,{that:a}),u(r,"errors",a),r};o?o(g,y):a(g,y,{name:!0});var v=g.prototype=c(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var n=r(8250),s=r(1877),i=r(8006);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},3283:(e,t,r)=>{var n=r(6027),s=r(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),i=r(5426),o=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),i=r(3491);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),i=r(2137),o=r(4275),a=r(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),i=r(7525),o="__core-js_shared__",a=e.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),i=r(8417),o=r(164),a=r(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},3885:(e,t,r)=>{"use strict";var n=r(6100),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,r)=>{var n=r(3212),s=r(6465),i=r(5568);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,h=t.length;if(l!=h&&!(u&&h>l))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var d=-1,m=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++d<l;){var b=e[d],g=t[d];if(o)var v=u?o(g,b,d,t,e,c):o(b,g,d,e,t,c);if(void 0!==v){if(v)continue;m=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(b===e||a(b,e,r,o,c)))return y.push(t)}))){m=!1;break}}else if(b!==g&&!a(b,g,r,o,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),i=r(480);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},4103:(e,t,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),h=Object.getOwnPropertyDescriptor;t.f=n?h:function(e,t){if(e=a(e),t=c(t),l)try{return h(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),i=r(1780),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),i=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,r)=>{var n,s=r(1950),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var n=r(3305),s=r(9361),i=r(1112),o=r(5276),a=r(5071);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var n,s,i=r(8900),o=r(3531),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),i=r(1139),o=r(5426),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,h=i(o(t)),p=s(r),f=h.length;return p<0||p>=f?e?"":void 0:(n=c(h,p))<55296||n>56319||p+1===f||(l=c(h,p+1))<56320||l>57343?e?a(h,p):n:e?u(h,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),i=r(9796),o=r(7309),a=r(3311);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),i=r(5116),o=r(7313),a=r(7235),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const n=r(9310),s=r(8138),i=r(986),o=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),h="prototype",p="script",f=l("IE_PROTO"),d=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},y=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;b="undefined"!=typeof document?document.domain&&n?y(n):(t=u("iframe"),r="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete b[h][o[s]];return b()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[h]=s(e),r=new d,d[h]=null,r[f]=e):r=b(),void 0===t?r:i.f(r,t)}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),i=r(7013),o=r(1203),a=r(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),i=r(4317),o=r(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),h=r(4879),p=r(8148),f=r(4279),d=r(5024),m=r(4871);e.exports=function(e,t,r,y){var b="stackTraceLimit",g=y?2:1,v=e.split("."),x=v[v.length-1],E=n.apply(null,v);if(E){var w=E.prototype;if(!m&&s(w,"cause")&&delete w.cause,!r)return E;var O=n("Error"),A=t((function(e,t){var r=h(y?t:e,void 0),n=y?new E(e):new E;return void 0!==r&&i(n,"message",r),f(n,A,n.stack,2),this&&o(w,this)&&l(n,this,A),arguments.length>g&&p(n,arguments[g]),n}));if(A.prototype=w,"Error"!==x?a?a(A,O):c(A,O,{name:!0}):d&&b in E&&(u(A,E,b),u(A,E,"prepareStackTrace")),c(A,E),!m)try{w.name!==x&&i(w,"name",x),w.constructor=A}catch(e){}return A}}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),i=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);e.exports=n.AggregateError},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var n=r(5650),s=r(8870),i=r(9005),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),i=r(4543),o=r(9989);e.exports=function(e,t,r){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var h=a[l];n(e,h)||r&&n(r,h)||c(e,h,u(t,h))}}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},7547:(e,t,r)=>{const n=r(8631),s=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),h=r(9620),p=r(593),f=r(4123),d=r(3311),m=r(2322);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=y,f.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:h,RefElement:p,refract:y,ArraySlice:f,ObjectSlice:d,KeyValuePair:m}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},8250:(e,t,r)=>{var n=r(9753),s=r(5681),i=r(88),o=r(4732),a=r(9068);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,s.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),i=r(9932),o=r(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var n,s,i,o=r(1314),a=r(8900),c=r(262),u=r(3999),l=r(701),h=r(3753),p=r(4275),f=r(5241),d="Object already initialized",m=a.TypeError,y=a.WeakMap;if(o||h.state){var b=h.state||(h.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw new m(d);return t.facade=e,b.set(e,t),t},s=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var g=p("state");f[g]=!0,n=function(e,t){if(l(e,g))throw new m(d);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var n=r(3103),s=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),l="[object Map]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",d="[object DataView]",m=u(n),y=u(s),b=u(i),g=u(o),v=u(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||s&&x(new s)!=l||i&&x(i.resolve())!=h||o&&x(new o)!=p||a&&x(new a)!=f)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return d;case y:return l;case b:return h;case g:return p;case v:return f}return t}),e.exports=x},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),i=r(4123);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),u=n.Symbol,l=s("wks"),h=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:h("Symbol."+e)),l[e]}},8666:(e,t,r)=>{var n=r(674),s=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,h,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!h(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var d=1&n;if(f||(f=c),e.size!=t.size&&!d)return!1;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var y=o(f(e),f(t),n,u,h,p);return p.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),h=r(3999),p=r(701);r(3753);var f=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,d,m,y,b,g,v,x,E=e.target,w=e.global,O=e.stat,A=e.proto,_=w?n:O?n[E]:n[E]&&n[E].prototype,k=w?u:u[E]||h(u,E,{})[E],T=k.prototype;for(m in t)s=!(r=c(w?m:E+(O?".":"#")+m,e.forced))&&_&&p(_,m),b=k[m],s&&(g=e.dontCallGetSet?(x=a(_,m))&&x.value:_[m]),y=s&&g?g:t[m],(r||A||typeof b!=typeof y)&&(v=e.bind&&s?l(y,n):e.wrap&&s?f(y):A&&o(y)?i(y):y,(e.sham||y&&y.sham||b&&b.sham)&&h(v,"sham",!0),h(k,m,v),A&&(p(u,d=E+"Prototype")||h(u,d,{}),h(u[d],m,y),e.real&&T&&(r||!T[m])&&h(T,m,y)))}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),i=r(262),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),i=r(1580),o=r(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,h=u.hasOwnProperty,p=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?p:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),i=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var n=r(5098),s=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},9796:(e,t,r)=>{const n=r(1517),s=r(8631),i=r(4123);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),h=r(5024),p="Array Iterator",f=o.set,d=o.getterFor(p);e.exports=c(Array,"Array",(function(e,t){f(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var m=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&h&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),i=r(1330),o=r(7235),a=r(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",p="configurable",f="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=l(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:h in r?r[h]:n[h],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.r(n),r.d(n,{EvaluationJsonPathError:()=>c,MultiEvaluationJsonPathError:()=>u,evaluate:()=>It,evaluateMulti:()=>$t});var e=r(1212);const t=class extends e{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class s extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(t,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const i=s;const o=class extends i{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const a=class extends o{};const c=class extends a{path;element;constructor(e,t){super(e,t),void 0!==t&&(this.path=t.path,this.element=t.element)}};const u=class extends a{paths;element;constructor(e,t){super(e,t),void 0!==t&&(this.paths=t.paths,this.element=t.element)}};class l{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+l.version}static addUnaryOp(e){return l.max_unop_len=Math.max(e.length,l.max_unop_len),l.unary_ops[e]=1,l}static addBinaryOp(e,t,r){return l.max_binop_len=Math.max(e.length,l.max_binop_len),l.binary_ops[e]=t,r?l.right_associative.add(e):l.right_associative.delete(e),l}static addIdentifierChar(e){return l.additional_identifier_chars.add(e),l}static addLiteral(e,t){return l.literals[e]=t,l}static removeUnaryOp(e){return delete l.unary_ops[e],e.length===l.max_unop_len&&(l.max_unop_len=l.getMaxKeyLen(l.unary_ops)),l}static removeAllUnaryOps(){return l.unary_ops={},l.max_unop_len=0,l}static removeIdentifierChar(e){return l.additional_identifier_chars.delete(e),l}static removeBinaryOp(e){return delete l.binary_ops[e],e.length===l.max_binop_len&&(l.max_binop_len=l.getMaxKeyLen(l.binary_ops)),l.right_associative.delete(e),l}static removeAllBinaryOps(){return l.binary_ops={},l.max_binop_len=0,l}static removeLiteral(e){return delete l.literals[e],l}static removeAllLiterals(){return l.literals={},l}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new l(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return l.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!l.binary_ops[String.fromCharCode(e)]||l.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return l.isIdentifierStart(e)||l.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(l.hooks[e]){const r={context:this,node:t};return l.hooks.run(e,r),r.node}return t}searchHook(e){if(l.hooks[e]){const t={context:this};return l.hooks[e].find((function(e){return e.call(t.context,t),t.node})),t.node}}gobbleSpaces(){let e=this.code;for(;e===l.SPACE_CODE||e===l.TAB_CODE||e===l.LF_CODE||e===l.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:l.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,r,n=[];for(;this.index<this.expr.length;)if(t=this.code,t===l.SEMCOL_CODE||t===l.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())n.push(r);else if(this.index<this.expr.length){if(t===e)break;this.throwError('Unexpected "'+this.char+'"')}return n}gobbleExpression(){const e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,l.max_binop_len),t=e.length;for(;t>0;){if(l.binary_ops.hasOwnProperty(e)&&(!l.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!l.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=t,e;e=e.substr(0,--t)}return!1}gobbleBinaryExpression(){let e,t,r,n,s,i,o,a,c;if(i=this.gobbleToken(),!i)return i;if(t=this.gobbleBinaryOp(),!t)return i;for(s={value:t,prec:l.binaryPrecedence(t),right_a:l.right_associative.has(t)},o=this.gobbleToken(),o||this.throwError("Expected expression after "+t),n=[i,s,o];t=this.gobbleBinaryOp();){if(r=l.binaryPrecedence(t),0===r){this.index-=t.length;break}s={value:t,prec:r,right_a:l.right_associative.has(t)},c=t;const a=e=>s.right_a&&e.right_a?r>e.prec:r<=e.prec;for(;n.length>2&&a(n[n.length-2]);)o=n.pop(),t=n.pop().value,i=n.pop(),e={type:l.BINARY_EXP,operator:t,left:i,right:o},n.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+c),n.push(s,e)}for(a=n.length-1,e=n[a];a>1;)e={type:l.BINARY_EXP,operator:n[a-1].value,left:n[a-2],right:e},a-=2;return e}gobbleToken(){let e,t,r,n;if(this.gobbleSpaces(),n=this.searchHook("gobble-token"),n)return this.runHook("after-token",n);if(e=this.code,l.isDecimalDigit(e)||e===l.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===l.SQUOTE_CODE||e===l.DQUOTE_CODE)n=this.gobbleStringLiteral();else if(e===l.OBRACK_CODE)n=this.gobbleArray();else{for(t=this.expr.substr(this.index,l.max_unop_len),r=t.length;r>0;){if(l.unary_ops.hasOwnProperty(t)&&(!l.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!l.isIdentifierPart(this.expr.charCodeAt(this.index+t.length)))){this.index+=r;const e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:l.UNARY_EXP,operator:t,argument:e,prefix:!0})}t=t.substr(0,--r)}l.isIdentifierStart(e)?(n=this.gobbleIdentifier(),l.literals.hasOwnProperty(n.name)?n={type:l.LITERAL,value:l.literals[n.name],raw:n.name}:n.name===l.this_str&&(n={type:l.THIS_EXP})):e===l.OPAREN_CODE&&(n=this.gobbleGroup())}return n?(n=this.gobbleTokenProperty(n),this.runHook("after-token",n)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let t=this.code;for(;t===l.PERIOD_CODE||t===l.OBRACK_CODE||t===l.OPAREN_CODE||t===l.QUMARK_CODE;){let r;if(t===l.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==l.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),t=this.code}this.index++,t===l.OBRACK_CODE?((e={type:l.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),t=this.code,t!==l.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):t===l.OPAREN_CODE?e={type:l.CALL_EXP,arguments:this.gobbleArguments(l.CPAREN_CODE),callee:e}:(t===l.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),e={type:l.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),r&&(e.optional=!0),this.gobbleSpaces(),t=this.code}return e}gobbleNumericLiteral(){let e,t,r="";for(;l.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(this.code===l.PERIOD_CODE)for(r+=this.expr.charAt(this.index++);l.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(e=this.char,"e"===e||"E"===e){for(r+=this.expr.charAt(this.index++),e=this.char,"+"!==e&&"-"!==e||(r+=this.expr.charAt(this.index++));l.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);l.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")")}return t=this.code,l.isIdentifierStart(t)?this.throwError("Variable names cannot start with a number ("+r+this.char+")"):(t===l.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===l.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:l.LITERAL,value:parseFloat(r),raw:r}}gobbleStringLiteral(){let e="";const t=this.index,r=this.expr.charAt(this.index++);let n=!1;for(;this.index<this.expr.length;){let t=this.expr.charAt(this.index++);if(t===r){n=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++),t){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return n||this.throwError('Unclosed quote after "'+e+'"'),{type:l.LITERAL,value:e,raw:this.expr.substring(t,this.index)}}gobbleIdentifier(){let e=this.code,t=this.index;for(l.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,l.isIdentifierPart(e));)this.index++;return{type:l.IDENTIFIER,name:this.expr.slice(t,this.index)}}gobbleArguments(e){const t=[];let r=!1,n=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let s=this.code;if(s===e){r=!0,this.index++,e===l.CPAREN_CODE&&n&&n>=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(s===l.COMMA_CODE){if(this.index++,n++,n!==t.length)if(e===l.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===l.CBRACK_CODE)for(let e=t.length;e<n;e++)t.push(null)}else if(t.length!==n&&0!==n)this.throwError("Expected comma");else{const e=this.gobbleExpression();e&&e.type!==l.COMPOUND||this.throwError("Expected comma"),t.push(e)}}return r||this.throwError("Expected "+String.fromCharCode(e)),t}gobbleGroup(){this.index++;let e=this.gobbleExpressions(l.CPAREN_CODE);if(this.code===l.CPAREN_CODE)return this.index++,1===e.length?e[0]:!!e.length&&{type:l.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:l.ARRAY_EXP,elements:this.gobbleArguments(l.CBRACK_CODE)}}}const h=new class{add(e,t,r){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][r?"unshift":"push"](t)}),this)}run(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}};Object.assign(l,{hooks:h,plugins:new class{constructor(e){this.jsep=e,this.registered={}}register(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach((e=>{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}(l),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),l.max_unop_len=l.getMaxKeyLen(l.unary_ops),l.max_binop_len=l.getMaxKeyLen(l.binary_ops);const p=e=>new l(e).parse(),f=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(l).filter((e=>!f.includes(e)&&void 0===p[e])).forEach((e=>{p[e]=l[e]})),p.Jsep=l;var d={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const s=this.gobbleExpression();if(s||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:s},r.operator&&e.binary_ops[r.operator]<=.9){let n=r;for(;n.right.operator&&e.binary_ops[n.right.operator]<=.9;)n=n.right;t.node.test=n.right,n.right=t.node,t.node=r}}else this.throwError("Expected :")}}))}};p.plugins.register(d);var m={name:"regex",init(e){e.hooks.add("gobble-token",(function(t){if(47===this.code){const r=++this.index;let n=!1;for(;this.index<this.expr.length;){if(47===this.code&&!n){const n=this.expr.slice(r,this.index);let s,i="";for(;++this.index<this.expr.length;){const e=this.code;if(!(e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;i+=this.char}try{s=new RegExp(n,i)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?n=!0:n&&this.code===e.CBRACK_CODE&&(n=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}}))}};const y={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function r(e){y.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",r(e.left),r(e.right)):e.operator||Object.values(e).forEach((e=>{e&&"object"==typeof e&&r(e)}))}y.assignmentOperators.forEach((t=>e.addBinaryOp(t,y.assignmentPrecedence,!0))),e.hooks.add("gobble-token",(function(e){const r=this.code;y.updateOperators.some((e=>e===r&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))})),e.hooks.add("after-token",(function(e){if(e.node){const r=this.code;y.updateOperators.some((e=>e===r&&e===this.expr.charCodeAt(this.index+1)))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:e.node,prefix:!1})}})),e.hooks.add("after-expression",(function(e){e.node&&r(e.node)}))}};p.plugins.register(m,y),p.addUnaryOp("typeof"),p.addLiteral("null",null),p.addLiteral("undefined",void 0);const b=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),g={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return g.evalBinaryExpression(e,t);case"Compound":return g.evalCompound(e,t);case"ConditionalExpression":return g.evalConditionalExpression(e,t);case"Identifier":return g.evalIdentifier(e,t);case"Literal":return g.evalLiteral(e,t);case"MemberExpression":return g.evalMemberExpression(e,t);case"UnaryExpression":return g.evalUnaryExpression(e,t);case"ArrayExpression":return g.evalArrayExpression(e,t);case"CallExpression":return g.evalCallExpression(e,t);case"AssignmentExpression":return g.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:(e,t)=>({"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e<t(),">":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<<t(),">>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](g.evalAst(e.left,t),(()=>g.evalAst(e.right,t)))),evalCompound(e,t){let r;for(let n=0;n<e.body.length;n++){"Identifier"===e.body[n].type&&["var","let","const"].includes(e.body[n].name)&&e.body[n+1]&&"AssignmentExpression"===e.body[n+1].type&&(n+=1);const s=e.body[n];r=g.evalAst(s,t)}return r},evalConditionalExpression:(e,t)=>g.evalAst(e.test,t)?g.evalAst(e.consequent,t):g.evalAst(e.alternate,t),evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral:e=>e.value,evalMemberExpression(e,t){const r=String(e.computed?g.evalAst(e.property):e.property.name),n=g.evalAst(e.object,t);if(null==n)throw TypeError(`Cannot read properties of ${n} (reading '${r}')`);if(!Object.hasOwn(n,r)&&b.has(r))throw TypeError(`Cannot read properties of ${n} (reading '${r}')`);const s=n[r];return"function"==typeof s?s.bind(n):s},evalUnaryExpression:(e,t)=>({"-":e=>-g.evalAst(e,t),"!":e=>!g.evalAst(e,t),"~":e=>~g.evalAst(e,t),"+":e=>+g.evalAst(e,t),typeof:e=>typeof g.evalAst(e,t)}[e.operator](e.argument)),evalArrayExpression:(e,t)=>e.elements.map((e=>g.evalAst(e,t))),evalCallExpression(e,t){const r=e.arguments.map((e=>g.evalAst(e,t)));return g.evalAst(e.callee,t)(...r)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const r=e.left.name,n=g.evalAst(e.right,t);return t[r]=n,t[r]}};function v(e,t){return(e=e.slice()).push(t),e}function x(e,t){return(t=t.slice()).unshift(e),t}class E extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function w(e,t,r,n,s){if(!(this instanceof w))try{return new w(e,t,r,n,s)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(s=n,n=r,r=t,t=e,e=null);const i=e&&"object"==typeof e;if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors=void 0!==e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||n||null,this.otherTypeCallback=e.otherTypeCallback||s||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const n={path:i?e.path:t};i?"json"in e&&(n.json=e.json):n.json=r;const s=this.evaluate(n);if(!s||"object"!=typeof s)throw new E(s);return s}}w.prototype.evaluate=function(e,t,r,n){let s=this.parent,i=this.parentProperty,{flatten:o,wrap:a}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"==typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),o=Object.hasOwn(e,"flatten")?e.flatten:o,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,a=Object.hasOwn(e,"wrap")?e.wrap:a,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,r=Object.hasOwn(e,"callback")?e.callback:r,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=Object.hasOwn(e,"parent")?e.parent:s,i=Object.hasOwn(e,"parentProperty")?e.parentProperty:i,e=e.path}if(s=s||null,i=i||null,Array.isArray(e)&&(e=w.toPathString(e)),!e&&""!==e||!t)return;const c=w.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;const u=this._trace(c,t,["$"],s,i,r).filter((function(e){return e&&!e.isParentSelector}));return u.length?a||1!==u.length||u[0].hasArrExpr?u.reduce(((e,t)=>{const r=this._getPreferredOutput(t);return o&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(u[0]):a?[]:void 0},w.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:w.toPathArray(e.path);return e.pointer=w.toPointer(t),e.path="string"==typeof e.path?e.path:w.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return w.toPathString(e[t]);case"pointer":return w.toPointer(e.path);default:throw new TypeError("Unknown result type")}},w.prototype._handleCallback=function(e,t,r){if(t){const n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:w.toPathString(e.path),t(n,r,e)}},w.prototype._trace=function(e,t,r,n,s,i,o,a){let c;if(!e.length)return c={path:r,value:t,parent:n,parentProperty:s,hasArrExpr:o},this._handleCallback(c,i,"value"),c;const u=e[0],l=e.slice(1),h=[];function p(e){Array.isArray(e)?e.forEach((e=>{h.push(e)})):h.push(e)}if(("string"!=typeof u||a)&&t&&Object.hasOwn(t,u))p(this._trace(l,t[u],v(r,u),t,u,i,o));else if("*"===u)this._walk(t,(e=>{p(this._trace(l,t[e],v(r,e),t,e,i,!0,!0))}));else if(".."===u)p(this._trace(l,t,r,n,s,i,o)),this._walk(t,(n=>{"object"==typeof t[n]&&p(this._trace(e.slice(),t[n],v(r,n),t,n,i,!0))}));else{if("^"===u)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:l,isParentSelector:!0};if("~"===u)return c={path:v(r,u),value:s,parent:n,parentProperty:null},this._handleCallback(c,i,"property"),c;if("$"===u)p(this._trace(l,t,r,null,null,i,o));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(u))p(this._slice(u,l,t,r,n,s,i));else if(0===u.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=u.replace(/^\?\((.*?)\)$/u,"$1"),o=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);o?this._walk(t,(e=>{const a=[o[2]],c=o[1]?t[e][o[1]]:t[e];this._trace(a,c,r,n,s,i,!0).length>0&&p(this._trace(l,t[e],v(r,e),t,e,i,!0))})):this._walk(t,(o=>{this._eval(e,t[o],o,r,n,s)&&p(this._trace(l,t[o],v(r,o),t,o,i,!0))}))}else if("("===u[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");p(this._trace(x(this._eval(u,t,r.at(-1),r.slice(0,-1),n,s),l),t,r,n,s,i,o))}else if("@"===u[0]){let e=!1;const o=u.slice(1,-2);switch(o){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===o&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===o&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,r,n,s);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+o)}if(e)return c={path:r,value:t,parent:n,parentProperty:s},this._handleCallback(c,i,"value"),c}else if("`"===u[0]&&t&&Object.hasOwn(t,u.slice(1))){const e=u.slice(1);p(this._trace(l,t[e],v(r,e),t,e,i,o,!0))}else if(u.includes(",")){const e=u.split(",");for(const o of e)p(this._trace(x(o,l),t,r,n,s,i,!0))}else!a&&t&&Object.hasOwn(t,u)&&p(this._trace(l,t[u],v(r,u),t,u,i,o,!0))}if(this._hasParentSelector)for(let e=0;e<h.length;e++){const r=h[e];if(r&&r.isParentSelector){const a=this._trace(r.expr,t,r.path,n,s,i,o);if(Array.isArray(a)){h[e]=a[0];const t=a.length;for(let r=1;r<t;r++)e++,h.splice(e,0,a[r])}else h[e]=a}}return h},w.prototype._walk=function(e,t){if(Array.isArray(e)){const r=e.length;for(let e=0;e<r;e++)t(e)}else e&&"object"==typeof e&&Object.keys(e).forEach((e=>{t(e)}))},w.prototype._slice=function(e,t,r,n,s,i,o){if(!Array.isArray(r))return;const a=r.length,c=e.split(":"),u=c[2]&&Number.parseInt(c[2])||1;let l=c[0]&&Number.parseInt(c[0])||0,h=c[1]&&Number.parseInt(c[1])||a;l=l<0?Math.max(0,l+a):Math.min(a,l),h=h<0?Math.max(0,h+a):Math.min(a,h);const p=[];for(let e=l;e<h;e+=u){this._trace(x(e,t),r,n,s,i,o,!0).forEach((e=>{p.push(e)}))}return p},w.prototype._eval=function(e,t,r,n,s,i){this.currSandbox._$_parentProperty=i,this.currSandbox._$_parent=s,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const o=e.includes("@path");o&&(this.currSandbox._$_path=w.toPathString(n.concat([r])));const a=this.currEval+"Script:"+e;if(!w.cache[a]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(o&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)w.cache[a]=new this.safeVm.Script(t);else if("native"===this.currEval)w.cache[a]=new this.vm.Script(t);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;w.cache[a]=new e(t)}else{if("function"!=typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);w.cache[a]={runInNewContext:e=>this.currEval(t,e)}}}try{return w.cache[a].runInNewContext(this.currSandbox)}catch(t){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+t.message+": "+e)}},w.cache={},w.toPathString=function(e){const t=e,r=t.length;let n="$";for(let e=1;e<r;e++)/^(~|\^|@.*?\(\))$/u.test(t[e])||(n+=/^[0-9*]+$/u.test(t[e])?"["+t[e]+"]":"['"+t[e]+"']");return n},w.toPointer=function(e){const t=e,r=t.length;let n="";for(let e=1;e<r;e++)/^(~|\^|@.*?\(\))$/u.test(t[e])||(n+="/"+t[e].toString().replaceAll("~","~0").replaceAll("/","~1"));return n},w.toPathArray=function(e){const{cache:t}=w;if(t[e])return t[e].concat();const r=[],n=e.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,(function(e,t){return"[#"+(r.push(t)-1)+"]"})).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,(function(e,t){return"['"+t.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"})).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,(function(e,t){return";"+t.split("").join(";")+";"})).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,"").split(";").map((function(e){const t=e.match(/#(\d+)/u);return t&&t[1]?r[t[1]]:e}));return t[e]=n,t[e].concat()},w.prototype.safeVm={Script:class{constructor(e){this.code=e,this.ast=p(this.code)}runInNewContext(e){const t=Object.assign(Object.create(null),e);return g.evalAst(this.ast,t)}}};w.prototype.vm={Script:class{constructor(e){this.code=e}runInNewContext(e){let t=this.code;const r=Object.keys(e),n=[];!function(e,t,r){const n=e.length;for(let s=0;s<n;s++)r(e[s])&&t.push(e.splice(s--,1)[0])}(r,n,(t=>"function"==typeof e[t]));const s=r.map((t=>e[t]));t=n.reduce(((t,r)=>{let n=e[r].toString();return/function/u.test(n)||(n="function "+n),"var "+r+"="+n+";"+t}),"")+t,/(['"])use strict\1/u.test(t)||r.includes("arguments")||(t="var arguments = undefined;"+t),t=t.replace(/;\s*$/u,"");const i=t.lastIndexOf(";"),o=-1!==i?t.slice(0,i+1)+" return "+t.slice(i+1):" return "+t;return new Function(...r,o)(...s)}}};var O=r(8326);class A extends O.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const _=A;class k extends O.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const T=k;function S(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function j(e){return function t(r){return 0===arguments.length||S(r)?t:e.apply(this,arguments)}}function P(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return S(r)?t:j((function(t){return e(r,t)}));default:return S(r)&&S(n)?t:S(r)?j((function(t){return e(t,n)})):S(n)?j((function(t){return e(r,t)})):e(r,n)}}}function C(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function M(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function N(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const R="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var L=Object.prototype.toString;const I=function(){return"[object Arguments]"===L.call(arguments)?function(e){return"[object Arguments]"===L.call(e)}:function(e){return N("callee",e)}}();var $=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],V=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const U="function"!=typeof Object.keys||V?j((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=V&&I(e);for(t in e)!N(t,e)||s&&"length"===t||(n[n.length]=t);if($)for(r=D.length-1;r>=0;)N(t=D[r],e)&&!B(n,t)&&(n[n.length]=t),r-=1;return n})):j((function(e){return Object(e)!==e?[]:Object.keys(e)}));const F=j((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function z(e,t,r,n){var s=C(e);function i(e,t){return H(e,t,r.slice(),n.slice())}return!M((function(e,t){return!M(i,t,e)}),C(t),s)}function H(e,t,r,n){if(R(e,t))return!0;var s,i,o=F(e);if(o!==F(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!R(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!R(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&z(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&z(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=U(e);if(c.length!==U(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var h=c[a];if(!N(h,t)||!H(t[h],e[h],u,l))return!1;a-=1}return!0}const G=P((function(e,t){return H(e,t,[],[])}))(j((function(e){return function(){return e}}))(void 0)());class K extends O.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(G(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const q=K,Y=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],J=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,X=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),W=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof O.wE)&&t.classes.includes(e),Q=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Z=e=>e({hasMethod:Y,hasBasicElementProps:J,primitiveEq:X,isElementType:Q,hasClass:W}),ee=Z((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof O.Hg||e(r)&&t(void 0,r))),te=Z((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof O.Om||e(r)&&t("string",r))),re=Z((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof O.kT||e(r)&&t("number",r))),ne=Z((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof O.Os||e(r)&&t("null",r))),se=Z((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof O.bd||e(r)&&t("boolean",r))),ie=Z((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof O.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),oe=Z((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof O.wE&&!(n instanceof O.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ae=Z((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof O.Pr||e(n)&&t("member",n)&&r(void 0,n))),ce=Z((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof O.Ft||e(n)&&t("link",n)&&r(void 0,n))),ue=Z((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof O.sI||e(n)&&t("ref",n)&&r(void 0,n)));Z((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _||e(n)&&t("annotation",n)&&r("array",n))),Z((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof T||e(n)&&t("comment",n)&&r("string",n))),Z((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof q||e(n)&&t("parseResult",n)&&r("array",n)));class le extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}const he=le;const pe=class{name="";isArray(e){throw new he("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new he("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new he("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new he("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new he("Realm.evaluate(node) must be implemented in a subclass")}};const fe=class extends he{};const de=class extends fe{};const me=class extends fe{};const ye=class extends pe{name="apidom";isArray(e){return oe(e)}isObject(e){return ie(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const r=Number(t),n=r>>>0;if(r!==n)throw new me(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return n<this.sizeOf(e)}if(this.isObject(e)){const r=e.keys(),n=new Set(r);if(r.length!==n.size)throw new de(`Object key "${t}" is not unique — JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}},be=function(){const e=we,t=Ee,r=this,n="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let s,i,o,a,c,u,l,h=0,p=0,f=0,d=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(b,g,x,E)=>{const w=`${n}parse(): `;h=0,p=0,f=0,d=0,m=0,s=void 0,i=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,u=void 0,l=void 0,a=t.stringToChars(x),s=b.rules,i=b.udts;const O=g.toLowerCase();let A;for(const e in s)if(s.hasOwnProperty(e)&&O===s[e].lower){A=s[e].index;break}if(void 0===A)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(c=[],u=[],t=0;t<s.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)u[t]=void 0;const a=[];for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const n in r.callbacks)if(r.callbacks.hasOwnProperty(n)){if(t=a.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=r.callbacks[n]?r.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<s.length?c[t]=o:u[t-s.length]=o}})(),r.trace&&r.trace.init(s,i,a),r.stats&&r.stats.init(s,i),r.ast&&r.ast.init(s,i,a),l=E,o=[{type:e.RNM,index:A}],v(0,0),o=void 0;let _=!1;switch(y.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:_=!1;break;case e.EMPTY:case e.MATCH:_=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:_,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:f,nodeHits:d}};const b=(t,r,s,i)=>{if(r.phraseLength>s){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},g=(t,c)=>{let p,f,d;const m=o[t],b=i[m.index];y.UdtIndex=b.index,h||(d=r.ast&&r.ast.udtDefined(m.index),d&&(f=s.length+m.index,p=r.ast.getLength(),r.ast.down(f,b.name)));const g=a.length-c;u[m.index](y,a,c,l),((t,r,s)=>{if(r.phraseLength>s){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${s}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(b,y,g),h||d&&(y.state===e.NOMATCH?r.ast.setLength(p):r.ast.up(f,b.name,c,y.phraseLength))},v=(t,i)=>{const u=`${n}opExecute(): `,x=o[t];switch(d+=1,p>f&&(f=p),p+=1,y.refresh(),r.trace&&r.trace.down(x,i),x.type){case e.ALT:((t,r)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],r),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let s,i,a,c;const u=o[t];r.ast&&(i=r.ast.getLength()),s=!0,a=n,c=0;for(let t=0;t<u.children.length;t+=1){if(v(u.children[t],a),y.state===e.NOMATCH){s=!1;break}a+=y.phraseLength,c+=y.phraseLength}s?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let s,i,c,u;const l=o[t];if(0===l.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,c=0,u=0,r.ast&&(s=r.ast.getLength());!(i>=a.length)&&(v(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(u+=1,c+=y.phraseLength,i+=y.phraseLength,u!==l.max););y.state===e.EMPTY||u>=l.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(s))})(t,i);break;case e.RNM:((t,n)=>{let i,u,p;const f=o[t],d=s[f.index],m=c[d.index];if(h||(u=r.ast&&r.ast.ruleDefined(f.index),u&&(i=r.ast.getLength(),r.ast.down(f.index,s[f.index].name))),m){const t=a.length-n;m(y,a,n,l),b(d,y,t,!0),y.state===e.ACTIVE&&(p=o,o=d.opcodes,v(0,n),o=p,m(y,a,n,l),b(d,y,t,!1))}else p=o,o=d.opcodes,v(0,n,y),o=p;h||u&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(f.index,d.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,r)=>{const n=o[t];y.state=e.NOMATCH,r<a.length&&n.min<=a[r]&&a[r]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,r)=>{const n=o[t],s=n.string.length;if(y.state=e.NOMATCH,r+s<=a.length){for(let e=0;e<s;e+=1)if(a[r+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=s}})(t,i);break;case e.TLS:((t,r)=>{let n;const s=o[t];y.state=e.NOMATCH;const i=s.string.length;if(0!==i){if(r+i<=a.length){for(let e=0;e<i;e+=1)if(n=a[r+e],n>=65&&n<=90&&(n+=32),n!==s.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:g(t,i);break;case e.AND:((t,r)=>{switch(h+=1,v(t+1,r),h-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,r)=>{switch(h+=1,v(t+1,r),h-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${u}unrecognized operator`)}h||i+y.phraseLength>m&&(m=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),p-=1}},ge=function(){const e=we,t=Ee,r=this;let n,s,i,o=0;const a=[],c=[],u=[];function l(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,l)=>{let h;c.length=0,u.length=0,o=0,n=e,s=t,i=l;const p=[];for(h=0;h<n.length;h+=1)p.push(n[h].lower);for(h=0;h<s.length;h+=1)p.push(s[h].lower);for(o=n.length+s.length,h=0;h<o;h+=1)a[h]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(h=p.indexOf(t),h<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[h]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[n.length+e],r.down=(t,r)=>{const n=u.length;return c.push(n),u.push({name:r,thisIndex:n,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),n},r.up=(t,r,n,s)=>{const i=u.length,o=c.pop();return u.push({name:r,thisIndex:i,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:s,stack:c.length}),u[o].thatIndex=i,u[o].phraseIndex=n,u[o].phraseLength=s,i},r.translate=t=>{let r,n;for(let s=0;s<u.length;s+=1)n=u[s],r=a[n.callbackIndex],r&&(n.state===e.SEM_PRE?r(e.SEM_PRE,i,n.phraseIndex,n.phraseLength,t):r&&r(e.SEM_POST,i,n.phraseIndex,n.phraseLength,t))},r.setLength=e=>{u.length=e,c.length=e>0?u[e-1].stack:0},r.getLength=()=>u.length,r.toXml=()=>{let r="",n=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${u.length/2}" characters="${i.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=l(n+2),r+=t.charsToString(i),r+="\n",u.forEach((s=>{s.state===e.SEM_PRE?(n+=1,r+=l(n),r+=`<node name="${s.name}" index="${s.phraseIndex}" length="${s.phraseLength}">\n`,r+=l(n+2),r+=t.charsToString(i,s.phraseIndex,s.phraseLength),r+="\n"):(r+=l(n),r+=`</node>\x3c!-- name="${s.name}" --\x3e\n`,n-=1)})),r+="</root>\n",r}},ve=function(){const e=we,t=Ee,r="parser.js: Trace(): ";let n,s,i,o="",a=0;const c=this,u=e=>{let t="",r=0;if(e>=0)for(;e--;)r+=1,5===r?(t+="|",r=0):t+=".";return t};c.init=(e,t,r)=>{s=e,i=t,n=r};const l=n=>{let o;switch(n.type){case e.ALT:o="ALT";break;case e.CAT:o="CAT";break;case e.REP:o=n.max===1/0?`REP(${n.min},inf)`:`REP(${n.min},${n.max})`;break;case e.RNM:o=`RNM(${s[n.index].name})`;break;case e.TRG:o=`TRG(${n.min},${n.max})`;break;case e.TBS:o=n.string.length>6?`TBS(${t.charsToString(n.string,0,3)}...)`:`TBS(${t.charsToString(n.string,0,6)})`;break;case e.TLS:o=n.string.length>6?`TLS(${t.charsToString(n.string,0,3)}...)`:`TLS(${t.charsToString(n.string,0,6)})`;break;case e.UDT:o=`UDT(${i[n.index].name})`;break;case e.AND:o="AND";break;case e.NOT:o="NOT";break;default:throw new Error(`${r}Trace: opName: unrecognized opcode`)}return o};c.down=(e,r)=>{const s=u(a),i=Math.min(100,n.length-r);let c=t.charsToString(n,r,i);i<n.length-r&&(c+="..."),c=`${s}|-|[${l(e)}]${c}\n`,o+=c,a+=1},c.up=(s,i,c,h)=>{const p=`${r}trace.up: `;a-=1;const f=u(a);let d,m,y;switch(i){case e.EMPTY:y="|E|",m="''";break;case e.MATCH:y="|M|",d=Math.min(100,h),m=d<h?`'${t.charsToString(n,c,d)}...'`:`'${t.charsToString(n,c,d)}'`;break;case e.NOMATCH:y="|N|",m="";break;default:throw new Error(`${p} unrecognized state`)}m=`${f}${y}[${l(s)}]${m}\n`,o+=m},c.displayTrace=()=>o},xe=function(){const e=we;let t,r,n;const s=[],i=[],o=[];this.init=(e,n)=>{t=e,r=n,p()},this.collect=(t,r)=>{f(n,r.state,r.phraseLength),f(s[t.type],r.state,r.phraseLength),t.type===e.RNM&&f(i[t.index],r.state,r.phraseLength),t.type===e.UDT&&f(o[t.index],r.state,r.phraseLength)},this.displayStats=()=>{let t="";const r={match:0,empty:0,nomatch:0,total:0},n=(e,t,n,s,i)=>{r.match+=t,r.empty+=n,r.nomatch+=s,r.total+=i;return`${e} | ${a(t)} | ${a(n)} | ${a(s)} | ${a(i)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=n(" ALT",s[e.ALT].match,s[e.ALT].empty,s[e.ALT].nomatch,s[e.ALT].total),t+=n(" CAT",s[e.CAT].match,s[e.CAT].empty,s[e.CAT].nomatch,s[e.CAT].total),t+=n(" REP",s[e.REP].match,s[e.REP].empty,s[e.REP].nomatch,s[e.REP].total),t+=n(" RNM",s[e.RNM].match,s[e.RNM].empty,s[e.RNM].nomatch,s[e.RNM].total),t+=n(" TRG",s[e.TRG].match,s[e.TRG].empty,s[e.TRG].nomatch,s[e.TRG].total),t+=n(" TBS",s[e.TBS].match,s[e.TBS].empty,s[e.TBS].nomatch,s[e.TBS].total),t+=n(" TLS",s[e.TLS].match,s[e.TLS].empty,s[e.TLS].nomatch,s[e.TLS].total),t+=n(" UDT",s[e.UDT].match,s[e.UDT].empty,s[e.UDT].nomatch,s[e.UDT].total),t+=n(" AND",s[e.AND].match,s[e.AND].empty,s[e.AND].nomatch,s[e.AND].total),t+=n(" NOT",s[e.NOT].match,s[e.NOT].empty,s[e.NOT].nomatch,s[e.NOT].total),t+=n("TOTAL",r.match,r.empty,r.nomatch,r.total),t},this.displayHits=e=>{let t="";const r=(e,t,r,s,i)=>{n.match+=e,n.empty+=t,n.nomatch+=r,n.total+=s;return`| ${a(e)} | ${a(t)} | ${a(r)} | ${a(s)} | ${i}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(i.sort(c),o.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(i.sort(l),o.sort(l),t+=" RULES/UDTS BY INDEX\n"):(i.sort(u),o.sort(u),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<i.length;e+=1){let n=i[e];n.total&&(t+=r(n.match,n.empty,n.nomatch,n.total,n.name))}for(let e=0;e<o.length;e+=1){let n=o[e];n.total&&(t+=r(n.match,n.empty,n.nomatch,n.total,n.name))}return t};const a=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,u=(e,t)=>e.total<t.total?1:e.total>t.total?-1:c(e,t),l=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,h=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},p=()=>{s.length=0,n=new h,s[e.ALT]=new h,s[e.CAT]=new h,s[e.REP]=new h,s[e.RNM]=new h,s[e.TRG]=new h,s[e.TBS]=new h,s[e.TLS]=new h,s[e.UDT]=new h,s[e.AND]=new h,s[e.NOT]=new h,i.length=0;for(let e=0;e<t.length;e+=1)i.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(r.length>0){o.length=0;for(let e=0;e<r.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:r[e].name,lower:r[e].lower,index:r[e].index})}},f=(t,r)=>{switch(t.total+=1,r){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${r}`)}}},Ee={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===r){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},we={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case we.ALT:return"ALT";case we.CAT:return"CAT";case we.REP:return"REP";case we.RNM:return"RNM";case we.TRG:return"TRG";case we.TBS:return"TBS";case we.TLS:return"TLS";case we.UDT:return"UDT";case we.AND:return"AND";case we.NOT:return"NOT";case we.ACTIVE:return"ACTIVE";case we.EMPTY:return"EMPTY";case we.MATCH:return"MATCH";case we.NOMATCH:return"NOMATCH";case we.SEM_PRE:return"SEM_PRE";case we.SEM_POST:return"SEM_POST";case we.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Oe(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}const Ae=class extends he{},_e=e=>(t,r,n,s,i)=>{if("object"!=typeof i||null===i||Array.isArray(i))throw new Ae("parser's user data must be an object");if(t===we.SEM_PRE){const t={type:e,text:Ee.charsToString(r,n,s),start:n,length:s,children:[]};if(i.stack.length>0){i.stack[i.stack.length-1].children.push(t)}else i.root=t;i.stack.push(t)}t===we.SEM_POST&&i.stack.pop()};const ke=class extends ge{constructor(){super(),this.callbacks["json-pointer"]=_e("json-pointer"),this.callbacks["reference-token"]=_e("reference-token"),this.callbacks.slash=_e("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}},Te=e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};const Se=class extends ke{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:e})=>"reference-token"===e)).map((({text:e})=>Te(e)))}};const je=class extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}};const Pe=class extends ve{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let r=-1;for(let n=0;n<e.length;n++){const s=e[n];if(s.includes("M|")){const e=s.match(/]'(.*)'$/);e&&e[1]&&(r=n)}if(n>r){const e=s.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new je(...t)}},Ce=new Oe,Me=(e,{translator:t=new Se,stats:r=!1,trace:n=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const s=new be;t&&(s.ast=t),r&&(s.stats=new xe),n&&(s.trace=new Pe);const i=s.parse(Ce,"json-pointer",e);return{result:i,tree:i.success&&t?s.ast.getTree():void 0,stats:s.stats,trace:s.trace}}catch(t){throw new Ae("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}},Ne=new Oe,Re=new be,Le=e=>{if("string"!=typeof e)return!1;try{return Re.parse(Ne,"array-dash",e).success}catch{return!1}},Ie=new Oe,$e=new be,De=e=>{if("string"!=typeof e)return!1;try{return $e.parse(Ie,"array-index",e).success}catch{return!1}};const Ve=class{#e;#t;#r;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#r=t.realm}step({referenceToken:e,input:t,output:r,success:n=!0,reason:s}){const i=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:i,input:t,inputType:this.#r.isObject(t)?"object":this.#r.isArray(t)?"array":"unrecognized",output:r,success:n};s&&(o.reason=s),this.#e.steps.push(o),n||(this.#e.failed=!0,this.#e.failedAt=i,this.#e.message=s)}};const Be=class extends pe{name="json";isArray(e){return Array.isArray(e)}isObject(e){return"object"==typeof e&&null!==e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){const r=Number(t),n=r>>>0;if(r!==n)throw new me(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return n<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,r)}return!!this.isObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}};const Ue=class extends fe{},Fe=(e,t,{strictArrays:r=!0,strictObjects:n=!0,realm:s=new Be,trace:i=!0}={})=>{const{result:o,tree:a,trace:c}=Me(t,{trace:!!i}),u="object"==typeof i&&null!==i?new Ve(i,{jsonPointer:t,referenceTokens:a,strictArrays:r,strictObjects:n,realm:s,value:e}):null;try{let i;if(!o.success){let r=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw r+=c?`, expected ${c.inferExpectations()}`:"",new fe(r,{jsonPointer:t,currentValue:e,realm:s.name})}return a.reduce(((e,o,c)=>{if(s.isArray(e)){if(Le(o)){if(r)throw new me(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:s.name});return i=s.evaluate(e,String(s.sizeOf(e))),null==u||u.step({referenceToken:o,input:e,output:i}),i}if(!De(o))throw new me(`Invalid array index "${o}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:s.name});const n=Number(o);if(!Number.isSafeInteger(n))throw new me(`Invalid array index "${o}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:s.name});if(!s.has(e,o)&&r)throw new me(`Invalid array index "${o}" at position ${c} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:s.name});return i=s.evaluate(e,o),null==u||u.step({referenceToken:o,input:e,output:i}),i}if(s.isObject(e)){if(!s.has(e,o)&&n)throw new de(`Invalid object key "${o}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:s.name});return i=s.evaluate(e,o),null==u||u.step({referenceToken:o,input:e,output:i}),i}throw new Ue(`Invalid reference token "${o}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:s.name})}),e)}catch(e){if(null==u||u.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof fe)throw e;throw new fe("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:a})}},ze=(e,t,r={})=>Fe(e,t,{...r,realm:new ye});const He=function(){return!0};function Ge(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ke(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function qe(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return S(r)?t:P((function(t,n){return e(r,t,n)}));case 2:return S(r)&&S(n)?t:S(r)?P((function(t,r){return e(t,n,r)})):S(n)?P((function(t,n){return e(r,t,n)})):j((function(t){return e(r,n,t)}));default:return S(r)&&S(n)&&S(s)?t:S(r)&&S(n)?P((function(t,r){return e(t,r,s)})):S(r)&&S(s)?P((function(t,r){return e(t,n,r)})):S(n)&&S(s)?P((function(t,n){return e(r,t,n)})):S(r)?j((function(t){return e(t,n,s)})):S(n)?j((function(t){return e(r,t,s)})):S(s)?j((function(t){return e(r,n,t)})):e(r,n,s)}}}const Ye=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const Je=j((function(e){return!!Ye(e)||!!e&&("object"==typeof e&&(!function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Xe="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function We(e,t,r){return function(n,s,i){if(Je(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[Xe])return r(n,s,i[Xe]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Qe(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const Ze=P((function(e,t){return Ge(e.length,(function(){return e.apply(t,arguments)}))}));function et(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function tt(e,t,r,n){return e["@@transducer/result"](r[n](Ze(e["@@transducer/step"],e),t))}const rt=We(Qe,tt,et);var nt=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const st=qe((function(e,t,r){return rt("function"==typeof e?new nt(e):e,t,r)}));function it(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return Ye(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const ot=j(it("tail",qe(it("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})))(1,1/0)));function at(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Ge(arguments[0].length,st(Ke,arguments[0],ot(arguments)))}function ct(e,t,r){return function(){for(var n=[],s=0,i=e,o=0,a=!1;o<t.length||s<arguments.length;){var c;o<t.length&&(!S(t[o])||s>=arguments.length)?c=t[o]:(c=arguments[s],s+=1),n[o]=c,S(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):Ge(Math.max(0,i),ct(e,n,r))}}var ut=function(e,t){switch(arguments.length){case 0:return ut;case 1:return function t(r){return 0===arguments.length?t:R(e,r)};default:return R(e,t)}};const lt=P((function(e,t){return 1===e?j(t):Ge(e,ct(e,[],t))}))(1,at(F,ut("String"))),ht=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},pt={},ft=e=>null==e?void 0:e.type,dt=e=>"string"==typeof ft(e),mt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e));((e,{visitFnGetter:t=ht,nodeTypeGetter:r=ft,breakSymbol:n=pt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:a=!1}={})=>{const c=Symbol("skip"),u=new Array(e.length).fill(c);return{enter(l,h,p,f,d,m){let y=l,b=!1;const g={...m,replaceWith(e,t){m.replaceWith(e,t),y=e}};for(let l=0;l<e.length;l+=1)if(u[l]===c){const c=t(e[l],r(y),!1);if("function"==typeof c){const t=c.call(e[l],y,h,p,f,d,g);if("function"==typeof(null==t?void 0:t.then))throw new o("Async visitor not supported in sync mode",{visitor:e[l],visitFn:c});if(t===i)u[l]=y;else if(t===n)u[l]=n;else{if(t===s)return t;if(void 0!==t){if(!a)return t;y=t,b=!0}}}}return b?y:void 0},leave(s,a,l,h,p,f){let d=s;const m={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let s=0;s<e.length;s+=1)if(u[s]===c){const c=t(e[s],r(d),!0);if("function"==typeof c){const t=c.call(e[s],d,a,l,h,p,m);if("function"==typeof(null==t?void 0:t.then))throw new o("Async visitor not supported in sync mode",{visitor:e[s],visitFn:c});if(t===n)u[s]=n;else if(void 0!==t&&t!==i)return t}}else u[s]===d&&(u[s]=c)}}})[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=ht,nodeTypeGetter:r=ft,breakSymbol:n=pt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,h,p,f,d){let m=u,y=!1;const b={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(m),!1);if("function"==typeof a){const t=await a.call(e[u],m,l,h,p,f,b);if(t===i)c[u]=m;else if(t===n)c[u]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;m=t,y=!0}}}}return y?m:void 0},async leave(s,o,u,l,h,p){let f=s;const d={...p,replaceWith(e,t){p.replaceWith(e,t),f=e}};for(let s=0;s<e.length;s+=1)if(c[s]===a){const a=t(e[s],r(f),!0);if("function"==typeof a){const t=await a.call(e[s],f,o,u,l,h,d);if(t===n)c[s]=n;else if(void 0!==t&&t!==i)return t}}else c[s]===f&&(c[s]=a)}}};const yt=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=pt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:c=ht,nodeTypeGetter:u=ft,nodePredicate:l=dt,nodeCloneFn:h=mt,detectCycles:p=!0,detectCyclesCallback:f=null}={})=>{const d=r||{};let m,y,b=Array.isArray(e),g=[e],v=-1,x=[],E=e;const w=[],O=[];do{v+=1;const e=v===g.length;let r;const k=e&&0!==x.length;if(e){if(r=0===O.length?void 0:w.pop(),E=y,y=O.pop(),k)if(b){E=E.slice();let e=0;for(const[t,r]of x){const n=t-e;r===i?(E.splice(n,1),e+=1):E[n]=r}}else{E=h(E);for(const[e,t]of x)E[e]=t}v=m.index,g=m.keys,x=m.edits,b=m.inArray,m=m.prev}else if(y!==i&&void 0!==y){if(r=b?v:g[v],E=y[r],E===i||void 0===E)continue;w.push(r)}let T;if(!Array.isArray(E)){var A;if(!l(E))throw new o(`Invalid AST Node: ${String(E)}`,{node:E});if(p&&O.includes(E)){"function"==typeof f&&f(E,r,y,w,O),w.pop();continue}const i=c(t,u(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,y,w,O):y&&(y[r]=t),e||(E=t)}};T=i.call(t,E,r,y,w,O,s)}if("function"==typeof(null===(A=T)||void 0===A?void 0:A.then))throw new o("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(T===s)break;if(T===a){if(!e){w.pop();continue}}else if(void 0!==T&&(x.push([r,T]),!e)){if(!l(T)){w.pop();continue}E=T}}var _;if(void 0===T&&k&&x.push([r,E]),!e)m={inArray:b,index:v,keys:g,edits:x,prev:m},b=Array.isArray(E),g=b?E:null!==(_=d[u(E)])&&void 0!==_?_:[],v=-1,x=[],y!==i&&void 0!==y&&O.push(y),y=E}while(void 0!==m);return 0!==x.length?x[x.length-1][1]:e};yt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=pt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:c=ht,nodeTypeGetter:u=ft,nodePredicate:l=dt,nodeCloneFn:h=mt,detectCycles:p=!0,detectCyclesCallback:f=null}={})=>{const d=r||{};let m,y,b=Array.isArray(e),g=[e],v=-1,x=[],E=e;const w=[],O=[];do{v+=1;const e=v===g.length;let r;const _=e&&0!==x.length;if(e){if(r=0===O.length?void 0:w.pop(),E=y,y=O.pop(),_)if(b){E=E.slice();let e=0;for(const[t,r]of x){const n=t-e;r===i?(E.splice(n,1),e+=1):E[n]=r}}else{E=h(E);for(const[e,t]of x)E[e]=t}v=m.index,g=m.keys,x=m.edits,b=m.inArray,m=m.prev}else if(y!==i&&void 0!==y){if(r=b?v:g[v],E=y[r],E===i||void 0===E)continue;w.push(r)}let k;if(!Array.isArray(E)){if(!l(E))throw new o(`Invalid AST Node: ${String(E)}`,{node:E});if(p&&O.includes(E)){"function"==typeof f&&f(E,r,y,w,O),w.pop();continue}const i=c(t,u(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,y,w,O):y&&(y[r]=t),e||(E=t)}};k=await i.call(t,E,r,y,w,O,s)}if(k===s)break;if(k===a){if(!e){w.pop();continue}}else if(void 0!==k&&(x.push([r,k]),!e)){if(!l(k)){w.pop();continue}E=k}}var A;if(void 0===k&&_&&x.push([r,E]),!e)m={inArray:b,index:v,keys:g,edits:x,prev:m},b=Array.isArray(E),g=b?E:null!==(A=d[u(E)])&&void 0!==A?A:[],v=-1,x=[],y!==i&&void 0!==y&&O.push(y),y=E}while(void 0!==m);return 0!==x.length?x[x.length-1][1]:e};const bt=class extends o{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const gt=class extends bt{};const vt=class extends bt{},xt=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof O.KeyValuePair){const{key:t,value:s}=e,i=ee(t)?xt(t,n):t,o=ee(s)?xt(s,n):s,a=new O.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof O.ot){const t=e=>xt(e,n),s=[...e].map(t),i=new O.ot(s);return r.set(e,i),i}if(e instanceof O.G6){const t=e=>xt(e,n),s=[...e].map(t),i=new O.G6(s);return r.set(e,i),i}if(ee(e)){const t=Ot(e);if(r.set(e,t),e.content)if(ee(e.content))t.content=xt(e.content,n);else if(e.content instanceof O.KeyValuePair)t.content=xt(e.content,n);else if(Array.isArray(e.content)){const r=e=>xt(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new gt("Value provided to cloneDeep function couldn't be cloned",{value:e})};xt.safe=e=>{try{return xt(e)}catch{return e}};const Et=e=>{const{key:t,value:r}=e;return new O.KeyValuePair(t,r)},wt=e=>{const t=new e.constructor;var r,n;if(t.element=e.element,(e=>!!ee(e)&&Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex))(e)&&(n=e,(r=t).startPositionRow=null==n?void 0:n.startPositionRow,r.startPositionColumn=null==n?void 0:n.startPositionColumn,r.startIndex=null==n?void 0:n.startIndex,r.endPositionRow=null==n?void 0:n.endPositionRow,r.endPositionColumn=null==n?void 0:n.endPositionColumn,r.endIndex=null==n?void 0:n.endIndex),e.meta.length>0&&(t._meta=xt(e.meta)),e.attributes.length>0&&(t._attributes=xt(e.attributes)),ee(e.content)){const r=e.content;t.content=wt(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof O.KeyValuePair?t.content=Et(e.content):t.content=e.content;return t},Ot=e=>{if(e instanceof O.KeyValuePair)return Et(e);if(e instanceof O.ot)return(e=>{const t=[...e];return new O.ot(t)})(e);if(e instanceof O.G6)return(e=>{const t=[...e];return new O.G6(t)})(e);if(ee(e))return wt(e);throw new vt("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ot.safe=e=>{try{return Ot(e)}catch{return e}};const At=e=>ie(e)?"ObjectElement":oe(e)?"ArrayElement":ae(e)?"MemberElement":te(e)?"StringElement":se(e)?"BooleanElement":re(e)?"NumberElement":ne(e)?"NullElement":ce(e)?"LinkElement":ue(e)?"RefElement":void 0,_t=e=>ee(e)?Ot(e):mt(e),kt=at(At,lt),Tt={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const St=(e,t,{keyMap:r=Tt,...n}={})=>yt(e,t,{keyMap:r,nodeTypeGetter:At,nodePredicate:kt,nodeCloneFn:_t,...n});St[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Tt,...n}={})=>yt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:At,nodePredicate:kt,nodeCloneFn:_t,...n});const jt=e=>"string"==typeof(null==e?void 0:e.type)?e.type:At(e),Pt={EphemeralObject:["content"],EphemeralArray:["content"],...Tt},Ct=(e,t,{keyMap:r=Pt,...n}={})=>St(e,t,{keyMap:r,nodeTypeGetter:jt,nodePredicate:He,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Ct[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Pt,...r}={})=>St[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:jt,nodePredicate:He,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Mt=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Nt=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class Rt{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Nt(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Mt(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return te(e.href)?e.href.toValue():""}}const Lt=e=>ee(e)?te(e)||re(e)||se(e)||ne(e)?e.toValue():Ct(e,new Rt):e,It=(e,t)=>{try{const r=Lt(t);return w({path:e,json:r,resultType:"pointer"}).map((e=>ze(t,e)))}catch(r){throw new c(`JSON Path evaluation failed while evaluating "${String(e)}".`,{path:e,element:xt(t),cause:r})}},$t=(e,t)=>{try{const r=Lt(t),n=[];for(const s of e){const e=w({path:s,json:r,resultType:"pointer"}),i=[];for(const r of e){const e=ze(t,r);i.push(e)}Array.isArray(s)?n.push([w.toPathString(s),i]):n.push([s,i])}return n}catch(r){throw new u(`JSON Path evaluation failed while multi-evaluating "${String(e)}".`,{paths:e,element:xt(t),cause:r})}}})(),n})()));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).apidomJsonPath={})}(this,(function(e){"use strict";var t,r,n,i,s,o,a,c,u,l,h,f,p,d,m,y,b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(){if(r)return t;r=1;var e=function(e){return e&&e.Math===Math&&e};return t=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof b&&b)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}function E(){return i?n:(i=1,n=function(e){try{return!!e()}catch(e){return!0}})}function w(){return o?s:(o=1,s=!E()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})))}function O(){if(c)return a;c=1;var e=w(),t=Function.prototype,r=t.apply,n=t.call;return a="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),a}function x(){if(l)return u;l=1;var e=w(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return u=e?n:function(e){return function(){return r.apply(e,arguments)}},u}function A(){if(f)return h;f=1;var e=x(),t=e({}.toString),r=e("".slice);return h=function(e){return r(t(e),8,-1)}}function _(){if(d)return p;d=1;var e=A(),t=x();return p=function(r){if("Function"===e(r))return t(r)}}function k(){if(y)return m;y=1;var e="object"==typeof document&&document.all;return m=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var T,S,j,P,C={};function M(){return S?T:(S=1,T=!E()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function N(){if(P)return j;P=1;var e=w(),t=Function.prototype.call;return j=e?t.bind(t):function(){return t.apply(t,arguments)},j}var R,L,I,$,D,B,V,U,z,F,H,K,q,G,Y,J,X,W,Q,Z,ee,te,re,ne,ie,se,oe,ae,ce,ue,le,he,fe,pe,de,me,ye,be={};function ge(){if(R)return be;R=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return be.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,be}function ve(){return I?L:(I=1,L=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Ee(){if(D)return $;D=1;var e=x(),t=E(),r=A(),n=Object,i=e("".split);return $=t((function(){return!n("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?i(e,""):n(e)}:n}function we(){return V?B:(V=1,B=function(e){return null==e})}function Oe(){if(z)return U;z=1;var e=we(),t=TypeError;return U=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function xe(){if(H)return F;H=1;var e=Ee(),t=Oe();return F=function(r){return e(t(r))}}function Ae(){if(q)return K;q=1;var e=k();return K=function(t){return"object"==typeof t?null!==t:e(t)}}function _e(){return Y?G:(Y=1,G={})}function ke(){if(X)return J;X=1;var e=_e(),t=v(),r=k(),n=function(e){return r(e)?e:void 0};return J=function(r,i){return arguments.length<2?n(e[r])||n(t[r]):e[r]&&e[r][i]||t[r]&&t[r][i]},J}function Te(){return Q?W:(Q=1,W=x()({}.isPrototypeOf))}function Se(){if(ee)return Z;ee=1;var e=v().navigator,t=e&&e.userAgent;return Z=t?String(t):""}function je(){if(re)return te;re=1;var e,t,r=v(),n=Se(),i=r.process,s=r.Deno,o=i&&i.versions||s&&s.version,a=o&&o.v8;return a&&(t=(e=a.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),te=t}function Pe(){if(ie)return ne;ie=1;var e=je(),t=E(),r=v().String;return ne=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function Ce(){return oe?se:(oe=1,se=Pe()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Me(){if(ce)return ae;ce=1;var e=ke(),t=k(),r=Te(),n=Object;return ae=Ce()?function(e){return"symbol"==typeof e}:function(i){var s=e("Symbol");return t(s)&&r(s.prototype,n(i))}}function Ne(){if(le)return ue;le=1;var e=String;return ue=function(t){try{return e(t)}catch(e){return"Object"}}}function Re(){if(fe)return he;fe=1;var e=k(),t=Ne(),r=TypeError;return he=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Le(){if(de)return pe;de=1;var e=Re(),t=we();return pe=function(r,n){var i=r[n];return t(i)?void 0:e(i)}}function Ie(){if(ye)return me;ye=1;var e=N(),t=k(),r=Ae(),n=TypeError;return me=function(i,s){var o,a;if("string"===s&&t(o=i.toString)&&!r(a=e(o,i)))return a;if(t(o=i.valueOf)&&!r(a=e(o,i)))return a;if("string"!==s&&t(o=i.toString)&&!r(a=e(o,i)))return a;throw new n("Can't convert object to primitive value")}}var $e,De,Be,Ve,Ue,ze,Fe,He,Ke,qe,Ge,Ye,Je,Xe,We,Qe,Ze,et,tt,rt,nt,it,st,ot,at,ct,ut,lt,ht={exports:{}};function ft(){return De?$e:(De=1,$e=!0)}function pt(){if(Ve)return Be;Ve=1;var e=v(),t=Object.defineProperty;return Be=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function dt(){if(Ue)return ht.exports;Ue=1;var e=ft(),t=v(),r=pt(),n="__core-js_shared__",i=ht.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),ht.exports}function mt(){if(Fe)return ze;Fe=1;var e=dt();return ze=function(t,r){return e[t]||(e[t]=r||{})}}function yt(){if(Ke)return He;Ke=1;var e=Oe(),t=Object;return He=function(r){return t(e(r))}}function bt(){if(Ge)return qe;Ge=1;var e=x(),t=yt(),r=e({}.hasOwnProperty);return qe=Object.hasOwn||function(e,n){return r(t(e),n)}}function gt(){if(Je)return Ye;Je=1;var e=x(),t=0,r=Math.random(),n=e(1..toString);return Ye=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function vt(){if(We)return Xe;We=1;var e=v(),t=mt(),r=bt(),n=gt(),i=Pe(),s=Ce(),o=e.Symbol,a=t("wks"),c=s?o.for||o:o&&o.withoutSetter||n;return Xe=function(e){return r(a,e)||(a[e]=i&&r(o,e)?o[e]:c("Symbol."+e)),a[e]}}function Et(){if(Ze)return Qe;Ze=1;var e=N(),t=Ae(),r=Me(),n=Le(),i=Ie(),s=TypeError,o=vt()("toPrimitive");return Qe=function(a,c){if(!t(a)||r(a))return a;var u,l=n(a,o);if(l){if(void 0===c&&(c="default"),u=e(l,a,c),!t(u)||r(u))return u;throw new s("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(a,c)}}function wt(){if(tt)return et;tt=1;var e=Et(),t=Me();return et=function(r){var n=e(r,"string");return t(n)?n:n+""}}function Ot(){if(nt)return rt;nt=1;var e=v(),t=Ae(),r=e.document,n=t(r)&&t(r.createElement);return rt=function(e){return n?r.createElement(e):{}}}function xt(){if(st)return it;st=1;var e=M(),t=E(),r=Ot();return it=!e&&!t((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))}function At(){if(ot)return C;ot=1;var e=M(),t=N(),r=ge(),n=ve(),i=xe(),s=wt(),o=bt(),a=xt(),c=Object.getOwnPropertyDescriptor;return C.f=e?c:function(e,u){if(e=i(e),u=s(u),a)try{return c(e,u)}catch(e){}if(o(e,u))return n(!t(r.f,e,u),e[u])},C}function _t(){if(ct)return at;ct=1;var e=E(),t=k(),r=/#|\.prototype\./,n=function(r,n){var c=s[i(r)];return c===a||c!==o&&(t(n)?e(n):!!n)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=n.data={},o=n.NATIVE="N",a=n.POLYFILL="P";return at=n}function kt(){if(lt)return ut;lt=1;var e=_(),t=Re(),r=w(),n=e(e.bind);return ut=function(e,i){return t(e),void 0===i?e:r?n(e,i):function(){return e.apply(i,arguments)}},ut}var Tt,St,jt,Pt,Ct,Mt,Nt,Rt,Lt,It,$t,Dt,Bt,Vt,Ut,zt={};function Ft(){return St?Tt:(St=1,Tt=M()&&E()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function Ht(){if(Pt)return jt;Pt=1;var e=Ae(),t=String,r=TypeError;return jt=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Kt(){if(Ct)return zt;Ct=1;var e=M(),t=xt(),r=Ft(),n=Ht(),i=wt(),s=TypeError,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",u="configurable",l="writable";return zt.f=e?r?function(e,t,r){if(n(e),t=i(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&l in r&&!r[l]){var s=a(e,t);s&&s[l]&&(e[t]=r.value,r={configurable:u in r?r[u]:s[u],enumerable:c in r?r[c]:s[c],writable:!1})}return o(e,t,r)}:o:function(e,r,a){if(n(e),r=i(r),n(a),t)try{return o(e,r,a)}catch(e){}if("get"in a||"set"in a)throw new s("Accessors not supported");return"value"in a&&(e[r]=a.value),e},zt}function qt(){if(Nt)return Mt;Nt=1;var e=M(),t=Kt(),r=ve();return Mt=e?function(e,n,i){return t.f(e,n,r(1,i))}:function(e,t,r){return e[t]=r,e}}function Gt(){if(Lt)return Rt;Lt=1;var e=v(),t=O(),r=_(),n=k(),i=At().f,s=_t(),o=_e(),a=kt(),c=qt(),u=bt(),l=function(e){var r=function(n,i,s){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,s)}return t(e,this,arguments)};return r.prototype=e.prototype,r};return Rt=function(t,h){var f,p,d,m,y,b,g,v,E,w=t.target,O=t.global,x=t.stat,A=t.proto,_=O?e:x?e[w]:e[w]&&e[w].prototype,k=O?o:o[w]||c(o,w,{})[w],T=k.prototype;for(m in h)p=!(f=s(O?m:w+(x?".":"#")+m,t.forced))&&_&&u(_,m),b=k[m],p&&(g=t.dontCallGetSet?(E=i(_,m))&&E.value:_[m]),y=p&&g?g:h[m],(f||A||typeof b!=typeof y)&&(v=t.bind&&p?a(y,e):t.wrap&&p?l(y):A&&n(y)?r(y):y,(t.sham||y&&y.sham||b&&b.sham)&&c(v,"sham",!0),c(k,m,v),A&&(u(o,d=w+"Prototype")||c(o,d,{}),c(o[d],m,y),t.real&&T&&(f||!T[m])&&c(T,m,y)))}}function Yt(){if($t)return It;$t=1;var e={};return e[vt()("toStringTag")]="z",It="[object z]"===String(e)}function Jt(){if(Bt)return Dt;Bt=1;var e=Yt(),t=k(),r=A(),n=vt()("toStringTag"),i=Object,s="Arguments"===r(function(){return arguments}());return Dt=e?r:function(e){var o,a,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(o=i(e),n))?a:s?r(o):"Object"===(c=r(o))&&t(o.callee)?"Arguments":c}}function Xt(){if(Ut)return Vt;Ut=1;var e=Jt(),t=String;return Vt=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}var Wt,Qt,Zt,er,tr,rr,nr,ir,sr,or,ar,cr,ur,lr,hr={},fr={},pr={};function dr(){if(Qt)return Wt;Qt=1;var e=mt(),t=gt(),r=e("keys");return Wt=function(e){return r[e]||(r[e]=t(e))}}function mr(){return er?Zt:(er=1,Zt=!E()((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})))}function yr(){if(rr)return tr;rr=1;var e=bt(),t=k(),r=yt(),n=dr(),i=mr(),s=n("IE_PROTO"),o=Object,a=o.prototype;return tr=i?o.getPrototypeOf:function(n){var i=r(n);if(e(i,s))return i[s];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof o?a:null}}function br(){if(ir)return nr;ir=1;var e=x(),t=Re();return nr=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch(e){}}}function gr(){if(or)return sr;or=1;var e=Ae();return sr=function(t){return e(t)||null===t}}function vr(){if(cr)return ar;cr=1;var e=gr(),t=String,r=TypeError;return ar=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function Er(){if(lr)return ur;lr=1;var e=br(),t=Ae(),r=Oe(),n=vr();return ur=Object.setPrototypeOf||("__proto__"in{}?function(){var i,s=!1,o={};try{(i=e(Object.prototype,"__proto__","set"))(o,[]),s=o instanceof Array}catch(e){}return function(e,o){return r(e),n(o),t(e)?(s?i(e,o):e.__proto__=o,e):e}}():void 0)}var wr,Or,xr,Ar,_r,kr,Tr,Sr,jr,Pr,Cr,Mr,Nr,Rr,Lr,Ir,$r,Dr,Br,Vr={};function Ur(){if(Or)return wr;Or=1;var e=Math.ceil,t=Math.floor;return wr=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}function zr(){if(Ar)return xr;Ar=1;var e=Ur();return xr=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function Fr(){if(kr)return _r;kr=1;var e=zr(),t=Math.max,r=Math.min;return _r=function(n,i){var s=e(n);return s<0?t(s+i,0):r(s,i)},_r}function Hr(){if(Sr)return Tr;Sr=1;var e=zr(),t=Math.min;return Tr=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Kr(){if(Pr)return jr;Pr=1;var e=Hr();return jr=function(t){return e(t.length)}}function qr(){if(Mr)return Cr;Mr=1;var e=xe(),t=Fr(),r=Kr(),n=function(n){return function(i,s,o){var a=e(i),c=r(a);if(0===c)return!n&&-1;var u,l=t(o,c);if(n&&s!=s){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((n||l in a)&&a[l]===s)return n||l||0;return!n&&-1}};return Cr={includes:n(!0),indexOf:n(!1)}}function Gr(){return Rr?Nr:(Rr=1,Nr={})}function Yr(){if(Ir)return Lr;Ir=1;var e=x(),t=bt(),r=xe(),n=qr().indexOf,i=Gr(),s=e([].push);return Lr=function(e,o){var a,c=r(e),u=0,l=[];for(a in c)!t(i,a)&&t(c,a)&&s(l,a);for(;o.length>u;)t(c,a=o[u++])&&(~n(l,a)||s(l,a));return l}}function Jr(){return Dr?$r:(Dr=1,$r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Xr(){if(Br)return Vr;Br=1;var e=Yr(),t=Jr().concat("length","prototype");return Vr.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Vr}var Wr,Qr,Zr,en,tn,rn={};function nn(){return Wr||(Wr=1,rn.f=Object.getOwnPropertySymbols),rn}function sn(){if(Zr)return Qr;Zr=1;var e=ke(),t=x(),r=Xr(),n=nn(),i=Ht(),s=t([].concat);return Qr=e("Reflect","ownKeys")||function(e){var t=r.f(i(e)),o=n.f;return o?s(t,o(e)):t},Qr}function on(){if(tn)return en;tn=1;var e=bt(),t=sn(),r=At(),n=Kt();return en=function(i,s,o){for(var a=t(s),c=n.f,u=r.f,l=0;l<a.length;l++){var h=a[l];e(i,h)||o&&e(o,h)||c(i,h,u(s,h))}},en}var an,cn,un,ln,hn,fn,pn,dn,mn,yn,bn,gn,vn,En,wn,On,xn,An,_n,kn,Tn,Sn,jn,Pn,Cn,Mn,Nn,Rn,Ln,In,$n,Dn,Bn={};function Vn(){if(cn)return an;cn=1;var e=Yr(),t=Jr();return an=Object.keys||function(r){return e(r,t)}}function Un(){if(un)return Bn;un=1;var e=M(),t=Ft(),r=Kt(),n=Ht(),i=xe(),s=Vn();return Bn.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var o,a=i(t),c=s(t),u=c.length,l=0;u>l;)r.f(e,o=c[l++],a[o]);return e},Bn}function zn(){return hn?ln:(hn=1,ln=ke()("document","documentElement"))}function Fn(){if(pn)return fn;pn=1;var e,t=Ht(),r=Un(),n=Jr(),i=Gr(),s=zn(),o=Ot(),a="prototype",c="script",u=dr()("IE_PROTO"),l=function(){},h=function(e){return"<"+c+">"+e+"</"+c+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,i;p="undefined"!=typeof document?document.domain&&e?f(e):(r=o("iframe"),i="java"+c+":",r.style.display="none",s.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):f(e);for(var u=n.length;u--;)delete p[a][n[u]];return p()};return i[u]=!0,fn=Object.create||function(e,n){var i;return null!==e?(l[a]=t(e),i=new l,l[a]=null,i[u]=e):i=p(),void 0===n?i:r.f(i,n)}}function Hn(){if(mn)return dn;mn=1;var e=Ae(),t=qt();return dn=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)}}function Kn(){if(bn)return yn;bn=1;var e=Error,t=x()("".replace),r=String(new e("zxcasd").stack),n=/\n\s*at [^:]*:[^\n]*/,i=n.test(r);return yn=function(r,s){if(i&&"string"==typeof r&&!e.prepareStackTrace)for(;s--;)r=t(r,n,"");return r}}function qn(){if(vn)return gn;vn=1;var e=E(),t=ve();return gn=!e((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)}))}function Gn(){if(wn)return En;wn=1;var e=qt(),t=Kn(),r=qn(),n=Error.captureStackTrace;return En=function(i,s,o,a){r&&(n?n(i,s):e(i,"stack",t(o,a)))}}function Yn(){return xn?On:(xn=1,On={})}function Jn(){if(_n)return An;_n=1;var e=vt(),t=Yn(),r=e("iterator"),n=Array.prototype;return An=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Xn(){if(Tn)return kn;Tn=1;var e=Jt(),t=Le(),r=we(),n=Yn(),i=vt()("iterator");return kn=function(s){if(!r(s))return t(s,i)||t(s,"@@iterator")||n[e(s)]}}function Wn(){if(jn)return Sn;jn=1;var e=N(),t=Re(),r=Ht(),n=Ne(),i=Xn(),s=TypeError;return Sn=function(o,a){var c=arguments.length<2?i(o):a;if(t(c))return r(e(c,o));throw new s(n(o)+" is not iterable")},Sn}function Qn(){if(Cn)return Pn;Cn=1;var e=N(),t=Ht(),r=Le();return Pn=function(n,i,s){var o,a;t(n);try{if(!(o=r(n,"return"))){if("throw"===i)throw s;return s}o=e(o,n)}catch(e){a=!0,o=e}if("throw"===i)throw s;if(a)throw o;return t(o),s}}function Zn(){if(Nn)return Mn;Nn=1;var e=kt(),t=N(),r=Ht(),n=Ne(),i=Jn(),s=Kr(),o=Te(),a=Wn(),c=Xn(),u=Qn(),l=TypeError,h=function(e,t){this.stopped=e,this.result=t},f=h.prototype;return Mn=function(p,d,m){var y,b,g,v,E,w,O,x=m&&m.that,A=!(!m||!m.AS_ENTRIES),_=!(!m||!m.IS_RECORD),k=!(!m||!m.IS_ITERATOR),T=!(!m||!m.INTERRUPTED),S=e(d,x),j=function(e){return y&&u(y,"normal",e),new h(!0,e)},P=function(e){return A?(r(e),T?S(e[0],e[1],j):S(e[0],e[1])):T?S(e,j):S(e)};if(_)y=p.iterator;else if(k)y=p;else{if(!(b=c(p)))throw new l(n(p)+" is not iterable");if(i(b)){for(g=0,v=s(p);v>g;g++)if((E=P(p[g]))&&o(f,E))return E;return new h(!1)}y=a(p,b)}for(w=_?p.next:y.next;!(O=t(w,y)).done;){try{E=P(O.value)}catch(e){u(y,"throw",e)}if("object"==typeof E&&E&&o(f,E))return E}return new h(!1)},Mn}function ei(){if(Ln)return Rn;Ln=1;var e=Xt();return Rn=function(t,r){return void 0===t?arguments.length<2?"":r:e(t)},Rn}function ti(){return $n||($n=1,function(){if(In)return pr;In=1;var e=Gt(),t=Te(),r=yr(),n=Er(),i=on(),s=Fn(),o=qt(),a=ve(),c=Hn(),u=Gn(),l=Zn(),h=ei(),f=vt()("toStringTag"),p=Error,d=[].push,m=function(e,i){var a,b=t(y,this);n?a=n(new p,b?r(this):y):(a=b?this:s(y),o(a,f,"Error")),void 0!==i&&o(a,"message",h(i)),u(a,m,a.stack,1),arguments.length>2&&c(a,arguments[2]);var g=[];return l(e,d,{that:g}),o(a,"errors",g),a};n?n(m,p):i(m,p,{name:!0});var y=m.prototype=s(p.prototype,{constructor:a(1,m),message:a(1,""),name:a(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:m})}()),fr}function ri(){return Dn||(Dn=1,ti()),hr}var ni,ii,si,oi,ai,ci,ui,li={};function hi(){if(ii)return ni;ii=1;var e=Kt().f;return ni=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(e){r[n]=e}})}}function fi(){if(oi)return si;oi=1;var e=k(),t=Ae(),r=Er();return si=function(n,i,s){var o,a;return r&&e(o=i.constructor)&&o!==s&&t(a=o.prototype)&&a!==s.prototype&&r(n,a),n}}function pi(){if(ci)return ai;ci=1;var e=ke(),t=bt(),r=qt(),n=Te(),i=Er(),s=on(),o=hi(),a=fi(),c=ei(),u=Hn(),l=Gn(),h=M(),f=ft();return ai=function(p,d,m,y){var b="stackTraceLimit",g=y?2:1,v=p.split("."),E=v[v.length-1],w=e.apply(null,v);if(w){var O=w.prototype;if(!f&&t(O,"cause")&&delete O.cause,!m)return w;var x=e("Error"),A=d((function(e,t){var i=c(y?t:e,void 0),s=y?new w(e):new w;return void 0!==i&&r(s,"message",i),l(s,A,s.stack,2),this&&n(O,this)&&a(s,this,A),arguments.length>g&&u(s,arguments[g]),s}));if(A.prototype=O,"Error"!==E?i?i(A,x):s(A,x,{name:!0}):h&&b in w&&(o(A,w,b),o(A,w,"prepareStackTrace")),s(A,w),!f)try{O.name!==E&&r(O,"name",E),O.constructor=A}catch(e){}return A}},ai}var di,mi,yi,bi,gi,vi,Ei,wi,Oi,xi,Ai,_i,ki,Ti,Si,ji,Pi,Ci,Mi,Ni,Ri,Li,Ii,$i,Di,Bi={};function Vi(){return yi?mi:(yi=1,mi=function(){})}function Ui(){if(gi)return bi;gi=1;var e=v(),t=k(),r=e.WeakMap;return bi=t(r)&&/native code/.test(String(r))}function zi(){if(Ei)return vi;Ei=1;var e,t,r,n=Ui(),i=v(),s=Ae(),o=qt(),a=bt(),c=dt(),u=dr(),l=Gr(),h="Object already initialized",f=i.TypeError,p=i.WeakMap;if(n||c.state){var d=c.state||(c.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,e=function(e,t){if(d.has(e))throw new f(h);return t.facade=e,d.set(e,t),t},t=function(e){return d.get(e)||{}},r=function(e){return d.has(e)}}else{var m=u("state");l[m]=!0,e=function(e,t){if(a(e,m))throw new f(h);return t.facade=e,o(e,m,t),t},t=function(e){return a(e,m)?e[m]:{}},r=function(e){return a(e,m)}}return vi={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!s(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function Fi(){if(Oi)return wi;Oi=1;var e=M(),t=bt(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),s=i&&"something"===function(){}.name,o=i&&(!e||e&&n(r,"name").configurable);return wi={EXISTS:i,PROPER:s,CONFIGURABLE:o}}function Hi(){if(Ai)return xi;Ai=1;var e=qt();return xi=function(t,r,n,i){return i&&i.enumerable?t[r]=n:e(t,r,n),t}}function Ki(){if(ki)return _i;ki=1;var e,t,r,n=E(),i=k(),s=Ae(),o=Fn(),a=yr(),c=Hi(),u=vt(),l=ft(),h=u("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=a(a(r)))!==Object.prototype&&(e=t):f=!0),!s(e)||n((function(){var t={};return e[h].call(t)!==t}))?e={}:l&&(e=o(e)),i(e[h])||c(e,h,(function(){return this})),_i={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function qi(){if(Si)return Ti;Si=1;var e=Yt(),t=Jt();return Ti=e?{}.toString:function(){return"[object "+t(this)+"]"}}function Gi(){if(Pi)return ji;Pi=1;var e=Yt(),t=Kt().f,r=qt(),n=bt(),i=qi(),s=vt()("toStringTag");return ji=function(o,a,c,u){var l=c?o:o&&o.prototype;l&&(n(l,s)||t(l,s,{configurable:!0,value:a}),u&&!e&&r(l,"toString",i))}}function Yi(){if(Mi)return Ci;Mi=1;var e=Ki().IteratorPrototype,t=Fn(),r=ve(),n=Gi(),i=Yn(),s=function(){return this};return Ci=function(o,a,c,u){var l=a+" Iterator";return o.prototype=t(e,{next:r(+!u,c)}),n(o,l,!1,!0),i[l]=s,o}}function Ji(){if(Ri)return Ni;Ri=1;var e=Gt(),t=N(),r=ft(),n=Fi(),i=k(),s=Yi(),o=yr(),a=Er(),c=Gi(),u=qt(),l=Hi(),h=vt(),f=Yn(),p=Ki(),d=n.PROPER,m=n.CONFIGURABLE,y=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,g=h("iterator"),v="keys",E="values",w="entries",O=function(){return this};return Ni=function(n,h,p,x,A,_,k){s(p,h,x);var T,S,j,P=function(e){if(e===A&&L)return L;if(!b&&e&&e in N)return N[e];switch(e){case v:case E:case w:return function(){return new p(this,e)}}return function(){return new p(this)}},C=h+" Iterator",M=!1,N=n.prototype,R=N[g]||N["@@iterator"]||A&&N[A],L=!b&&R||P(A),I="Array"===h&&N.entries||R;if(I&&(T=o(I.call(new n)))!==Object.prototype&&T.next&&(r||o(T)===y||(a?a(T,y):i(T[g])||l(T,g,O)),c(T,C,!0,!0),r&&(f[C]=O)),d&&A===E&&R&&R.name!==E&&(!r&&m?u(N,"name",E):(M=!0,L=function(){return t(R,this)})),A)if(S={values:P(E),keys:_?L:P(v),entries:P(w)},k)for(j in S)(b||M||!(j in N))&&l(N,j,S[j]);else e({target:h,proto:!0,forced:b||M},S);return r&&!k||N[g]===L||l(N,g,L,{name:A}),f[h]=L,S}}function Xi(){return Ii?Li:(Ii=1,Li=function(e,t){return{value:e,done:t}})}function Wi(){if(Di)return $i;Di=1;var e=xe(),t=Vi(),r=Yn(),n=zi(),i=Kt().f,s=Ji(),o=Xi(),a=ft(),c=M(),u="Array Iterator",l=n.set,h=n.getterFor(u);$i=s(Array,"Array",(function(t,r){l(this,{type:u,target:e(t),index:0,kind:r})}),(function(){var e=h(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,o(void 0,!0);switch(e.kind){case"keys":return o(r,!1);case"values":return o(t[r],!1)}return o([r,t[r]],!1)}),"values");var f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!a&&c&&"values"!==f.name)try{i(f,"name",{value:"values"})}catch(e){}return $i}var Qi,Zi,es,ts,rs,ns={};function is(){if(Zi)return Qi;Zi=1;var e=x(),t=zr(),r=Xt(),n=Oe(),i=e("".charAt),s=e("".charCodeAt),o=e("".slice),a=function(e){return function(a,c){var u,l,h=r(n(a)),f=t(c),p=h.length;return f<0||f>=p?e?"":void 0:(u=s(h,f))<55296||u>56319||f+1===p||(l=s(h,f+1))<56320||l>57343?e?i(h,f):u:e?o(h,f,f+2):l-56320+(u-55296<<10)+65536}};return Qi={codeAt:a(!1),charAt:a(!0)}}function ss(){return rs?ts:(rs=1,function(){if(ui)return li;ui=1;var e=Gt(),t=v(),r=O(),n=pi(),i="WebAssembly",s=t[i],o=7!==new Error("e",{cause:7}).cause,a=function(t,r){var i={};i[t]=n(t,r,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,r){if(s&&s[t]){var a={};a[t]=n(i+"."+t,r,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},a)}};a("Error",(function(e){return function(t){return r(e,this,arguments)}})),a("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),a("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),a("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),a("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),a("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),a("URIError",(function(e){return function(t){return r(e,this,arguments)}})),c("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),c("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),c("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))}(),ti(),function(){if(di)return Bi;di=1;var e=Gt(),t=ke(),r=O(),n=E(),i=pi(),s="AggregateError",o=t(s),a=!n((function(){return 1!==o([1]).errors[0]}))&&n((function(){return 7!==o([1],s,{cause:7}).cause}));e({global:!0,constructor:!0,arity:2,forced:a},{AggregateError:i(s,(function(e){return function(t,n){return r(e,this,arguments)}}),a,!0)})}(),Wi(),function(){if(es)return ns;es=1;var e=is().charAt,t=Xt(),r=zi(),n=Ji(),i=Xi(),s="String Iterator",o=r.set,a=r.getterFor(s);n(String,"String",(function(e){o(this,{type:s,string:t(e),index:0})}),(function(){var t,r=a(this),n=r.string,s=r.index;return s>=n.length?i(void 0,!0):(t=e(n,s),r.index+=t.length,i(t,!1))}))}(),ts=_e().AggregateError)}var os,as,cs,us,ls,hs,fs,ps,ds,ms,ys,bs,gs,vs={};function Es(){return as?os:(as=1,os={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})}function ws(){if(ls)return us;ls=1,ri();var e=ss();return function(){if(cs)return vs;cs=1,Wi();var e=Es(),t=v(),r=Gi(),n=Yn();for(var i in e)r(t[i],i),n[i]=n.Array}(),us=e}function Os(){return fs?hs:(fs=1,hs=ws())}function xs(){return ds?ps:(ds=1,ri(),ps=Os())}function As(){return ys?ms:(ys=1,ms=xs())}const _s=g(gs?bs:(gs=1,bs=As()));class ks extends _s{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Ts extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ks,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class Ss extends Ts{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}class js extends Ss{}var Ps=Object.defineProperty,Cs=(e,t,r)=>((e,t,r)=>t in e?Ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class Ms extends js{constructor(e,t){super(e,t),Cs(this,"path"),Cs(this,"element"),void 0!==t&&(this.path=t.path,this.element=t.element)}}var Ns=Object.defineProperty,Rs=(e,t,r)=>((e,t,r)=>t in e?Ns(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class Ls extends js{constructor(e,t){super(e,t),Rs(this,"paths"),Rs(this,"element"),void 0!==t&&(this.paths=t.paths,this.element=t.element)}}class Is{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+Is.version}static addUnaryOp(e){return Is.max_unop_len=Math.max(e.length,Is.max_unop_len),Is.unary_ops[e]=1,Is}static addBinaryOp(e,t,r){return Is.max_binop_len=Math.max(e.length,Is.max_binop_len),Is.binary_ops[e]=t,r?Is.right_associative.add(e):Is.right_associative.delete(e),Is}static addIdentifierChar(e){return Is.additional_identifier_chars.add(e),Is}static addLiteral(e,t){return Is.literals[e]=t,Is}static removeUnaryOp(e){return delete Is.unary_ops[e],e.length===Is.max_unop_len&&(Is.max_unop_len=Is.getMaxKeyLen(Is.unary_ops)),Is}static removeAllUnaryOps(){return Is.unary_ops={},Is.max_unop_len=0,Is}static removeIdentifierChar(e){return Is.additional_identifier_chars.delete(e),Is}static removeBinaryOp(e){return delete Is.binary_ops[e],e.length===Is.max_binop_len&&(Is.max_binop_len=Is.getMaxKeyLen(Is.binary_ops)),Is.right_associative.delete(e),Is}static removeAllBinaryOps(){return Is.binary_ops={},Is.max_binop_len=0,Is}static removeLiteral(e){return delete Is.literals[e],Is}static removeAllLiterals(){return Is.literals={},Is}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new Is(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return Is.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!Is.binary_ops[String.fromCharCode(e)]||Is.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return Is.isIdentifierStart(e)||Is.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(Is.hooks[e]){const r={context:this,node:t};return Is.hooks.run(e,r),r.node}return t}searchHook(e){if(Is.hooks[e]){const t={context:this};return Is.hooks[e].find((function(e){return e.call(t.context,t),t.node})),t.node}}gobbleSpaces(){let e=this.code;for(;e===Is.SPACE_CODE||e===Is.TAB_CODE||e===Is.LF_CODE||e===Is.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:Is.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,r,n=[];for(;this.index<this.expr.length;)if(t=this.code,t===Is.SEMCOL_CODE||t===Is.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())n.push(r);else if(this.index<this.expr.length){if(t===e)break;this.throwError('Unexpected "'+this.char+'"')}return n}gobbleExpression(){const e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,Is.max_binop_len),t=e.length;for(;t>0;){if(Is.binary_ops.hasOwnProperty(e)&&(!Is.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!Is.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=t,e;e=e.substr(0,--t)}return!1}gobbleBinaryExpression(){let e,t,r,n,i,s,o,a,c;if(s=this.gobbleToken(),!s)return s;if(t=this.gobbleBinaryOp(),!t)return s;for(i={value:t,prec:Is.binaryPrecedence(t),right_a:Is.right_associative.has(t)},o=this.gobbleToken(),o||this.throwError("Expected expression after "+t),n=[s,i,o];t=this.gobbleBinaryOp();){if(r=Is.binaryPrecedence(t),0===r){this.index-=t.length;break}i={value:t,prec:r,right_a:Is.right_associative.has(t)},c=t;const a=e=>i.right_a&&e.right_a?r>e.prec:r<=e.prec;for(;n.length>2&&a(n[n.length-2]);)o=n.pop(),t=n.pop().value,s=n.pop(),e={type:Is.BINARY_EXP,operator:t,left:s,right:o},n.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+c),n.push(i,e)}for(a=n.length-1,e=n[a];a>1;)e={type:Is.BINARY_EXP,operator:n[a-1].value,left:n[a-2],right:e},a-=2;return e}gobbleToken(){let e,t,r,n;if(this.gobbleSpaces(),n=this.searchHook("gobble-token"),n)return this.runHook("after-token",n);if(e=this.code,Is.isDecimalDigit(e)||e===Is.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===Is.SQUOTE_CODE||e===Is.DQUOTE_CODE)n=this.gobbleStringLiteral();else if(e===Is.OBRACK_CODE)n=this.gobbleArray();else{for(t=this.expr.substr(this.index,Is.max_unop_len),r=t.length;r>0;){if(Is.unary_ops.hasOwnProperty(t)&&(!Is.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!Is.isIdentifierPart(this.expr.charCodeAt(this.index+t.length)))){this.index+=r;const e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:Is.UNARY_EXP,operator:t,argument:e,prefix:!0})}t=t.substr(0,--r)}Is.isIdentifierStart(e)?(n=this.gobbleIdentifier(),Is.literals.hasOwnProperty(n.name)?n={type:Is.LITERAL,value:Is.literals[n.name],raw:n.name}:n.name===Is.this_str&&(n={type:Is.THIS_EXP})):e===Is.OPAREN_CODE&&(n=this.gobbleGroup())}return n?(n=this.gobbleTokenProperty(n),this.runHook("after-token",n)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let t=this.code;for(;t===Is.PERIOD_CODE||t===Is.OBRACK_CODE||t===Is.OPAREN_CODE||t===Is.QUMARK_CODE;){let r;if(t===Is.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==Is.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),t=this.code}this.index++,t===Is.OBRACK_CODE?((e={type:Is.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),t=this.code,t!==Is.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):t===Is.OPAREN_CODE?e={type:Is.CALL_EXP,arguments:this.gobbleArguments(Is.CPAREN_CODE),callee:e}:(t===Is.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),e={type:Is.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),r&&(e.optional=!0),this.gobbleSpaces(),t=this.code}return e}gobbleNumericLiteral(){let e,t,r="";for(;Is.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(this.code===Is.PERIOD_CODE)for(r+=this.expr.charAt(this.index++);Is.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(e=this.char,"e"===e||"E"===e){for(r+=this.expr.charAt(this.index++),e=this.char,"+"!==e&&"-"!==e||(r+=this.expr.charAt(this.index++));Is.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);Is.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")")}return t=this.code,Is.isIdentifierStart(t)?this.throwError("Variable names cannot start with a number ("+r+this.char+")"):(t===Is.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===Is.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:Is.LITERAL,value:parseFloat(r),raw:r}}gobbleStringLiteral(){let e="";const t=this.index,r=this.expr.charAt(this.index++);let n=!1;for(;this.index<this.expr.length;){let t=this.expr.charAt(this.index++);if(t===r){n=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++),t){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return n||this.throwError('Unclosed quote after "'+e+'"'),{type:Is.LITERAL,value:e,raw:this.expr.substring(t,this.index)}}gobbleIdentifier(){let e=this.code,t=this.index;for(Is.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,Is.isIdentifierPart(e));)this.index++;return{type:Is.IDENTIFIER,name:this.expr.slice(t,this.index)}}gobbleArguments(e){const t=[];let r=!1,n=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let i=this.code;if(i===e){r=!0,this.index++,e===Is.CPAREN_CODE&&n&&n>=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(i===Is.COMMA_CODE){if(this.index++,n++,n!==t.length)if(e===Is.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===Is.CBRACK_CODE)for(let e=t.length;e<n;e++)t.push(null)}else if(t.length!==n&&0!==n)this.throwError("Expected comma");else{const e=this.gobbleExpression();e&&e.type!==Is.COMPOUND||this.throwError("Expected comma"),t.push(e)}}return r||this.throwError("Expected "+String.fromCharCode(e)),t}gobbleGroup(){this.index++;let e=this.gobbleExpressions(Is.CPAREN_CODE);if(this.code===Is.CPAREN_CODE)return this.index++,1===e.length?e[0]:!!e.length&&{type:Is.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:Is.ARRAY_EXP,elements:this.gobbleArguments(Is.CBRACK_CODE)}}}const $s=new class{add(e,t,r){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][r?"unshift":"push"](t)}),this)}run(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}};Object.assign(Is,{hooks:$s,plugins:new class{constructor(e){this.jsep=e,this.registered={}}register(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach((e=>{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}(Is),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),Is.max_unop_len=Is.getMaxKeyLen(Is.unary_ops),Is.max_binop_len=Is.getMaxKeyLen(Is.binary_ops);const Ds=e=>new Is(e).parse(),Bs=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(Is).filter((e=>!Bs.includes(e)&&void 0===Ds[e])).forEach((e=>{Ds[e]=Is[e]})),Ds.Jsep=Is;var Vs={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:i},r.operator&&e.binary_ops[r.operator]<=.9){let n=r;for(;n.right.operator&&e.binary_ops[n.right.operator]<=.9;)n=n.right;t.node.test=n.right,n.right=t.node,t.node=r}}else this.throwError("Expected :")}}))}};Ds.plugins.register(Vs);var Us={name:"regex",init(e){e.hooks.add("gobble-token",(function(t){if(47===this.code){const r=++this.index;let n=!1;for(;this.index<this.expr.length;){if(47===this.code&&!n){const n=this.expr.slice(r,this.index);let i,s="";for(;++this.index<this.expr.length;){const e=this.code;if(!(e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;s+=this.char}try{i=new RegExp(n,s)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:i,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?n=!0:n&&this.code===e.CBRACK_CODE&&(n=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}}))}};const zs={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function r(e){zs.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",r(e.left),r(e.right)):e.operator||Object.values(e).forEach((e=>{e&&"object"==typeof e&&r(e)}))}zs.assignmentOperators.forEach((t=>e.addBinaryOp(t,zs.assignmentPrecedence,!0))),e.hooks.add("gobble-token",(function(e){const r=this.code;zs.updateOperators.some((e=>e===r&&e===this.expr.charCodeAt(this.index+1)))&&(this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))})),e.hooks.add("after-token",(function(e){if(e.node){const r=this.code;zs.updateOperators.some((e=>e===r&&e===this.expr.charCodeAt(this.index+1)))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:e.node,prefix:!1})}})),e.hooks.add("after-expression",(function(e){e.node&&r(e.node)}))}};Ds.plugins.register(Us,zs),Ds.addUnaryOp("typeof"),Ds.addLiteral("null",null),Ds.addLiteral("undefined",void 0);const Fs=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),Hs={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return Hs.evalBinaryExpression(e,t);case"Compound":return Hs.evalCompound(e,t);case"ConditionalExpression":return Hs.evalConditionalExpression(e,t);case"Identifier":return Hs.evalIdentifier(e,t);case"Literal":return Hs.evalLiteral(e,t);case"MemberExpression":return Hs.evalMemberExpression(e,t);case"UnaryExpression":return Hs.evalUnaryExpression(e,t);case"ArrayExpression":return Hs.evalArrayExpression(e,t);case"CallExpression":return Hs.evalCallExpression(e,t);case"AssignmentExpression":return Hs.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:(e,t)=>({"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e<t(),">":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<<t(),">>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](Hs.evalAst(e.left,t),(()=>Hs.evalAst(e.right,t)))),evalCompound(e,t){let r;for(let n=0;n<e.body.length;n++){"Identifier"===e.body[n].type&&["var","let","const"].includes(e.body[n].name)&&e.body[n+1]&&"AssignmentExpression"===e.body[n+1].type&&(n+=1);const i=e.body[n];r=Hs.evalAst(i,t)}return r},evalConditionalExpression:(e,t)=>Hs.evalAst(e.test,t)?Hs.evalAst(e.consequent,t):Hs.evalAst(e.alternate,t),evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral:e=>e.value,evalMemberExpression(e,t){const r=String(e.computed?Hs.evalAst(e.property):e.property.name),n=Hs.evalAst(e.object,t);if(null==n)throw TypeError(`Cannot read properties of ${n} (reading '${r}')`);if(!Object.hasOwn(n,r)&&Fs.has(r))throw TypeError(`Cannot read properties of ${n} (reading '${r}')`);const i=n[r];return"function"==typeof i?i.bind(n):i},evalUnaryExpression:(e,t)=>({"-":e=>-Hs.evalAst(e,t),"!":e=>!Hs.evalAst(e,t),"~":e=>~Hs.evalAst(e,t),"+":e=>+Hs.evalAst(e,t),typeof:e=>typeof Hs.evalAst(e,t)}[e.operator](e.argument)),evalArrayExpression:(e,t)=>e.elements.map((e=>Hs.evalAst(e,t))),evalCallExpression(e,t){const r=e.arguments.map((e=>Hs.evalAst(e,t)));return Hs.evalAst(e.callee,t)(...r)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const r=e.left.name,n=Hs.evalAst(e.right,t);return t[r]=n,t[r]}};function Ks(e,t){return(e=e.slice()).push(t),e}function qs(e,t){return(t=t.slice()).unshift(e),t}class Gs extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function Ys(e,t,r,n,i){if(!(this instanceof Ys))try{return new Ys(e,t,r,n,i)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(i=n,n=r,r=t,t=e,e=null);const s=e&&"object"==typeof e;if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors=void 0!==e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||n||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const n={path:s?e.path:t};s?"json"in e&&(n.json=e.json):n.json=r;const i=this.evaluate(n);if(!i||"object"!=typeof i)throw new Gs(i);return i}}Ys.prototype.evaluate=function(e,t,r,n){let i=this.parent,s=this.parentProperty,{flatten:o,wrap:a}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"==typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),o=Object.hasOwn(e,"flatten")?e.flatten:o,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,a=Object.hasOwn(e,"wrap")?e.wrap:a,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,r=Object.hasOwn(e,"callback")?e.callback:r,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,i=Object.hasOwn(e,"parent")?e.parent:i,s=Object.hasOwn(e,"parentProperty")?e.parentProperty:s,e=e.path}if(i=i||null,s=s||null,Array.isArray(e)&&(e=Ys.toPathString(e)),!e&&""!==e||!t)return;const c=Ys.toPathArray(e);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;const u=this._trace(c,t,["$"],i,s,r).filter((function(e){return e&&!e.isParentSelector}));return u.length?a||1!==u.length||u[0].hasArrExpr?u.reduce(((e,t)=>{const r=this._getPreferredOutput(t);return o&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(u[0]):a?[]:void 0},Ys.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:Ys.toPathArray(e.path);return e.pointer=Ys.toPointer(t),e.path="string"==typeof e.path?e.path:Ys.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return Ys.toPathString(e[t]);case"pointer":return Ys.toPointer(e.path);default:throw new TypeError("Unknown result type")}},Ys.prototype._handleCallback=function(e,t,r){if(t){const n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:Ys.toPathString(e.path),t(n,r,e)}},Ys.prototype._trace=function(e,t,r,n,i,s,o,a){let c;if(!e.length)return c={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:o},this._handleCallback(c,s,"value"),c;const u=e[0],l=e.slice(1),h=[];function f(e){Array.isArray(e)?e.forEach((e=>{h.push(e)})):h.push(e)}if(("string"!=typeof u||a)&&t&&Object.hasOwn(t,u))f(this._trace(l,t[u],Ks(r,u),t,u,s,o));else if("*"===u)this._walk(t,(e=>{f(this._trace(l,t[e],Ks(r,e),t,e,s,!0,!0))}));else if(".."===u)f(this._trace(l,t,r,n,i,s,o)),this._walk(t,(n=>{"object"==typeof t[n]&&f(this._trace(e.slice(),t[n],Ks(r,n),t,n,s,!0))}));else{if("^"===u)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:l,isParentSelector:!0};if("~"===u)return c={path:Ks(r,u),value:i,parent:n,parentProperty:null},this._handleCallback(c,s,"property"),c;if("$"===u)f(this._trace(l,t,r,null,null,s,o));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(u))f(this._slice(u,l,t,r,n,i,s));else if(0===u.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=u.replace(/^\?\((.*?)\)$/u,"$1"),o=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);o?this._walk(t,(e=>{const a=[o[2]],c=o[1]?t[e][o[1]]:t[e];this._trace(a,c,r,n,i,s,!0).length>0&&f(this._trace(l,t[e],Ks(r,e),t,e,s,!0))})):this._walk(t,(o=>{this._eval(e,t[o],o,r,n,i)&&f(this._trace(l,t[o],Ks(r,o),t,o,s,!0))}))}else if("("===u[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");f(this._trace(qs(this._eval(u,t,r.at(-1),r.slice(0,-1),n,i),l),t,r,n,i,s,o))}else if("@"===u[0]){let e=!1;const o=u.slice(1,-2);switch(o){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===o&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===o&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,r,n,i);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+o)}if(e)return c={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(c,s,"value"),c}else if("`"===u[0]&&t&&Object.hasOwn(t,u.slice(1))){const e=u.slice(1);f(this._trace(l,t[e],Ks(r,e),t,e,s,o,!0))}else if(u.includes(",")){const e=u.split(",");for(const o of e)f(this._trace(qs(o,l),t,r,n,i,s,!0))}else!a&&t&&Object.hasOwn(t,u)&&f(this._trace(l,t[u],Ks(r,u),t,u,s,o,!0))}if(this._hasParentSelector)for(let e=0;e<h.length;e++){const r=h[e];if(r&&r.isParentSelector){const a=this._trace(r.expr,t,r.path,n,i,s,o);if(Array.isArray(a)){h[e]=a[0];const t=a.length;for(let r=1;r<t;r++)e++,h.splice(e,0,a[r])}else h[e]=a}}return h},Ys.prototype._walk=function(e,t){if(Array.isArray(e)){const r=e.length;for(let e=0;e<r;e++)t(e)}else e&&"object"==typeof e&&Object.keys(e).forEach((e=>{t(e)}))},Ys.prototype._slice=function(e,t,r,n,i,s,o){if(!Array.isArray(r))return;const a=r.length,c=e.split(":"),u=c[2]&&Number.parseInt(c[2])||1;let l=c[0]&&Number.parseInt(c[0])||0,h=c[1]&&Number.parseInt(c[1])||a;l=l<0?Math.max(0,l+a):Math.min(a,l),h=h<0?Math.max(0,h+a):Math.min(a,h);const f=[];for(let e=l;e<h;e+=u){this._trace(qs(e,t),r,n,i,s,o,!0).forEach((e=>{f.push(e)}))}return f},Ys.prototype._eval=function(e,t,r,n,i,s){this.currSandbox._$_parentProperty=s,this.currSandbox._$_parent=i,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const o=e.includes("@path");o&&(this.currSandbox._$_path=Ys.toPathString(n.concat([r])));const a=this.currEval+"Script:"+e;if(!Ys.cache[a]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(o&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)Ys.cache[a]=new this.safeVm.Script(t);else if("native"===this.currEval)Ys.cache[a]=new this.vm.Script(t);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;Ys.cache[a]=new e(t)}else{if("function"!=typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);Ys.cache[a]={runInNewContext:e=>this.currEval(t,e)}}}try{return Ys.cache[a].runInNewContext(this.currSandbox)}catch(t){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+t.message+": "+e)}},Ys.cache={},Ys.toPathString=function(e){const t=e,r=t.length;let n="$";for(let e=1;e<r;e++)/^(~|\^|@.*?\(\))$/u.test(t[e])||(n+=/^[0-9*]+$/u.test(t[e])?"["+t[e]+"]":"['"+t[e]+"']");return n},Ys.toPointer=function(e){const t=e,r=t.length;let n="";for(let e=1;e<r;e++)/^(~|\^|@.*?\(\))$/u.test(t[e])||(n+="/"+t[e].toString().replaceAll("~","~0").replaceAll("/","~1"));return n},Ys.toPathArray=function(e){const{cache:t}=Ys;if(t[e])return t[e].concat();const r=[],n=e.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,(function(e,t){return"[#"+(r.push(t)-1)+"]"})).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,(function(e,t){return"['"+t.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"})).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,(function(e,t){return";"+t.split("").join(";")+";"})).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,"").split(";").map((function(e){const t=e.match(/#(\d+)/u);return t&&t[1]?r[t[1]]:e}));return t[e]=n,t[e].concat()},Ys.prototype.safeVm={Script:class{constructor(e){this.code=e,this.ast=Ds(this.code)}runInNewContext(e){const t=Object.assign(Object.create(null),e);return Hs.evalAst(this.ast,t)}}};function Js(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}Ys.prototype.vm={Script:class{constructor(e){this.code=e}runInNewContext(e){let t=this.code;const r=Object.keys(e),n=[];!function(e,t,r){const n=e.length;for(let i=0;i<n;i++)r(e[i])&&t.push(e.splice(i--,1)[0])}(r,n,(t=>"function"==typeof e[t]));const i=r.map((t=>e[t]));t=n.reduce(((t,r)=>{let n=e[r].toString();return/function/u.test(n)||(n="function "+n),"var "+r+"="+n+";"+t}),"")+t,/(['"])use strict\1/u.test(t)||r.includes("arguments")||(t="var arguments = undefined;"+t),t=t.replace(/;\s*$/u,"");const s=t.lastIndexOf(";"),o=-1!==s?t.slice(0,s+1)+" return "+t.slice(s+1):" return "+t;return new Function(...r,o)(...i)}}};const Xs=function(){const e=to,t=eo,r=this,n="parser.js: Parser(): ";r.ast=void 0,r.stats=void 0,r.trace=void 0,r.callbacks=[];let i,s,o,a,c,u,l,h=0,f=0,p=0,d=0,m=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};r.parse=(b,g,E,w)=>{const O=`${n}parse(): `;h=0,f=0,p=0,d=0,m=0,i=void 0,s=void 0,o=void 0,a=void 0,y.refresh(),c=void 0,u=void 0,l=void 0,a=t.stringToChars(E),i=b.rules,s=b.udts;const x=g.toLowerCase();let A;for(const e in i)if(i.hasOwnProperty(e)&&x===i[e].lower){A=i[e].index;break}if(void 0===A)throw new Error(`${O}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(c=[],u=[],t=0;t<i.length;t+=1)c[t]=void 0;for(t=0;t<s.length;t+=1)u[t]=void 0;const a=[];for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(t=0;t<s.length;t+=1)a.push(s[t].lower);for(const n in r.callbacks)if(r.callbacks.hasOwnProperty(n)){if(t=a.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=r.callbacks[n]?r.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<i.length?c[t]=o:u[t-i.length]=o}})(),r.trace&&r.trace.init(i,s,a),r.stats&&r.stats.init(i,s),r.ast&&r.ast.init(i,s,a),l=w,o=[{type:e.RNM,index:A}],v(0,0),o=void 0;let _=!1;switch(y.state){case e.ACTIVE:throw new Error(`${O}final state should never be 'ACTIVE'`);case e.NOMATCH:_=!1;break;case e.EMPTY:case e.MATCH:_=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:_,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:p,nodeHits:d}};const b=(t,r,i,s)=>{if(r.phraseLength>i){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${i}`,new Error(e)}switch(r.state){case e.ACTIVE:if(!s)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:r.phraseLength=0;break;case e.MATCH:0===r.phraseLength&&(r.state=e.EMPTY);break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}},g=(t,c)=>{let f,p,d;const m=o[t],b=s[m.index];y.UdtIndex=b.index,h||(d=r.ast&&r.ast.udtDefined(m.index),d&&(p=i.length+m.index,f=r.ast.getLength(),r.ast.down(p,b.name)));const g=a.length-c;u[m.index](y,a,c,l),((t,r,i)=>{if(r.phraseLength>i){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${r.phraseLength}`,e+=` must be <= remaining chars: ${i}`,new Error(e)}switch(r.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.phraseLength=0;break;case e.MATCH:if(0===r.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);r.state=e.EMPTY}break;case e.NOMATCH:r.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${r.state}`)}})(b,y,g),h||d&&(y.state===e.NOMATCH?r.ast.setLength(f):r.ast.up(p,b.name,c,y.phraseLength))},v=(t,s)=>{const u=`${n}opExecute(): `,E=o[t];switch(d+=1,f>p&&(p=f),f+=1,y.refresh(),r.trace&&r.trace.down(E,s),E.type){case e.ALT:((t,r)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],r),y.state===e.NOMATCH);t+=1);})(t,s);break;case e.CAT:((t,n)=>{let i,s,a,c;const u=o[t];r.ast&&(s=r.ast.getLength()),i=!0,a=n,c=0;for(let t=0;t<u.children.length;t+=1){if(v(u.children[t],a),y.state===e.NOMATCH){i=!1;break}a+=y.phraseLength,c+=y.phraseLength}i?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(s))})(t,s);break;case e.REP:((t,n)=>{let i,s,c,u;const l=o[t];if(0===l.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(s=n,c=0,u=0,r.ast&&(i=r.ast.getLength());!(s>=a.length)&&(v(t+1,s),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(u+=1,c+=y.phraseLength,s+=y.phraseLength,u!==l.max););y.state===e.EMPTY||u>=l.min?(y.state=0===c?e.EMPTY:e.MATCH,y.phraseLength=c):(y.state=e.NOMATCH,y.phraseLength=0,r.ast&&r.ast.setLength(i))})(t,s);break;case e.RNM:((t,n)=>{let s,u,f;const p=o[t],d=i[p.index],m=c[d.index];if(h||(u=r.ast&&r.ast.ruleDefined(p.index),u&&(s=r.ast.getLength(),r.ast.down(p.index,i[p.index].name))),m){const t=a.length-n;m(y,a,n,l),b(d,y,t,!0),y.state===e.ACTIVE&&(f=o,o=d.opcodes,v(0,n),o=f,m(y,a,n,l),b(d,y,t,!1))}else f=o,o=d.opcodes,v(0,n),o=f;h||u&&(y.state===e.NOMATCH?r.ast.setLength(s):r.ast.up(p.index,d.name,n,y.phraseLength))})(t,s);break;case e.TRG:((t,r)=>{const n=o[t];y.state=e.NOMATCH,r<a.length&&n.min<=a[r]&&a[r]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,s);break;case e.TBS:((t,r)=>{const n=o[t],i=n.string.length;if(y.state=e.NOMATCH,r+i<=a.length){for(let e=0;e<i;e+=1)if(a[r+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=i}})(t,s);break;case e.TLS:((t,r)=>{let n;const i=o[t];y.state=e.NOMATCH;const s=i.string.length;if(0!==s){if(r+s<=a.length){for(let e=0;e<s;e+=1)if(n=a[r+e],n>=65&&n<=90&&(n+=32),n!==i.string[e])return;y.state=e.MATCH,y.phraseLength=s}}else y.state=e.EMPTY})(t,s);break;case e.UDT:g(t,s);break;case e.AND:((t,r)=>{switch(h+=1,v(t+1,r),h-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,s);break;case e.NOT:((t,r)=>{switch(h+=1,v(t+1,r),h-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,s);break;default:throw new Error(`${u}unrecognized operator`)}h||s+y.phraseLength>m&&(m=s+y.phraseLength),r.stats&&r.stats.collect(E,y),r.trace&&r.trace.up(E,y.state,s,y.phraseLength),f-=1}},Ws=function(){const e=to,t=eo,r=this;let n,i,s,o=0;const a=[],c=[],u=[];function l(e){let t="";for(;e-- >0;)t+=" ";return t}r.callbacks=[],r.init=(e,t,l)=>{let h;c.length=0,u.length=0,o=0,n=e,i=t,s=l;const f=[];for(h=0;h<n.length;h+=1)f.push(n[h].lower);for(h=0;h<i.length;h+=1)f.push(i[h].lower);for(o=n.length+i.length,h=0;h<o;h+=1)a[h]=void 0;for(const e in r.callbacks)if(r.callbacks.hasOwnProperty(e)){const t=e.toLowerCase();if(h=f.indexOf(t),h<0)throw new Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);a[h]=r.callbacks[e]}},r.ruleDefined=e=>!!a[e],r.udtDefined=e=>!!a[n.length+e],r.down=(t,r)=>{const n=u.length;return c.push(n),u.push({name:r,thisIndex:n,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),n},r.up=(t,r,n,i)=>{const s=u.length,o=c.pop();return u.push({name:r,thisIndex:s,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:n,phraseLength:i,stack:c.length}),u[o].thatIndex=s,u[o].phraseIndex=n,u[o].phraseLength=i,s},r.translate=t=>{let r,n;for(let i=0;i<u.length;i+=1)n=u[i],r=a[n.callbackIndex],r&&(n.state===e.SEM_PRE?r(e.SEM_PRE,s,n.phraseIndex,n.phraseLength,t):r&&r(e.SEM_POST,s,n.phraseIndex,n.phraseLength,t))},r.setLength=e=>{u.length=e,c.length=e>0?u[e-1].stack:0},r.getLength=()=>u.length,r.toXml=()=>{let r="",n=0;return r+='<?xml version="1.0" encoding="utf-8"?>\n',r+=`<root nodes="${u.length/2}" characters="${s.length}">\n`,r+="\x3c!-- input string --\x3e\n",r+=l(n+2),r+=t.charsToString(s),r+="\n",u.forEach((i=>{i.state===e.SEM_PRE?(n+=1,r+=l(n),r+=`<node name="${i.name}" index="${i.phraseIndex}" length="${i.phraseLength}">\n`,r+=l(n+2),r+=t.charsToString(s,i.phraseIndex,i.phraseLength),r+="\n"):(r+=l(n),r+=`</node>\x3c!-- name="${i.name}" --\x3e\n`,n-=1)})),r+="</root>\n",r}},Qs=function(){const e=to,t=eo,r="parser.js: Trace(): ";let n,i,s,o="",a=0;const c=this,u=e=>{let t="",r=0;if(e>=0)for(;e--;)r+=1,5===r?(t+="|",r=0):t+=".";return t};c.init=(e,t,r)=>{i=e,s=t,n=r};const l=n=>{let o;switch(n.type){case e.ALT:o="ALT";break;case e.CAT:o="CAT";break;case e.REP:o=n.max===1/0?`REP(${n.min},inf)`:`REP(${n.min},${n.max})`;break;case e.RNM:o=`RNM(${i[n.index].name})`;break;case e.TRG:o=`TRG(${n.min},${n.max})`;break;case e.TBS:o=n.string.length>6?`TBS(${t.charsToString(n.string,0,3)}...)`:`TBS(${t.charsToString(n.string,0,6)})`;break;case e.TLS:o=n.string.length>6?`TLS(${t.charsToString(n.string,0,3)}...)`:`TLS(${t.charsToString(n.string,0,6)})`;break;case e.UDT:o=`UDT(${s[n.index].name})`;break;case e.AND:o="AND";break;case e.NOT:o="NOT";break;default:throw new Error(`${r}Trace: opName: unrecognized opcode`)}return o};c.down=(e,r)=>{const i=u(a),s=Math.min(100,n.length-r);let c=t.charsToString(n,r,s);s<n.length-r&&(c+="..."),c=`${i}|-|[${l(e)}]${c}\n`,o+=c,a+=1},c.up=(i,s,c,h)=>{const f=`${r}trace.up: `;a-=1;const p=u(a);let d,m,y;switch(s){case e.EMPTY:y="|E|",m="''";break;case e.MATCH:y="|M|",d=Math.min(100,h),m=d<h?`'${t.charsToString(n,c,d)}...'`:`'${t.charsToString(n,c,d)}'`;break;case e.NOMATCH:y="|N|",m="";break;default:throw new Error(`${f} unrecognized state`)}m=`${p}${y}[${l(i)}]${m}\n`,o+=m},c.displayTrace=()=>o},Zs=function(){const e=to;let t,r,n;const i=[],s=[],o=[];this.init=(e,n)=>{t=e,r=n,f()},this.collect=(t,r)=>{p(n,r.state,r.phraseLength),p(i[t.type],r.state,r.phraseLength),t.type===e.RNM&&p(s[t.index],r.state,r.phraseLength),t.type===e.UDT&&p(o[t.index],r.state,r.phraseLength)},this.displayStats=()=>{let t="";const r={match:0,empty:0,nomatch:0,total:0},n=(e,t,n,i,s)=>{r.match+=t,r.empty+=n,r.nomatch+=i,r.total+=s;return`${e} | ${a(t)} | ${a(n)} | ${a(i)} | ${a(s)} |\n`};return t+=" OPERATOR STATS\n",t+=" | MATCH | EMPTY | NOMATCH | TOTAL |\n",t+=n(" ALT",i[e.ALT].match,i[e.ALT].empty,i[e.ALT].nomatch,i[e.ALT].total),t+=n(" CAT",i[e.CAT].match,i[e.CAT].empty,i[e.CAT].nomatch,i[e.CAT].total),t+=n(" REP",i[e.REP].match,i[e.REP].empty,i[e.REP].nomatch,i[e.REP].total),t+=n(" RNM",i[e.RNM].match,i[e.RNM].empty,i[e.RNM].nomatch,i[e.RNM].total),t+=n(" TRG",i[e.TRG].match,i[e.TRG].empty,i[e.TRG].nomatch,i[e.TRG].total),t+=n(" TBS",i[e.TBS].match,i[e.TBS].empty,i[e.TBS].nomatch,i[e.TBS].total),t+=n(" TLS",i[e.TLS].match,i[e.TLS].empty,i[e.TLS].nomatch,i[e.TLS].total),t+=n(" UDT",i[e.UDT].match,i[e.UDT].empty,i[e.UDT].nomatch,i[e.UDT].total),t+=n(" AND",i[e.AND].match,i[e.AND].empty,i[e.AND].nomatch,i[e.AND].total),t+=n(" NOT",i[e.NOT].match,i[e.NOT].empty,i[e.NOT].nomatch,i[e.NOT].total),t+=n("TOTAL",r.match,r.empty,r.nomatch,r.total),t},this.displayHits=e=>{let t="";const r=(e,t,r,i,s)=>{n.match+=e,n.empty+=t,n.nomatch+=r,n.total+=i;return`| ${a(e)} | ${a(t)} | ${a(r)} | ${a(i)} | ${s}\n`};"string"==typeof e&&"a"===e.toLowerCase()[0]?(s.sort(c),o.sort(c),t+=" RULES/UDTS ALPHABETICALLY\n"):"string"==typeof e&&"i"===e.toLowerCase()[0]?(s.sort(l),o.sort(l),t+=" RULES/UDTS BY INDEX\n"):(s.sort(u),o.sort(u),t+=" RULES/UDTS BY HIT COUNT\n"),t+="| MATCH | EMPTY | NOMATCH | TOTAL | NAME\n";for(let e=0;e<s.length;e+=1){let n=s[e];n.total&&(t+=r(n.match,n.empty,n.nomatch,n.total,n.name))}for(let e=0;e<o.length;e+=1){let n=o[e];n.total&&(t+=r(n.match,n.empty,n.nomatch,n.total,n.name))}return t};const a=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(e,t)=>e.lower<t.lower?-1:e.lower>t.lower?1:0,u=(e,t)=>e.total<t.total?1:e.total>t.total?-1:c(e,t),l=(e,t)=>e.index<t.index?-1:e.index>t.index?1:0,h=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},f=()=>{i.length=0,n=new h,i[e.ALT]=new h,i[e.CAT]=new h,i[e.REP]=new h,i[e.RNM]=new h,i[e.TRG]=new h,i[e.TBS]=new h,i[e.TLS]=new h,i[e.UDT]=new h,i[e.AND]=new h,i[e.NOT]=new h,s.length=0;for(let e=0;e<t.length;e+=1)s.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(r.length>0){o.length=0;for(let e=0;e<r.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:r[e].name,lower:r[e].lower,index:r[e].index})}},p=(t,r)=>{switch(t.total+=1,r){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${r}`)}}},eo={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,r)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===r){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},to={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case to.ALT:return"ALT";case to.CAT:return"CAT";case to.REP:return"REP";case to.RNM:return"RNM";case to.TRG:return"TRG";case to.TBS:return"TBS";case to.TLS:return"TLS";case to.UDT:return"UDT";case to.AND:return"AND";case to.NOT:return"NOT";case to.ACTIVE:return"ACTIVE";case to.EMPTY:return"EMPTY";case to.MATCH:return"MATCH";case to.NOMATCH:return"NOMATCH";case to.SEM_PRE:return"SEM_PRE";case to.SEM_POST:return"SEM_POST";case to.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class ro extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}class no extends ro{}const io=e=>(t,r,n,i,s)=>{if("object"!=typeof s||null===s||Array.isArray(s))throw new no("parser's user data must be an object");if(t===to.SEM_PRE){const t={type:e,text:eo.charsToString(r,n,i),start:n,length:i,children:[]};if(s.stack.length>0){s.stack[s.stack.length-1].children.push(t)}else s.root=t;s.stack.push(t)}t===to.SEM_POST&&s.stack.pop()};class so extends Ws{constructor(){super(),this.callbacks["json-pointer"]=io("json-pointer"),this.callbacks["reference-token"]=io("reference-token"),this.callbacks.slash=io("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}}class oo extends so{getTree(){const{root:e}=super.getTree();return e.children.filter((({type:e})=>"reference-token"===e)).map((({text:e})=>(e=>{if("string"!=typeof e)throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")})(e)))}}class ao extends Array{toString(){return this.map((e=>`"${String(e)}"`)).join(", ")}}class co extends Qs{inferExpectations(){const e=this.displayTrace().split("\n"),t=new Set;let r=-1;for(let n=0;n<e.length;n++){const i=e[n];if(i.includes("M|")){const e=i.match(/]'(.*)'$/);e&&e[1]&&(r=n)}if(n>r){const e=i.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new ao(...t)}}const uo=new Js,lo=new Js,ho=new Xs,fo=new Js,po=new Xs;class mo{#e;#t;#r;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#r=t.realm}step({referenceToken:e,input:t,output:r,success:n=!0,reason:i}){const s=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:s,input:t,inputType:this.#r.isObject(t)?"object":this.#r.isArray(t)?"array":"unrecognized",output:r,success:n};i&&(o.reason=i),this.#e.steps.push(o),n||(this.#e.failed=!0,this.#e.failedAt=s,this.#e.message=i)}}class yo{name="";isArray(e){throw new ro("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new ro("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new ro("Realm.sizeOf(node) must be implemented in a subclass")}has(e,t){throw new ro("Realm.has(node) must be implemented in a subclass")}evaluate(e,t){throw new ro("Realm.evaluate(node) must be implemented in a subclass")}}class bo extends ro{}class go extends bo{}class vo extends yo{name="json";isArray(e){return Array.isArray(e)}isObject(e){return"object"==typeof e&&null!==e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){const r=Number(t),n=r>>>0;if(r!==n)throw new go(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return n<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,r)}return!!this.isObject(e)&&Object.prototype.hasOwnProperty.call(e,t)}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}}class Eo extends bo{}class wo extends bo{}const Oo=(e,t,{strictArrays:r=!0,strictObjects:n=!0,realm:i=new vo,trace:s=!0}={})=>{const{result:o,tree:a,trace:c}=((e,{translator:t=new oo,stats:r=!1,trace:n=!1}={})=>{if("string"!=typeof e)throw new TypeError("JSON Pointer must be a string");try{const i=new Xs;t&&(i.ast=t),r&&(i.stats=new Zs),n&&(i.trace=new co);const s=i.parse(uo,"json-pointer",e);return{result:s,tree:s.success&&t?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(t){throw new no("Unexpected error during JSON Pointer parsing",{cause:t,jsonPointer:e})}})(t,{trace:!!s}),u="object"==typeof s&&null!==s?new mo(s,{jsonPointer:t,referenceTokens:a,strictArrays:r,strictObjects:n,realm:i,value:e}):null;try{let s;if(!o.success){let r=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw r+=c?`, expected ${c.inferExpectations()}`:"",new bo(r,{jsonPointer:t,currentValue:e,realm:i.name})}return a.reduce(((e,o,c)=>{if(i.isArray(e)){if((e=>{if("string"!=typeof e)return!1;try{return po.parse(fo,"array-dash",e).success}catch{return!1}})(o)){if(r)throw new go(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return s=i.evaluate(e,String(i.sizeOf(e))),null==u||u.step({referenceToken:o,input:e,output:s}),s}if(!(e=>{if("string"!=typeof e)return!1;try{return ho.parse(lo,"array-index",e).success}catch{return!1}})(o))throw new go(`Invalid array index "${o}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});const n=Number(o);if(!Number.isSafeInteger(n))throw new go(`Invalid array index "${o}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});if(!i.has(e,o)&&r)throw new go(`Invalid array index "${o}" at position ${c} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return s=i.evaluate(e,o),null==u||u.step({referenceToken:o,input:e,output:s}),s}if(i.isObject(e)){if(!i.has(e,o)&&n)throw new wo(`Invalid object key "${o}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return s=i.evaluate(e,o),null==u||u.step({referenceToken:o,input:e,output:s}),s}throw new Eo(`Invalid reference token "${o}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:a,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name})}),e)}catch(e){if(null==u||u.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof bo)throw e;throw new bo("Unexpected error during JSON Pointer evaluation",{cause:e,jsonPointer:t,referenceTokens:a})}};var xo=function(){return!0};function Ao(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function _o(e){return function t(r){return 0===arguments.length||Ao(r)?t:e.apply(this,arguments)}}function ko(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Ao(r)?t:_o((function(t){return e(r,t)}));default:return Ao(r)&&Ao(n)?t:Ao(r)?_o((function(t){return e(t,n)})):Ao(n)?_o((function(t){return e(r,t)})):e(r,n)}}}function To(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,i){return t.apply(this,arguments)};case 5:return function(e,r,n,i,s){return t.apply(this,arguments)};case 6:return function(e,r,n,i,s,o){return t.apply(this,arguments)};case 7:return function(e,r,n,i,s,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,i,s,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,i,s,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,n,i,s,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function So(e,t,r){return function(){for(var n=[],i=0,s=e,o=0,a=!1;o<t.length||i<arguments.length;){var c;o<t.length&&(!Ao(t[o])||i>=arguments.length)?c=t[o]:(c=arguments[i],i+=1),n[o]=c,Ao(c)?a=!0:s-=1,o+=1}return!a&&s<=0?r.apply(this,n):To(Math.max(0,s),So(e,n,r))}}var jo=ko((function(e,t){return 1===e?_o(t):To(e,So(e,[],t))}));function Po(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return Ao(r)?t:ko((function(t,n){return e(r,t,n)}));case 2:return Ao(r)&&Ao(n)?t:Ao(r)?ko((function(t,r){return e(t,n,r)})):Ao(n)?ko((function(t,n){return e(r,t,n)})):_o((function(t){return e(r,n,t)}));default:return Ao(r)&&Ao(n)&&Ao(i)?t:Ao(r)&&Ao(n)?ko((function(t,r){return e(t,r,i)})):Ao(r)&&Ao(i)?ko((function(t,r){return e(t,n,r)})):Ao(n)&&Ao(i)?ko((function(t,n){return e(r,t,n)})):Ao(r)?_o((function(t){return e(t,n,i)})):Ao(n)?_o((function(t){return e(r,t,i)})):Ao(i)?_o((function(t){return e(r,n,t)})):e(r,n,i)}}}const Co=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Mo(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function No(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}function Ro(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const Lo="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var Io=Object.prototype.toString,$o=function(){return"[object Arguments]"===Io.call(arguments)?function(e){return"[object Arguments]"===Io.call(e)}:function(e){return Ro("callee",e)}}(),Do=!{toString:null}.propertyIsEnumerable("toString"),Bo=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Vo=function(){return arguments.propertyIsEnumerable("length")}(),Uo=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},zo="function"!=typeof Object.keys||Vo?_o((function(e){if(Object(e)!==e)return[];var t,r,n=[],i=Vo&&$o(e);for(t in e)!Ro(t,e)||i&&"length"===t||(n[n.length]=t);if(Do)for(r=Bo.length-1;r>=0;)Ro(t=Bo[r],e)&&!Uo(n,t)&&(n[n.length]=t),r-=1;return n})):_o((function(e){return Object(e)!==e?[]:Object.keys(e)})),Fo=_o((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Ho(e,t,r,n){var i=Mo(e);function s(e,t){return Ko(e,t,r.slice(),n.slice())}return!No((function(e,t){return!No(s,t,e)}),Mo(t),i)}function Ko(e,t,r,n){if(Lo(e,t))return!0;var i,s,o=Fo(e);if(o!==Fo(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(s=String(i).match(/^function (\w*)/))?"":s[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Lo(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Lo(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Ho(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&Ho(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=zo(e);if(c.length!==zo(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var h=c[a];if(!Ro(h,t)||!Ko(t[h],e[h],u,l))return!1;a-=1}return!0}var qo=ko((function(e,t){return Ko(e,t,[],[])}));var Go=_o((function(e){return!!Co(e)||!!e&&("object"==typeof e&&(!function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),Yo="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Jo(e,t,r){return function(n,i,s){if(Go(s))return e(n,i,s);if(null==s)return i;if("function"==typeof s["fantasy-land/reduce"])return t(n,i,s,"fantasy-land/reduce");if(null!=s[Yo])return r(n,i,s[Yo]());if("function"==typeof s.next)return r(n,i,s);if("function"==typeof s.reduce)return t(n,i,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Xo(e,t,r){for(var n=0,i=r.length;n<i;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var Wo=ko((function(e,t){return To(e.length,(function(){return e.apply(t,arguments)}))}));function Qo(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function Zo(e,t,r,n){return e["@@transducer/result"](r[n](Wo(e["@@transducer/step"],e),t))}var ea=Jo(Xo,Zo,Qo),ta=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();var ra=Po((function(e,t,r){return ea("function"==typeof e?new ta(e):e,t,r)})),na=_o((function(e){return function(){return e}}));function ia(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function sa(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return Co(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var oa=_o(sa("tail",Po(sa("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})))(1,1/0)));function aa(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return To(arguments[0].length,ra(ia,arguments[0],oa(arguments)))}var ca,ua,la,ha,fa,pa,da,ma,ya,ba,ga,va,Ea,wa,Oa,xa,Aa,_a,ka,Ta,Sa,ja,Pa,Ca,Ma,Na,Ra,La,Ia,$a,Da,Ba,Va,Ua,za,Fa,Ha,Ka,qa,Ga,Ya,Ja,Xa,Wa,Qa,Za,ec,tc,rc,nc,ic,sc,oc,ac,cc,uc,lc,hc,fc,pc,dc,mc,yc,bc,gc,vc,Ec,wc,Oc,xc,Ac,_c,kc,Tc,Sc,jc,Pc,Cc,Mc,Nc,Rc,Lc,Ic,$c,Dc,Bc,Vc,Uc,zc,Fc,Hc,Kc,qc,Gc,Yc,Jc,Xc,Wc,Qc,Zc,eu,tu,ru,nu,iu,su,ou,au,cu,uu,lu,hu,fu,pu,du,mu,yu,bu,gu,vu,Eu,wu,Ou,xu,Au,_u,ku,Tu,Su,ju,Pu,Cu,Mu,Nu,Ru,Lu,Iu,$u,Du=function(e,t){switch(arguments.length){case 0:return Du;case 1:return function t(r){return 0===arguments.length?t:Lo(e,r)};default:return Lo(e,t)}},Bu=qo(na(void 0)()),Vu=jo(1,aa(Fo,Du("String"))),Uu={};function zu(){if(ha)return la;ha=1;var e="object"==typeof b&&b&&b.Object===Object&&b;return la=e}function Fu(){if(pa)return fa;pa=1;var e=zu(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return fa=r}function Hu(){if(ma)return da;ma=1;var e=Fu().Symbol;return da=e}function Ku(){if(wa)return Ea;wa=1;var e=Hu(),t=function(){if(ba)return ya;ba=1;var e=Hu(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;return ya=function(e){var t=r.call(e,i),s=e[i];try{e[i]=void 0;var o=!0}catch(e){}var a=n.call(e);return o&&(t?e[i]=s:delete e[i]),a}}(),r=function(){if(va)return ga;va=1;var e=Object.prototype.toString;return ga=function(t){return e.call(t)}}(),n=e?e.toStringTag:void 0;return Ea=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?t(e):r(e)}}function qu(){if(xa)return Oa;xa=1;var e=Array.isArray;return Oa=e}function Gu(){if(_a)return Aa;return _a=1,Aa=function(e){return null!=e&&"object"==typeof e}}function Yu(){if(Na)return Ma;return Na=1,Ma=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ma}function Ju(){if(La)return Ra;La=1;return Ra=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}}function Xu(){if(Ba)return Da;return Ba=1,Da=function(e,t){return e===t||e!=e&&t!=t}}function Wu(){if(Ua)return Va;Ua=1;var e=Xu();return Va=function(t,r){for(var n=t.length;n--;)if(e(t[n][0],r))return n;return-1}}function Qu(){if(Wa)return Xa;Wa=1;var e=$a?Ia:($a=1,Ia=function(){this.__data__=[],this.size=0}),t=function(){if(Fa)return za;Fa=1;var e=Wu(),t=Array.prototype.splice;return za=function(r){var n=this.__data__,i=e(n,r);return!(i<0||(i==n.length-1?n.pop():t.call(n,i,1),--this.size,0))},za}(),r=function(){if(Ka)return Ha;Ka=1;var e=Wu();return Ha=function(t){var r=this.__data__,n=e(r,t);return n<0?void 0:r[n][1]},Ha}(),n=function(){if(Ga)return qa;Ga=1;var e=Wu();return qa=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(Ja)return Ya;Ja=1;var e=Wu();return Ya=function(t,r){var n=this.__data__,i=e(n,t);return i<0?(++this.size,n.push([t,r])):n[i][1]=r,this},Ya}();function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Xa=s}function Zu(){if(ac)return oc;ac=1;var e=Ku(),t=Yu();return oc=function(r){if(!t(r))return!1;var n=e(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function el(){if(hc)return lc;hc=1;var e=function(){if(uc)return cc;uc=1;var e=Fu()["__core-js_shared__"];return cc=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return lc=function(e){return!!t&&t in e}}function tl(){if(pc)return fc;pc=1;var e=Function.prototype.toString;return fc=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function rl(){if(vc)return gc;vc=1;var e=function(){if(mc)return dc;mc=1;var e=Zu(),t=el(),r=Yu(),n=tl(),i=/^\[object .+?Constructor\]$/,s=Function.prototype,o=Object.prototype,a=s.toString,c=o.hasOwnProperty,u=RegExp("^"+a.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return dc=function(s){return!(!r(s)||t(s))&&(e(s)?u:i).test(n(s))}}(),t=bc?yc:(bc=1,yc=function(e,t){return null==e?void 0:e[t]});return gc=function(r,n){var i=t(r,n);return e(i)?i:void 0}}function nl(){if(wc)return Ec;wc=1;var e=rl()(Fu(),"Map");return Ec=e}function il(){if(xc)return Oc;xc=1;var e=rl()(Object,"create");return Oc=e}function sl(){if(Lc)return Rc;Lc=1;var e=function(){if(_c)return Ac;_c=1;var e=il();return Ac=function(){this.__data__=e?e(null):{},this.size=0}}(),t=Tc?kc:(Tc=1,kc=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),r=function(){if(jc)return Sc;jc=1;var e=il(),t=Object.prototype.hasOwnProperty;return Sc=function(r){var n=this.__data__;if(e){var i=n[r];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(n,r)?n[r]:void 0}}(),n=function(){if(Cc)return Pc;Cc=1;var e=il(),t=Object.prototype.hasOwnProperty;return Pc=function(r){var n=this.__data__;return e?void 0!==n[r]:t.call(n,r)}}(),i=function(){if(Nc)return Mc;Nc=1;var e=il();return Mc=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=e&&void 0===r?"__lodash_hash_undefined__":r,this}}();function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Rc=s}function ol(){if(Uc)return Vc;Uc=1;var e=(Bc||(Bc=1,Dc=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),Dc);return Vc=function(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map}}function al(){if(Wc)return Xc;Wc=1;var e=function(){if($c)return Ic;$c=1;var e=sl(),t=Qu(),r=nl();return Ic=function(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}}(),t=function(){if(Fc)return zc;Fc=1;var e=ol();return zc=function(t){var r=e(this,t).delete(t);return this.size-=r?1:0,r}}(),r=function(){if(Kc)return Hc;Kc=1;var e=ol();return Hc=function(t){return e(this,t).get(t)}}(),n=function(){if(Gc)return qc;Gc=1;var e=ol();return qc=function(t){return e(this,t).has(t)}}(),i=function(){if(Jc)return Yc;Jc=1;var e=ol();return Yc=function(t,r){var n=e(this,t),i=n.size;return n.set(t,r),this.size+=n.size==i?0:1,this}}();function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Xc=s}function cl(){if(tu)return eu;tu=1;var e=Qu(),t=function(){if(Za)return Qa;Za=1;var e=Qu();return Qa=function(){this.__data__=new e,this.size=0}}(),r=tc?ec:(tc=1,ec=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}),n=nc?rc:(nc=1,rc=function(e){return this.__data__.get(e)}),i=sc?ic:(sc=1,ic=function(e){return this.__data__.has(e)}),s=function(){if(Zc)return Qc;Zc=1;var e=Qu(),t=nl(),r=al();return Qc=function(n,i){var s=this.__data__;if(s instanceof e){var o=s.__data__;if(!t||o.length<199)return o.push([n,i]),this.size=++s.size,this;s=this.__data__=new r(o)}return s.set(n,i),this.size=s.size,this}}();function o(t){var r=this.__data__=new e(t);this.size=r.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=s,eu=o}function ul(){if(au)return ou;au=1;var e=al(),t=nu?ru:(nu=1,ru=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),r=su?iu:(su=1,iu=function(e){return this.__data__.has(e)});function n(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new e;++r<n;)this.add(t[r])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,ou=n}function ll(){if(pu)return fu;pu=1;var e=ul(),t=(uu||(uu=1,cu=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}),cu),r=hu?lu:(hu=1,lu=function(e,t){return e.has(t)});return fu=function(n,i,s,o,a,c){var u=1&s,l=n.length,h=i.length;if(l!=h&&!(u&&h>l))return!1;var f=c.get(n),p=c.get(i);if(f&&p)return f==i&&p==n;var d=-1,m=!0,y=2&s?new e:void 0;for(c.set(n,i),c.set(i,n);++d<l;){var b=n[d],g=i[d];if(o)var v=u?o(g,b,d,i,n,c):o(b,g,d,n,i,c);if(void 0!==v){if(v)continue;m=!1;break}if(y){if(!t(i,(function(e,t){if(!r(y,t)&&(b===e||a(b,e,s,o,c)))return y.push(t)}))){m=!1;break}}else if(b!==g&&!a(b,g,s,o,c)){m=!1;break}}return c.delete(n),c.delete(i),m},fu}function hl(){if(wu)return Eu;wu=1;var e=Hu(),t=function(){if(mu)return du;mu=1;var e=Fu().Uint8Array;return du=e}(),r=Xu(),n=ll(),i=(bu||(bu=1,yu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}),yu),s=(vu||(vu=1,gu=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}),gu),o=e?e.prototype:void 0,a=o?o.valueOf:void 0;return Eu=function(e,o,c,u,l,h,f){switch(c){case"[object DataView]":if(e.byteLength!=o.byteLength||e.byteOffset!=o.byteOffset)return!1;e=e.buffer,o=o.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=o.byteLength||!h(new t(e),new t(o)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+o);case"[object Error]":return e.name==o.name&&e.message==o.message;case"[object RegExp]":case"[object String]":return e==o+"";case"[object Map]":var p=i;case"[object Set]":var d=1&u;if(p||(p=s),e.size!=o.size&&!d)return!1;var m=f.get(e);if(m)return m==o;u|=2,f.set(e,o);var y=n(p(e),p(o),u,l,h,f);return f.delete(e),y;case"[object Symbol]":if(a)return a.call(e)==a.call(o)}return!1}}function fl(){if(_u)return Au;_u=1;var e=(xu||(xu=1,Ou=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}),Ou),t=qu();return Au=function(r,n,i){var s=n(r);return t(r)?s:e(s,i(r))}}function pl(){if(Cu)return Pu;Cu=1;var e=(Tu||(Tu=1,ku=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}),ku),t=ju?Su:(ju=1,Su=function(){return[]}),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return Pu=n?function(t){return null==t?[]:(t=Object(t),e(n(t),(function(e){return r.call(t,e)})))}:t}function dl(){if($u)return Iu;$u=1;var e=function(){if(Lu)return Ru;Lu=1;var e=Ku(),t=Gu();return Ru=function(r){return t(r)&&"[object Arguments]"==e(r)}}(),t=Gu(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(e){return t(e)&&n.call(e,"callee")&&!i.call(e,"callee")};return Iu=s}var ml,yl,bl,gl,vl,El,wl,Ol,xl,Al,_l,kl={exports:{}};function Tl(){return bl||(bl=1,function(e,t){var r=Fu(),n=yl?ml:(yl=1,ml=function(){return!1}),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,o=s&&s.exports===i?r.Buffer:void 0,a=(o?o.isBuffer:void 0)||n;e.exports=a}(kl,kl.exports)),kl.exports}function Sl(){if(wl)return El;wl=1;return El=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}var jl,Pl,Cl,Ml,Nl,Rl,Ll,Il,$l,Dl,Bl,Vl,Ul,zl,Fl,Hl,Kl,ql,Gl,Yl,Jl,Xl,Wl,Ql,Zl,eh,th,rh,nh,ih,sh,oh,ah,ch,uh,lh,hh,fh,ph,dh,mh,yh,bh,gh,vh,Eh,wh,Oh,xh,Ah,_h,kh,Th,Sh,jh,Ph,Ch,Mh,Nh,Rh,Lh,Ih,$h,Dh,Bh,Vh,Uh,zh,Fh,Hh,Kh,qh,Gh={exports:{}};function Yh(){if(Cl)return Pl;Cl=1;var e=function(){if(xl)return Ol;xl=1;var e=Ku(),t=Sl(),r=Gu(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Ol=function(i){return r(i)&&t(i.length)&&!!n[e(i)]}}(),t=_l?Al:(_l=1,Al=function(e){return function(t){return e(t)}}),r=(jl||(jl=1,function(e,t){var r=zu(),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,s=i&&i.exports===n&&r.process,o=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o}(Gh,Gh.exports)),Gh.exports),n=r&&r.isTypedArray,i=n?t(n):e;return Pl=i}function Jh(){if(Nl)return Ml;Nl=1;var e=(Nu||(Nu=1,Mu=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}),Mu),t=dl(),r=qu(),n=Tl(),i=function(){if(vl)return gl;vl=1;var e=/^(?:0|[1-9]\d*)$/;return gl=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},gl}(),s=Yh(),o=Object.prototype.hasOwnProperty;return Ml=function(a,c){var u=r(a),l=!u&&t(a),h=!u&&!l&&n(a),f=!u&&!l&&!h&&s(a),p=u||l||h||f,d=p?e(a.length,String):[],m=d.length;for(var y in a)!c&&!o.call(a,y)||p&&("length"==y||h&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,m))||d.push(y);return d}}function Xh(){if(Bl)return Dl;Bl=1;var e=($l?Il:($l=1,Il=function(e,t){return function(r){return e(t(r))}}))(Object.keys,Object);return Dl=e}function Wh(){if(Ul)return Vl;Ul=1;var e=function(){if(Ll)return Rl;Ll=1;var e=Object.prototype;return Rl=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}}(),t=Xh(),r=Object.prototype.hasOwnProperty;return Vl=function(n){if(!e(n))return t(n);var i=[];for(var s in Object(n))r.call(n,s)&&"constructor"!=s&&i.push(s);return i}}function Qh(){if(Kl)return Hl;Kl=1;var e=Jh(),t=Wh(),r=function(){if(Fl)return zl;Fl=1;var e=Zu(),t=Sl();return zl=function(r){return null!=r&&t(r.length)&&!e(r)}}();return Hl=function(n){return r(n)?e(n):t(n)}}function Zh(){if(Jl)return Yl;Jl=1;var e=function(){if(Gl)return ql;Gl=1;var e=fl(),t=pl(),r=Qh();return ql=function(n){return e(n,r,t)}}(),t=Object.prototype.hasOwnProperty;return Yl=function(r,n,i,s,o,a){var c=1&i,u=e(r),l=u.length;if(l!=e(n).length&&!c)return!1;for(var h=l;h--;){var f=u[h];if(!(c?f in n:t.call(n,f)))return!1}var p=a.get(r),d=a.get(n);if(p&&d)return p==n&&d==r;var m=!0;a.set(r,n),a.set(n,r);for(var y=c;++h<l;){var b=r[f=u[h]],g=n[f];if(s)var v=c?s(g,b,f,n,r,a):s(b,g,f,r,n,a);if(!(void 0===v?b===g||o(b,g,i,s,a):v)){m=!1;break}y||(y="constructor"==f)}if(m&&!y){var E=r.constructor,w=n.constructor;E==w||!("constructor"in r)||!("constructor"in n)||"function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(r),a.delete(n),m},Yl}function ef(){if(sh)return ih;sh=1;var e=function(){if(Wl)return Xl;Wl=1;var e=rl()(Fu(),"DataView");return Xl=e}(),t=nl(),r=function(){if(Zl)return Ql;Zl=1;var e=rl()(Fu(),"Promise");return Ql=e}(),n=function(){if(th)return eh;th=1;var e=rl()(Fu(),"Set");return eh=e}(),i=function(){if(nh)return rh;nh=1;var e=rl()(Fu(),"WeakMap");return rh=e}(),s=Ku(),o=tl(),a="[object Map]",c="[object Promise]",u="[object Set]",l="[object WeakMap]",h="[object DataView]",f=o(e),p=o(t),d=o(r),m=o(n),y=o(i),b=s;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=a||r&&b(r.resolve())!=c||n&&b(new n)!=u||i&&b(new i)!=l)&&(b=function(e){var t=s(e),r="[object Object]"==t?e.constructor:void 0,n=r?o(r):"";if(n)switch(n){case f:return h;case p:return a;case d:return c;case m:return u;case y:return l}return t}),ih=b}function tf(){if(uh)return ch;uh=1;var e=function(){if(ah)return oh;ah=1;var e=cl(),t=ll(),r=hl(),n=Zh(),i=ef(),s=qu(),o=Tl(),a=Yh(),c="[object Arguments]",u="[object Array]",l="[object Object]",h=Object.prototype.hasOwnProperty;return oh=function(f,p,d,m,y,b){var g=s(f),v=s(p),E=g?u:i(f),w=v?u:i(p),O=(E=E==c?l:E)==l,x=(w=w==c?l:w)==l,A=E==w;if(A&&o(f)){if(!o(p))return!1;g=!0,O=!1}if(A&&!O)return b||(b=new e),g||a(f)?t(f,p,d,m,y,b):r(f,p,E,d,m,y,b);if(!(1&d)){var _=O&&h.call(f,"__wrapped__"),k=x&&h.call(p,"__wrapped__");if(_||k){var T=_?f.value():f,S=k?p.value():p;return b||(b=new e),y(T,S,d,m,b)}}return!!A&&(b||(b=new e),n(f,p,d,m,y,b))}}(),t=Gu();return ch=function r(n,i,s,o,a){return n===i||(null==n||null==i||!t(n)&&!t(i)?n!=n&&i!=i:e(n,i,s,o,r,a))},ch}function rf(){if(ph)return fh;ph=1;class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}return fh=e}function nf(){if(mh)return dh;mh=1;return dh=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},dh}function sf(){if(bh)return yh;bh=1;const e=nf();function t(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class r{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const i=e.bind(t)(n);i&&r.push(i)})),r}filter(e,n){return e=t(e),new r(this.elements.filter(e,n))}reject(n,i){return n=t(n),new r(this.elements.filter(e(n),i))}find(e,r){return e=t(e),this.elements.find(e,r)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}return"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),yh=r}function of(){if(vh)return gh;vh=1;const e=function(){if(hh)return lh;hh=1;var e=tf();return lh=function(t,r){return e(t,r)}}(),t=rf(),r=sf();class n{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof n?this.content.toValue():this.content instanceof t?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const n=e.pop();let i=new r;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===n&&e.push(r);const i=r.findRecursive(n);return i&&i.reduce(s,e),r.content instanceof t&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(i,this.content),Array.isArray(this.content)&&this.content.reduce(o,i)),e.isEmpty||(i=i.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],i=r.indexOf(n);if(-1===i)return!1;r=r.splice(0,i)}return!0}))),i}set(e){return this.content=e,this}equals(t){return e(this.toValue(),t)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof n)this._content=e;else if(e instanceof r)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof t)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new r;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new r(this.content);if(this.content instanceof t){const e=new r([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof n?new r([this.content]):new r}get recursiveChildren(){const e=new r;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}return gh=n}function af(){if(jh)return Sh;jh=1;const e=nf(),t=of(),r=sf();class n extends t{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const i=e.bind(t)(n);i&&r.push(i)})),r}filter(e,t){return new r(this.content.filter(e,t))}reject(t,r){return this.filter(e(t),r)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,i=void 0===r.results?[]:r.results;return this.forEach(((t,r,s)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:i,recursive:n}),e(t,r,s)&&i.push(t)})),i}find(e){return new r(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}return n.empty=function(){return new this},n["fantasy-land/empty"]=n.empty,"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),Sh=n}function cf(){if(Ch)return Ph;Ch=1;const e=rf(),t=of();return Ph=class extends t{constructor(t,r,n,i){super(new e,n,i),this.element="member",this.key=t,this.value=r}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}}function uf(){if(Nh)return Mh;Nh=1;const e=nf(),t=sf();class r extends t{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new r(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(t,r){return this.filter(e(t.bind(r)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}return Mh=r}function lf(){if(Uh)return Vh;Uh=1;const e=of(),t=function(){if(wh)return Eh;wh=1;const e=of();return Eh=class extends e{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}(),r=function(){if(xh)return Oh;xh=1;const e=of();return Oh=class extends e{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}(),n=function(){if(_h)return Ah;_h=1;const e=of();return Ah=class extends e{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}}(),i=function(){if(Th)return kh;Th=1;const e=of();return kh=class extends e{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}}(),s=af(),o=cf(),a=function(){if(Lh)return Rh;Lh=1;const e=nf(),t=Yu(),r=af(),n=cf(),i=uf();return Rh=class extends r{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,r){if(t(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const i=e,s=this.getMember(i);return s?s.value=r:this.content.push(new n(i,r)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,i,s)=>{const o=e.bind(t)(n,i,s);o&&r.push(o)})),r}filter(e,t){return new i(this.content).filter(e,t)}reject(t,r){return this.filter(e(t),r)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}}(),c=function(){if($h)return Ih;$h=1;const e=of();return Ih=class extends e{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}}(),u=function(){if(Bh)return Dh;Bh=1;const e=of();return Dh=class extends e{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}}(),l=sf(),h=uf(),f=rf();function p(o){if(o instanceof e)return o;if("string"==typeof o)return new r(o);if("number"==typeof o)return new n(o);if("boolean"==typeof o)return new i(o);if(null===o)return new t;if(Array.isArray(o))return new s(o.map(p));if("object"==typeof o){return new a(o)}return o}return e.prototype.ObjectElement=a,e.prototype.RefElement=u,e.prototype.MemberElement=o,e.prototype.refract=p,l.prototype.refract=p,Vh={Element:e,NullElement:t,StringElement:r,NumberElement:n,BooleanElement:i,ArrayElement:s,MemberElement:o,ObjectElement:a,LinkElement:c,RefElement:u,refract:p,ArraySlice:l,ObjectSlice:h,KeyValuePair:f}}function hf(){if(Fh)return zh;Fh=1;const e=ua?ca:(ua=1,ca=function(e){return null===e}),t=function(){if(Ta)return ka;Ta=1;var e=Ku(),t=qu(),r=Gu();return ka=function(n){return"string"==typeof n||!t(n)&&r(n)&&"[object String]"==e(n)}}(),r=function(){if(ja)return Sa;ja=1;var e=Ku(),t=Gu();return Sa=function(r){return"number"==typeof r||t(r)&&"[object Number]"==e(r)}}(),n=function(){if(Ca)return Pa;Ca=1;var e=Ku(),t=Gu();return Pa=function(r){return!0===r||!1===r||t(r)&&"[object Boolean]"==e(r)}}(),i=Yu(),s=Ju(),o=lf();class a{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=o.Element,this.KeyValuePair=o.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",o.NullElement).register("string",o.StringElement).register("number",o.NumberElement).register("boolean",o.BooleanElement).register("array",o.ArrayElement).register("object",o.ObjectElement).register("member",o.MemberElement).register("ref",o.RefElement).register("link",o.LinkElement),this.detect(e,o.NullElement,!1).detect(t,o.StringElement,!1).detect(r,o.NumberElement,!1).detect(n,o.BooleanElement,!1).detect(Array.isArray,o.ArrayElement,!1).detect(i,o.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],i=this.elementDetection[r][1];if(n(e)){t=new i(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new s(this)}}return s.prototype.Namespace=a,zh=a}var ff=function(){if(qh)return Uu;qh=1;const e=hf(),t=lf();return Uu.Namespace=e,Uu.namespace=function(t){return new e(t)},Uu.KeyValuePair=rf(),Uu.ArraySlice=t.ArraySlice,Uu.ObjectSlice=t.ObjectSlice,Uu.Element=t.Element,Uu.StringElement=t.StringElement,Uu.NumberElement=t.NumberElement,Uu.BooleanElement=t.BooleanElement,Uu.NullElement=t.NullElement,Uu.ArrayElement=t.ArrayElement,Uu.ObjectElement=t.ObjectElement,Uu.MemberElement=t.MemberElement,Uu.RefElement=t.RefElement,Uu.LinkElement=t.LinkElement,Uu.refract=t.refract,Uu.JSONSerialiser=Ju(),Uu.JSON06Serialiser=function(){if(Kh)return Hh;Kh=1;const e=Ju();return Hh=class extends e{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let i=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),i.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&i.unshift(e.content),i=i.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),i.length&&t.set("samples",i),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const i=new t(n);i.element=r.element,e.push(i)}))}));const i=e.shift();r.content=i?i.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}}(),Uu}();class pf extends ff.StringElement{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class df extends ff.StringElement{constructor(e,t,r){super(e,t,r),this.element="comment"}}class mf extends ff.ArrayElement{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Bu(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const yf=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],bf=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,gf=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),vf=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ff.ArrayElement)&&t.classes.includes(e),Ef=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,wf=e=>e({hasMethod:yf,hasBasicElementProps:bf,primitiveEq:gf,isElementType:Ef,hasClass:vf}),Of=wf((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ff.Element||e(r)&&t(void 0,r))),xf=wf((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ff.StringElement||e(r)&&t("string",r))),Af=wf((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ff.NumberElement||e(r)&&t("number",r))),_f=wf((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ff.NullElement||e(r)&&t("null",r))),kf=wf((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ff.BooleanElement||e(r)&&t("boolean",r))),Tf=wf((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ff.ObjectElement||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Sf=wf((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ff.ArrayElement&&!(n instanceof ff.ObjectElement)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),jf=wf((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ff.MemberElement||e(n)&&t("member",n)&&r(void 0,n))),Pf=wf((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ff.LinkElement||e(n)&&t("link",n)&&r(void 0,n))),Cf=wf((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ff.RefElement||e(n)&&t("ref",n)&&r(void 0,n)));wf((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pf||e(n)&&t("annotation",n)&&r("array",n))),wf((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof df||e(n)&&t("comment",n)&&r("string",n))),wf((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mf||e(n)&&t("parseResult",n)&&r("array",n)));const Mf=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},Nf={},Rf=e=>null==e?void 0:e.type,Lf=e=>"string"==typeof Rf(e),If=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),$f=(e,t,{keyMap:r=null,state:n={},breakSymbol:i=Nf,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Mf,nodeTypeGetter:c=Rf,nodePredicate:u=Lf,nodeCloneFn:l=If,detectCycles:h=!0,detectCyclesCallback:f=null}={})=>{const p=r||{};let d,m,y=Array.isArray(e),b=[e],g=-1,v=[],E=e;const w=[],O=[];do{g+=1;const e=g===b.length;let r;const _=e&&0!==v.length;if(e){if(r=0===O.length?void 0:w.pop(),E=m,m=O.pop(),_)if(y){E=E.slice();let e=0;for(const[t,r]of v){const n=t-e;r===s?(E.splice(n,1),e+=1):E[n]=r}}else{E=l(E);for(const[e,t]of v)E[e]=t}g=d.index,b=d.keys,v=d.edits,y=d.inArray,d=d.prev}else if(m!==s&&void 0!==m){if(r=y?g:b[g],E=m[r],E===s||void 0===E)continue;w.push(r)}let k;if(!Array.isArray(E)){var x;if(!u(E))throw new Ss(`Invalid AST Node: ${String(E)}`,{node:E});if(h&&O.includes(E)){"function"==typeof f&&f(E,r,m,w,O),w.pop();continue}const s=a(t,c(E),e);if(s){for(const[e,r]of Object.entries(n))t[e]=r;const i={replaceWith(t,n){"function"==typeof n?n(t,E,r,m,w,O):m&&(m[r]=t),e||(E=t)}};k=s.call(t,E,r,m,w,O,i)}if("function"==typeof(null===(x=k)||void 0===x?void 0:x.then))throw new Ss("Async visitor not supported in sync mode",{visitor:t,visitFn:s});if(k===i)break;if(k===o){if(!e){w.pop();continue}}else if(void 0!==k&&(v.push([r,k]),!e)){if(!u(k)){w.pop();continue}E=k}}var A;if(void 0===k&&_&&v.push([r,E]),!e)d={inArray:y,index:g,keys:b,edits:v,prev:d},y=Array.isArray(E),b=y?E:null!==(A=p[c(E)])&&void 0!==A?A:[],g=-1,v=[],m!==s&&void 0!==m&&O.push(m),m=E}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};$f[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:i=Nf,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Mf,nodeTypeGetter:c=Rf,nodePredicate:u=Lf,nodeCloneFn:l=If,detectCycles:h=!0,detectCyclesCallback:f=null}={})=>{const p=r||{};let d,m,y=Array.isArray(e),b=[e],g=-1,v=[],E=e;const w=[],O=[];do{g+=1;const e=g===b.length;let r;const A=e&&0!==v.length;if(e){if(r=0===O.length?void 0:w.pop(),E=m,m=O.pop(),A)if(y){E=E.slice();let e=0;for(const[t,r]of v){const n=t-e;r===s?(E.splice(n,1),e+=1):E[n]=r}}else{E=l(E);for(const[e,t]of v)E[e]=t}g=d.index,b=d.keys,v=d.edits,y=d.inArray,d=d.prev}else if(m!==s&&void 0!==m){if(r=y?g:b[g],E=m[r],E===s||void 0===E)continue;w.push(r)}let _;if(!Array.isArray(E)){if(!u(E))throw new Ss(`Invalid AST Node: ${String(E)}`,{node:E});if(h&&O.includes(E)){"function"==typeof f&&f(E,r,m,w,O),w.pop();continue}const s=a(t,c(E),e);if(s){for(const[e,r]of Object.entries(n))t[e]=r;const i={replaceWith(t,n){"function"==typeof n?n(t,E,r,m,w,O):m&&(m[r]=t),e||(E=t)}};_=await s.call(t,E,r,m,w,O,i)}if(_===i)break;if(_===o){if(!e){w.pop();continue}}else if(void 0!==_&&(v.push([r,_]),!e)){if(!u(_)){w.pop();continue}E=_}}var x;if(void 0===_&&A&&v.push([r,E]),!e)d={inArray:y,index:g,keys:b,edits:v,prev:d},y=Array.isArray(E),b=y?E:null!==(x=p[c(E)])&&void 0!==x?x:[],g=-1,v=[],m!==s&&void 0!==m&&O.push(m),m=E}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};class Df extends Ss{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class Bf extends Df{}class Vf extends Df{}const Uf=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ff.KeyValuePair){const{key:t,value:i}=e,s=Of(t)?Uf(t,n):t,o=Of(i)?Uf(i,n):i,a=new ff.KeyValuePair(s,o);return r.set(e,a),a}if(e instanceof ff.ObjectSlice){const t=e=>Uf(e,n),i=[...e].map(t),s=new ff.ObjectSlice(i);return r.set(e,s),s}if(e instanceof ff.ArraySlice){const t=e=>Uf(e,n),i=[...e].map(t),s=new ff.ArraySlice(i);return r.set(e,s),s}if(Of(e)){const t=Hf(e);if(r.set(e,t),e.content)if(Of(e.content))t.content=Uf(e.content,n);else if(e.content instanceof ff.KeyValuePair)t.content=Uf(e.content,n);else if(Array.isArray(e.content)){const r=e=>Uf(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Bf("Value provided to cloneDeep function couldn't be cloned",{value:e})};Uf.safe=e=>{try{return Uf(e)}catch{return e}};const zf=e=>{const{key:t,value:r}=e;return new ff.KeyValuePair(t,r)},Ff=e=>{const t=new e.constructor;var r,n;if(t.element=e.element,(e=>!!Of(e)&&Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex))(e)&&(n=e,(r=t).startPositionRow=null==n?void 0:n.startPositionRow,r.startPositionColumn=null==n?void 0:n.startPositionColumn,r.startIndex=null==n?void 0:n.startIndex,r.endPositionRow=null==n?void 0:n.endPositionRow,r.endPositionColumn=null==n?void 0:n.endPositionColumn,r.endIndex=null==n?void 0:n.endIndex),e.meta.length>0&&(t._meta=Uf(e.meta)),e.attributes.length>0&&(t._attributes=Uf(e.attributes)),Of(e.content)){const r=e.content;t.content=Ff(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ff.KeyValuePair?t.content=zf(e.content):t.content=e.content;return t},Hf=e=>{if(e instanceof ff.KeyValuePair)return zf(e);if(e instanceof ff.ObjectSlice)return(e=>{const t=[...e];return new ff.ObjectSlice(t)})(e);if(e instanceof ff.ArraySlice)return(e=>{const t=[...e];return new ff.ArraySlice(t)})(e);if(Of(e))return Ff(e);throw new Vf("Value provided to cloneShallow function couldn't be cloned",{value:e})};Hf.safe=e=>{try{return Hf(e)}catch{return e}};const Kf=e=>Tf(e)?"ObjectElement":Sf(e)?"ArrayElement":jf(e)?"MemberElement":xf(e)?"StringElement":kf(e)?"BooleanElement":Af(e)?"NumberElement":_f(e)?"NullElement":Pf(e)?"LinkElement":Cf(e)?"RefElement":void 0,qf=e=>Of(e)?Hf(e):If(e),Gf=aa(Kf,Vu),Yf={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]},Jf=(e,t,{keyMap:r=Yf,...n}={})=>$f(e,t,{keyMap:r,nodeTypeGetter:Kf,nodePredicate:Gf,nodeCloneFn:qf,...n});Jf[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Yf,...n}={})=>$f[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Kf,nodePredicate:Gf,nodeCloneFn:qf,...n});const Xf=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Kf(e),Wf={EphemeralObject:["content"],EphemeralArray:["content"],...Yf},Qf=(e,t,{keyMap:r=Wf,...n}={})=>Jf(e,t,{keyMap:r,nodeTypeGetter:Xf,nodePredicate:xo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Qf[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Wf,...r}={})=>Jf[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xf,nodePredicate:xo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class Zf{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class ep{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}class tp{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ep(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Zf(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return xf(e.href)?e.href.toValue():""}}const rp=e=>Of(e)?xf(e)||Af(e)||kf(e)||_f(e)?e.toValue():Qf(e,new tp):e;class np extends yo{name="apidom";isArray(e){return Sf(e)}isObject(e){return Tf(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){const r=Number(t),n=r>>>0;if(r!==n)throw new go(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return n<this.sizeOf(e)}if(this.isObject(e)){const r=e.keys(),n=new Set(r);if(r.length!==n.size)throw new wo(`Object key "${t}" is not unique — JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}}const ip=(e,t,r={})=>Oo(e,t,{...r,realm:new np});e.EvaluationJsonPathError=Ms,e.MultiEvaluationJsonPathError=Ls,e.evaluate=(e,t)=>{try{const r=rp(t);return Ys({path:e,json:r,resultType:"pointer"}).map((e=>ip(t,e)))}catch(r){throw new Ms(`JSON Path evaluation failed while evaluating "${String(e)}".`,{path:e,element:Uf(t),cause:r})}},e.evaluateMulti=(e,t)=>{try{const r=rp(t),n=[];for(const i of e){const e=Ys({path:i,json:r,resultType:"pointer"}),s=[];for(const r of e){const e=ip(t,r);s.push(e)}Array.isArray(i)?n.push([Ys.toPathString(i),s]):n.push([i,s])}return n}catch(r){throw new Ls(`JSON Path evaluation failed while multi-evaluating "${String(e)}".`,{paths:e,element:Uf(t),cause:r})}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));