@swagger-api/apidom-core 1.11.0 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/apidom-core.browser.js +11053 -14912
- package/dist/apidom-core.browser.min.js +4217 -1
- package/package.json +4 -4
|
@@ -1 +1,4217 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).apidomCore={})}(this,(function(t){"use strict";var e=function(){return!1},n=function(){return!0};function r(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(n){return 0===arguments.length||r(n)?e:t.apply(this,arguments)}}function o(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return r(n)?e:i((function(e){return t(n,e)}));default:return r(n)&&r(o)?e:r(n)?i((function(e){return t(e,o)})):r(o)?i((function(e){return t(n,e)})):t(n,o)}}}function s(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,i){return e.apply(this,arguments)};case 5:return function(t,n,r,i,o){return e.apply(this,arguments)};case 6:return function(t,n,r,i,o,s){return e.apply(this,arguments)};case 7:return function(t,n,r,i,o,s,u){return e.apply(this,arguments)};case 8:return function(t,n,r,i,o,s,u,a){return e.apply(this,arguments)};case 9:return function(t,n,r,i,o,s,u,a,c){return e.apply(this,arguments)};case 10:return function(t,n,r,i,o,s,u,a,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function u(t,e,n){return function(){for(var i=[],o=0,a=t,c=0,l=!1;c<e.length||o<arguments.length;){var f;c<e.length&&(!r(e[c])||o>=arguments.length)?f=e[c]:(f=arguments[o],o+=1),i[c]=f,r(f)?l=!0:a-=1,c+=1}return!l&&a<=0?n.apply(this,i):s(Math.max(0,a),u(t,i,n))}}var a=o((function(t,e){return 1===t?i(e):s(t,u(t,[],e))}));function c(t){return function e(n,s,u){switch(arguments.length){case 0:return e;case 1:return r(n)?e:o((function(e,r){return t(n,e,r)}));case 2:return r(n)&&r(s)?e:r(n)?o((function(e,n){return t(e,s,n)})):r(s)?o((function(e,r){return t(n,e,r)})):i((function(e){return t(n,s,e)}));default:return r(n)&&r(s)&&r(u)?e:r(n)&&r(s)?o((function(e,n){return t(e,n,u)})):r(n)&&r(u)?o((function(e,n){return t(e,s,n)})):r(s)&&r(u)?o((function(e,r){return t(n,e,r)})):r(n)?i((function(e){return t(e,s,u)})):r(s)?i((function(e){return t(n,e,u)})):r(u)?i((function(e){return t(n,s,e)})):t(n,s,u)}}}const l=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function f(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!l(r)){for(var i=0;i<t.length;){if("function"==typeof r[t[i]])return r[t[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const h=function(){return this.xf["@@transducer/init"]()},p=function(t){return this.xf["@@transducer/result"](t)};var m=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n;return this.f(e)||(this.all=!1,t=(n=this.xf["@@transducer/step"](t,!1))&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}),t},t}();function y(t){return function(e){return new m(t,e)}}var d=o(f(["all"],y,(function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0})));function b(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function v(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}function g(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const _="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var E=Object.prototype.toString,w=function(){return"[object Arguments]"===E.call(arguments)?function(t){return"[object Arguments]"===E.call(t)}:function(t){return g("callee",t)}}(),j=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=function(){return arguments.propertyIsEnumerable("length")}(),A=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},k="function"!=typeof Object.keys||S?i((function(t){if(Object(t)!==t)return[];var e,n,r=[],i=S&&w(t);for(e in t)!g(e,t)||i&&"length"===e||(r[r.length]=e);if(j)for(n=O.length-1;n>=0;)g(e=O[n],t)&&!A(r,e)&&(r[r.length]=e),n-=1;return r})):i((function(t){return Object(t)!==t?[]:Object.keys(t)})),P=i((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function M(t,e,n,r){var i=b(t);function o(t,e){return x(t,e,n.slice(),r.slice())}return!v((function(t,e){return!v(o,e,t)}),b(e),i)}function x(t,e,n,r){if(_(t,e))return!0;var i,o,s=P(t);if(s!==P(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(i=t.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!_(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!_(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var u=n.length-1;u>=0;){if(n[u]===t)return r[u]===e;u-=1}switch(s){case"Map":return t.size===e.size&&M(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&M(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=k(t);if(a.length!==k(e).length)return!1;var c=n.concat([t]),l=r.concat([e]);for(u=a.length-1;u>=0;){var f=a[u];if(!g(f,e)||!x(e[f],t[f],c,l))return!1;u-=1}return!0}var C=o((function(t,e){return x(t,e,[],[])}));function I(t,e){return function(t,e,n){var r,i;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(i=t[n])&&1/i===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(i=t[n])&&i!=i)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(C(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function T(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}function N(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var R=function(t){return(t<10?"0":"")+t},U="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+R(t.getUTCMonth()+1)+"-"+R(t.getUTCDate())+"T"+R(t.getUTCHours())+":"+R(t.getUTCMinutes())+":"+R(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function D(t,e,n){for(var r=0,i=n.length;r<i;)e=t(e,n[r]),r+=1;return e}function V(t){return"[object Object]"===Object.prototype.toString.call(t)}var L=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function F(t){return function(e){return new L(t,e)}}var B=o(f(["fantasy-land/filter","filter"],F,(function(t,e){return V(e)?D((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},k(e)):function(t,e){for(var n=0,r=e.length,i=[];n<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}(t,e)}))),z=o((function(t,e){return B((n=t,function(){return!n.apply(this,arguments)}),e);var n}));function q(t,e){var n=function(n){var r=e.concat([t]);return I(n,r)?"<Circular>":q(n,r)},r=function(t,e){return T((function(e){return N(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+T(n,t).join(", ")+"))";case"[object Array]":return"["+T(n,t).concat(r(t,z((function(t){return/^\d+$/.test(t)}),k(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):N(U(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":N(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var i=t.toString();if("[object Object]"!==i)return i}return"{"+r(t,k(t)).join(", ")+"}"}}var $=i((function(t){return q(t,[])})),G=o((function(t,e){if(t===e)return e;function n(t,e){if(t>e!=e>t)return e>t?e:t}var r=n(t,e);if(void 0!==r)return r;var i=n(typeof t,typeof e);if(void 0!==i)return i===typeof t?t:e;var o=$(t),s=n(o,$(e));return void 0!==s&&s===o?t:e})),K=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),W=o(f(["fantasy-land/map","map"],(function(t){return function(e){return new K(t,e)}}),(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return a(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return D((function(n,r){return n[r]=t(e[r]),n}),{},k(e));default:return T(t,e)}})));const J=Number.isInteger||function(t){return(t|0)===t};function H(t){return"[object String]"===Object.prototype.toString.call(t)}function Y(t,e){var n=t<0?e.length+t:t;return H(e)?e.charAt(n):e[n]}var X=o((function(t,e){if(null!=e)return J(t)?Y(t,e):e[t]})),Z=o((function(t,e){return W(X(t),e)})),Q=i((function(t){return!!l(t)||!!t&&("object"==typeof t&&(!H(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))})),tt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function et(t,e,n){return function(r,i,o){if(Q(o))return t(r,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return e(r,i,o,"fantasy-land/reduce");if(null!=o[tt])return n(r,i,o[tt]());if("function"==typeof o.next)return n(r,i,o);if("function"==typeof o.reduce)return e(r,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function nt(t,e,n){for(var r=0,i=n.length;r<i;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}var rt=o((function(t,e){return s(t.length,(function(){return t.apply(e,arguments)}))}));function it(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function ot(t,e,n,r){return t["@@transducer/result"](n[r](rt(t["@@transducer/step"],t),e))}var st=et(nt,ot,it),ut=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();var at=c((function(t,e,n){return st("function"==typeof t?new ut(t):t,e,n)})),ct=i((function(t){return function(){return t}})),lt=o((function(t,e){return t&&e})),ft=i((function(t){return a(at(G,0,Z("length",t)),(function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function ht(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function pt(t,e,n,r){return n[r](t,e)}var mt=et(D,pt,ht),yt=o((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:mt((function(t,n){return function(t,e){var n;e=e||[];var r=(t=t||[]).length,i=e.length,o=[];for(n=0;n<r;)o[o.length]=t[n],n+=1;for(n=0;n<i;)o[o.length]=e[n],n+=1;return o}(t,W(n,e))}),[],t)})),dt=o((function(t,e){return t.apply(this,e)})),bt=i((function(t){return a(t.length,t)})),vt=i((function(t){return null==t}));function gt(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}var _t=o((function(t,e){var n=a(t,e);return a(t,(function(){return D(yt,W(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),Et=i((function(t){return _t(t.length,t)})),wt=o((function(t,e){return gt(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:Et(lt)(t,e)})),jt=Et(i((function(t){return!t})));function Ot(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function St(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return l(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var At=c(St("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)}))),kt=i(St("tail",At(1,1/0)));function Pt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return s(arguments[0].length,at(Ot,arguments[0],kt(arguments)))}var Mt=o((function(t,e){return null==e||e!=e?t:e})),xt=i((function(t){return Y(-1,t)})),Ct=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=h,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function It(t){return function(e){return new Ct(t,e)}}var Tt=o(f(["dropWhile"],It,(function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return At(n,1/0,e)})));var Nt=i((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():l(t)?[]:H(t)?"":V(t)?{}:w(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0})),Rt=i((function(t){return a(t.length,(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)}))})),Ut=o((function(t,e){if(0===t.length||vt(e))return!1;for(var n=e,r=0;r<t.length;){if(vt(n)||!g(t[r],n))return!1;n=n[t[r]],r+=1}return!0})),Dt=o((function(t,e){return Ut([t],e)})),Vt=function(t,e){switch(arguments.length){case 0:return Vt;case 1:return function e(n){return 0===arguments.length?e:_(t,n)};default:return _(t,e)}},Lt=o(I),Ft=At(0,-1),Bt=o((function(t,e){return a(t+1,(function(){var n=arguments[t];if(null!=n&>(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError($(n)+' does not have a method named "'+e+'"')}))})),zt=i((function(t){return null!=t&&C(t,Nt(t))})),qt=Bt(1,"join");function $t(t,e){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;var i=t[r];n=J(i)?Y(i,n):n[i]}return n}var Gt=o((function(t,e){return D((function(n,r){return n[r]=t(e[r],r,e),n}),{},k(e))})),Kt=c((function(t,e,n){var r,i={};for(r in n=n||{},e=e||{})g(r,e)&&(i[r]=g(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)g(r,n)&&!g(r,i)&&(i[r]=n[r]);return i})),Wt=c((function t(e,n,r){return Kt((function(n,r,i){return V(r)&&V(i)?t(e,r,i):e(n,r,i)}),n,r)})),Jt=o((function(t,e){return Wt((function(t,e,n){return n}),t,e)})),Ht=o($t),Yt=c((function(t,e,n){return Mt(t,$t(e,n))})),Xt=c((function(t,e,n){return t($t(e,n))})),Zt=c((function(t,e,n){return Mt(t,X(e,n))})),Qt=c((function(t,e,n){return t(X(e,n))})),te=Bt(1,"split"),ee=ct(void 0),ne=C(ee()),re=jt(ne),ie=C(null),oe=jt(ie),se=a(1,Pt(P,Vt("GeneratorFunction"))),ue=a(1,Pt(P,Vt("AsyncFunction"))),ae=ft([Pt(P,Vt("Function")),se,ue]),ce=wt(a(1,ae(Array.isArray)?Array.isArray:Pt(P,Vt("Array"))),zt),le=a(1,Pt(P,Vt("String")));function fe(t){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe(t)}var he=jt(ae),pe=a(1,wt(oe,(function(t){return"object"===fe(t)}))),me=Pt(P,Vt("Object")),ye=Pt($,C($(Object))),de=Xt(wt(ae,ye),["constructor"]),be=a(1,(function(t){if(!pe(t)||!me(t))return!1;var e=Object.getPrototypeOf(t);return!!ie(e)||de(e)})),ve=a(1,Pt(P,Vt("Number"))),ge=ct(ee()),_e=Rt(Lt),Ee=a(3,(function(t,e,n){var r=Ht(t,n),i=Ht(Ft(t),n);if(!he(r)&&!ce(t)){var o=rt(r,i);return dt(o,e)}})),we=bt((function(t,e){return Pt(te(""),Tt(_e(t)),qt(""))(e)})),je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Oe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Se,Ae,ke,Pe,Me,xe,Ce,Ie,Te,Ne,Re,Ue,De,Ve,Le,Fe,Be,ze,qe,$e,Ge,Ke,We,Je,He,Ye,Xe,Ze,Qe,tn,en,nn,rn,on,sn,un,an,cn,ln,fn,hn,pn,mn,yn,dn,bn,vn,gn,_n,En,wn,jn,On,Sn,An,kn,Pn,Mn,xn,Cn,In,Tn,Nn,Rn,Un,Dn,Vn,Ln,Fn,Bn,zn,qn,$n,Gn,Kn,Wn,Jn,Hn,Yn,Xn,Zn,Qn,tr,er,nr,rr,ir,or,sr,ur,ar,cr,lr,fr,hr,pr,mr,yr,dr,br,vr,gr,_r,Er,wr,jr,Or,Sr,Ar,kr,Pr,Mr,xr,Cr,Ir,Tr,Nr,Rr,Ur,Dr,Vr,Lr,Fr,Br,zr,qr,$r,Gr,Kr,Wr,Jr,Hr,Yr,Xr,Zr,Qr,ti,ei,ni={};function ri(){if(Pe)return ke;Pe=1;var t="object"==typeof je&&je&&je.Object===Object&&je;return ke=t}function ii(){if(xe)return Me;xe=1;var t=ri(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Me=n}function oi(){if(Ie)return Ce;Ie=1;var t=ii().Symbol;return Ce=t}function si(){if(Ve)return De;Ve=1;var t=oi(),e=function(){if(Ne)return Te;Ne=1;var t=oi(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;return Te=function(t){var e=n.call(t,i),o=t[i];try{t[i]=void 0;var s=!0}catch(t){}var u=r.call(t);return s&&(e?t[i]=o:delete t[i]),u}}(),n=function(){if(Ue)return Re;Ue=1;var t=Object.prototype.toString;return Re=function(e){return t.call(e)}}(),r=t?t.toStringTag:void 0;return De=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?e(t):n(t)}}function ui(){if(Fe)return Le;Fe=1;var t=Array.isArray;return Le=t}function ai(){if(ze)return Be;return ze=1,Be=function(t){return null!=t&&"object"==typeof t}}function ci(){if(Ye)return He;return Ye=1,He=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},He}function li(){if(Ze)return Xe;Ze=1;return Xe=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const n=this.serialiseContent(t.content);return void 0!==n&&(e.content=n),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const n=this.deserialiseContent(t.content);return void 0===n&&null!==e.content||(e.content=n),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,n)=>{t&&(e[n.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}},Xe}function fi(){if(nn)return en;return nn=1,en=function(t,e){return t===e||t!=t&&e!=e}}function hi(){if(on)return rn;on=1;var t=fi();return rn=function(e,n){for(var r=e.length;r--;)if(t(e[r][0],n))return r;return-1}}function pi(){if(yn)return mn;yn=1;var t=tn?Qe:(tn=1,Qe=function(){this.__data__=[],this.size=0}),e=function(){if(un)return sn;un=1;var t=hi(),e=Array.prototype.splice;return sn=function(n){var r=this.__data__,i=t(r,n);return!(i<0||(i==r.length-1?r.pop():e.call(r,i,1),--this.size,0))}}(),n=function(){if(cn)return an;cn=1;var t=hi();return an=function(e){var n=this.__data__,r=t(n,e);return r<0?void 0:n[r][1]}}(),r=function(){if(fn)return ln;fn=1;var t=hi();return ln=function(e){return t(this.__data__,e)>-1}}(),i=function(){if(pn)return hn;pn=1;var t=hi();return hn=function(e,n){var r=this.__data__,i=t(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,mn=o}function mi(){if(Sn)return On;Sn=1;var t=si(),e=ci();return On=function(n){if(!e(n))return!1;var r=t(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function yi(){if(Mn)return Pn;Mn=1;var t=function(){if(kn)return An;kn=1;var t=ii()["__core-js_shared__"];return An=t}(),e=function(){var e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();return Pn=function(t){return!!e&&e in t}}function di(){if(Cn)return xn;Cn=1;var t=Function.prototype.toString;return xn=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function bi(){if(Dn)return Un;Dn=1;var t=function(){if(Tn)return In;Tn=1;var t=mi(),e=yi(),n=ci(),r=di(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,a=s.hasOwnProperty,c=RegExp("^"+u.call(a).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return In=function(o){return!(!n(o)||e(o))&&(t(o)?c:i).test(r(o))}}(),e=Rn?Nn:(Rn=1,Nn=function(t,e){return null==t?void 0:t[e]});return Un=function(n,r){var i=e(n,r);return t(i)?i:void 0}}function vi(){if(Ln)return Vn;Ln=1;var t=bi()(ii(),"Map");return Vn=t}function gi(){if(Bn)return Fn;Bn=1;var t=bi()(Object,"create");return Fn=t}function _i(){if(Qn)return Zn;Qn=1;var t=function(){if(qn)return zn;qn=1;var t=gi();return zn=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Gn?$n:(Gn=1,$n=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),n=function(){if(Wn)return Kn;Wn=1;var t=gi(),e=Object.prototype.hasOwnProperty;return Kn=function(n){var r=this.__data__;if(t){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return e.call(r,n)?r[n]:void 0}}(),r=function(){if(Hn)return Jn;Hn=1;var t=gi(),e=Object.prototype.hasOwnProperty;return Jn=function(n){var r=this.__data__;return t?void 0!==r[n]:e.call(r,n)}}(),i=function(){if(Xn)return Yn;Xn=1;var t=gi();return Yn=function(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Zn=o}function Ei(){if(or)return ir;or=1;var t=(rr||(rr=1,nr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}),nr);return ir=function(e,n){var r=e.__data__;return t(n)?r["string"==typeof n?"string":"hash"]:r.map},ir}function wi(){if(yr)return mr;yr=1;var t=function(){if(er)return tr;er=1;var t=_i(),e=pi(),n=vi();return tr=function(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}}(),e=function(){if(ur)return sr;ur=1;var t=Ei();return sr=function(e){var n=t(this,e).delete(e);return this.size-=n?1:0,n}}(),n=function(){if(cr)return ar;cr=1;var t=Ei();return ar=function(e){return t(this,e).get(e)}}(),r=function(){if(fr)return lr;fr=1;var t=Ei();return lr=function(e){return t(this,e).has(e)}}(),i=function(){if(pr)return hr;pr=1;var t=Ei();return hr=function(e,n){var r=t(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,mr=o}function ji(){if(gr)return vr;gr=1;var t=pi(),e=function(){if(bn)return dn;bn=1;var t=pi();return dn=function(){this.__data__=new t,this.size=0}}(),n=gn?vn:(gn=1,vn=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}),r=En?_n:(En=1,_n=function(t){return this.__data__.get(t)}),i=jn?wn:(jn=1,wn=function(t){return this.__data__.has(t)}),o=function(){if(br)return dr;br=1;var t=pi(),e=vi(),n=wi();return dr=function(r,i){var o=this.__data__;if(o instanceof t){var s=o.__data__;if(!e||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this}}();function s(e){var n=this.__data__=new t(e);this.size=n.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,vr=s}function Oi(){if(Sr)return Or;Sr=1;var t=wi(),e=Er?_r:(Er=1,_r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),n=jr?wr:(jr=1,wr=function(t){return this.__data__.has(t)});function r(e){var n=-1,r=null==e?0:e.length;for(this.__data__=new t;++n<r;)this.add(e[n])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Or=r}function Si(){if(Cr)return xr;Cr=1;var t=Oi(),e=kr?Ar:(kr=1,Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}),n=Mr?Pr:(Mr=1,Pr=function(t,e){return t.has(e)});return xr=function(r,i,o,s,u,a){var c=1&o,l=r.length,f=i.length;if(l!=f&&!(c&&f>l))return!1;var h=a.get(r),p=a.get(i);if(h&&p)return h==i&&p==r;var m=-1,y=!0,d=2&o?new t:void 0;for(a.set(r,i),a.set(i,r);++m<l;){var b=r[m],v=i[m];if(s)var g=c?s(v,b,m,i,r,a):s(b,v,m,r,i,a);if(void 0!==g){if(g)continue;y=!1;break}if(d){if(!e(i,(function(t,e){if(!n(d,e)&&(b===t||u(b,t,o,s,a)))return d.push(e)}))){y=!1;break}}else if(b!==v&&!u(b,v,o,s,a)){y=!1;break}}return a.delete(r),a.delete(i),y}}function Ai(){if(Lr)return Vr;Lr=1;var t=oi(),e=function(){if(Tr)return Ir;Tr=1;var t=ii().Uint8Array;return Ir=t}(),n=fi(),r=Si(),i=(Rr||(Rr=1,Nr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}),Nr),o=Dr?Ur:(Dr=1,Ur=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}),s=t?t.prototype:void 0,u=s?s.valueOf:void 0;return Vr=function(t,s,a,c,l,f,h){switch(a){case"[object DataView]":if(t.byteLength!=s.byteLength||t.byteOffset!=s.byteOffset)return!1;t=t.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=s.byteLength||!f(new e(t),new e(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+s);case"[object Error]":return t.name==s.name&&t.message==s.message;case"[object RegExp]":case"[object String]":return t==s+"";case"[object Map]":var p=i;case"[object Set]":var m=1&c;if(p||(p=o),t.size!=s.size&&!m)return!1;var y=h.get(t);if(y)return y==s;c|=2,h.set(t,s);var d=r(p(t),p(s),c,l,f,h);return h.delete(t),d;case"[object Symbol]":if(u)return u.call(t)==u.call(s)}return!1}}function ki(){if(qr)return zr;qr=1;var t=Br?Fr:(Br=1,Fr=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}),e=ui();return zr=function(n,r,i){var o=r(n);return e(n)?o:t(o,i(n))}}function Pi(){if(Hr)return Jr;Hr=1;var t=Gr?$r:(Gr=1,$r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}),e=Wr?Kr:(Wr=1,Kr=function(){return[]}),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return Jr=r?function(e){return null==e?[]:(e=Object(e),t(r(e),(function(t){return n.call(e,t)})))}:e}function Mi(){if(ei)return ti;ei=1;var t=function(){if(Qr)return Zr;Qr=1;var t=si(),e=ai();return Zr=function(n){return e(n)&&"[object Arguments]"==t(n)}}(),e=ai(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&r.call(t,"callee")&&!i.call(t,"callee")};return ti=o}var xi,Ci,Ii,Ti,Ni,Ri,Ui,Di,Vi,Li,Fi,Bi={exports:{}};function zi(){return Ii||(Ii=1,function(t,e){var n=ii(),r=Ci?xi:(Ci=1,xi=function(){return!1}),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||r;t.exports=u}(Bi,Bi.exports)),Bi.exports}function qi(){if(Ui)return Ri;Ui=1;return Ri=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}var $i,Gi,Ki,Wi,Ji,Hi,Yi,Xi,Zi,Qi,to,eo,no,ro,io,oo,so,uo,ao,co,lo,fo,ho,po,mo,yo,bo,vo,go,_o,Eo,wo,jo,Oo,So,Ao,ko,Po,Mo,xo,Co,Io,To,No,Ro,Uo,Do,Vo,Lo,Fo,Bo,zo,qo,$o,Go,Ko,Wo,Jo,Ho,Yo,Xo,Zo,Qo,ts,es,ns,rs,is,os,ss,us,as,cs={exports:{}};function ls(){if(Ki)return Gi;Ki=1;var t=function(){if(Vi)return Di;Vi=1;var t=si(),e=qi(),n=ai(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,Di=function(i){return n(i)&&e(i.length)&&!!r[t(i)]}}(),e=Fi?Li:(Fi=1,Li=function(t){return function(e){return t(e)}}),n=($i||($i=1,function(t,e){var n=ri(),r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(cs,cs.exports)),cs.exports),r=n&&n.isTypedArray,i=r?e(r):t;return Gi=i}function fs(){if(Ji)return Wi;Ji=1;var t=Xr?Yr:(Xr=1,Yr=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}),e=Mi(),n=ui(),r=zi(),i=function(){if(Ni)return Ti;Ni=1;var t=/^(?:0|[1-9]\d*)$/;return Ti=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n},Ti}(),o=ls(),s=Object.prototype.hasOwnProperty;return Wi=function(u,a){var c=n(u),l=!c&&e(u),f=!c&&!l&&r(u),h=!c&&!l&&!f&&o(u),p=c||l||f||h,m=p?t(u.length,String):[],y=m.length;for(var d in u)!a&&!s.call(u,d)||p&&("length"==d||f&&("offset"==d||"parent"==d)||h&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||i(d,y))||m.push(d);return m}}function hs(){if(to)return Qi;to=1;var t=(Zi?Xi:(Zi=1,Xi=function(t,e){return function(n){return t(e(n))}}))(Object.keys,Object);return Qi=t}function ps(){if(no)return eo;no=1;var t=function(){if(Yi)return Hi;Yi=1;var t=Object.prototype;return Hi=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}}(),e=hs(),n=Object.prototype.hasOwnProperty;return eo=function(r){if(!t(r))return e(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}function ms(){if(so)return oo;so=1;var t=fs(),e=ps(),n=function(){if(io)return ro;io=1;var t=mi(),e=qi();return ro=function(n){return null!=n&&e(n.length)&&!t(n)}}();return oo=function(r){return n(r)?t(r):e(r)}}function ys(){if(lo)return co;lo=1;var t=function(){if(ao)return uo;ao=1;var t=ki(),e=Pi(),n=ms();return uo=function(r){return t(r,n,e)}}(),e=Object.prototype.hasOwnProperty;return co=function(n,r,i,o,s,u){var a=1&i,c=t(n),l=c.length;if(l!=t(r).length&&!a)return!1;for(var f=l;f--;){var h=c[f];if(!(a?h in r:e.call(r,h)))return!1}var p=u.get(n),m=u.get(r);if(p&&m)return p==r&&m==n;var y=!0;u.set(n,r),u.set(r,n);for(var d=a;++f<l;){var b=n[h=c[f]],v=r[h];if(o)var g=a?o(v,b,h,r,n,u):o(b,v,h,n,r,u);if(!(void 0===g?b===v||s(b,v,i,o,u):g)){y=!1;break}d||(d="constructor"==h)}if(y&&!d){var _=n.constructor,E=r.constructor;_==E||!("constructor"in n)||!("constructor"in r)||"function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E||(y=!1)}return u.delete(n),u.delete(r),y}}function ds(){if(Eo)return _o;Eo=1;var t=function(){if(ho)return fo;ho=1;var t=bi()(ii(),"DataView");return fo=t}(),e=vi(),n=function(){if(mo)return po;mo=1;var t=bi()(ii(),"Promise");return po=t}(),r=function(){if(bo)return yo;bo=1;var t=bi()(ii(),"Set");return yo=t}(),i=function(){if(go)return vo;go=1;var t=bi()(ii(),"WeakMap");return vo=t}(),o=si(),s=di(),u="[object Map]",a="[object Promise]",c="[object Set]",l="[object WeakMap]",f="[object DataView]",h=s(t),p=s(e),m=s(n),y=s(r),d=s(i),b=o;return(t&&b(new t(new ArrayBuffer(1)))!=f||e&&b(new e)!=u||n&&b(n.resolve())!=a||r&&b(new r)!=c||i&&b(new i)!=l)&&(b=function(t){var e=o(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return f;case p:return u;case m:return a;case y:return c;case d:return l}return e}),_o=b}function bs(){if(So)return Oo;So=1;var t=function(){if(jo)return wo;jo=1;var t=ji(),e=Si(),n=Ai(),r=ys(),i=ds(),o=ui(),s=zi(),u=ls(),a="[object Arguments]",c="[object Array]",l="[object Object]",f=Object.prototype.hasOwnProperty;return wo=function(h,p,m,y,d,b){var v=o(h),g=o(p),_=v?c:i(h),E=g?c:i(p),w=(_=_==a?l:_)==l,j=(E=E==a?l:E)==l,O=_==E;if(O&&s(h)){if(!s(p))return!1;v=!0,w=!1}if(O&&!w)return b||(b=new t),v||u(h)?e(h,p,m,y,d,b):n(h,p,_,m,y,d,b);if(!(1&m)){var S=w&&f.call(h,"__wrapped__"),A=j&&f.call(p,"__wrapped__");if(S||A){var k=S?h.value():h,P=A?p.value():p;return b||(b=new t),d(k,P,m,y,b)}}return!!O&&(b||(b=new t),r(h,p,m,y,d,b))}}(),e=ai();return Oo=function n(r,i,o,s,u){return r===i||(null==r||null==i||!e(r)&&!e(i)?r!=r&&i!=i:t(r,i,o,s,n,u))},Oo}function vs(){if(Mo)return Po;Mo=1;class t{constructor(t,e){this.key=t,this.value=e}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}return Po=t}function gs(){if(Co)return xo;Co=1;return xo=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}},xo}function _s(){if(To)return Io;To=1;const t=gs();function e(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class n{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const n=[];return this.forEach((r=>{const i=t.bind(e)(r);i&&n.push(i)})),n}filter(t,r){return t=e(t),new n(this.elements.filter(t,r))}reject(r,i){return r=e(r),new n(this.elements.filter(t(r),i))}find(t,n){return t=e(t),this.elements.find(t,n)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}return"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),Io=n}function Es(){if(Ro)return No;Ro=1;const t=function(){if(ko)return Ao;ko=1;var t=bs();return Ao=function(e,n){return t(e,n)}}(),e=vs(),n=_s();class r{constructor(t,e,n){e&&(this.meta=e),n&&(this.attributes=n),this.content=t}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof r?this.content.toValue():this.content instanceof e?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const r=t.pop();let i=new n;const o=(t,e)=>(t.push(e),t),s=(t,n)=>{n.element===r&&t.push(n);const i=n.findRecursive(r);return i&&i.reduce(o,t),n.content instanceof e&&(n.content.key&&s(t,n.content.key),n.content.value&&s(t,n.content.value)),t};return this.content&&(this.content.element&&s(i,this.content),Array.isArray(this.content)&&this.content.reduce(s,i)),t.isEmpty||(i=i.filter((e=>{let n=e.parents.map((t=>t.element));for(const e in t){const r=t[e],i=n.indexOf(r);if(-1===i)return!1;n=n.splice(0,i)}return!0}))),i}set(t){return this.content=t,this}equals(e){return t(this.toValue(),e)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof r)this._content=t;else if(t instanceof n)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof e)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new n;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new n(this.content);if(this.content instanceof e){const t=new n([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof r?new n([this.content]):new n}get recursiveChildren(){const t=new n;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}return No=r}function ws(){if(Go)return $o;Go=1;const t=gs(),e=Es(),n=_s();class r extends e{constructor(t,e,n){super(t||[],e,n),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const n=[];return this.forEach((r=>{const i=t.bind(e)(r);i&&n.push(i)})),n}filter(t,e){return new n(this.content.filter(t,e))}reject(e,n){return this.filter(t(e),n)}reduce(t,e){let n,r;void 0!==e?(n=0,r=this.refract(e)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let e=n;e<this.length;e+=1){const n=this.content[e];r="object"===this.primitive()?this.refract(t(r,n.value,n.key,n,this)):this.refract(t(r,n,e,this))}return r}forEach(t,e){this.content.forEach(((n,r)=>{t.bind(e)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const n=e||{},r=!!n.recursive,i=void 0===n.results?[]:n.results;return this.forEach(((e,n,o)=>{r&&void 0!==e.findElements&&e.findElements(t,{results:i,recursive:r}),t(e,n,o)&&i.push(e)})),i}find(t){return new n(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}return r.empty=function(){return new this},r["fantasy-land/empty"]=r.empty,"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),$o=r}function js(){if(Wo)return Ko;Wo=1;const t=vs(),e=Es();return Ko=class extends e{constructor(e,n,r,i){super(new t,r,i),this.element="member",this.key=e,this.value=n}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}}function Os(){if(Ho)return Jo;Ho=1;const t=gs(),e=_s();class n extends e{map(t,e){return this.elements.map((n=>t.bind(e)(n.value,n.key,n)))}filter(t,e){return new n(this.elements.filter((n=>t.bind(e)(n.value,n.key,n))))}reject(e,n){return this.filter(t(e.bind(n)))}forEach(t,e){return this.elements.forEach(((n,r)=>{t.bind(e)(n.value,n.key,n,r)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}return Jo=n}function Ss(){if(rs)return ns;rs=1;const t=Es(),e=function(){if(Do)return Uo;Do=1;const t=Es();return Uo=class extends t{constructor(t,e,n){super(t||null,e,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}(),n=function(){if(Lo)return Vo;Lo=1;const t=Es();return Vo=class extends t{constructor(t,e,n){super(t,e,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}(),r=function(){if(Bo)return Fo;Bo=1;const t=Es();return Fo=class extends t{constructor(t,e,n){super(t,e,n),this.element="number"}primitive(){return"number"}}}(),i=function(){if(qo)return zo;qo=1;const t=Es();return zo=class extends t{constructor(t,e,n){super(t,e,n),this.element="boolean"}primitive(){return"boolean"}}}(),o=ws(),s=js(),u=function(){if(Xo)return Yo;Xo=1;const t=gs(),e=ci(),n=ws(),r=js(),i=Os();return Yo=class extends n{constructor(t,e,n){super(t||[],e,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((n=>n.key.toValue()!==t||(e=n,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,n){if(e(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const i=t,o=this.getMember(i);return o?o.value=n:this.content.push(new r(i,n)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((n=>t.bind(e)(n.value,n.key,n)))}compactMap(t,e){const n=[];return this.forEach(((r,i,o)=>{const s=t.bind(e)(r,i,o);s&&n.push(s)})),n}filter(t,e){return new i(this.content).filter(t,e)}reject(e,n){return this.filter(t(e),n)}forEach(t,e){return this.content.forEach((n=>t.bind(e)(n.value,n.key,n)))}}}(),a=function(){if(Qo)return Zo;Qo=1;const t=Es();return Zo=class extends t{constructor(t,e,n){super(t||[],e,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}}(),c=function(){if(es)return ts;es=1;const t=Es();return ts=class extends t{constructor(t,e,n){super(t||[],e,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}}(),l=_s(),f=Os(),h=vs();function p(s){if(s instanceof t)return s;if("string"==typeof s)return new n(s);if("number"==typeof s)return new r(s);if("boolean"==typeof s)return new i(s);if(null===s)return new e;if(Array.isArray(s))return new o(s.map(p));if("object"==typeof s){return new u(s)}return s}return t.prototype.ObjectElement=u,t.prototype.RefElement=c,t.prototype.MemberElement=s,t.prototype.refract=p,l.prototype.refract=p,ns={Element:t,NullElement:e,StringElement:n,NumberElement:r,BooleanElement:i,ArrayElement:o,MemberElement:s,ObjectElement:u,LinkElement:a,RefElement:c,refract:p,ArraySlice:l,ObjectSlice:f,KeyValuePair:h}}function As(){if(os)return is;os=1;const t=Ae?Se:(Ae=1,Se=function(t){return null===t}),e=function(){if($e)return qe;$e=1;var t=si(),e=ui(),n=ai();return qe=function(r){return"string"==typeof r||!e(r)&&n(r)&&"[object String]"==t(r)}}(),n=function(){if(Ke)return Ge;Ke=1;var t=si(),e=ai();return Ge=function(n){return"number"==typeof n||e(n)&&"[object Number]"==t(n)}}(),r=function(){if(Je)return We;Je=1;var t=si(),e=ai();return We=function(n){return!0===n||!1===n||e(n)&&"[object Boolean]"==t(n)}}(),i=ci(),o=li(),s=Ss();class u{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=s.Element,this.KeyValuePair=s.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.load({base:this}),this}useDefault(){return this.register("null",s.NullElement).register("string",s.StringElement).register("number",s.NumberElement).register("boolean",s.BooleanElement).register("array",s.ArrayElement).register("object",s.ObjectElement).register("member",s.MemberElement).register("ref",s.RefElement).register("link",s.LinkElement),this.detect(t,s.NullElement,!1).detect(e,s.StringElement,!1).detect(n,s.NumberElement,!1).detect(r,s.BooleanElement,!1).detect(Array.isArray,s.ArrayElement,!1).detect(i,s.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,n){return void 0===n||n?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(t)){e=new i(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new o(this)}}return o.prototype.Namespace=u,is=u}var ks=function(){if(as)return ni;as=1;const t=As(),e=Ss();return ni.Namespace=t,ni.namespace=function(e){return new t(e)},ni.KeyValuePair=vs(),ni.ArraySlice=e.ArraySlice,ni.ObjectSlice=e.ObjectSlice,ni.Element=e.Element,ni.StringElement=e.StringElement,ni.NumberElement=e.NumberElement,ni.BooleanElement=e.BooleanElement,ni.NullElement=e.NullElement,ni.ArrayElement=e.ArrayElement,ni.ObjectElement=e.ObjectElement,ni.MemberElement=e.MemberElement,ni.RefElement=e.RefElement,ni.LinkElement=e.LinkElement,ni.refract=e.refract,ni.JSONSerialiser=li(),ni.JSON06Serialiser=function(){if(us)return ss;us=1;const t=li();return ss=class extends t{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const n={element:t.element};t._meta&&t._meta.length>0&&(n.meta=this.serialiseObject(t.meta));const r="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(r){const e=this.enumSerialiseAttributes(t);e&&(n.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:r}=t;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===t.element&&e&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(t,n);else if(this[`${t.element}SerialiseContent`])n.content=this[`${t.element}SerialiseContent`](t,n);else if(void 0!==t.content){let r;e&&t.content.key?(r=t.content.clone(),r.key.attributes.set("variable",e),r=this.serialiseContent(r)):r=this.serialiseContent(t.content),this.shouldSerialiseContent(t,r)&&(n.content=r)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),n=e.remove("enumerations")||new this.namespace.elements.Array([]),r=e.get("default");let i=e.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([r.content]))),i.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==n.length&&i.unshift(t.content),i=i.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),i.length&&e.set("samples",i),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),n=new e;n.element!==t.element&&(n.element=t.element),t.meta&&this.deserialiseObject(t.meta,n.meta),t.attributes&&this.deserialiseObject(t.attributes,n.attributes);const r=this.deserialiseContent(t.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let t=n.attributes.get("samples");if(n.attributes.remove("samples"),t){const r=t;t=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const i=new e(r);i.element=n.element,t.push(i)}))}));const i=t.shift();n.content=i?i.content:void 0,n.attributes.set("samples",t)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const t=new e(r);t.element=n.element,n.attributes.set("default",t)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const t=n.attributes.get("meta");t&&(n.attributes.set("metadata",t),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,n)=>{if(t){const r=n.toValue();e[r]=this.convertKeyToRefract(r,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}}}(),ni}();class Ps extends ks.StringElement{constructor(t,e,n){super(t,e,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}class Ms extends ks.StringElement{constructor(t,e,n){super(t,e,n),this.element="comment"}}class xs extends ks.ArrayElement{constructor(t,e,n){super(t,e,n),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(ne(e))return!1;const n=this.content.findIndex((t=>t===e));return-1!==n&&(this.content[n]=t,!0)}}const Cs=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],Is=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,Ts=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),Ns=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof ks.ArrayElement)&&e.classes.includes(t),Rs=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,Us=t=>t({hasMethod:Cs,hasBasicElementProps:Is,primitiveEq:Ts,isElementType:Rs,hasClass:Ns}),Ds=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.Element||t(n)&&e(void 0,n))),Vs=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.StringElement||t(n)&&e("string",n))),Ls=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.NumberElement||t(n)&&e("number",n))),Fs=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.NullElement||t(n)&&e("null",n))),Bs=Us((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof ks.BooleanElement||t(n)&&e("boolean",n))),zs=Us((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof ks.ObjectElement||t(r)&&e("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),qs=Us((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof ks.ArrayElement&&!(r instanceof ks.ObjectElement)||t(r)&&e("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),$s=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ks.MemberElement||t(r)&&e("member",r)&&n(void 0,r))),Gs=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ks.LinkElement||t(r)&&e("link",r)&&n(void 0,r))),Ks=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ks.RefElement||t(r)&&e("ref",r)&&n(void 0,r))),Ws=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ps||t(r)&&e("annotation",r)&&n("array",r))),Js=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ms||t(r)&&e("comment",r)&&n("string",r))),Hs=Us((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof xs||t(r)&&e("parseResult",r)&&n("array",r))),Ys=t=>Rs("object",t)||Rs("array",t)||Rs("boolean",t)||Rs("number",t)||Rs("string",t)||Rs("null",t)||Rs("member",t),Xs=t=>!!Ds(t)&&(Number.isInteger(t.startPositionRow)&&Number.isInteger(t.startPositionColumn)&&Number.isInteger(t.startIndex)&&Number.isInteger(t.endPositionRow)&&Number.isInteger(t.endPositionColumn)&&Number.isInteger(t.endIndex)),Zs=(t,e)=>{if(0===t.length)return!0;const n=e.attributes.get("symbols");return!!qs(n)&&d(_e(n.toValue()),t)},Qs=(t,e)=>0===t.length||d(_e(e.classes.toValue()),t),tu=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Xs,includesClasses:Qs,includesSymbols:Zs,isAnnotationElement:Ws,isArrayElement:qs,isBooleanElement:Bs,isCommentElement:Js,isElement:Ds,isLinkElement:Gs,isMemberElement:$s,isNullElement:Fs,isNumberElement:Ls,isObjectElement:zs,isParseResultElement:Hs,isPrimitiveElement:Ys,isRefElement:Ks,isStringElement:Vs},Symbol.toStringTag,{value:"Module"}));class eu extends ks.Namespace{constructor(){super(),this.register("annotation",Ps),this.register("comment",Ms),this.register("parseResult",xs)}}const nu=new eu;var ru=Object.defineProperty,iu=Object.getOwnPropertySymbols,ou=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,uu=(t,e,n)=>e in t?ru(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var au,cu,lu,fu,hu,pu,mu,yu,du,bu,vu,gu,_u,Eu,wu,ju,Ou={},Su={},Au={};function ku(){if(cu)return au;cu=1;var t=function(t){return t&&t.Math===Math&&t};return au=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof je&&je)||t("object"==typeof au&&au)||function(){return this}()||Function("return this")()}function Pu(){return fu?lu:(fu=1,lu=function(t){try{return!!t()}catch(t){return!0}})}function Mu(){return pu?hu:(pu=1,hu=!Pu()((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})))}function xu(){if(yu)return mu;yu=1;var t=Mu(),e=Function.prototype,n=e.apply,r=e.call;return mu="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),mu}function Cu(){if(bu)return du;bu=1;var t=Mu(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return du=t?r:function(t){return function(){return n.apply(t,arguments)}},du}function Iu(){if(gu)return vu;gu=1;var t=Cu(),e=t({}.toString),n=t("".slice);return vu=function(t){return n(e(t),8,-1)}}function Tu(){if(Eu)return _u;Eu=1;var t=Iu(),e=Cu();return _u=function(n){if("Function"===t(n))return e(n)}}function Nu(){if(ju)return wu;ju=1;var t="object"==typeof document&&document.all;return wu=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var Ru,Uu,Du,Vu,Lu={};function Fu(){return Uu?Ru:(Uu=1,Ru=!Pu()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function Bu(){if(Vu)return Du;Vu=1;var t=Mu(),e=Function.prototype.call;return Du=t?e.bind(e):function(){return e.apply(e,arguments)},Du}var zu,qu,$u,Gu,Ku,Wu,Ju,Hu,Yu,Xu,Zu,Qu,ta,ea,na,ra,ia,oa,sa,ua,aa,ca,la,fa,ha,pa,ma,ya,da,ba,va,ga,_a,Ea,wa,ja,Oa,Sa={};function Aa(){if(zu)return Sa;zu=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return Sa.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,Sa}function ka(){return $u?qu:($u=1,qu=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function Pa(){if(Ku)return Gu;Ku=1;var t=Cu(),e=Pu(),n=Iu(),r=Object,i=t("".split);return Gu=e((function(){return!r("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function Ma(){return Ju?Wu:(Ju=1,Wu=function(t){return null==t})}function xa(){if(Yu)return Hu;Yu=1;var t=Ma(),e=TypeError;return Hu=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function Ca(){if(Zu)return Xu;Zu=1;var t=Pa(),e=xa();return Xu=function(n){return t(e(n))}}function Ia(){if(ta)return Qu;ta=1;var t=Nu();return Qu=function(e){return"object"==typeof e?null!==e:t(e)}}function Ta(){return na?ea:(na=1,ea={})}function Na(){if(ia)return ra;ia=1;var t=Ta(),e=ku(),n=Nu(),r=function(t){return n(t)?t:void 0};return ra=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},ra}function Ra(){return sa?oa:(sa=1,oa=Cu()({}.isPrototypeOf))}function Ua(){if(aa)return ua;aa=1;var t=ku().navigator,e=t&&t.userAgent;return ua=e?String(e):""}function Da(){if(la)return ca;la=1;var t,e,n=ku(),r=Ua(),i=n.process,o=n.Deno,s=i&&i.versions||o&&o.version,u=s&&s.v8;return u&&(e=(t=u.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),ca=e}function Va(){if(ha)return fa;ha=1;var t=Da(),e=Pu(),n=ku().String;return fa=!!Object.getOwnPropertySymbols&&!e((function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function La(){return ma?pa:(ma=1,pa=Va()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Fa(){if(da)return ya;da=1;var t=Na(),e=Nu(),n=Ra(),r=Object;return ya=La()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function Ba(){if(va)return ba;va=1;var t=String;return ba=function(e){try{return t(e)}catch(t){return"Object"}}}function za(){if(_a)return ga;_a=1;var t=Nu(),e=Ba(),n=TypeError;return ga=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function qa(){if(wa)return Ea;wa=1;var t=za(),e=Ma();return Ea=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function $a(){if(Oa)return ja;Oa=1;var t=Bu(),e=Nu(),n=Ia(),r=TypeError;return ja=function(i,o){var s,u;if("string"===o&&e(s=i.toString)&&!n(u=t(s,i)))return u;if(e(s=i.valueOf)&&!n(u=t(s,i)))return u;if("string"!==o&&e(s=i.toString)&&!n(u=t(s,i)))return u;throw new r("Can't convert object to primitive value")}}var Ga,Ka,Wa,Ja,Ha,Ya,Xa,Za,Qa,tc,ec,nc,rc,ic,oc,sc,uc,ac,cc,lc,fc,hc,pc,mc,yc,dc,bc,vc,gc={exports:{}};function _c(){return Ka?Ga:(Ka=1,Ga=!0)}function Ec(){if(Ja)return Wa;Ja=1;var t=ku(),e=Object.defineProperty;return Wa=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function wc(){if(Ha)return gc.exports;Ha=1;var t=_c(),e=ku(),n=Ec(),r="__core-js_shared__",i=gc.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:t?"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"}),gc.exports}function jc(){if(Xa)return Ya;Xa=1;var t=wc();return Ya=function(e,n){return t[e]||(t[e]=n||{})}}function Oc(){if(Qa)return Za;Qa=1;var t=xa(),e=Object;return Za=function(n){return e(t(n))}}function Sc(){if(ec)return tc;ec=1;var t=Cu(),e=Oc(),n=t({}.hasOwnProperty);return tc=Object.hasOwn||function(t,r){return n(e(t),r)}}function Ac(){if(rc)return nc;rc=1;var t=Cu(),e=0,n=Math.random(),r=t(1..toString);return nc=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function kc(){if(oc)return ic;oc=1;var t=ku(),e=jc(),n=Sc(),r=Ac(),i=Va(),o=La(),s=t.Symbol,u=e("wks"),a=o?s.for||s:s&&s.withoutSetter||r;return ic=function(t){return n(u,t)||(u[t]=i&&n(s,t)?s[t]:a("Symbol."+t)),u[t]}}function Pc(){if(uc)return sc;uc=1;var t=Bu(),e=Ia(),n=Fa(),r=qa(),i=$a(),o=TypeError,s=kc()("toPrimitive");return sc=function(u,a){if(!e(u)||n(u))return u;var c,l=r(u,s);if(l){if(void 0===a&&(a="default"),c=t(l,u,a),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(u,a)}}function Mc(){if(cc)return ac;cc=1;var t=Pc(),e=Fa();return ac=function(n){var r=t(n,"string");return e(r)?r:r+""}}function xc(){if(fc)return lc;fc=1;var t=ku(),e=Ia(),n=t.document,r=e(n)&&e(n.createElement);return lc=function(t){return r?n.createElement(t):{}}}function Cc(){if(pc)return hc;pc=1;var t=Fu(),e=Pu(),n=xc();return hc=!t&&!e((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Ic(){if(mc)return Lu;mc=1;var t=Fu(),e=Bu(),n=Aa(),r=ka(),i=Ca(),o=Mc(),s=Sc(),u=Cc(),a=Object.getOwnPropertyDescriptor;return Lu.f=t?a:function(t,c){if(t=i(t),c=o(c),u)try{return a(t,c)}catch(t){}if(s(t,c))return r(!e(n.f,t,c),t[c])},Lu}function Tc(){if(dc)return yc;dc=1;var t=Pu(),e=Nu(),n=/#|\.prototype\./,r=function(n,r){var a=o[i(n)];return a===u||a!==s&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",u=r.POLYFILL="P";return yc=r}function Nc(){if(vc)return bc;vc=1;var t=Tu(),e=za(),n=Mu(),r=t(t.bind);return bc=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},bc}var Rc,Uc,Dc,Vc,Lc,Fc,Bc,zc,qc,$c,Gc,Kc,Wc,Jc,Hc,Yc,Xc,Zc,Qc,tl,el,nl,rl,il={};function ol(){return Uc?Rc:(Uc=1,Rc=Fu()&&Pu()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function sl(){if(Vc)return Dc;Vc=1;var t=Ia(),e=String,n=TypeError;return Dc=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function ul(){if(Lc)return il;Lc=1;var t=Fu(),e=Cc(),n=ol(),r=sl(),i=Mc(),o=TypeError,s=Object.defineProperty,u=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",l="writable";return il.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=u(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return s(t,e,n)}:s:function(t,n,u){if(r(t),n=i(n),r(u),e)try{return s(t,n,u)}catch(t){}if("get"in u||"set"in u)throw new o("Accessors not supported");return"value"in u&&(t[n]=u.value),t},il}function al(){if(Bc)return Fc;Bc=1;var t=Fu(),e=ul(),n=ka();return Fc=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t}}function cl(){if(qc)return zc;qc=1;var t=ku(),e=xu(),n=Tu(),r=Nu(),i=Ic().f,o=Tc(),s=Ta(),u=Nc(),a=al(),c=Sc(),l=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return zc=function(e,f){var h,p,m,y,d,b,v,g,_,E=e.target,w=e.global,j=e.stat,O=e.proto,S=w?t:j?t[E]:t[E]&&t[E].prototype,A=w?s:s[E]||a(s,E,{})[E],k=A.prototype;for(y in f)p=!(h=o(w?y:E+(j?".":"#")+y,e.forced))&&S&&c(S,y),b=A[y],p&&(v=e.dontCallGetSet?(_=i(S,y))&&_.value:S[y]),d=p&&v?v:f[y],(h||O||typeof b!=typeof d)&&(g=e.bind&&p?u(d,t):e.wrap&&p?l(d):O&&r(d)?n(d):d,(e.sham||d&&d.sham||b&&b.sham)&&a(g,"sham",!0),a(A,y,g),O&&(c(s,m=E+"Prototype")||a(s,m,{}),a(s[m],y,d),e.real&&k&&(h||!k[y])&&a(k,y,d)))}}function ll(){if(Gc)return $c;Gc=1;var t=jc(),e=Ac(),n=t("keys");return $c=function(t){return n[t]||(n[t]=e(t))}}function fl(){return Wc||(Wc=1,Kc=!Pu()((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))),Kc}function hl(){if(Hc)return Jc;Hc=1;var t=Sc(),e=Nu(),n=Oc(),r=ll(),i=fl(),o=r("IE_PROTO"),s=Object,u=s.prototype;return Jc=i?s.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var a=i.constructor;return e(a)&&i instanceof a?a.prototype:i instanceof s?u:null}}function pl(){if(Xc)return Yc;Xc=1;var t=Cu(),e=za();return Yc=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(t){}}}function ml(){if(Qc)return Zc;Qc=1;var t=Ia();return Zc=function(e){return t(e)||null===e}}function yl(){if(el)return tl;el=1;var t=ml(),e=String,n=TypeError;return tl=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function dl(){if(rl)return nl;rl=1;var t=pl(),e=Ia(),n=xa(),r=yl();return nl=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=t(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(t){}return function(t,s){return n(t),r(s),e(t)?(o?i(t,s):t.__proto__=s,t):t}}():void 0)}var bl,vl,gl,_l,El,wl,jl,Ol,Sl,Al,kl,Pl,Ml,xl,Cl,Il,Tl,Nl,Rl,Ul={};function Dl(){if(vl)return bl;vl=1;var t=Math.ceil,e=Math.floor;return bl=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}function Vl(){if(_l)return gl;_l=1;var t=Dl();return gl=function(e){var n=+e;return n!=n||0===n?0:t(n)}}function Ll(){if(wl)return El;wl=1;var t=Vl(),e=Math.max,n=Math.min;return El=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)}}function Fl(){if(Ol)return jl;Ol=1;var t=Vl(),e=Math.min;return jl=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function Bl(){if(Al)return Sl;Al=1;var t=Fl();return Sl=function(e){return t(e.length)}}function zl(){if(Pl)return kl;Pl=1;var t=Ca(),e=Ll(),n=Bl(),r=function(r){return function(i,o,s){var u=t(i),a=n(u);if(0===a)return!r&&-1;var c,l=e(s,a);if(r&&o!=o){for(;a>l;)if((c=u[l++])!=c)return!0}else for(;a>l;l++)if((r||l in u)&&u[l]===o)return r||l||0;return!r&&-1}};return kl={includes:r(!0),indexOf:r(!1)}}function ql(){return xl?Ml:(xl=1,Ml={})}function $l(){if(Il)return Cl;Il=1;var t=Cu(),e=Sc(),n=Ca(),r=zl().indexOf,i=ql(),o=t([].push);return Cl=function(t,s){var u,a=n(t),c=0,l=[];for(u in a)!e(i,u)&&e(a,u)&&o(l,u);for(;s.length>c;)e(a,u=s[c++])&&(~r(l,u)||o(l,u));return l}}function Gl(){return Nl?Tl:(Nl=1,Tl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Kl(){if(Rl)return Ul;Rl=1;var t=$l(),e=Gl().concat("length","prototype");return Ul.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Ul}var Wl,Jl,Hl,Yl,Xl,Zl={};function Ql(){return Wl||(Wl=1,Zl.f=Object.getOwnPropertySymbols),Zl}function tf(){if(Hl)return Jl;Hl=1;var t=Na(),e=Cu(),n=Kl(),r=Ql(),i=sl(),o=e([].concat);return Jl=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),s=r.f;return s?o(e,s(t)):e},Jl}function ef(){if(Xl)return Yl;Xl=1;var t=Sc(),e=tf(),n=Ic(),r=ul();return Yl=function(i,o,s){for(var u=e(o),a=r.f,c=n.f,l=0;l<u.length;l++){var f=u[l];t(i,f)||s&&t(s,f)||a(i,f,c(o,f))}},Yl}var nf,rf,of,sf,uf,af,cf,lf,ff,hf,pf,mf,yf,df,bf,vf,gf,_f,Ef,wf,jf,Of,Sf,Af,kf,Pf,Mf,xf,Cf,If,Tf,Nf,Rf,Uf,Df,Vf,Lf,Ff,Bf={};function zf(){if(rf)return nf;rf=1;var t=$l(),e=Gl();return nf=Object.keys||function(n){return t(n,e)}}function qf(){if(of)return Bf;of=1;var t=Fu(),e=ol(),n=ul(),r=sl(),i=Ca(),o=zf();return Bf.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var s,u=i(e),a=o(e),c=a.length,l=0;c>l;)n.f(t,s=a[l++],u[s]);return t},Bf}function $f(){return uf?sf:(uf=1,sf=Na()("document","documentElement"))}function Gf(){if(cf)return af;cf=1;var t,e=sl(),n=qf(),r=Gl(),i=ql(),o=$f(),s=xc(),u="prototype",a="script",c=ll()("IE_PROTO"),l=function(){},f=function(t){return"<"+a+">"+t+"</"+a+">"},h=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;p="undefined"!=typeof document?document.domain&&t?h(t):(n=s("iframe"),i="java"+a+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):h(t);for(var c=r.length;c--;)delete p[u][r[c]];return p()};return i[c]=!0,af=Object.create||function(t,r){var i;return null!==t?(l[u]=e(t),i=new l,l[u]=null,i[c]=t):i=p(),void 0===r?i:n.f(i,r)}}function Kf(){if(ff)return lf;ff=1;var t=Ia(),e=al();return lf=function(n,r){t(r)&&"cause"in r&&e(n,"cause",r.cause)}}function Wf(){if(pf)return hf;pf=1;var t=Error,e=Cu()("".replace),n=String(new t("zxcasd").stack),r=/\n\s*at [^:]*:[^\n]*/,i=r.test(n);return hf=function(n,o){if(i&&"string"==typeof n&&!t.prepareStackTrace)for(;o--;)n=e(n,r,"");return n}}function Jf(){if(yf)return mf;yf=1;var t=Pu(),e=ka();return mf=!t((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",e(1,7)),7!==t.stack)}))}function Hf(){if(bf)return df;bf=1;var t=al(),e=Wf(),n=Jf(),r=Error.captureStackTrace;return df=function(i,o,s,u){n&&(r?r(i,o):t(i,"stack",e(s,u)))}}function Yf(){return gf?vf:(gf=1,vf={})}function Xf(){if(Ef)return _f;Ef=1;var t=kc(),e=Yf(),n=t("iterator"),r=Array.prototype;return _f=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function Zf(){if(jf)return wf;jf=1;var t={};return t[kc()("toStringTag")]="z",wf="[object z]"===String(t)}function Qf(){if(Sf)return Of;Sf=1;var t=Zf(),e=Nu(),n=Iu(),r=kc()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Of=t?n:function(t){var s,u,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(u=function(t,e){try{return t[e]}catch(t){}}(s=i(t),r))?u:o?n(s):"Object"===(a=n(s))&&e(s.callee)?"Arguments":a}}function th(){if(kf)return Af;kf=1;var t=Qf(),e=qa(),n=Ma(),r=Yf(),i=kc()("iterator");return Af=function(o){if(!n(o))return e(o,i)||e(o,"@@iterator")||r[t(o)]}}function eh(){if(Mf)return Pf;Mf=1;var t=Bu(),e=za(),n=sl(),r=Ba(),i=th(),o=TypeError;return Pf=function(s,u){var a=arguments.length<2?i(s):u;if(e(a))return n(t(a,s));throw new o(r(s)+" is not iterable")},Pf}function nh(){if(Cf)return xf;Cf=1;var t=Bu(),e=sl(),n=qa();return xf=function(r,i,o){var s,u;e(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=t(s,r)}catch(t){u=!0,s=t}if("throw"===i)throw o;if(u)throw s;return e(s),o}}function rh(){if(Tf)return If;Tf=1;var t=Nc(),e=Bu(),n=sl(),r=Ba(),i=Xf(),o=Bl(),s=Ra(),u=eh(),a=th(),c=nh(),l=TypeError,f=function(t,e){this.stopped=t,this.result=e},h=f.prototype;return If=function(p,m,y){var d,b,v,g,_,E,w,j=y&&y.that,O=!(!y||!y.AS_ENTRIES),S=!(!y||!y.IS_RECORD),A=!(!y||!y.IS_ITERATOR),k=!(!y||!y.INTERRUPTED),P=t(m,j),M=function(t){return d&&c(d,"normal",t),new f(!0,t)},x=function(t){return O?(n(t),k?P(t[0],t[1],M):P(t[0],t[1])):k?P(t,M):P(t)};if(S)d=p.iterator;else if(A)d=p;else{if(!(b=a(p)))throw new l(r(p)+" is not iterable");if(i(b)){for(v=0,g=o(p);g>v;v++)if((_=x(p[v]))&&s(h,_))return _;return new f(!1)}d=u(p,b)}for(E=S?p.next:d.next;!(w=e(E,d)).done;){try{_=x(w.value)}catch(t){c(d,"throw",t)}if("object"==typeof _&&_&&s(h,_))return _}return new f(!1)}}function ih(){if(Rf)return Nf;Rf=1;var t=Qf(),e=String;return Nf=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}function oh(){if(Df)return Uf;Df=1;var t=ih();return Uf=function(e,n){return void 0===e?arguments.length<2?"":n:t(e)},Uf}function sh(){return Lf||(Lf=1,function(){if(Vf)return Au;Vf=1;var t=cl(),e=Ra(),n=hl(),r=dl(),i=ef(),o=Gf(),s=al(),u=ka(),a=Kf(),c=Hf(),l=rh(),f=oh(),h=kc()("toStringTag"),p=Error,m=[].push,y=function(t,i){var u,b=e(d,this);r?u=r(new p,b?n(this):d):(u=b?this:o(d),s(u,h,"Error")),void 0!==i&&s(u,"message",f(i)),c(u,y,u.stack,1),arguments.length>2&&a(u,arguments[2]);var v=[];return l(t,m,{that:v}),s(u,"errors",v),u};r?r(y,p):i(y,p,{name:!0});var d=y.prototype=o(p.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:y})}()),Su}function uh(){return Ff||(Ff=1,sh()),Ou}var ah,ch,lh,fh,hh,ph,mh,yh={};function dh(){if(ch)return ah;ch=1;var t=ul().f;return ah=function(e,n,r){r in e||t(e,r,{configurable:!0,get:function(){return n[r]},set:function(t){n[r]=t}})}}function bh(){if(fh)return lh;fh=1;var t=Nu(),e=Ia(),n=dl();return lh=function(r,i,o){var s,u;return n&&t(s=i.constructor)&&s!==o&&e(u=s.prototype)&&u!==o.prototype&&n(r,u),r}}function vh(){if(ph)return hh;ph=1;var t=Na(),e=Sc(),n=al(),r=Ra(),i=dl(),o=ef(),s=dh(),u=bh(),a=oh(),c=Kf(),l=Hf(),f=Fu(),h=_c();return hh=function(p,m,y,d){var b="stackTraceLimit",v=d?2:1,g=p.split("."),_=g[g.length-1],E=t.apply(null,g);if(E){var w=E.prototype;if(!h&&e(w,"cause")&&delete w.cause,!y)return E;var j=t("Error"),O=m((function(t,e){var i=a(d?e:t,void 0),o=d?new E(t):new E;return void 0!==i&&n(o,"message",i),l(o,O,o.stack,2),this&&r(w,this)&&u(o,this,O),arguments.length>v&&c(o,arguments[v]),o}));if(O.prototype=w,"Error"!==_?i?i(O,j):o(O,j,{name:!0}):f&&b in E&&(s(O,E,b),s(O,E,"prepareStackTrace")),o(O,E),!h)try{w.name!==_&&n(w,"name",_),w.constructor=O}catch(t){}return O}},hh}var gh,_h,Eh,wh,jh,Oh,Sh,Ah,kh,Ph,Mh,xh,Ch,Ih,Th,Nh,Rh,Uh,Dh,Vh,Lh,Fh,Bh,zh,qh,$h={};function Gh(){return Eh?_h:(Eh=1,_h=function(){})}function Kh(){if(jh)return wh;jh=1;var t=ku(),e=Nu(),n=t.WeakMap;return wh=e(n)&&/native code/.test(String(n))}function Wh(){if(Sh)return Oh;Sh=1;var t,e,n,r=Kh(),i=ku(),o=Ia(),s=al(),u=Sc(),a=wc(),c=ll(),l=ql(),f="Object already initialized",h=i.TypeError,p=i.WeakMap;if(r||a.state){var m=a.state||(a.state=new p);m.get=m.get,m.has=m.has,m.set=m.set,t=function(t,e){if(m.has(t))throw new h(f);return e.facade=t,m.set(t,e),e},e=function(t){return m.get(t)||{}},n=function(t){return m.has(t)}}else{var y=c("state");l[y]=!0,t=function(t,e){if(u(t,y))throw new h(f);return e.facade=t,s(t,y,e),e},e=function(t){return u(t,y)?t[y]:{}},n=function(t){return u(t,y)}}return Oh={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new h("Incompatible receiver, "+t+" required");return r}}}}function Jh(){if(kh)return Ah;kh=1;var t=Fu(),e=Sc(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!t||t&&r(n,"name").configurable);return Ah={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function Hh(){if(Mh)return Ph;Mh=1;var t=al();return Ph=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function Yh(){if(Ch)return xh;Ch=1;var t,e,n,r=Pu(),i=Nu(),o=Ia(),s=Gf(),u=hl(),a=Hh(),c=kc(),l=_c(),f=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(e=u(u(n)))!==Object.prototype&&(t=e):h=!0),!o(t)||r((function(){var e={};return t[f].call(e)!==e}))?t={}:l&&(t=s(t)),i(t[f])||a(t,f,(function(){return this})),xh={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:h}}function Xh(){if(Th)return Ih;Th=1;var t=Zf(),e=Qf();return Ih=t?{}.toString:function(){return"[object "+e(this)+"]"}}function Zh(){if(Rh)return Nh;Rh=1;var t=Zf(),e=ul().f,n=al(),r=Sc(),i=Xh(),o=kc()("toStringTag");return Nh=function(s,u,a,c){var l=a?s:s&&s.prototype;l&&(r(l,o)||e(l,o,{configurable:!0,value:u}),c&&!t&&n(l,"toString",i))}}function Qh(){if(Dh)return Uh;Dh=1;var t=Yh().IteratorPrototype,e=Gf(),n=ka(),r=Zh(),i=Yf(),o=function(){return this};return Uh=function(s,u,a,c){var l=u+" Iterator";return s.prototype=e(t,{next:n(+!c,a)}),r(s,l,!1,!0),i[l]=o,s}}function tp(){if(Lh)return Vh;Lh=1;var t=cl(),e=Bu(),n=_c(),r=Jh(),i=Nu(),o=Qh(),s=hl(),u=dl(),a=Zh(),c=al(),l=Hh(),f=kc(),h=Yf(),p=Yh(),m=r.PROPER,y=r.CONFIGURABLE,d=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,v=f("iterator"),g="keys",_="values",E="entries",w=function(){return this};return Vh=function(r,f,p,j,O,S,A){o(p,f,j);var k,P,M,x=function(t){if(t===O&&R)return R;if(!b&&t&&t in T)return T[t];switch(t){case g:case _:case E:return function(){return new p(this,t)}}return function(){return new p(this)}},C=f+" Iterator",I=!1,T=r.prototype,N=T[v]||T["@@iterator"]||O&&T[O],R=!b&&N||x(O),U="Array"===f&&T.entries||N;if(U&&(k=s(U.call(new r)))!==Object.prototype&&k.next&&(n||s(k)===d||(u?u(k,d):i(k[v])||l(k,v,w)),a(k,C,!0,!0),n&&(h[C]=w)),m&&O===_&&N&&N.name!==_&&(!n&&y?c(T,"name",_):(I=!0,R=function(){return e(N,this)})),O)if(P={values:x(_),keys:S?R:x(g),entries:x(E)},A)for(M in P)(b||I||!(M in T))&&l(T,M,P[M]);else t({target:f,proto:!0,forced:b||I},P);return n&&!A||T[v]===R||l(T,v,R,{name:O}),h[f]=R,P}}function ep(){return Bh?Fh:(Bh=1,Fh=function(t,e){return{value:t,done:e}})}function np(){if(qh)return zh;qh=1;var t=Ca(),e=Gh(),n=Yf(),r=Wh(),i=ul().f,o=tp(),s=ep(),u=_c(),a=Fu(),c="Array Iterator",l=r.set,f=r.getterFor(c);zh=o(Array,"Array",(function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})}),(function(){var t=f(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(n,!1);case"values":return s(e[n],!1)}return s([n,e[n]],!1)}),"values");var h=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!u&&a&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(t){}return zh}var rp,ip,op,sp,up,ap={};function cp(){if(ip)return rp;ip=1;var t=Cu(),e=Vl(),n=ih(),r=xa(),i=t("".charAt),o=t("".charCodeAt),s=t("".slice),u=function(t){return function(u,a){var c,l,f=n(r(u)),h=e(a),p=f.length;return h<0||h>=p?t?"":void 0:(c=o(f,h))<55296||c>56319||h+1===p||(l=o(f,h+1))<56320||l>57343?t?i(f,h):c:t?s(f,h,h+2):l-56320+(c-55296<<10)+65536}};return rp={codeAt:u(!1),charAt:u(!0)}}function lp(){return up?sp:(up=1,function(){if(mh)return yh;mh=1;var t=cl(),e=ku(),n=xu(),r=vh(),i="WebAssembly",o=e[i],s=7!==new Error("e",{cause:7}).cause,u=function(e,n){var i={};i[e]=r(e,n,s),t({global:!0,constructor:!0,arity:1,forced:s},i)},a=function(e,n){if(o&&o[e]){var u={};u[e]=r(i+"."+e,n,s),t({target:i,stat:!0,constructor:!0,arity:1,forced:s},u)}};u("Error",(function(t){return function(e){return n(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return n(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return n(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return n(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return n(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return n(t,this,arguments)}})),u("URIError",(function(t){return function(e){return n(t,this,arguments)}})),a("CompileError",(function(t){return function(e){return n(t,this,arguments)}})),a("LinkError",(function(t){return function(e){return n(t,this,arguments)}})),a("RuntimeError",(function(t){return function(e){return n(t,this,arguments)}}))}(),sh(),function(){if(gh)return $h;gh=1;var t=cl(),e=Na(),n=xu(),r=Pu(),i=vh(),o="AggregateError",s=e(o),u=!r((function(){return 1!==s([1]).errors[0]}))&&r((function(){return 7!==s([1],o,{cause:7}).cause}));t({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:i(o,(function(t){return function(e,r){return n(t,this,arguments)}}),u,!0)})}(),np(),function(){if(op)return ap;op=1;var t=cp().charAt,e=ih(),n=Wh(),r=tp(),i=ep(),o="String Iterator",s=n.set,u=n.getterFor(o);r(String,"String",(function(t){s(this,{type:o,string:e(t),index:0})}),(function(){var e,n=u(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(e=t(r,o),n.index+=e.length,i(e,!1))}))}(),sp=Ta().AggregateError)}var fp,hp,pp,mp,yp,dp,bp,vp,gp,_p,Ep,wp,jp,Op={};function Sp(){return hp?fp:(hp=1,fp={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 Ap(){if(yp)return mp;yp=1,uh();var t=lp();return function(){if(pp)return Op;pp=1,np();var t=Sp(),e=ku(),n=Zh(),r=Yf();for(var i in t)n(e[i],i),r[i]=r.Array}(),mp=t}function kp(){return bp?dp:(bp=1,dp=Ap())}function Pp(){return gp?vp:(gp=1,uh(),vp=kp())}function Mp(){return Ep?_p:(Ep=1,_p=Pp())}const xp=Oe(jp?wp:(jp=1,wp=Mp()));class Cp extends xp{constructor(t,e,n){if(super(t,e,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:t}=n;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}class Ip extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(Cp,t)}constructor(t,e){if(super(t,e),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}class Tp extends Ip{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...n}=e;Object.assign(this,n)}}}class Np extends Ip{}class Rp extends Np{}const Up=(t,e,n)=>{const r=t[e];if(null!=r){if(!n&&"function"==typeof r)return r;const t=n?r.leave:r.enter;if("function"==typeof t)return t}else{const r=n?t.leave:t.enter;if(null!=r){if("function"==typeof r)return r;const t=r[e];if("function"==typeof t)return t}}return null},Dp={},Vp=t=>null==t?void 0:t.type,Lp=t=>"string"==typeof Vp(t),Fp=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Bp=(t,{visitFnGetter:e=Up,nodeTypeGetter:n=Vp,breakSymbol:r=Dp,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const u=Symbol("skip"),a=new Array(t.length).fill(u);return{enter(c,l,f,h,p,m){let y=c,d=!1;const b={...m,replaceWith(t,e){m.replaceWith(t,e),y=t}};for(let c=0;c<t.length;c+=1)if(a[c]===u){const u=e(t[c],n(y),!1);if("function"==typeof u){const e=u.call(t[c],y,l,f,h,p,b);if("function"==typeof(null==e?void 0:e.then))throw new Tp("Async visitor not supported in sync mode",{visitor:t[c],visitFn:u});if(e===o)a[c]=y;else if(e===r)a[c]=r;else{if(e===i)return e;if(void 0!==e){if(!s)return e;y=e,d=!0}}}}return d?y:void 0},leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(t,e){h.replaceWith(t,e),p=t}};for(let i=0;i<t.length;i+=1)if(a[i]===u){const u=e(t[i],n(p),!0);if("function"==typeof u){const e=u.call(t[i],p,s,c,l,f,m);if("function"==typeof(null==e?void 0:e.then))throw new Tp("Async visitor not supported in sync mode",{visitor:t[i],visitFn:u});if(e===r)a[i]=r;else if(void 0!==e&&e!==o)return e}}else a[i]===p&&(a[i]=u)}}};Bp[Symbol.for("nodejs.util.promisify.custom")]=(t,{visitFnGetter:e=Up,nodeTypeGetter:n=Vp,breakSymbol:r=Dp,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,exposeEdits:s=!1}={})=>{const u=Symbol("skip"),a=new Array(t.length).fill(u);return{async enter(c,l,f,h,p,m){let y=c,d=!1;const b={...m,replaceWith(t,e){m.replaceWith(t,e),y=t}};for(let c=0;c<t.length;c+=1)if(a[c]===u){const u=e(t[c],n(y),!1);if("function"==typeof u){const e=await u.call(t[c],y,l,f,h,p,b);if(e===o)a[c]=y;else if(e===r)a[c]=r;else{if(e===i)return e;if(void 0!==e){if(!s)return e;y=e,d=!0}}}}return d?y:void 0},async leave(i,s,c,l,f,h){let p=i;const m={...h,replaceWith(t,e){h.replaceWith(t,e),p=t}};for(let i=0;i<t.length;i+=1)if(a[i]===u){const u=e(t[i],n(p),!0);if("function"==typeof u){const e=await u.call(t[i],p,s,c,l,f,m);if(e===r)a[i]=r;else if(void 0!==e&&e!==o)return e}}else a[i]===p&&(a[i]=u)}}};const zp=(t,e,{keyMap:n=null,state:r={},breakSymbol:i=Dp,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:u=Up,nodeTypeGetter:a=Vp,nodePredicate:c=Lp,nodeCloneFn:l=Fp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(t),b=[t],v=-1,g=[],_=t;const E=[],w=[];do{v+=1;const t=v===b.length;let n;const S=t&&0!==g.length;if(t){if(n=0===w.length?void 0:E.pop(),_=y,y=w.pop(),S)if(d){_=_.slice();let t=0;for(const[e,n]of g){const r=e-t;n===o?(_.splice(r,1),t+=1):_[r]=n}}else{_=l(_);for(const[t,e]of g)_[t]=e}v=m.index,b=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?v:b[v],_=y[n],_===o||void 0===_)continue;E.push(n)}let A;if(!Array.isArray(_)){var j;if(!c(_))throw new Tp(`Invalid AST Node: ${String(_)}`,{node:_});if(f&&w.includes(_)){"function"==typeof h&&h(_,n,y,E,w),E.pop();continue}const o=u(e,a(_),t);if(o){for(const[t,n]of Object.entries(r))e[t]=n;const i={replaceWith(e,r){"function"==typeof r?r(e,_,n,y,E,w):y&&(y[n]=e),t||(_=e)}};A=o.call(e,_,n,y,E,w,i)}if("function"==typeof(null===(j=A)||void 0===j?void 0:j.then))throw new Tp("Async visitor not supported in sync mode",{visitor:e,visitFn:o});if(A===i)break;if(A===s){if(!t){E.pop();continue}}else if(void 0!==A&&(g.push([n,A]),!t)){if(!c(A)){E.pop();continue}_=A}}var O;if(void 0===A&&S&&g.push([n,_]),!t)m={inArray:d,index:v,keys:b,edits:g,prev:m},d=Array.isArray(_),b=d?_:null!==(O=p[a(_)])&&void 0!==O?O:[],v=-1,g=[],y!==o&&void 0!==y&&w.push(y),y=_}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};zp[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=null,state:r={},breakSymbol:i=Dp,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:u=Up,nodeTypeGetter:a=Vp,nodePredicate:c=Lp,nodeCloneFn:l=Fp,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const p=n||{};let m,y,d=Array.isArray(t),b=[t],v=-1,g=[],_=t;const E=[],w=[];do{v+=1;const t=v===b.length;let n;const O=t&&0!==g.length;if(t){if(n=0===w.length?void 0:E.pop(),_=y,y=w.pop(),O)if(d){_=_.slice();let t=0;for(const[e,n]of g){const r=e-t;n===o?(_.splice(r,1),t+=1):_[r]=n}}else{_=l(_);for(const[t,e]of g)_[t]=e}v=m.index,b=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(y!==o&&void 0!==y){if(n=d?v:b[v],_=y[n],_===o||void 0===_)continue;E.push(n)}let S;if(!Array.isArray(_)){if(!c(_))throw new Tp(`Invalid AST Node: ${String(_)}`,{node:_});if(f&&w.includes(_)){"function"==typeof h&&h(_,n,y,E,w),E.pop();continue}const o=u(e,a(_),t);if(o){for(const[t,n]of Object.entries(r))e[t]=n;const i={replaceWith(e,r){"function"==typeof r?r(e,_,n,y,E,w):y&&(y[n]=e),t||(_=e)}};S=await o.call(e,_,n,y,E,w,i)}if(S===i)break;if(S===s){if(!t){E.pop();continue}}else if(void 0!==S&&(g.push([n,S]),!t)){if(!c(S)){E.pop();continue}_=S}}var j;if(void 0===S&&O&&g.push([n,_]),!t)m={inArray:d,index:v,keys:b,edits:g,prev:m},d=Array.isArray(_),b=d?_:null!==(j=p[a(_)])&&void 0!==j?j:[],v=-1,g=[],y!==o&&void 0!==y&&w.push(y),y=_}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:t};var qp=Object.defineProperty,$p=(t,e,n)=>((t,e,n)=>e in t?qp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,e+"",n);class Gp extends Tp{constructor(t,e){super(t,e),$p(this,"value"),void 0!==e&&(this.value=e.value)}}class Kp extends Gp{}class Wp extends Gp{}const Jp=(t,e)=>{const n=Mt(t,e);return Gt((t=>{if(be(t)&&Dt("$ref",t)&&Qt(le,"$ref",t)){const e=Ht(["$ref"],t),r=we("#/",e);return Ht(r.split("/"),n)}return be(t)?Jp(t,n):t}),t)},Hp=(t,e)=>(t.startPositionRow=null==e?void 0:e.startPositionRow,t.startPositionColumn=null==e?void 0:e.startPositionColumn,t.startIndex=null==e?void 0:e.startIndex,t.endPositionRow=null==e?void 0:e.endPositionRow,t.endPositionColumn=null==e?void 0:e.endPositionColumn,t.endIndex=null==e?void 0:e.endIndex,t);var Yp=Object.defineProperty,Xp=Object.defineProperties,Zp=Object.getOwnPropertyDescriptors,Qp=Object.getOwnPropertySymbols,tm=Object.prototype.hasOwnProperty,em=Object.prototype.propertyIsEnumerable,nm=(t,e,n)=>e in t?Yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;const rm=(t,e={})=>{const{visited:n=new WeakMap}=e,r=(i=((t,e)=>{for(var n in e||(e={}))tm.call(e,n)&&nm(t,n,e[n]);if(Qp)for(var n of Qp(e))em.call(e,n)&&nm(t,n,e[n]);return t})({},e),Xp(i,Zp({visited:n})));var i;if(n.has(t))return n.get(t);if(t instanceof ks.KeyValuePair){const{key:e,value:i}=t,o=Ds(e)?rm(e,r):e,s=Ds(i)?rm(i,r):i,u=new ks.KeyValuePair(o,s);return n.set(t,u),u}if(t instanceof ks.ObjectSlice){const e=t=>rm(t,r),i=[...t].map(e),o=new ks.ObjectSlice(i);return n.set(t,o),o}if(t instanceof ks.ArraySlice){const e=t=>rm(t,r),i=[...t].map(e),o=new ks.ArraySlice(i);return n.set(t,o),o}if(Ds(t)){const e=sm(t);if(n.set(t,e),t.content)if(Ds(t.content))e.content=rm(t.content,r);else if(t.content instanceof ks.KeyValuePair)e.content=rm(t.content,r);else if(Array.isArray(t.content)){const n=t=>rm(t,r);e.content=t.content.map(n)}else e.content=t.content;else e.content=t.content;return e}throw new Kp("Value provided to cloneDeep function couldn't be cloned",{value:t})};rm.safe=t=>{try{return rm(t)}catch(e){return t}};const im=t=>{const{key:e,value:n}=t;return new ks.KeyValuePair(e,n)},om=t=>{const e=new t.constructor;if(e.element=t.element,Xs(t)&&Hp(e,t),t.meta.length>0&&(e._meta=rm(t.meta)),t.attributes.length>0&&(e._attributes=rm(t.attributes)),Ds(t.content)){const n=t.content;e.content=om(n)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof ks.KeyValuePair?e.content=im(t.content):e.content=t.content;return e},sm=t=>{if(t instanceof ks.KeyValuePair)return im(t);if(t instanceof ks.ObjectSlice)return(t=>{const e=[...t];return new ks.ObjectSlice(e)})(t);if(t instanceof ks.ArraySlice)return(t=>{const e=[...t];return new ks.ArraySlice(e)})(t);if(Ds(t))return om(t);throw new Wp("Value provided to cloneShallow function couldn't be cloned",{value:t})};sm.safe=t=>{try{return sm(t)}catch(e){return t}};var um=Object.defineProperty,am=Object.getOwnPropertySymbols,cm=Object.prototype.hasOwnProperty,lm=Object.prototype.propertyIsEnumerable,fm=(t,e,n)=>e in t?um(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hm=(t,e)=>{for(var n in e||(e={}))cm.call(e,n)&&fm(t,n,e[n]);if(am)for(var n of am(e))lm.call(e,n)&&fm(t,n,e[n]);return t},pm=(t,e)=>{var n={};for(var r in t)cm.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&am)for(var r of am(t))e.indexOf(r)<0&&lm.call(t,r)&&(n[r]=t[r]);return n},mm=(t,e,n)=>fm(t,"symbol"!=typeof e?e+"":e,n);const ym=t=>zs(t)?"ObjectElement":qs(t)?"ArrayElement":$s(t)?"MemberElement":Vs(t)?"StringElement":Bs(t)?"BooleanElement":Ls(t)?"NumberElement":Fs(t)?"NullElement":Gs(t)?"LinkElement":Ks(t)?"RefElement":void 0,dm=t=>Ds(t)?sm(t):Fp(t),bm=Pt(ym,le),vm={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class gm{constructor({predicate:t=e,returnOnTrue:n,returnOnFalse:r}={}){mm(this,"result"),mm(this,"predicate"),mm(this,"returnOnTrue"),mm(this,"returnOnFalse"),this.result=[],this.predicate=t,this.returnOnTrue=n,this.returnOnFalse=r}enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}const _m=(t,e,n={})=>{var r=n,{keyMap:i=vm}=r,o=pm(r,["keyMap"]);return zp(t,e,hm({keyMap:i,nodeTypeGetter:ym,nodePredicate:bm,nodeCloneFn:dm},o))};_m[Symbol.for("nodejs.util.promisify.custom")]=(t,e,...n)=>{return r=null,i=[t,e,...n],o=function*(t,e,n={}){var r=n,{keyMap:i=vm}=r,o=pm(r,["keyMap"]);return zp[Symbol.for("nodejs.util.promisify.custom")](t,e,hm({keyMap:i,nodeTypeGetter:ym,nodePredicate:bm,nodeCloneFn:dm},o))},new Promise(((t,e)=>{var n=t=>{try{u(o.next(t))}catch(t){e(t)}},s=t=>{try{u(o.throw(t))}catch(t){e(t)}},u=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,s);u((o=o.apply(r,i)).next())}));var r,i,o};var Em=Object.defineProperty,wm=Object.getOwnPropertySymbols,jm=Object.prototype.hasOwnProperty,Om=Object.prototype.propertyIsEnumerable,Sm=(t,e,n)=>e in t?Em(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Am=(t,e)=>{for(var n in e||(e={}))jm.call(e,n)&&Sm(t,n,e[n]);if(wm)for(var n of wm(e))Om.call(e,n)&&Sm(t,n,e[n]);return t};const km={toolboxCreator:()=>{const t=((t,e)=>{for(var n in e||(e={}))ou.call(e,n)&&uu(t,n,e[n]);if(iu)for(var n of iu(e))su.call(e,n)&&uu(t,n,e[n]);return t})({},tu);return{predicates:t,namespace:nu}},visitorOptions:{nodeTypeGetter:ym,exposeEdits:!0}},Pm=(t,e,n={})=>{if(0===e.length)return t;const r=Jt(km,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),u=e.map((t=>t(s))),a=Bp(u.map(Zt({},"visitor")),Am({},o));u.forEach(Ee(["pre"],[]));const c=_m(t,a,o);return u.forEach(Ee(["post"],[])),c};Pm[Symbol.for("nodejs.util.promisify.custom")]=(t,e,...n)=>{return r=null,i=[t,e,...n],o=function*(t,e,n={}){if(0===e.length)return t;const r=Jt(km,n),{toolboxCreator:i,visitorOptions:o}=r,s=i(),u=e.map((t=>t(s))),a=Bp[Symbol.for("nodejs.util.promisify.custom")],c=_m[Symbol.for("nodejs.util.promisify.custom")],l=a(u.map(Zt({},"visitor")),Am({},o));yield Promise.allSettled(u.map(Ee(["pre"],[])));const f=yield c(t,l,o);return yield Promise.allSettled(u.map(Ee(["post"],[]))),f},new Promise(((t,e)=>{var n=t=>{try{u(o.next(t))}catch(t){e(t)}},s=t=>{try{u(o.throw(t))}catch(t){e(t)}},u=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,s);u((o=o.apply(r,i)).next())}));var r,i,o};var Mm,xm={exports:{}};var Cm=(Mm||(Mm=1,function(t){var e=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,u=(t,e)=>{for(var n in e||(e={}))i.call(e,n)&&s(t,n,e[n]);if(r)for(var n of r(e))o.call(e,n)&&s(t,n,e[n]);return t},a=(t,e,n)=>s(t,"symbol"!=typeof e?e+"":e,n),c={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(c,{DEFAULT_OPTIONS:()=>f,DEFAULT_UUID_LENGTH:()=>l,default:()=>m});var l=6,f={dictionary:"alphanum",shuffle:!0,debug:!1,length:l,counter:0},h=class{constructor(t={}){a(this,"counter"),a(this,"debug"),a(this,"dict"),a(this,"version"),a(this,"dictIndex",0),a(this,"dictRange",[]),a(this,"lowerBound",0),a(this,"upperBound",0),a(this,"dictLength",0),a(this,"uuidLength"),a(this,"_digit_first_ascii",48),a(this,"_digit_last_ascii",58),a(this,"_alpha_lower_first_ascii",97),a(this,"_alpha_lower_last_ascii",123),a(this,"_hex_last_ascii",103),a(this,"_alpha_upper_first_ascii",65),a(this,"_alpha_upper_last_ascii",91),a(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),a(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),a(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),a(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),a(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),a(this,"log",((...t)=>{const e=[...t];e[0]="[short-unique-id] ".concat(t[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...e)})),a(this,"_normalizeDictionary",((t,e)=>{let n;if(t&&Array.isArray(t)&&t.length>1)n=t;else{n=[],this.dictIndex=0;const e="_".concat(t,"_dict_ranges"),r=this._dict_ranges[e];let i=0;for(const[,t]of Object.entries(r)){const[e,n]=t;i+=Math.abs(n-e)}n=new Array(i);let o=0;for(const[,t]of Object.entries(r)){this.dictRange=t,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const e=this.lowerBound<=this.upperBound,r=this.lowerBound,i=this.upperBound;if(e)for(let t=r;t<i;t++)n[o++]=String.fromCharCode(t),this.dictIndex=t;else for(let t=r;t>i;t--)n[o++]=String.fromCharCode(t),this.dictIndex=t}n.length=o}if(e)for(let t=n.length-1;t>0;t--){const e=Math.floor(Math.random()*(t+1));[n[t],n[e]]=[n[e],n[t]]}return n})),a(this,"setDictionary",((t,e)=>{this.dict=this._normalizeDictionary(t,e),this.dictLength=this.dict.length,this.setCounter(0)})),a(this,"seq",(()=>this.sequentialUUID())),a(this,"sequentialUUID",(()=>{const t=this.dictLength,e=this.dict;let n=this.counter;const r=[];do{const i=n%t;n=Math.trunc(n/t),r.push(e[i])}while(0!==n);const i=r.join("");return this.counter+=1,i})),a(this,"rnd",((t=this.uuidLength||l)=>this.randomUUID(t))),a(this,"randomUUID",((t=this.uuidLength||l)=>{if(null==t||t<1)throw new Error("Invalid UUID Length Provided");const e=new Array(t),n=this.dictLength,r=this.dict;for(let i=0;i<t;i++){const t=Math.floor(Math.random()*n);e[i]=r[t]}return e.join("")})),a(this,"fmt",((t,e)=>this.formattedUUID(t,e))),a(this,"formattedUUID",((t,e)=>{const n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(t=>{const r=t.slice(0,2),i=Number.parseInt(t.slice(2),10);return"$s"===r?n[r]().padStart(i,"0"):"$t"===r&&e?n[r](i,e):n[r](i)}))})),a(this,"availableUUIDs",((t=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**t).toFixed(0)))),a(this,"_collisionCache",new Map),a(this,"approxMaxBeforeCollision",((t=this.availableUUIDs(this.uuidLength))=>{const e=t,n=this._collisionCache.get(e);if(void 0!==n)return n;const r=Number.parseFloat(Math.sqrt(Math.PI/2*t).toFixed(20));return this._collisionCache.set(e,r),r})),a(this,"collisionProbability",((t=this.availableUUIDs(this.uuidLength),e=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(t)/this.availableUUIDs(e)).toFixed(20)))),a(this,"uniqueness",((t=this.availableUUIDs(this.uuidLength))=>{const e=Number.parseFloat((1-this.approxMaxBeforeCollision(t)/t).toFixed(20));return e>1?1:e<0?0:e})),a(this,"getVersion",(()=>this.version)),a(this,"stamp",((t,e)=>{const n=Math.floor(+(e||new Date)/1e3).toString(16);if("number"==typeof t&&0===t)return n;if("number"!=typeof t||t<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const r=t-9,i=Math.round(Math.random()*(r>15?15:r)),o=this.randomUUID(r);return"".concat(o.substring(0,i)).concat(n).concat(o.substring(i)).concat(i.toString(16))})),a(this,"parseStamp",((t,e)=>{if(e&&!/t0|t[1-9]\d{1,}/.test(e))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const n=e?e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(t=>{const e={$r:t=>[...Array(t)].map((()=>"r")).join(""),$s:t=>[...Array(t)].map((()=>"s")).join(""),$t:t=>[...Array(t)].map((()=>"t")).join("")},n=t.slice(0,2),r=Number.parseInt(t.slice(2),10);return e[n](r)})).replace(/^(.*?)(t{8,})(.*)$/g,((e,n,r)=>t.substring(n.length,n.length+r.length))):t;if(8===n.length)return new Date(1e3*Number.parseInt(n,16));if(n.length<10)throw new Error("Stamp length invalid");const r=Number.parseInt(n.substring(n.length-1),16);return new Date(1e3*Number.parseInt(n.substring(r,r+8),16))})),a(this,"setCounter",(t=>{this.counter=t})),a(this,"validate",((t,e)=>{const n=e?this._normalizeDictionary(e):this.dict;return t.split("").every((t=>n.includes(t)))}));const e=u(u({},f),t);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:n,shuffle:r,length:i,counter:o}=e;this.uuidLength=i,this.setDictionary(n,r),this.setCounter(o),this.debug=e.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};a(h,"default",h);var p,m=h;return p=c,((r,o,s,u)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of n(o))i.call(r,a)||a===s||t(r,a,{get:()=>o[a],enumerable:!(u=e(o,a))||u.enumerable});return r})(t({},"__esModule",{value:!0}),p)})();t.exports=e.default,"undefined"!=typeof window&&(e=e.default)}(xm)),xm.exports);const Im=Oe(Cm);var Tm=Object.defineProperty,Nm=(t,e,n)=>((t,e,n)=>e in t?Tm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,e+"",n);class Rm extends Tp{constructor(t,e){super(t,e),Nm(this,"value"),void 0!==e&&(this.value=e.value)}}var Um=Object.defineProperty,Dm=(t,e,n)=>((t,e,n)=>e in t?Um(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Vm{constructor({length:t=6}={}){Dm(this,"uuid"),Dm(this,"identityMap"),this.uuid=new Im({length:t}),this.identityMap=new WeakMap}identify(t){if(!Ds(t))throw new Rm("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&Vs(t.meta.get("id"))&&!t.meta.get("id").equals(""))return t.id;if(this.identityMap.has(t))return this.identityMap.get(t);const e=new ks.StringElement(this.generateId());return this.identityMap.set(t,e),e}forget(t){return!!this.identityMap.has(t)&&(this.identityMap.delete(t),!0)}generateId(){return this.uuid.randomUUID()}}const Lm=new Vm;var Fm=Object.defineProperty,Bm=(t,e,n)=>((t,e,n)=>e in t?Fm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,e+"",n);const zm=(t,e)=>{const n=new gm({predicate:t});return _m(e,n),new ks.ArraySlice(n.result)},qm=(t,e)=>{const n=new gm({predicate:t,returnOnTrue:Dp});return _m(e,n),Yt(void 0,[0],n.result)};var $m=Object.defineProperty,Gm=(t,e,n)=>((t,e,n)=>e in t?$m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);let Km=class{constructor({offset:t=0,includeRightBound:e=!1}={}){Gm(this,"result"),Gm(this,"offset"),Gm(this,"includeRightBound"),this.result=[],this.offset=t,this.includeRightBound=e}enter(t){if(!Xs(t))return;const{startIndex:e,endIndex:n}=t;if(!(this.offset>=e&&(this.offset<n||this.includeRightBound&&this.offset<=n)))return!1;this.result.push(t)}};var Wm=Object.defineProperty,Jm=Object.getOwnPropertySymbols,Hm=Object.prototype.hasOwnProperty,Ym=Object.prototype.propertyIsEnumerable,Xm=(t,e,n)=>e in t?Wm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;class Zm extends gm{constructor(t={}){var e,n=t,{callback:r=ge}=n,i=((t,e)=>{var n={};for(var r in t)Hm.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&Jm)for(var r of Jm(t))e.indexOf(r)<0&&Ym.call(t,r)&&(n[r]=t[r]);return n})(n,["callback"]);super(((t,e)=>{for(var n in e||(e={}))Hm.call(e,n)&&Xm(t,n,e[n]);if(Jm)for(var n of Jm(e))Ym.call(e,n)&&Xm(t,n,e[n]);return t})({},i)),Xm(this,"callback"+"",e),this.callback=r}enter(t){return this.predicate(t)?(this.callback(t),this.returnOnTrue):this.returnOnFalse}}var Qm=Object.defineProperty,ty=(t,e,n)=>((t,e,n)=>e in t?Qm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);let ey=class{constructor(){ty(this,"parentEdges"),ty(this,"parent"),this.parentEdges=new WeakMap}ObjectElement(t){this.parentEdges.set(t,this.parent),this.parent=t}ArrayElement(t){this.parentEdges.set(t,this.parent),this.parent=t}MemberElement(t){this.parentEdges.set(t,this.parent),this.parent=t}enter(t){this.parentEdges.set(t,this.parent)}};var ny=Object.defineProperty,ry=(t,e,n)=>((t,e,n)=>e in t?ny(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const iy=(t,e=new WeakMap)=>($s(t)?(e.set(t.key,t),iy(t.key,e),e.set(t.value,t),iy(t.value,e)):t.children.forEach((n=>{e.set(n,t),iy(n,e)})),e);class oy{constructor({element:t}){ry(this,"element"),ry(this,"edges"),this.element=t}transclude(t,e){var n;if(t===this.element)return e;if(t===e)return this.element;this.edges=null!=(n=this.edges)?n:iy(this.element);const r=this.edges.get(t);return ne(r)?void 0:(zs(r)?((t,e,n)=>{const r=n.get(t);zs(r)&&(r.content=r.map(((i,o,s)=>s===t?(n.delete(t),n.set(e,r),e):s)))})(t,e,this.edges):qs(r)?((t,e,n)=>{const r=n.get(t);qs(r)&&(r.content=r.map((i=>i===t?(n.delete(t),n.set(e,r),e):i)))})(t,e,this.edges):$s(r)&&((t,e,n)=>{const r=n.get(t);$s(r)&&(r.key===t&&(r.key=e,n.delete(t),n.set(e,r)),r.value===t&&(r.value=e,n.delete(t),n.set(e,r)))})(t,e,this.edges),this.element)}}var sy=Object.defineProperty,uy=Object.getOwnPropertySymbols,ay=Object.prototype.hasOwnProperty,cy=Object.prototype.propertyIsEnumerable,ly=(t,e,n)=>e in t?sy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fy=(t,e)=>{for(var n in e||(e={}))ay.call(e,n)&&ly(t,n,e[n]);if(uy)for(var n of uy(e))cy.call(e,n)&&ly(t,n,e[n]);return t},hy=(t,e)=>{var n={};for(var r in t)ay.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&uy)for(var r of uy(t))e.indexOf(r)<0&&cy.call(t,r)&&(n[r]=t[r]);return n};const py=t=>"string"==typeof(null==t?void 0:t.type)?t.type:ym(t),my=fy({EphemeralObject:["content"],EphemeralArray:["content"]},vm),yy=(t,e,r={})=>{var i=r,{keyMap:o=my}=i,s=hy(i,["keyMap"]);return _m(t,e,fy({keyMap:o,nodeTypeGetter:py,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},s))};yy[Symbol.for("nodejs.util.promisify.custom")]=(t,...e)=>{return r=null,i=[t,...e],o=function*(t,e={}){var r=e,{keyMap:i=my}=r,o=hy(r,["keyMap"]);return _m[Symbol.for("nodejs.util.promisify.custom")](t,visitor,fy({keyMap:i,nodeTypeGetter:py,nodePredicate:n,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node")},o))},new Promise(((t,e)=>{var n=t=>{try{u(o.next(t))}catch(t){e(t)}},s=t=>{try{u(o.throw(t))}catch(t){e(t)}},u=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,s);u((o=o.apply(r,i)).next())}));var r,i,o};var dy=Object.defineProperty,by=(t,e,n)=>((t,e,n)=>e in t?dy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class vy{constructor(t){by(this,"type","EphemeralArray"),by(this,"content",[]),by(this,"reference"),this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}var gy=Object.defineProperty,_y=(t,e,n)=>((t,e,n)=>e in t?gy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Ey{constructor(t){_y(this,"type","EphemeralObject"),_y(this,"content",[]),_y(this,"reference"),this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}var wy=Object.defineProperty,jy=(t,e,n)=>((t,e,n)=>e in t?wy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Oy{constructor(){jy(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new Ey(t.content);return this.references.set(t,e),e}}),jy(this,"EphemeralObject",{leave:t=>t.toObject()}),jy(this,"MemberElement",{enter:t=>[t.key,t.value]}),jy(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const e=new vy(t.content);return this.references.set(t,e),e}}),jy(this,"EphemeralArray",{leave:t=>t.toArray()}),jy(this,"references",new WeakMap)}BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}RefElement(t,...e){var n;const r=e[3];return"EphemeralObject"===(null==(n=r[r.length-1])?void 0:n.type)?Symbol.for("delete-node"):String(t.toValue())}LinkElement(t){return Vs(t.href)?t.href.toValue():""}}const Sy=t=>Ds(t)?Vs(t)||Ls(t)||Bs(t)||Fs(t)?t.toValue():yy(t,new Oy):t;var Ay=Object.defineProperty,ky=(t,e,n)=>((t,e,n)=>e in t?Ay(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);const Py=class t{constructor({directive:t=!1,indent:e=0}={}){ky(this,"result"),ky(this,"indent"),this.result=t?"%YAML 1.2\n---\n":"",this.indent=e}NumberElement(t){this.result+=Sy(t)}BooleanElement(t){const e=Sy(t);this.result+=e?"true":"false"}StringElement(t){this.result+=JSON.stringify(Sy(t))}NullElement(){this.result+="null"}ArrayElement(e){return 0===e.length?(this.result+="[]",!1):(e.forEach((e=>{const n=new t({indent:this.indent+1}),r=t.indentChar.repeat(this.indent);_m(e,n);const{result:i}=n;this.result+=i.startsWith("\n")?`\n${r}-${i}`:`\n${r}- ${i}`})),!1)}ObjectElement(e){return 0===e.length?(this.result+="{}",!1):(e.forEach(((e,n)=>{const r=new t({indent:this.indent+1}),i=new t({indent:this.indent+1}),o=t.indentChar.repeat(this.indent);_m(n,r),_m(e,i);const{result:s}=r,{result:u}=i;this.result+=u.startsWith("\n")?`\n${o}${s}:${u}`:`\n${o}${s}: ${u}`})),!1)}};ky(Py,"indentChar"," ");let My=Py;const xy=(t,e=nu)=>e.toRefract(t);var Cy=Object.defineProperty,Iy=(t,e,n)=>((t,e,n)=>e in t?Cy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,"symbol"!=typeof e?e+"":e,n);class Ty{constructor(){Iy(this,"result",""),Iy(this,"nestingLevel",0)}enter(t){const{element:e}=t,n=e.charAt(0).toUpperCase()+e.slice(1),r=" ".repeat(this.nestingLevel);this.result+=this.nestingLevel>0?"\n":"",this.result+=`${r}(${n}Element`,this.nestingLevel+=1}leave(){this.nestingLevel-=1,this.result+=")"}}var Ny=Object.defineProperty,Ry=Object.getOwnPropertySymbols,Uy=Object.prototype.hasOwnProperty,Dy=Object.prototype.propertyIsEnumerable,Vy=(t,e,n)=>e in t?Ny(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ly=(t,e)=>{for(var n in e||(e={}))Uy.call(e,n)&&Vy(t,n,e[n]);if(Ry)for(var n of Ry(e))Dy.call(e,n)&&Vy(t,n,e[n]);return t};const Fy=t=>{const e=t.meta.length>0?rm(t.meta):void 0,n=t.attributes.length>0?rm(t.attributes):void 0;return new t.constructor(void 0,e,n)},By=(t,e)=>e.clone&&e.isMergeableElement(t)?qy(Fy(t),t,e):t,zy={clone:!0,isMergeableElement:t=>zs(t)||qs(t),arrayElementMerge:(t,e,n)=>t.concat(e)["fantasy-land/map"]((t=>By(t,n))),objectElementMerge:(t,e,n)=>{const r=zs(t)?Fy(t):Fy(e);return zs(t)&&t.forEach(((t,e,i)=>{const o=sm(i);o.value=By(t,n),r.content.push(o)})),e.forEach(((e,i,o)=>{const s=Sy(i);let u;if(zs(t)&&t.hasKey(s)&&n.isMergeableElement(e)){const r=t.get(s);u=sm(o),u.value=((t,e)=>{if("function"!=typeof e.customMerge)return qy;const n=e.customMerge(t,e);return"function"==typeof n?n:qy})(i,n)(r,e,n)}else u=sm(o),u.value=By(e,n);r.remove(s),r.content.push(u)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},qy=(t,e,n)=>{var r,i,o;const s=Ly(Ly({},zy),n);s.isMergeableElement=null!=(r=s.isMergeableElement)?r:zy.isMergeableElement,s.arrayElementMerge=null!=(i=s.arrayElementMerge)?i:zy.arrayElementMerge,s.objectElementMerge=null!=(o=s.objectElementMerge)?o:zy.objectElementMerge;const u=qs(e);if(!(u===qs(t)))return By(e,s);const a=u&&"function"==typeof s.arrayElementMerge?s.arrayElementMerge(t,e,s):s.objectElementMerge(t,e,s);return a.meta=(t=>"function"!=typeof t.customMetaMerge?t=>rm(t):t.customMetaMerge)(s)(t.meta,e.meta),a.attributes=(t=>"function"!=typeof t.customAttributesMerge?t=>rm(t):t.customAttributesMerge)(s)(t.attributes,e.attributes),a};qy.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return 0===t.length?new ks.ObjectElement:t.reduce(((t,n)=>qy(t,n,e)),Fy(t[0]))};var $y=Object.defineProperty,Gy=Object.defineProperties,Ky=Object.getOwnPropertyDescriptors,Wy=Object.getOwnPropertySymbols,Jy=Object.prototype.hasOwnProperty,Hy=Object.prototype.propertyIsEnumerable,Yy=(t,e,n)=>e in t?$y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Xy=(t,e)=>{for(var n in e||(e={}))Jy.call(e,n)&&Yy(t,n,e[n]);if(Wy)for(var n of Wy(e))Hy.call(e,n)&&Yy(t,n,e[n]);return t};const Zy=(t,e,n)=>{const r=(i=Xy(Xy({},zy),n),Gy(i,Ky({customMerge:()=>(t,e)=>e,clone:!1})));var i;return qy(t,e,r)};Zy.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of mergeRight should be an array.");return 0===t.length?new ks.ObjectElement:t.reduce(((t,n)=>Zy(t,n,e)),Fy(t[0]))};const Qy=(...[t,e,n])=>Zy(e,t,n);Qy.all=(...[t,e])=>Zy.all([...t].reverse(),e),t.AnnotationElement=Ps,t.ArrayElement=ks.ArrayElement,t.ArraySlice=ks.ArraySlice,t.BREAK=Dp,t.BooleanElement=ks.BooleanElement,t.CloneError=Gp,t.CommentElement=Ms,t.DeepCloneError=Kp,t.Element=ks.Element,t.ElementIdentityError=Rm,t.IdentityManager=Vm,t.KeyValuePair=ks.KeyValuePair,t.LinkElement=ks.LinkElement,t.MediaTypes=class extends Array{constructor(){super(...arguments),Bm(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Rp("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Rp("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Rp("latest method in MediaTypes class is not yet implemented.")}},t.MemberElement=ks.MemberElement,t.Namespace=eu,t.NullElement=ks.NullElement,t.NumberElement=ks.NumberElement,t.ObjectElement=ks.ObjectElement,t.ObjectSlice=ks.ObjectSlice,t.ParseResultElement=xs,t.RefElement=ks.RefElement,t.ShallowCloneError=Wp,t.StringElement=ks.StringElement,t.Transcluder=oy,t.assignSourceMap=Hp,t.cloneDeep=rm,t.cloneNode=dm,t.cloneShallow=sm,t.createNamespace=t=>{const e=new eu;return be(t)&&e.use(t),e},t.createPredicate=Us,t.deepmerge=qy,t.defaultIdentityManager=Lm,t.dehydrate=xy,t.dereference=Jp,t.dispatchRefractorPlugins=Pm,t.filter=zm,t.find=qm,t.findAtOffset=(t,e)=>{let n,r;ve(t)?(n=t,r=!1):(n=Yt(0,["offset"],t),r=Yt(!1,["includeRightBound"],t));const i=new Km({offset:n,includeRightBound:r});return _m(e,i),xt(i.result)},t.from=(t,e=nu)=>{if(le(t))try{return e.fromRefract(JSON.parse(t))}catch(t){}return be(t)&&Dt("element",t)?e.fromRefract(t):e.toElement(t)},t.getNodeType=ym,t.hasElementSourceMap=Xs,t.includesClasses=Qs,t.includesSymbols=Zs,t.isAnnotationElement=Ws,t.isArrayElement=qs,t.isBooleanElement=Bs,t.isElement=Ds,t.isLinkElement=Gs,t.isMemberElement=$s,t.isNullElement=Fs,t.isNumberElement=Ls,t.isObjectElement=zs,t.isParseResultElement=Hs,t.isPrimitiveElement=Ys,t.isRefElement=Ks,t.isStringElement=Vs,t.keyMap=vm,t.mergeAllVisitors=Bp,t.mergeLeft=Qy,t.mergeRight=Zy,t.namespace=nu,t.parents=t=>{const e=new ey;return _m(t,e),e.parentEdges},t.refract=ks.refract,t.refractorPluginElementIdentity=({length:t=6}={})=>()=>{let e;return{pre(){e=new Vm({length:t})},visitor:{enter(t){t.id=e.identify(t)}},post(){e=null}}},t.refractorPluginSemanticElementIdentity=({length:t=6}={})=>({predicates:e})=>{let n;return{pre(){n=new Vm({length:t})},visitor:{enter(t){e.isPrimitiveElement(t)||(t.id=n.identify(t))}},post(){n=null}}},t.reject=(t,e)=>zm(jt(t),e),t.sexprs=t=>{const e=new Ty;return _m(t,e),e.result},t.some=(t,e)=>re(qm(t,e)),t.toJSON=(t,e,n)=>JSON.stringify(Sy(t),e,n),t.toString=(t,e=nu)=>{const n=xy(t,e);return JSON.stringify(n)},t.toValue=Sy,t.toYAML=(t,{directive:e=!1}={})=>{const n=new My({directive:e});return _m(t,n),n.result},t.transclude=(t,e,n)=>new oy({element:n}).transclude(t,e),t.traverse=(t,e)=>{let n,r;ae(t)?(n=t,r=Ds):(n=Yt(ge,["callback"],t),r=Yt(Ds,["predicate"],t));const i=new Zm({callback:n,predicate:r});_m(e,i)},t.visit=_m,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(e, t) {
|
|
2
|
+
"object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).apidomCore = {});
|
|
3
|
+
})(this, (function(e) {
|
|
4
|
+
Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
|
|
5
|
+
var t = Object.create, r = Object.defineProperty, n = Object.getOwnPropertyDescriptor, i = Object.getOwnPropertyNames, s = Object.getPrototypeOf, o = Object.prototype.hasOwnProperty, a = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), u = (e, t) => {
|
|
6
|
+
let n = {};
|
|
7
|
+
for (var i in e) r(n, i, {
|
|
8
|
+
get: e[i],
|
|
9
|
+
enumerable: !0
|
|
10
|
+
});
|
|
11
|
+
return t || r(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, c = (e, a, u) => (u = null != e ? t(s(e)) : {}, ((e, t, s, a) => {
|
|
13
|
+
if (t && "object" == typeof t || "function" == typeof t) for (var u, c = i(t), l = 0, f = c.length; l < f; l++) u = c[l], o.call(e, u) || u === s || r(e, u, {
|
|
14
|
+
get: ((e) => t[e]).bind(null, u),
|
|
15
|
+
enumerable: !(a = n(t, u)) || a.enumerable
|
|
16
|
+
});
|
|
17
|
+
return e;
|
|
18
|
+
})(!a && e && e.__esModule ? u : r(u, "default", {
|
|
19
|
+
value: e,
|
|
20
|
+
enumerable: !0
|
|
21
|
+
}), e)), l = function() {
|
|
22
|
+
return !1;
|
|
23
|
+
}, f = function() {
|
|
24
|
+
return !0;
|
|
25
|
+
};
|
|
26
|
+
function p(e) {
|
|
27
|
+
return null != e && "object" == typeof e && !0 === e["@@functional/placeholder"];
|
|
28
|
+
}
|
|
29
|
+
function h(e) {
|
|
30
|
+
return function t(r) {
|
|
31
|
+
return 0 === arguments.length || p(r) ? t : e.apply(this, arguments);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function m(e) {
|
|
35
|
+
return function t(r, n) {
|
|
36
|
+
switch (arguments.length) {
|
|
37
|
+
case 0: return t;
|
|
38
|
+
case 1: return p(r) ? t : h((function(t) {
|
|
39
|
+
return e(r, t);
|
|
40
|
+
}));
|
|
41
|
+
default: return p(r) && p(n) ? t : p(r) ? h((function(t) {
|
|
42
|
+
return e(t, n);
|
|
43
|
+
})) : p(n) ? h((function(t) {
|
|
44
|
+
return e(r, t);
|
|
45
|
+
})) : e(r, n);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function y(e, t) {
|
|
50
|
+
switch (e) {
|
|
51
|
+
case 0: return function() {
|
|
52
|
+
return t.apply(this, arguments);
|
|
53
|
+
};
|
|
54
|
+
case 1: return function(e) {
|
|
55
|
+
return t.apply(this, arguments);
|
|
56
|
+
};
|
|
57
|
+
case 2: return function(e, r) {
|
|
58
|
+
return t.apply(this, arguments);
|
|
59
|
+
};
|
|
60
|
+
case 3: return function(e, r, n) {
|
|
61
|
+
return t.apply(this, arguments);
|
|
62
|
+
};
|
|
63
|
+
case 4: return function(e, r, n, i) {
|
|
64
|
+
return t.apply(this, arguments);
|
|
65
|
+
};
|
|
66
|
+
case 5: return function(e, r, n, i, s) {
|
|
67
|
+
return t.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
case 6: return function(e, r, n, i, s, o) {
|
|
70
|
+
return t.apply(this, arguments);
|
|
71
|
+
};
|
|
72
|
+
case 7: return function(e, r, n, i, s, o, a) {
|
|
73
|
+
return t.apply(this, arguments);
|
|
74
|
+
};
|
|
75
|
+
case 8: return function(e, r, n, i, s, o, a, u) {
|
|
76
|
+
return t.apply(this, arguments);
|
|
77
|
+
};
|
|
78
|
+
case 9: return function(e, r, n, i, s, o, a, u, c) {
|
|
79
|
+
return t.apply(this, arguments);
|
|
80
|
+
};
|
|
81
|
+
case 10: return function(e, r, n, i, s, o, a, u, c, l) {
|
|
82
|
+
return t.apply(this, arguments);
|
|
83
|
+
};
|
|
84
|
+
default: throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function d(e, t, r) {
|
|
88
|
+
return function() {
|
|
89
|
+
for (var n = [], i = 0, s = e, o = 0, a = !1; o < t.length || i < arguments.length;) {
|
|
90
|
+
var u;
|
|
91
|
+
o < t.length && (!p(t[o]) || i >= arguments.length) ? u = t[o] : (u = arguments[i], i += 1), n[o] = u, p(u) ? a = !0 : s -= 1, o += 1;
|
|
92
|
+
}
|
|
93
|
+
return !a && s <= 0 ? r.apply(this, n) : y(Math.max(0, s), d(e, n, r));
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
var b = m((function(e, t) {
|
|
97
|
+
return 1 === e ? h(t) : y(e, d(e, [], t));
|
|
98
|
+
}));
|
|
99
|
+
function v(e) {
|
|
100
|
+
return function t(r, n, i) {
|
|
101
|
+
switch (arguments.length) {
|
|
102
|
+
case 0: return t;
|
|
103
|
+
case 1: return p(r) ? t : m((function(t, n) {
|
|
104
|
+
return e(r, t, n);
|
|
105
|
+
}));
|
|
106
|
+
case 2: return p(r) && p(n) ? t : p(r) ? m((function(t, r) {
|
|
107
|
+
return e(t, n, r);
|
|
108
|
+
})) : p(n) ? m((function(t, n) {
|
|
109
|
+
return e(r, t, n);
|
|
110
|
+
})) : h((function(t) {
|
|
111
|
+
return e(r, n, t);
|
|
112
|
+
}));
|
|
113
|
+
default: return p(r) && p(n) && p(i) ? t : p(r) && p(n) ? m((function(t, r) {
|
|
114
|
+
return e(t, r, i);
|
|
115
|
+
})) : p(r) && p(i) ? m((function(t, r) {
|
|
116
|
+
return e(t, n, r);
|
|
117
|
+
})) : p(n) && p(i) ? m((function(t, n) {
|
|
118
|
+
return e(r, t, n);
|
|
119
|
+
})) : p(r) ? h((function(t) {
|
|
120
|
+
return e(t, n, i);
|
|
121
|
+
})) : p(n) ? h((function(t) {
|
|
122
|
+
return e(r, t, i);
|
|
123
|
+
})) : p(i) ? h((function(t) {
|
|
124
|
+
return e(r, n, t);
|
|
125
|
+
})) : e(r, n, i);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
var g = Array.isArray || function(e) {
|
|
130
|
+
return null != e && e.length >= 0 && "[object Array]" === Object.prototype.toString.call(e);
|
|
131
|
+
};
|
|
132
|
+
function E(e, t, r) {
|
|
133
|
+
return function() {
|
|
134
|
+
if (0 === arguments.length) return r();
|
|
135
|
+
var n = arguments[arguments.length - 1];
|
|
136
|
+
if (!g(n)) {
|
|
137
|
+
for (var i = 0; i < e.length;) {
|
|
138
|
+
if ("function" == typeof n[e[i]]) return n[e[i]].apply(n, Array.prototype.slice.call(arguments, 0, -1));
|
|
139
|
+
i += 1;
|
|
140
|
+
}
|
|
141
|
+
if (function(e) {
|
|
142
|
+
return null != e && "function" == typeof e["@@transducer/step"];
|
|
143
|
+
}(n)) return t.apply(null, Array.prototype.slice.call(arguments, 0, -1))(n);
|
|
144
|
+
}
|
|
145
|
+
return r.apply(this, arguments);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
var _ = function() {
|
|
149
|
+
return this.xf["@@transducer/init"]();
|
|
150
|
+
}, w = function(e) {
|
|
151
|
+
return this.xf["@@transducer/result"](e);
|
|
152
|
+
}, j = function() {
|
|
153
|
+
function e(e, t) {
|
|
154
|
+
this.xf = t, this.f = e, this.all = !0;
|
|
155
|
+
}
|
|
156
|
+
return e.prototype["@@transducer/init"] = _, e.prototype["@@transducer/result"] = function(e) {
|
|
157
|
+
return this.all && (e = this.xf["@@transducer/step"](e, !0)), this.xf["@@transducer/result"](e);
|
|
158
|
+
}, e.prototype["@@transducer/step"] = function(e, t) {
|
|
159
|
+
var r;
|
|
160
|
+
return this.f(t) || (this.all = !1, e = (r = this.xf["@@transducer/step"](e, !1)) && r["@@transducer/reduced"] ? r : {
|
|
161
|
+
"@@transducer/value": r,
|
|
162
|
+
"@@transducer/reduced": !0
|
|
163
|
+
}), e;
|
|
164
|
+
}, e;
|
|
165
|
+
}();
|
|
166
|
+
function x(e) {
|
|
167
|
+
return function(t) {
|
|
168
|
+
return new j(e, t);
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
var O = m(E(["all"], x, (function(e, t) {
|
|
172
|
+
for (var r = 0; r < t.length;) {
|
|
173
|
+
if (!e(t[r])) return !1;
|
|
174
|
+
r += 1;
|
|
175
|
+
}
|
|
176
|
+
return !0;
|
|
177
|
+
})));
|
|
178
|
+
function S(e) {
|
|
179
|
+
for (var t, r = []; !(t = e.next()).done;) r.push(t.value);
|
|
180
|
+
return r;
|
|
181
|
+
}
|
|
182
|
+
function A(e, t, r) {
|
|
183
|
+
for (var n = 0, i = r.length; n < i;) {
|
|
184
|
+
if (e(t, r[n])) return !0;
|
|
185
|
+
n += 1;
|
|
186
|
+
}
|
|
187
|
+
return !1;
|
|
188
|
+
}
|
|
189
|
+
function k(e, t) {
|
|
190
|
+
return Object.prototype.hasOwnProperty.call(t, e);
|
|
191
|
+
}
|
|
192
|
+
var P = "function" == typeof Object.is ? Object.is : function(e, t) {
|
|
193
|
+
return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t;
|
|
194
|
+
}, M = Object.prototype.toString, C = function() {
|
|
195
|
+
return "[object Arguments]" === M.call(arguments) ? function(e) {
|
|
196
|
+
return "[object Arguments]" === M.call(e);
|
|
197
|
+
} : function(e) {
|
|
198
|
+
return k("callee", e);
|
|
199
|
+
};
|
|
200
|
+
}(), I = !{ toString: null }.propertyIsEnumerable("toString"), T = [
|
|
201
|
+
"constructor",
|
|
202
|
+
"valueOf",
|
|
203
|
+
"isPrototypeOf",
|
|
204
|
+
"toString",
|
|
205
|
+
"propertyIsEnumerable",
|
|
206
|
+
"hasOwnProperty",
|
|
207
|
+
"toLocaleString"
|
|
208
|
+
], N = function() {
|
|
209
|
+
"use strict";
|
|
210
|
+
return arguments.propertyIsEnumerable("length");
|
|
211
|
+
}(), R = function(e, t) {
|
|
212
|
+
for (var r = 0; r < e.length;) {
|
|
213
|
+
if (e[r] === t) return !0;
|
|
214
|
+
r += 1;
|
|
215
|
+
}
|
|
216
|
+
return !1;
|
|
217
|
+
}, U = "function" != typeof Object.keys || N ? h((function(e) {
|
|
218
|
+
if (Object(e) !== e) return [];
|
|
219
|
+
var t, r, n = [], i = N && C(e);
|
|
220
|
+
for (t in e) !k(t, e) || i && "length" === t || (n[n.length] = t);
|
|
221
|
+
if (I) for (r = T.length - 1; r >= 0;) k(t = T[r], e) && !R(n, t) && (n[n.length] = t), r -= 1;
|
|
222
|
+
return n;
|
|
223
|
+
})) : h((function(e) {
|
|
224
|
+
return Object(e) !== e ? [] : Object.keys(e);
|
|
225
|
+
})), L = h((function(e) {
|
|
226
|
+
return null === e ? "Null" : void 0 === e ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
|
|
227
|
+
}));
|
|
228
|
+
function D(e, t, r, n) {
|
|
229
|
+
var i = S(e);
|
|
230
|
+
function s(e, t) {
|
|
231
|
+
return V(e, t, r.slice(), n.slice());
|
|
232
|
+
}
|
|
233
|
+
return !A((function(e, t) {
|
|
234
|
+
return !A(s, t, e);
|
|
235
|
+
}), S(t), i);
|
|
236
|
+
}
|
|
237
|
+
function V(e, t, r, n) {
|
|
238
|
+
if (P(e, t)) return !0;
|
|
239
|
+
var i, s, o = L(e);
|
|
240
|
+
if (o !== L(t)) return !1;
|
|
241
|
+
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);
|
|
242
|
+
if ("function" == typeof e.equals || "function" == typeof t.equals) return "function" == typeof e.equals && e.equals(t) && "function" == typeof t.equals && t.equals(e);
|
|
243
|
+
switch (o) {
|
|
244
|
+
case "Arguments":
|
|
245
|
+
case "Array":
|
|
246
|
+
case "Object":
|
|
247
|
+
if ("function" == typeof e.constructor && "Promise" === (i = e.constructor, null == (s = String(i).match(/^function (\w*)/)) ? "" : s[1])) return e === t;
|
|
248
|
+
break;
|
|
249
|
+
case "Boolean":
|
|
250
|
+
case "Number":
|
|
251
|
+
case "String":
|
|
252
|
+
if (typeof e != typeof t || !P(e.valueOf(), t.valueOf())) return !1;
|
|
253
|
+
break;
|
|
254
|
+
case "Date":
|
|
255
|
+
if (!P(e.valueOf(), t.valueOf())) return !1;
|
|
256
|
+
break;
|
|
257
|
+
case "Error": return e.name === t.name && e.message === t.message;
|
|
258
|
+
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;
|
|
259
|
+
}
|
|
260
|
+
for (var a = r.length - 1; a >= 0;) {
|
|
261
|
+
if (r[a] === e) return n[a] === t;
|
|
262
|
+
a -= 1;
|
|
263
|
+
}
|
|
264
|
+
switch (o) {
|
|
265
|
+
case "Map": return e.size === t.size && D(e.entries(), t.entries(), r.concat([e]), n.concat([t]));
|
|
266
|
+
case "Set": return e.size === t.size && D(e.values(), t.values(), r.concat([e]), n.concat([t]));
|
|
267
|
+
case "Arguments":
|
|
268
|
+
case "Array":
|
|
269
|
+
case "Object":
|
|
270
|
+
case "Boolean":
|
|
271
|
+
case "Number":
|
|
272
|
+
case "String":
|
|
273
|
+
case "Date":
|
|
274
|
+
case "Error":
|
|
275
|
+
case "RegExp":
|
|
276
|
+
case "Int8Array":
|
|
277
|
+
case "Uint8Array":
|
|
278
|
+
case "Uint8ClampedArray":
|
|
279
|
+
case "Int16Array":
|
|
280
|
+
case "Uint16Array":
|
|
281
|
+
case "Int32Array":
|
|
282
|
+
case "Uint32Array":
|
|
283
|
+
case "Float32Array":
|
|
284
|
+
case "Float64Array":
|
|
285
|
+
case "ArrayBuffer": break;
|
|
286
|
+
default: return !1;
|
|
287
|
+
}
|
|
288
|
+
var u = U(e);
|
|
289
|
+
if (u.length !== U(t).length) return !1;
|
|
290
|
+
var c = r.concat([e]), l = n.concat([t]);
|
|
291
|
+
for (a = u.length - 1; a >= 0;) {
|
|
292
|
+
var f = u[a];
|
|
293
|
+
if (!k(f, t) || !V(t[f], e[f], c, l)) return !1;
|
|
294
|
+
a -= 1;
|
|
295
|
+
}
|
|
296
|
+
return !0;
|
|
297
|
+
}
|
|
298
|
+
var F = m((function(e, t) {
|
|
299
|
+
return V(e, t, [], []);
|
|
300
|
+
}));
|
|
301
|
+
function B(e, t) {
|
|
302
|
+
return function(e, t, r) {
|
|
303
|
+
var n, i;
|
|
304
|
+
if ("function" == typeof e.indexOf) switch (typeof t) {
|
|
305
|
+
case "number":
|
|
306
|
+
if (0 === t) {
|
|
307
|
+
for (n = 1 / t; r < e.length;) {
|
|
308
|
+
if (0 === (i = e[r]) && 1 / i === n) return r;
|
|
309
|
+
r += 1;
|
|
310
|
+
}
|
|
311
|
+
return -1;
|
|
312
|
+
}
|
|
313
|
+
if (t != t) {
|
|
314
|
+
for (; r < e.length;) {
|
|
315
|
+
if ("number" == typeof (i = e[r]) && i != i) return r;
|
|
316
|
+
r += 1;
|
|
317
|
+
}
|
|
318
|
+
return -1;
|
|
319
|
+
}
|
|
320
|
+
return e.indexOf(t, r);
|
|
321
|
+
case "string":
|
|
322
|
+
case "boolean":
|
|
323
|
+
case "function":
|
|
324
|
+
case "undefined": return e.indexOf(t, r);
|
|
325
|
+
case "object": if (null === t) return e.indexOf(t, r);
|
|
326
|
+
}
|
|
327
|
+
for (; r < e.length;) {
|
|
328
|
+
if (F(e[r], t)) return r;
|
|
329
|
+
r += 1;
|
|
330
|
+
}
|
|
331
|
+
return -1;
|
|
332
|
+
}(t, e, 0) >= 0;
|
|
333
|
+
}
|
|
334
|
+
function z(e, t) {
|
|
335
|
+
for (var r = 0, n = t.length, i = Array(n); r < n;) i[r] = e(t[r]), r += 1;
|
|
336
|
+
return i;
|
|
337
|
+
}
|
|
338
|
+
function q(e) {
|
|
339
|
+
return "\"" + e.replace(/\\/g, "\\\\").replace(/[\b]/g, "\\b").replace(/\f/g, "\\f").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t").replace(/\v/g, "\\v").replace(/\0/g, "\\0").replace(/"/g, "\\\"") + "\"";
|
|
340
|
+
}
|
|
341
|
+
var $ = function(e) {
|
|
342
|
+
return (e < 10 ? "0" : "") + e;
|
|
343
|
+
}, G = "function" == typeof Date.prototype.toISOString ? function(e) {
|
|
344
|
+
return e.toISOString();
|
|
345
|
+
} : function(e) {
|
|
346
|
+
return e.getUTCFullYear() + "-" + $(e.getUTCMonth() + 1) + "-" + $(e.getUTCDate()) + "T" + $(e.getUTCHours()) + ":" + $(e.getUTCMinutes()) + ":" + $(e.getUTCSeconds()) + "." + (e.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5) + "Z";
|
|
347
|
+
};
|
|
348
|
+
function K(e, t, r) {
|
|
349
|
+
for (var n = 0, i = r.length; n < i;) t = e(t, r[n]), n += 1;
|
|
350
|
+
return t;
|
|
351
|
+
}
|
|
352
|
+
function W(e) {
|
|
353
|
+
return "[object Object]" === Object.prototype.toString.call(e);
|
|
354
|
+
}
|
|
355
|
+
var J = function() {
|
|
356
|
+
function e(e, t) {
|
|
357
|
+
this.xf = t, this.f = e;
|
|
358
|
+
}
|
|
359
|
+
return e.prototype["@@transducer/init"] = _, e.prototype["@@transducer/result"] = w, e.prototype["@@transducer/step"] = function(e, t) {
|
|
360
|
+
return this.f(t) ? this.xf["@@transducer/step"](e, t) : e;
|
|
361
|
+
}, e;
|
|
362
|
+
}();
|
|
363
|
+
function H(e) {
|
|
364
|
+
return function(t) {
|
|
365
|
+
return new J(e, t);
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
var Y = m(E(["fantasy-land/filter", "filter"], H, (function(e, t) {
|
|
369
|
+
return W(t) ? K((function(r, n) {
|
|
370
|
+
return e(t[n]) && (r[n] = t[n]), r;
|
|
371
|
+
}), {}, U(t)) : function(e, t) {
|
|
372
|
+
for (var r = 0, n = t.length, i = []; r < n;) e(t[r]) && (i[i.length] = t[r]), r += 1;
|
|
373
|
+
return i;
|
|
374
|
+
}(e, t);
|
|
375
|
+
}))), X = m((function(e, t) {
|
|
376
|
+
return Y((r = e, function() {
|
|
377
|
+
return !r.apply(this, arguments);
|
|
378
|
+
}), t);
|
|
379
|
+
var r;
|
|
380
|
+
}));
|
|
381
|
+
function Z(e, t) {
|
|
382
|
+
var r = function(r) {
|
|
383
|
+
var n = t.concat([e]);
|
|
384
|
+
return B(r, n) ? "<Circular>" : Z(r, n);
|
|
385
|
+
}, n = function(e, t) {
|
|
386
|
+
return z((function(t) {
|
|
387
|
+
return q(t) + ": " + r(e[t]);
|
|
388
|
+
}), t.slice().sort());
|
|
389
|
+
};
|
|
390
|
+
switch (Object.prototype.toString.call(e)) {
|
|
391
|
+
case "[object Arguments]": return "(function() { return arguments; }(" + z(r, e).join(", ") + "))";
|
|
392
|
+
case "[object Array]": return "[" + z(r, e).concat(n(e, X((function(e) {
|
|
393
|
+
return /^\d+$/.test(e);
|
|
394
|
+
}), U(e)))).join(", ") + "]";
|
|
395
|
+
case "[object Boolean]": return "object" == typeof e ? "new Boolean(" + r(e.valueOf()) + ")" : e.toString();
|
|
396
|
+
case "[object Date]": return "new Date(" + (isNaN(e.valueOf()) ? r(NaN) : q(G(e))) + ")";
|
|
397
|
+
case "[object Map]": return "new Map(" + r(Array.from(e)) + ")";
|
|
398
|
+
case "[object Null]": return "null";
|
|
399
|
+
case "[object Number]": return "object" == typeof e ? "new Number(" + r(e.valueOf()) + ")" : 1 / e == -Infinity ? "-0" : e.toString(10);
|
|
400
|
+
case "[object Set]": return "new Set(" + r(Array.from(e).sort()) + ")";
|
|
401
|
+
case "[object String]": return "object" == typeof e ? "new String(" + r(e.valueOf()) + ")" : q(e);
|
|
402
|
+
case "[object Undefined]": return "undefined";
|
|
403
|
+
default:
|
|
404
|
+
if ("function" == typeof e.toString) {
|
|
405
|
+
var i = e.toString();
|
|
406
|
+
if ("[object Object]" !== i) return i;
|
|
407
|
+
}
|
|
408
|
+
return "{" + n(e, U(e)).join(", ") + "}";
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
var Q = h((function(e) {
|
|
412
|
+
return Z(e, []);
|
|
413
|
+
})), ee = m((function(e, t) {
|
|
414
|
+
if (e === t) return t;
|
|
415
|
+
function r(e, t) {
|
|
416
|
+
if (e > t != t > e) return t > e ? t : e;
|
|
417
|
+
}
|
|
418
|
+
var n = r(e, t);
|
|
419
|
+
if (void 0 !== n) return n;
|
|
420
|
+
var i = r(typeof e, typeof t);
|
|
421
|
+
if (void 0 !== i) return i === typeof e ? e : t;
|
|
422
|
+
var s = Q(e), o = r(s, Q(t));
|
|
423
|
+
return void 0 !== o && o === s ? e : t;
|
|
424
|
+
})), te = function() {
|
|
425
|
+
function e(e, t) {
|
|
426
|
+
this.xf = t, this.f = e;
|
|
427
|
+
}
|
|
428
|
+
return e.prototype["@@transducer/init"] = _, e.prototype["@@transducer/result"] = w, e.prototype["@@transducer/step"] = function(e, t) {
|
|
429
|
+
return this.xf["@@transducer/step"](e, this.f(t));
|
|
430
|
+
}, e;
|
|
431
|
+
}(), re = m(E(["fantasy-land/map", "map"], (function(e) {
|
|
432
|
+
return function(t) {
|
|
433
|
+
return new te(e, t);
|
|
434
|
+
};
|
|
435
|
+
}), (function(e, t) {
|
|
436
|
+
switch (Object.prototype.toString.call(t)) {
|
|
437
|
+
case "[object Function]": return b(t.length, (function() {
|
|
438
|
+
return e.call(this, t.apply(this, arguments));
|
|
439
|
+
}));
|
|
440
|
+
case "[object Object]": return K((function(r, n) {
|
|
441
|
+
return r[n] = e(t[n]), r;
|
|
442
|
+
}), {}, U(t));
|
|
443
|
+
default: return z(e, t);
|
|
444
|
+
}
|
|
445
|
+
}))), ne = Number.isInteger || function(e) {
|
|
446
|
+
return (e | 0) === e;
|
|
447
|
+
};
|
|
448
|
+
function ie(e) {
|
|
449
|
+
return "[object String]" === Object.prototype.toString.call(e);
|
|
450
|
+
}
|
|
451
|
+
function se(e, t) {
|
|
452
|
+
var r = e < 0 ? t.length + e : e;
|
|
453
|
+
return ie(t) ? t.charAt(r) : t[r];
|
|
454
|
+
}
|
|
455
|
+
var oe = m((function(e, t) {
|
|
456
|
+
if (null != t) return ne(e) ? se(e, t) : t[e];
|
|
457
|
+
})), ae = m((function(e, t) {
|
|
458
|
+
return re(oe(e), t);
|
|
459
|
+
})), ue = h((function(e) {
|
|
460
|
+
return !!g(e) || !!e && "object" == typeof e && !ie(e) && (0 === e.length || e.length > 0 && e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1));
|
|
461
|
+
})), ce = "undefined" != typeof Symbol ? Symbol.iterator : "@@iterator";
|
|
462
|
+
function le(e, t, r) {
|
|
463
|
+
return function(n, i, s) {
|
|
464
|
+
if (ue(s)) return e(n, i, s);
|
|
465
|
+
if (null == s) return i;
|
|
466
|
+
if ("function" == typeof s["fantasy-land/reduce"]) return t(n, i, s, "fantasy-land/reduce");
|
|
467
|
+
if (null != s[ce]) return r(n, i, s[ce]());
|
|
468
|
+
if ("function" == typeof s.next) return r(n, i, s);
|
|
469
|
+
if ("function" == typeof s.reduce) return t(n, i, s, "reduce");
|
|
470
|
+
throw new TypeError("reduce: list must be array or iterable");
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
function fe(e, t, r) {
|
|
474
|
+
for (var n = 0, i = r.length; n < i;) {
|
|
475
|
+
if ((t = e["@@transducer/step"](t, r[n])) && t["@@transducer/reduced"]) {
|
|
476
|
+
t = t["@@transducer/value"];
|
|
477
|
+
break;
|
|
478
|
+
}
|
|
479
|
+
n += 1;
|
|
480
|
+
}
|
|
481
|
+
return e["@@transducer/result"](t);
|
|
482
|
+
}
|
|
483
|
+
var pe = m((function(e, t) {
|
|
484
|
+
return y(e.length, (function() {
|
|
485
|
+
return e.apply(t, arguments);
|
|
486
|
+
}));
|
|
487
|
+
}));
|
|
488
|
+
function he(e, t, r) {
|
|
489
|
+
for (var n = r.next(); !n.done;) {
|
|
490
|
+
if ((t = e["@@transducer/step"](t, n.value)) && t["@@transducer/reduced"]) {
|
|
491
|
+
t = t["@@transducer/value"];
|
|
492
|
+
break;
|
|
493
|
+
}
|
|
494
|
+
n = r.next();
|
|
495
|
+
}
|
|
496
|
+
return e["@@transducer/result"](t);
|
|
497
|
+
}
|
|
498
|
+
function me(e, t, r, n) {
|
|
499
|
+
return e["@@transducer/result"](r[n](pe(e["@@transducer/step"], e), t));
|
|
500
|
+
}
|
|
501
|
+
var ye = le(fe, me, he), de = function() {
|
|
502
|
+
function e(e) {
|
|
503
|
+
this.f = e;
|
|
504
|
+
}
|
|
505
|
+
return e.prototype["@@transducer/init"] = function() {
|
|
506
|
+
throw new Error("init not implemented on XWrap");
|
|
507
|
+
}, e.prototype["@@transducer/result"] = function(e) {
|
|
508
|
+
return e;
|
|
509
|
+
}, e.prototype["@@transducer/step"] = function(e, t) {
|
|
510
|
+
return this.f(e, t);
|
|
511
|
+
}, e;
|
|
512
|
+
}();
|
|
513
|
+
var be = v((function(e, t, r) {
|
|
514
|
+
return ye("function" == typeof e ? new de(e) : e, t, r);
|
|
515
|
+
})), ve = h((function(e) {
|
|
516
|
+
return function() {
|
|
517
|
+
return e;
|
|
518
|
+
};
|
|
519
|
+
})), ge = m((function(e, t) {
|
|
520
|
+
return e && t;
|
|
521
|
+
})), Ee = h((function(e) {
|
|
522
|
+
return b(be(ee, 0, ae("length", e)), (function() {
|
|
523
|
+
for (var t = 0, r = e.length; t < r;) {
|
|
524
|
+
if (e[t].apply(this, arguments)) return !0;
|
|
525
|
+
t += 1;
|
|
526
|
+
}
|
|
527
|
+
return !1;
|
|
528
|
+
}));
|
|
529
|
+
}));
|
|
530
|
+
function _e(e, t, r) {
|
|
531
|
+
for (var n = r.next(); !n.done;) t = e(t, n.value), n = r.next();
|
|
532
|
+
return t;
|
|
533
|
+
}
|
|
534
|
+
function we(e, t, r, n) {
|
|
535
|
+
return r[n](e, t);
|
|
536
|
+
}
|
|
537
|
+
var je = le(K, we, _e), xe = m((function(e, t) {
|
|
538
|
+
return "function" == typeof t["fantasy-land/ap"] ? t["fantasy-land/ap"](e) : "function" == typeof e.ap ? e.ap(t) : "function" == typeof e ? function(r) {
|
|
539
|
+
return e(r)(t(r));
|
|
540
|
+
} : je((function(e, r) {
|
|
541
|
+
return function(e, t) {
|
|
542
|
+
var r;
|
|
543
|
+
t = t || [];
|
|
544
|
+
var n = (e = e || []).length, i = t.length, s = [];
|
|
545
|
+
for (r = 0; r < n;) s[s.length] = e[r], r += 1;
|
|
546
|
+
for (r = 0; r < i;) s[s.length] = t[r], r += 1;
|
|
547
|
+
return s;
|
|
548
|
+
}(e, re(r, t));
|
|
549
|
+
}), [], e);
|
|
550
|
+
})), Oe = m((function(e, t) {
|
|
551
|
+
return e.apply(this, t);
|
|
552
|
+
})), Se = h((function(e) {
|
|
553
|
+
return b(e.length, e);
|
|
554
|
+
})), Ae = h((function(e) {
|
|
555
|
+
return null == e;
|
|
556
|
+
}));
|
|
557
|
+
function ke(e) {
|
|
558
|
+
var t = Object.prototype.toString.call(e);
|
|
559
|
+
return "[object Function]" === t || "[object AsyncFunction]" === t || "[object GeneratorFunction]" === t || "[object AsyncGeneratorFunction]" === t;
|
|
560
|
+
}
|
|
561
|
+
var Pe = m((function(e, t) {
|
|
562
|
+
var r = b(e, t);
|
|
563
|
+
return b(e, (function() {
|
|
564
|
+
return K(xe, re(r, arguments[0]), Array.prototype.slice.call(arguments, 1));
|
|
565
|
+
}));
|
|
566
|
+
})), Me = h((function(e) {
|
|
567
|
+
return Pe(e.length, e);
|
|
568
|
+
})), Ce = m((function(e, t) {
|
|
569
|
+
return ke(e) ? function() {
|
|
570
|
+
return e.apply(this, arguments) && t.apply(this, arguments);
|
|
571
|
+
} : Me(ge)(e, t);
|
|
572
|
+
})), Ie = Me(h((function(e) {
|
|
573
|
+
return !e;
|
|
574
|
+
})));
|
|
575
|
+
function Te(e, t) {
|
|
576
|
+
return function() {
|
|
577
|
+
return t.call(this, e.apply(this, arguments));
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
function Ne(e, t) {
|
|
581
|
+
return function() {
|
|
582
|
+
var r = arguments.length;
|
|
583
|
+
if (0 === r) return t();
|
|
584
|
+
var n = arguments[r - 1];
|
|
585
|
+
return g(n) || "function" != typeof n[e] ? t.apply(this, arguments) : n[e].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
var Re = v(Ne("slice", (function(e, t, r) {
|
|
589
|
+
return Array.prototype.slice.call(r, e, t);
|
|
590
|
+
}))), Ue = h(Ne("tail", Re(1, Infinity)));
|
|
591
|
+
function Le() {
|
|
592
|
+
if (0 === arguments.length) throw new Error("pipe requires at least one argument");
|
|
593
|
+
return y(arguments[0].length, be(Te, arguments[0], Ue(arguments)));
|
|
594
|
+
}
|
|
595
|
+
var De = m((function(e, t) {
|
|
596
|
+
return null == t || t != t ? e : t;
|
|
597
|
+
})), Ve = h((function(e) {
|
|
598
|
+
return se(-1, e);
|
|
599
|
+
})), Fe = function() {
|
|
600
|
+
function e(e, t) {
|
|
601
|
+
this.xf = t, this.f = e;
|
|
602
|
+
}
|
|
603
|
+
return e.prototype["@@transducer/init"] = _, e.prototype["@@transducer/result"] = w, e.prototype["@@transducer/step"] = function(e, t) {
|
|
604
|
+
if (this.f) {
|
|
605
|
+
if (this.f(t)) return e;
|
|
606
|
+
this.f = null;
|
|
607
|
+
}
|
|
608
|
+
return this.xf["@@transducer/step"](e, t);
|
|
609
|
+
}, e;
|
|
610
|
+
}();
|
|
611
|
+
function Be(e) {
|
|
612
|
+
return function(t) {
|
|
613
|
+
return new Fe(e, t);
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
var ze = m(E(["dropWhile"], Be, (function(e, t) {
|
|
617
|
+
for (var r = 0, n = t.length; r < n && e(t[r]);) r += 1;
|
|
618
|
+
return Re(r, Infinity, t);
|
|
619
|
+
})));
|
|
620
|
+
var qe = h((function(e) {
|
|
621
|
+
return null != e && "function" == typeof e["fantasy-land/empty"] ? e["fantasy-land/empty"]() : null != e && null != e.constructor && "function" == typeof e.constructor["fantasy-land/empty"] ? e.constructor["fantasy-land/empty"]() : null != e && "function" == typeof e.empty ? e.empty() : null != e && null != e.constructor && "function" == typeof e.constructor.empty ? e.constructor.empty() : g(e) ? [] : ie(e) ? "" : W(e) ? {} : C(e) ? function() {
|
|
622
|
+
return arguments;
|
|
623
|
+
}() : function(e) {
|
|
624
|
+
var t = Object.prototype.toString.call(e);
|
|
625
|
+
return "[object Uint8ClampedArray]" === t || "[object Int8Array]" === t || "[object Uint8Array]" === t || "[object Int16Array]" === t || "[object Uint16Array]" === t || "[object Int32Array]" === t || "[object Uint32Array]" === t || "[object Float32Array]" === t || "[object Float64Array]" === t || "[object BigInt64Array]" === t || "[object BigUint64Array]" === t;
|
|
626
|
+
}(e) ? e.constructor.from("") : void 0;
|
|
627
|
+
})), $e = h((function(e) {
|
|
628
|
+
return b(e.length, (function(t, r) {
|
|
629
|
+
var n = Array.prototype.slice.call(arguments, 0);
|
|
630
|
+
return n[0] = r, n[1] = t, e.apply(this, n);
|
|
631
|
+
}));
|
|
632
|
+
})), Ge = m((function(e, t) {
|
|
633
|
+
if (0 === e.length || Ae(t)) return !1;
|
|
634
|
+
for (var r = t, n = 0; n < e.length;) {
|
|
635
|
+
if (Ae(r) || !k(e[n], r)) return !1;
|
|
636
|
+
r = r[e[n]], n += 1;
|
|
637
|
+
}
|
|
638
|
+
return !0;
|
|
639
|
+
})), Ke = m((function(e, t) {
|
|
640
|
+
return Ge([e], t);
|
|
641
|
+
})), We = function(e, t) {
|
|
642
|
+
switch (arguments.length) {
|
|
643
|
+
case 0: return We;
|
|
644
|
+
case 1: return function t(r) {
|
|
645
|
+
return 0 === arguments.length ? t : P(e, r);
|
|
646
|
+
};
|
|
647
|
+
default: return P(e, t);
|
|
648
|
+
}
|
|
649
|
+
}, Je = m(B), He = Re(0, -1), Ye = m((function(e, t) {
|
|
650
|
+
return b(e + 1, (function() {
|
|
651
|
+
var r = arguments[e];
|
|
652
|
+
if (null != r && ke(r[t])) return r[t].apply(r, Array.prototype.slice.call(arguments, 0, e));
|
|
653
|
+
throw new TypeError(Q(r) + " does not have a method named \"" + t + "\"");
|
|
654
|
+
}));
|
|
655
|
+
})), Xe = h((function(e) {
|
|
656
|
+
return null != e && F(e, qe(e));
|
|
657
|
+
})), Ze = Ye(1, "join");
|
|
658
|
+
function Qe(e, t) {
|
|
659
|
+
for (var r = t, n = 0; n < e.length; n += 1) {
|
|
660
|
+
if (null == r) return;
|
|
661
|
+
var i = e[n];
|
|
662
|
+
r = ne(i) ? se(i, r) : r[i];
|
|
663
|
+
}
|
|
664
|
+
return r;
|
|
665
|
+
}
|
|
666
|
+
var et = m((function(e, t) {
|
|
667
|
+
return K((function(r, n) {
|
|
668
|
+
return r[n] = e(t[n], n, t), r;
|
|
669
|
+
}), {}, U(t));
|
|
670
|
+
})), tt = v((function(e, t, r) {
|
|
671
|
+
var n, i = {};
|
|
672
|
+
for (n in r = r || {}, t = t || {}) k(n, t) && (i[n] = k(n, r) ? e(n, t[n], r[n]) : t[n]);
|
|
673
|
+
for (n in r) k(n, r) && !k(n, i) && (i[n] = r[n]);
|
|
674
|
+
return i;
|
|
675
|
+
})), rt = v((function e(t, r, n) {
|
|
676
|
+
return tt((function(r, n, i) {
|
|
677
|
+
return W(n) && W(i) ? e(t, n, i) : t(r, n, i);
|
|
678
|
+
}), r, n);
|
|
679
|
+
})), nt = m((function(e, t) {
|
|
680
|
+
return rt((function(e, t, r) {
|
|
681
|
+
return r;
|
|
682
|
+
}), e, t);
|
|
683
|
+
})), it = m(Qe), st = v((function(e, t, r) {
|
|
684
|
+
return De(e, Qe(t, r));
|
|
685
|
+
})), ot = v((function(e, t, r) {
|
|
686
|
+
return e(Qe(t, r));
|
|
687
|
+
})), at = v((function(e, t, r) {
|
|
688
|
+
return De(e, oe(t, r));
|
|
689
|
+
})), ut = v((function(e, t, r) {
|
|
690
|
+
return e(oe(t, r));
|
|
691
|
+
})), ct = Ye(1, "split"), lt = ve(void 0), ft = F(lt()), pt = Ie(ft), ht = F(null), mt = Ie(ht), yt = b(1, Le(L, We("GeneratorFunction"))), dt = b(1, Le(L, We("AsyncFunction"))), bt = Ee([
|
|
692
|
+
Le(L, We("Function")),
|
|
693
|
+
yt,
|
|
694
|
+
dt
|
|
695
|
+
]), vt = Ce(b(1, bt(Array.isArray) ? Array.isArray : Le(L, We("Array"))), Xe), gt = b(1, Le(L, We("String")));
|
|
696
|
+
function Et(e) {
|
|
697
|
+
return Et = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
698
|
+
return typeof e;
|
|
699
|
+
} : function(e) {
|
|
700
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
701
|
+
}, Et(e);
|
|
702
|
+
}
|
|
703
|
+
var _t = Ie(bt), wt = b(1, Ce(mt, (function(e) {
|
|
704
|
+
return "object" === Et(e);
|
|
705
|
+
}))), jt = Le(L, We("Object")), xt = ot(Ce(bt, Le(Q, F(Q(Object)))), ["constructor"]), Ot = b(1, (function(e) {
|
|
706
|
+
if (!wt(e) || !jt(e)) return !1;
|
|
707
|
+
var t = Object.getPrototypeOf(e);
|
|
708
|
+
return !!ht(t) || xt(t);
|
|
709
|
+
})), St = b(1, Le(L, We("Number"))), At = ve(lt()), kt = $e(Je), Pt = b(3, (function(e, t, r) {
|
|
710
|
+
var n = it(e, r), i = it(He(e), r);
|
|
711
|
+
if (!_t(n) && !vt(e)) return Oe(pe(n, i), t);
|
|
712
|
+
})), Mt = Se((function(e, t) {
|
|
713
|
+
return Le(ct(""), ze(kt(e)), Ze(""))(t);
|
|
714
|
+
})), Ct = a(((e, t) => {
|
|
715
|
+
t.exports = function(e) {
|
|
716
|
+
return null === e;
|
|
717
|
+
};
|
|
718
|
+
})), It = a(((e, t) => {
|
|
719
|
+
t.exports = "object" == typeof global && global && global.Object === Object && global;
|
|
720
|
+
})), Tt = a(((e, t) => {
|
|
721
|
+
var r = It(), n = "object" == typeof self && self && self.Object === Object && self;
|
|
722
|
+
t.exports = r || n || Function("return this")();
|
|
723
|
+
})), Nt = a(((e, t) => {
|
|
724
|
+
t.exports = Tt().Symbol;
|
|
725
|
+
})), Rt = a(((e, t) => {
|
|
726
|
+
var r = Nt(), n = Object.prototype, i = n.hasOwnProperty, s = n.toString, o = r ? r.toStringTag : void 0;
|
|
727
|
+
t.exports = function(e) {
|
|
728
|
+
var t = i.call(e, o), r = e[o];
|
|
729
|
+
try {
|
|
730
|
+
e[o] = void 0;
|
|
731
|
+
var n = !0;
|
|
732
|
+
} catch (e) {}
|
|
733
|
+
var a = s.call(e);
|
|
734
|
+
return n && (t ? e[o] = r : delete e[o]), a;
|
|
735
|
+
};
|
|
736
|
+
})), Ut = a(((e, t) => {
|
|
737
|
+
var r = Object.prototype.toString;
|
|
738
|
+
t.exports = function(e) {
|
|
739
|
+
return r.call(e);
|
|
740
|
+
};
|
|
741
|
+
})), Lt = a(((e, t) => {
|
|
742
|
+
var r = Nt(), n = Rt(), i = Ut(), s = r ? r.toStringTag : void 0;
|
|
743
|
+
t.exports = function(e) {
|
|
744
|
+
return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : s && s in Object(e) ? n(e) : i(e);
|
|
745
|
+
};
|
|
746
|
+
})), Dt = a(((e, t) => {
|
|
747
|
+
t.exports = Array.isArray;
|
|
748
|
+
})), Vt = a(((e, t) => {
|
|
749
|
+
t.exports = function(e) {
|
|
750
|
+
return null != e && "object" == typeof e;
|
|
751
|
+
};
|
|
752
|
+
})), Ft = a(((e, t) => {
|
|
753
|
+
var r = Lt(), n = Dt(), i = Vt();
|
|
754
|
+
t.exports = function(e) {
|
|
755
|
+
return "string" == typeof e || !n(e) && i(e) && "[object String]" == r(e);
|
|
756
|
+
};
|
|
757
|
+
})), Bt = a(((e, t) => {
|
|
758
|
+
var r = Lt(), n = Vt();
|
|
759
|
+
t.exports = function(e) {
|
|
760
|
+
return "number" == typeof e || n(e) && "[object Number]" == r(e);
|
|
761
|
+
};
|
|
762
|
+
})), zt = a(((e, t) => {
|
|
763
|
+
var r = Lt(), n = Vt();
|
|
764
|
+
t.exports = function(e) {
|
|
765
|
+
return !0 === e || !1 === e || n(e) && "[object Boolean]" == r(e);
|
|
766
|
+
};
|
|
767
|
+
})), qt = a(((e, t) => {
|
|
768
|
+
t.exports = function(e) {
|
|
769
|
+
var t = typeof e;
|
|
770
|
+
return null != e && ("object" == t || "function" == t);
|
|
771
|
+
};
|
|
772
|
+
})), $t = a(((e, t) => {
|
|
773
|
+
t.exports = class {
|
|
774
|
+
constructor(e) {
|
|
775
|
+
this.namespace = e || new this.Namespace();
|
|
776
|
+
}
|
|
777
|
+
serialise(e) {
|
|
778
|
+
if (!(e instanceof this.namespace.elements.Element)) throw new TypeError(`Given element \`${e}\` is not an Element instance`);
|
|
779
|
+
const t = { element: e.element };
|
|
780
|
+
e._meta && e._meta.length > 0 && (t.meta = this.serialiseObject(e.meta)), e._attributes && e._attributes.length > 0 && (t.attributes = this.serialiseObject(e.attributes));
|
|
781
|
+
const r = this.serialiseContent(e.content);
|
|
782
|
+
return void 0 !== r && (t.content = r), t;
|
|
783
|
+
}
|
|
784
|
+
deserialise(e) {
|
|
785
|
+
if (!e.element) throw new Error("Given value is not an object containing an element name");
|
|
786
|
+
const t = new (this.namespace.getElementClass(e.element))();
|
|
787
|
+
t.element !== e.element && (t.element = e.element), e.meta && this.deserialiseObject(e.meta, t.meta), e.attributes && this.deserialiseObject(e.attributes, t.attributes);
|
|
788
|
+
const r = this.deserialiseContent(e.content);
|
|
789
|
+
return void 0 === r && null !== t.content || (t.content = r), t;
|
|
790
|
+
}
|
|
791
|
+
serialiseContent(e) {
|
|
792
|
+
if (e instanceof this.namespace.elements.Element) return this.serialise(e);
|
|
793
|
+
if (e instanceof this.namespace.KeyValuePair) {
|
|
794
|
+
const t = { key: this.serialise(e.key) };
|
|
795
|
+
return e.value && (t.value = this.serialise(e.value)), t;
|
|
796
|
+
}
|
|
797
|
+
if (e && e.map) {
|
|
798
|
+
if (0 === e.length) return;
|
|
799
|
+
return e.map(this.serialise, this);
|
|
800
|
+
}
|
|
801
|
+
return e;
|
|
802
|
+
}
|
|
803
|
+
deserialiseContent(e) {
|
|
804
|
+
if (e) {
|
|
805
|
+
if (e.element) return this.deserialise(e);
|
|
806
|
+
if (e.key) {
|
|
807
|
+
const t = new this.namespace.KeyValuePair(this.deserialise(e.key));
|
|
808
|
+
return e.value && (t.value = this.deserialise(e.value)), t;
|
|
809
|
+
}
|
|
810
|
+
if (e.map) return e.map(this.deserialise, this);
|
|
811
|
+
}
|
|
812
|
+
return e;
|
|
813
|
+
}
|
|
814
|
+
serialiseObject(e) {
|
|
815
|
+
const t = {};
|
|
816
|
+
if (e.forEach(((e, r) => {
|
|
817
|
+
e && (t[r.toValue()] = this.serialise(e));
|
|
818
|
+
})), 0 !== Object.keys(t).length) return t;
|
|
819
|
+
}
|
|
820
|
+
deserialiseObject(e, t) {
|
|
821
|
+
Object.keys(e).forEach(((r) => {
|
|
822
|
+
t.set(r, this.deserialise(e[r]));
|
|
823
|
+
}));
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
})), Gt = a(((e, t) => {
|
|
827
|
+
t.exports = function() {
|
|
828
|
+
this.__data__ = [], this.size = 0;
|
|
829
|
+
};
|
|
830
|
+
})), Kt = a(((e, t) => {
|
|
831
|
+
t.exports = function(e, t) {
|
|
832
|
+
return e === t || e != e && t != t;
|
|
833
|
+
};
|
|
834
|
+
})), Wt = a(((e, t) => {
|
|
835
|
+
var r = Kt();
|
|
836
|
+
t.exports = function(e, t) {
|
|
837
|
+
for (var n = e.length; n--;) if (r(e[n][0], t)) return n;
|
|
838
|
+
return -1;
|
|
839
|
+
};
|
|
840
|
+
})), Jt = a(((e, t) => {
|
|
841
|
+
var r = Wt(), n = Array.prototype.splice;
|
|
842
|
+
t.exports = function(e) {
|
|
843
|
+
var t = this.__data__, i = r(t, e);
|
|
844
|
+
return !(i < 0) && (i == t.length - 1 ? t.pop() : n.call(t, i, 1), --this.size, !0);
|
|
845
|
+
};
|
|
846
|
+
})), Ht = a(((e, t) => {
|
|
847
|
+
var r = Wt();
|
|
848
|
+
t.exports = function(e) {
|
|
849
|
+
var t = this.__data__, n = r(t, e);
|
|
850
|
+
return n < 0 ? void 0 : t[n][1];
|
|
851
|
+
};
|
|
852
|
+
})), Yt = a(((e, t) => {
|
|
853
|
+
var r = Wt();
|
|
854
|
+
t.exports = function(e) {
|
|
855
|
+
return r(this.__data__, e) > -1;
|
|
856
|
+
};
|
|
857
|
+
})), Xt = a(((e, t) => {
|
|
858
|
+
var r = Wt();
|
|
859
|
+
t.exports = function(e, t) {
|
|
860
|
+
var n = this.__data__, i = r(n, e);
|
|
861
|
+
return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
|
|
862
|
+
};
|
|
863
|
+
})), Zt = a(((e, t) => {
|
|
864
|
+
var r = Gt(), n = Jt(), i = Ht(), s = Yt(), o = Xt();
|
|
865
|
+
function a(e) {
|
|
866
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
867
|
+
for (this.clear(); ++t < r;) {
|
|
868
|
+
var n = e[t];
|
|
869
|
+
this.set(n[0], n[1]);
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = i, a.prototype.has = s, a.prototype.set = o, t.exports = a;
|
|
873
|
+
})), Qt = a(((e, t) => {
|
|
874
|
+
var r = Zt();
|
|
875
|
+
t.exports = function() {
|
|
876
|
+
this.__data__ = new r(), this.size = 0;
|
|
877
|
+
};
|
|
878
|
+
})), er = a(((e, t) => {
|
|
879
|
+
t.exports = function(e) {
|
|
880
|
+
var t = this.__data__, r = t.delete(e);
|
|
881
|
+
return this.size = t.size, r;
|
|
882
|
+
};
|
|
883
|
+
})), tr = a(((e, t) => {
|
|
884
|
+
t.exports = function(e) {
|
|
885
|
+
return this.__data__.get(e);
|
|
886
|
+
};
|
|
887
|
+
})), rr = a(((e, t) => {
|
|
888
|
+
t.exports = function(e) {
|
|
889
|
+
return this.__data__.has(e);
|
|
890
|
+
};
|
|
891
|
+
})), nr = a(((e, t) => {
|
|
892
|
+
var r = Lt(), n = qt();
|
|
893
|
+
t.exports = function(e) {
|
|
894
|
+
if (!n(e)) return !1;
|
|
895
|
+
var t = r(e);
|
|
896
|
+
return "[object Function]" == t || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t;
|
|
897
|
+
};
|
|
898
|
+
})), ir = a(((e, t) => {
|
|
899
|
+
t.exports = Tt()["__core-js_shared__"];
|
|
900
|
+
})), sr = a(((e, t) => {
|
|
901
|
+
var r, n = ir(), i = (r = /[^.]+$/.exec(n && n.keys && n.keys.IE_PROTO || "")) ? "Symbol(src)_1." + r : "";
|
|
902
|
+
t.exports = function(e) {
|
|
903
|
+
return !!i && i in e;
|
|
904
|
+
};
|
|
905
|
+
})), or = a(((e, t) => {
|
|
906
|
+
var r = Function.prototype.toString;
|
|
907
|
+
t.exports = function(e) {
|
|
908
|
+
if (null != e) {
|
|
909
|
+
try {
|
|
910
|
+
return r.call(e);
|
|
911
|
+
} catch (e) {}
|
|
912
|
+
try {
|
|
913
|
+
return e + "";
|
|
914
|
+
} catch (e) {}
|
|
915
|
+
}
|
|
916
|
+
return "";
|
|
917
|
+
};
|
|
918
|
+
})), ar = a(((e, t) => {
|
|
919
|
+
var r = nr(), n = sr(), i = qt(), s = or(), o = /^\[object .+?Constructor\]$/, a = Function.prototype, u = Object.prototype, c = a.toString, l = u.hasOwnProperty, f = RegExp("^" + c.call(l).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
920
|
+
t.exports = function(e) {
|
|
921
|
+
return !(!i(e) || n(e)) && (r(e) ? f : o).test(s(e));
|
|
922
|
+
};
|
|
923
|
+
})), ur = a(((e, t) => {
|
|
924
|
+
t.exports = function(e, t) {
|
|
925
|
+
return null == e ? void 0 : e[t];
|
|
926
|
+
};
|
|
927
|
+
})), cr = a(((e, t) => {
|
|
928
|
+
var r = ar(), n = ur();
|
|
929
|
+
t.exports = function(e, t) {
|
|
930
|
+
var i = n(e, t);
|
|
931
|
+
return r(i) ? i : void 0;
|
|
932
|
+
};
|
|
933
|
+
})), lr = a(((e, t) => {
|
|
934
|
+
t.exports = cr()(Tt(), "Map");
|
|
935
|
+
})), fr = a(((e, t) => {
|
|
936
|
+
t.exports = cr()(Object, "create");
|
|
937
|
+
})), pr = a(((e, t) => {
|
|
938
|
+
var r = fr();
|
|
939
|
+
t.exports = function() {
|
|
940
|
+
this.__data__ = r ? r(null) : {}, this.size = 0;
|
|
941
|
+
};
|
|
942
|
+
})), hr = a(((e, t) => {
|
|
943
|
+
t.exports = function(e) {
|
|
944
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
945
|
+
return this.size -= t ? 1 : 0, t;
|
|
946
|
+
};
|
|
947
|
+
})), mr = a(((e, t) => {
|
|
948
|
+
var r = fr(), n = Object.prototype.hasOwnProperty;
|
|
949
|
+
t.exports = function(e) {
|
|
950
|
+
var t = this.__data__;
|
|
951
|
+
if (r) {
|
|
952
|
+
var i = t[e];
|
|
953
|
+
return "__lodash_hash_undefined__" === i ? void 0 : i;
|
|
954
|
+
}
|
|
955
|
+
return n.call(t, e) ? t[e] : void 0;
|
|
956
|
+
};
|
|
957
|
+
})), yr = a(((e, t) => {
|
|
958
|
+
var r = fr(), n = Object.prototype.hasOwnProperty;
|
|
959
|
+
t.exports = function(e) {
|
|
960
|
+
var t = this.__data__;
|
|
961
|
+
return r ? void 0 !== t[e] : n.call(t, e);
|
|
962
|
+
};
|
|
963
|
+
})), dr = a(((e, t) => {
|
|
964
|
+
var r = fr();
|
|
965
|
+
t.exports = function(e, t) {
|
|
966
|
+
var n = this.__data__;
|
|
967
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = r && void 0 === t ? "__lodash_hash_undefined__" : t, this;
|
|
968
|
+
};
|
|
969
|
+
})), br = a(((e, t) => {
|
|
970
|
+
var r = pr(), n = hr(), i = mr(), s = yr(), o = dr();
|
|
971
|
+
function a(e) {
|
|
972
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
973
|
+
for (this.clear(); ++t < r;) {
|
|
974
|
+
var n = e[t];
|
|
975
|
+
this.set(n[0], n[1]);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = i, a.prototype.has = s, a.prototype.set = o, t.exports = a;
|
|
979
|
+
})), vr = a(((e, t) => {
|
|
980
|
+
var r = br(), n = Zt(), i = lr();
|
|
981
|
+
t.exports = function() {
|
|
982
|
+
this.size = 0, this.__data__ = {
|
|
983
|
+
hash: new r(),
|
|
984
|
+
map: new (i || n)(),
|
|
985
|
+
string: new r()
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
})), gr = a(((e, t) => {
|
|
989
|
+
t.exports = function(e) {
|
|
990
|
+
var t = typeof e;
|
|
991
|
+
return "string" == t || "number" == t || "symbol" == t || "boolean" == t ? "__proto__" !== e : null === e;
|
|
992
|
+
};
|
|
993
|
+
})), Er = a(((e, t) => {
|
|
994
|
+
var r = gr();
|
|
995
|
+
t.exports = function(e, t) {
|
|
996
|
+
var n = e.__data__;
|
|
997
|
+
return r(t) ? n["string" == typeof t ? "string" : "hash"] : n.map;
|
|
998
|
+
};
|
|
999
|
+
})), _r = a(((e, t) => {
|
|
1000
|
+
var r = Er();
|
|
1001
|
+
t.exports = function(e) {
|
|
1002
|
+
var t = r(this, e).delete(e);
|
|
1003
|
+
return this.size -= t ? 1 : 0, t;
|
|
1004
|
+
};
|
|
1005
|
+
})), wr = a(((e, t) => {
|
|
1006
|
+
var r = Er();
|
|
1007
|
+
t.exports = function(e) {
|
|
1008
|
+
return r(this, e).get(e);
|
|
1009
|
+
};
|
|
1010
|
+
})), jr = a(((e, t) => {
|
|
1011
|
+
var r = Er();
|
|
1012
|
+
t.exports = function(e) {
|
|
1013
|
+
return r(this, e).has(e);
|
|
1014
|
+
};
|
|
1015
|
+
})), xr = a(((e, t) => {
|
|
1016
|
+
var r = Er();
|
|
1017
|
+
t.exports = function(e, t) {
|
|
1018
|
+
var n = r(this, e), i = n.size;
|
|
1019
|
+
return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
|
|
1020
|
+
};
|
|
1021
|
+
})), Or = a(((e, t) => {
|
|
1022
|
+
var r = vr(), n = _r(), i = wr(), s = jr(), o = xr();
|
|
1023
|
+
function a(e) {
|
|
1024
|
+
var t = -1, r = null == e ? 0 : e.length;
|
|
1025
|
+
for (this.clear(); ++t < r;) {
|
|
1026
|
+
var n = e[t];
|
|
1027
|
+
this.set(n[0], n[1]);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
a.prototype.clear = r, a.prototype.delete = n, a.prototype.get = i, a.prototype.has = s, a.prototype.set = o, t.exports = a;
|
|
1031
|
+
})), Sr = a(((e, t) => {
|
|
1032
|
+
var r = Zt(), n = lr(), i = Or();
|
|
1033
|
+
t.exports = function(e, t) {
|
|
1034
|
+
var s = this.__data__;
|
|
1035
|
+
if (s instanceof r) {
|
|
1036
|
+
var o = s.__data__;
|
|
1037
|
+
if (!n || o.length < 199) return o.push([e, t]), this.size = ++s.size, this;
|
|
1038
|
+
s = this.__data__ = new i(o);
|
|
1039
|
+
}
|
|
1040
|
+
return s.set(e, t), this.size = s.size, this;
|
|
1041
|
+
};
|
|
1042
|
+
})), Ar = a(((e, t) => {
|
|
1043
|
+
var r = Zt(), n = Qt(), i = er(), s = tr(), o = rr(), a = Sr();
|
|
1044
|
+
function u(e) {
|
|
1045
|
+
var t = this.__data__ = new r(e);
|
|
1046
|
+
this.size = t.size;
|
|
1047
|
+
}
|
|
1048
|
+
u.prototype.clear = n, u.prototype.delete = i, u.prototype.get = s, u.prototype.has = o, u.prototype.set = a, t.exports = u;
|
|
1049
|
+
})), kr = a(((e, t) => {
|
|
1050
|
+
t.exports = function(e) {
|
|
1051
|
+
return this.__data__.set(e, "__lodash_hash_undefined__"), this;
|
|
1052
|
+
};
|
|
1053
|
+
})), Pr = a(((e, t) => {
|
|
1054
|
+
t.exports = function(e) {
|
|
1055
|
+
return this.__data__.has(e);
|
|
1056
|
+
};
|
|
1057
|
+
})), Mr = a(((e, t) => {
|
|
1058
|
+
var r = Or(), n = kr(), i = Pr();
|
|
1059
|
+
function s(e) {
|
|
1060
|
+
var t = -1, n = null == e ? 0 : e.length;
|
|
1061
|
+
for (this.__data__ = new r(); ++t < n;) this.add(e[t]);
|
|
1062
|
+
}
|
|
1063
|
+
s.prototype.add = s.prototype.push = n, s.prototype.has = i, t.exports = s;
|
|
1064
|
+
})), Cr = a(((e, t) => {
|
|
1065
|
+
t.exports = function(e, t) {
|
|
1066
|
+
for (var r = -1, n = null == e ? 0 : e.length; ++r < n;) if (t(e[r], r, e)) return !0;
|
|
1067
|
+
return !1;
|
|
1068
|
+
};
|
|
1069
|
+
})), Ir = a(((e, t) => {
|
|
1070
|
+
t.exports = function(e, t) {
|
|
1071
|
+
return e.has(t);
|
|
1072
|
+
};
|
|
1073
|
+
})), Tr = a(((e, t) => {
|
|
1074
|
+
var r = Mr(), n = Cr(), i = Ir();
|
|
1075
|
+
t.exports = function(e, t, s, o, a, u) {
|
|
1076
|
+
var c = 1 & s, l = e.length, f = t.length;
|
|
1077
|
+
if (l != f && !(c && f > l)) return !1;
|
|
1078
|
+
var p = u.get(e), h = u.get(t);
|
|
1079
|
+
if (p && h) return p == t && h == e;
|
|
1080
|
+
var m = -1, y = !0, d = 2 & s ? new r() : void 0;
|
|
1081
|
+
for (u.set(e, t), u.set(t, e); ++m < l;) {
|
|
1082
|
+
var b = e[m], v = t[m];
|
|
1083
|
+
if (o) var g = c ? o(v, b, m, t, e, u) : o(b, v, m, e, t, u);
|
|
1084
|
+
if (void 0 !== g) {
|
|
1085
|
+
if (g) continue;
|
|
1086
|
+
y = !1;
|
|
1087
|
+
break;
|
|
1088
|
+
}
|
|
1089
|
+
if (d) {
|
|
1090
|
+
if (!n(t, (function(e, t) {
|
|
1091
|
+
if (!i(d, t) && (b === e || a(b, e, s, o, u))) return d.push(t);
|
|
1092
|
+
}))) {
|
|
1093
|
+
y = !1;
|
|
1094
|
+
break;
|
|
1095
|
+
}
|
|
1096
|
+
} else if (b !== v && !a(b, v, s, o, u)) {
|
|
1097
|
+
y = !1;
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
return u.delete(e), u.delete(t), y;
|
|
1102
|
+
};
|
|
1103
|
+
})), Nr = a(((e, t) => {
|
|
1104
|
+
t.exports = Tt().Uint8Array;
|
|
1105
|
+
})), Rr = a(((e, t) => {
|
|
1106
|
+
t.exports = function(e) {
|
|
1107
|
+
var t = -1, r = Array(e.size);
|
|
1108
|
+
return e.forEach((function(e, n) {
|
|
1109
|
+
r[++t] = [n, e];
|
|
1110
|
+
})), r;
|
|
1111
|
+
};
|
|
1112
|
+
})), Ur = a(((e, t) => {
|
|
1113
|
+
t.exports = function(e) {
|
|
1114
|
+
var t = -1, r = Array(e.size);
|
|
1115
|
+
return e.forEach((function(e) {
|
|
1116
|
+
r[++t] = e;
|
|
1117
|
+
})), r;
|
|
1118
|
+
};
|
|
1119
|
+
})), Lr = a(((e, t) => {
|
|
1120
|
+
var r = Nt(), n = Nr(), i = Kt(), s = Tr(), o = Rr(), a = Ur(), u = r ? r.prototype : void 0, c = u ? u.valueOf : void 0;
|
|
1121
|
+
t.exports = function(e, t, r, u, l, f, p) {
|
|
1122
|
+
switch (r) {
|
|
1123
|
+
case "[object DataView]":
|
|
1124
|
+
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
1125
|
+
e = e.buffer, t = t.buffer;
|
|
1126
|
+
case "[object ArrayBuffer]": return !(e.byteLength != t.byteLength || !f(new n(e), new n(t)));
|
|
1127
|
+
case "[object Boolean]":
|
|
1128
|
+
case "[object Date]":
|
|
1129
|
+
case "[object Number]": return i(+e, +t);
|
|
1130
|
+
case "[object Error]": return e.name == t.name && e.message == t.message;
|
|
1131
|
+
case "[object RegExp]":
|
|
1132
|
+
case "[object String]": return e == t + "";
|
|
1133
|
+
case "[object Map]": var h = o;
|
|
1134
|
+
case "[object Set]":
|
|
1135
|
+
var m = 1 & u;
|
|
1136
|
+
if (h || (h = a), e.size != t.size && !m) return !1;
|
|
1137
|
+
var y = p.get(e);
|
|
1138
|
+
if (y) return y == t;
|
|
1139
|
+
u |= 2, p.set(e, t);
|
|
1140
|
+
var d = s(h(e), h(t), u, l, f, p);
|
|
1141
|
+
return p.delete(e), d;
|
|
1142
|
+
case "[object Symbol]": if (c) return c.call(e) == c.call(t);
|
|
1143
|
+
}
|
|
1144
|
+
return !1;
|
|
1145
|
+
};
|
|
1146
|
+
})), Dr = a(((e, t) => {
|
|
1147
|
+
t.exports = function(e, t) {
|
|
1148
|
+
for (var r = -1, n = t.length, i = e.length; ++r < n;) e[i + r] = t[r];
|
|
1149
|
+
return e;
|
|
1150
|
+
};
|
|
1151
|
+
})), Vr = a(((e, t) => {
|
|
1152
|
+
var r = Dr(), n = Dt();
|
|
1153
|
+
t.exports = function(e, t, i) {
|
|
1154
|
+
var s = t(e);
|
|
1155
|
+
return n(e) ? s : r(s, i(e));
|
|
1156
|
+
};
|
|
1157
|
+
})), Fr = a(((e, t) => {
|
|
1158
|
+
t.exports = function(e, t) {
|
|
1159
|
+
for (var r = -1, n = null == e ? 0 : e.length, i = 0, s = []; ++r < n;) {
|
|
1160
|
+
var o = e[r];
|
|
1161
|
+
t(o, r, e) && (s[i++] = o);
|
|
1162
|
+
}
|
|
1163
|
+
return s;
|
|
1164
|
+
};
|
|
1165
|
+
})), Br = a(((e, t) => {
|
|
1166
|
+
t.exports = function() {
|
|
1167
|
+
return [];
|
|
1168
|
+
};
|
|
1169
|
+
})), zr = a(((e, t) => {
|
|
1170
|
+
var r = Fr(), n = Br(), i = Object.prototype.propertyIsEnumerable, s = Object.getOwnPropertySymbols;
|
|
1171
|
+
t.exports = s ? function(e) {
|
|
1172
|
+
return null == e ? [] : (e = Object(e), r(s(e), (function(t) {
|
|
1173
|
+
return i.call(e, t);
|
|
1174
|
+
})));
|
|
1175
|
+
} : n;
|
|
1176
|
+
})), qr = a(((e, t) => {
|
|
1177
|
+
t.exports = function(e, t) {
|
|
1178
|
+
for (var r = -1, n = Array(e); ++r < e;) n[r] = t(r);
|
|
1179
|
+
return n;
|
|
1180
|
+
};
|
|
1181
|
+
})), $r = a(((e, t) => {
|
|
1182
|
+
var r = Lt(), n = Vt();
|
|
1183
|
+
t.exports = function(e) {
|
|
1184
|
+
return n(e) && "[object Arguments]" == r(e);
|
|
1185
|
+
};
|
|
1186
|
+
})), Gr = a(((e, t) => {
|
|
1187
|
+
var r = $r(), n = Vt(), i = Object.prototype, s = i.hasOwnProperty, o = i.propertyIsEnumerable;
|
|
1188
|
+
t.exports = r(function() {
|
|
1189
|
+
return arguments;
|
|
1190
|
+
}()) ? r : function(e) {
|
|
1191
|
+
return n(e) && s.call(e, "callee") && !o.call(e, "callee");
|
|
1192
|
+
};
|
|
1193
|
+
})), Kr = a(((e, t) => {
|
|
1194
|
+
t.exports = function() {
|
|
1195
|
+
return !1;
|
|
1196
|
+
};
|
|
1197
|
+
})), Wr = a(((e, t) => {
|
|
1198
|
+
var r = Tt(), n = Kr(), i = "object" == typeof e && e && !e.nodeType && e, s = i && "object" == typeof t && t && !t.nodeType && t, o = s && s.exports === i ? r.Buffer : void 0;
|
|
1199
|
+
t.exports = (o ? o.isBuffer : void 0) || n;
|
|
1200
|
+
})), Jr = a(((e, t) => {
|
|
1201
|
+
var r = /^(?:0|[1-9]\d*)$/;
|
|
1202
|
+
t.exports = function(e, t) {
|
|
1203
|
+
var n = typeof e;
|
|
1204
|
+
return !!(t = null == t ? 9007199254740991 : t) && ("number" == n || "symbol" != n && r.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
1205
|
+
};
|
|
1206
|
+
})), Hr = a(((e, t) => {
|
|
1207
|
+
t.exports = function(e) {
|
|
1208
|
+
return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991;
|
|
1209
|
+
};
|
|
1210
|
+
})), Yr = a(((e, t) => {
|
|
1211
|
+
var r = Lt(), n = Hr(), i = Vt(), s = {};
|
|
1212
|
+
s["[object Float32Array]"] = s["[object Float64Array]"] = s["[object Int8Array]"] = s["[object Int16Array]"] = s["[object Int32Array]"] = s["[object Uint8Array]"] = s["[object Uint8ClampedArray]"] = s["[object Uint16Array]"] = s["[object Uint32Array]"] = !0, s["[object Arguments]"] = s["[object Array]"] = s["[object ArrayBuffer]"] = s["[object Boolean]"] = s["[object DataView]"] = s["[object Date]"] = s["[object Error]"] = s["[object Function]"] = s["[object Map]"] = s["[object Number]"] = s["[object Object]"] = s["[object RegExp]"] = s["[object Set]"] = s["[object String]"] = s["[object WeakMap]"] = !1, t.exports = function(e) {
|
|
1213
|
+
return i(e) && n(e.length) && !!s[r(e)];
|
|
1214
|
+
};
|
|
1215
|
+
})), Xr = a(((e, t) => {
|
|
1216
|
+
t.exports = function(e) {
|
|
1217
|
+
return function(t) {
|
|
1218
|
+
return e(t);
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
})), Zr = a(((e, t) => {
|
|
1222
|
+
var r = It(), n = "object" == typeof e && e && !e.nodeType && e, i = n && "object" == typeof t && t && !t.nodeType && t, s = i && i.exports === n && r.process;
|
|
1223
|
+
t.exports = function() {
|
|
1224
|
+
try {
|
|
1225
|
+
return i && i.require && i.require("util").types || s && s.binding && s.binding("util");
|
|
1226
|
+
} catch (e) {}
|
|
1227
|
+
}();
|
|
1228
|
+
})), Qr = a(((e, t) => {
|
|
1229
|
+
var r = Yr(), n = Xr(), i = Zr(), s = i && i.isTypedArray;
|
|
1230
|
+
t.exports = s ? n(s) : r;
|
|
1231
|
+
})), en = a(((e, t) => {
|
|
1232
|
+
var r = qr(), n = Gr(), i = Dt(), s = Wr(), o = Jr(), a = Qr(), u = Object.prototype.hasOwnProperty;
|
|
1233
|
+
t.exports = function(e, t) {
|
|
1234
|
+
var c = i(e), l = !c && n(e), f = !c && !l && s(e), p = !c && !l && !f && a(e), h = c || l || f || p, m = h ? r(e.length, String) : [], y = m.length;
|
|
1235
|
+
for (var d in e) !t && !u.call(e, d) || h && ("length" == d || f && ("offset" == d || "parent" == d) || p && ("buffer" == d || "byteLength" == d || "byteOffset" == d) || o(d, y)) || m.push(d);
|
|
1236
|
+
return m;
|
|
1237
|
+
};
|
|
1238
|
+
})), tn = a(((e, t) => {
|
|
1239
|
+
var r = Object.prototype;
|
|
1240
|
+
t.exports = function(e) {
|
|
1241
|
+
var t = e && e.constructor;
|
|
1242
|
+
return e === ("function" == typeof t && t.prototype || r);
|
|
1243
|
+
};
|
|
1244
|
+
})), rn = a(((e, t) => {
|
|
1245
|
+
t.exports = function(e, t) {
|
|
1246
|
+
return function(r) {
|
|
1247
|
+
return e(t(r));
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
})), nn = a(((e, t) => {
|
|
1251
|
+
t.exports = rn()(Object.keys, Object);
|
|
1252
|
+
})), sn = a(((e, t) => {
|
|
1253
|
+
var r = tn(), n = nn(), i = Object.prototype.hasOwnProperty;
|
|
1254
|
+
t.exports = function(e) {
|
|
1255
|
+
if (!r(e)) return n(e);
|
|
1256
|
+
var t = [];
|
|
1257
|
+
for (var s in Object(e)) i.call(e, s) && "constructor" != s && t.push(s);
|
|
1258
|
+
return t;
|
|
1259
|
+
};
|
|
1260
|
+
})), on = a(((e, t) => {
|
|
1261
|
+
var r = nr(), n = Hr();
|
|
1262
|
+
t.exports = function(e) {
|
|
1263
|
+
return null != e && n(e.length) && !r(e);
|
|
1264
|
+
};
|
|
1265
|
+
})), an = a(((e, t) => {
|
|
1266
|
+
var r = en(), n = sn(), i = on();
|
|
1267
|
+
t.exports = function(e) {
|
|
1268
|
+
return i(e) ? r(e) : n(e);
|
|
1269
|
+
};
|
|
1270
|
+
})), un = a(((e, t) => {
|
|
1271
|
+
var r = Vr(), n = zr(), i = an();
|
|
1272
|
+
t.exports = function(e) {
|
|
1273
|
+
return r(e, i, n);
|
|
1274
|
+
};
|
|
1275
|
+
})), cn = a(((e, t) => {
|
|
1276
|
+
var r = un(), n = Object.prototype.hasOwnProperty;
|
|
1277
|
+
t.exports = function(e, t, i, s, o, a) {
|
|
1278
|
+
var u = 1 & i, c = r(e), l = c.length;
|
|
1279
|
+
if (l != r(t).length && !u) return !1;
|
|
1280
|
+
for (var f = l; f--;) {
|
|
1281
|
+
var p = c[f];
|
|
1282
|
+
if (!(u ? p in t : n.call(t, p))) return !1;
|
|
1283
|
+
}
|
|
1284
|
+
var h = a.get(e), m = a.get(t);
|
|
1285
|
+
if (h && m) return h == t && m == e;
|
|
1286
|
+
var y = !0;
|
|
1287
|
+
a.set(e, t), a.set(t, e);
|
|
1288
|
+
for (var d = u; ++f < l;) {
|
|
1289
|
+
var b = e[p = c[f]], v = t[p];
|
|
1290
|
+
if (s) var g = u ? s(v, b, p, t, e, a) : s(b, v, p, e, t, a);
|
|
1291
|
+
if (!(void 0 === g ? b === v || o(b, v, i, s, a) : g)) {
|
|
1292
|
+
y = !1;
|
|
1293
|
+
break;
|
|
1294
|
+
}
|
|
1295
|
+
d || (d = "constructor" == p);
|
|
1296
|
+
}
|
|
1297
|
+
if (y && !d) {
|
|
1298
|
+
var E = e.constructor, _ = t.constructor;
|
|
1299
|
+
E == _ || !("constructor" in e) || !("constructor" in t) || "function" == typeof E && E instanceof E && "function" == typeof _ && _ instanceof _ || (y = !1);
|
|
1300
|
+
}
|
|
1301
|
+
return a.delete(e), a.delete(t), y;
|
|
1302
|
+
};
|
|
1303
|
+
})), ln = a(((e, t) => {
|
|
1304
|
+
t.exports = cr()(Tt(), "DataView");
|
|
1305
|
+
})), fn = a(((e, t) => {
|
|
1306
|
+
t.exports = cr()(Tt(), "Promise");
|
|
1307
|
+
})), pn = a(((e, t) => {
|
|
1308
|
+
t.exports = cr()(Tt(), "Set");
|
|
1309
|
+
})), hn = a(((e, t) => {
|
|
1310
|
+
t.exports = cr()(Tt(), "WeakMap");
|
|
1311
|
+
})), mn = a(((e, t) => {
|
|
1312
|
+
var r = ln(), n = lr(), i = fn(), s = pn(), o = hn(), a = Lt(), u = or(), c = "[object Map]", l = "[object Promise]", f = "[object Set]", p = "[object WeakMap]", h = "[object DataView]", m = u(r), y = u(n), d = u(i), b = u(s), v = u(o), g = a;
|
|
1313
|
+
(r && g(new r(/* @__PURE__ */ new ArrayBuffer(1))) != h || n && g(new n()) != c || i && g(i.resolve()) != l || s && g(new s()) != f || o && g(new o()) != p) && (g = function(e) {
|
|
1314
|
+
var t = a(e), r = "[object Object]" == t ? e.constructor : void 0, n = r ? u(r) : "";
|
|
1315
|
+
if (n) switch (n) {
|
|
1316
|
+
case m: return h;
|
|
1317
|
+
case y: return c;
|
|
1318
|
+
case d: return l;
|
|
1319
|
+
case b: return f;
|
|
1320
|
+
case v: return p;
|
|
1321
|
+
}
|
|
1322
|
+
return t;
|
|
1323
|
+
}), t.exports = g;
|
|
1324
|
+
})), yn = a(((e, t) => {
|
|
1325
|
+
var r = Ar(), n = Tr(), i = Lr(), s = cn(), o = mn(), a = Dt(), u = Wr(), c = Qr(), l = "[object Arguments]", f = "[object Array]", p = "[object Object]", h = Object.prototype.hasOwnProperty;
|
|
1326
|
+
t.exports = function(e, t, m, y, d, b) {
|
|
1327
|
+
var v = a(e), g = a(t), E = v ? f : o(e), _ = g ? f : o(t), w = (E = E == l ? p : E) == p, j = (_ = _ == l ? p : _) == p, x = E == _;
|
|
1328
|
+
if (x && u(e)) {
|
|
1329
|
+
if (!u(t)) return !1;
|
|
1330
|
+
v = !0, w = !1;
|
|
1331
|
+
}
|
|
1332
|
+
if (x && !w) return b || (b = new r()), v || c(e) ? n(e, t, m, y, d, b) : i(e, t, E, m, y, d, b);
|
|
1333
|
+
if (!(1 & m)) {
|
|
1334
|
+
var O = w && h.call(e, "__wrapped__"), S = j && h.call(t, "__wrapped__");
|
|
1335
|
+
if (O || S) {
|
|
1336
|
+
var A = O ? e.value() : e, k = S ? t.value() : t;
|
|
1337
|
+
return b || (b = new r()), d(A, k, m, y, b);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
return !!x && (b || (b = new r()), s(e, t, m, y, d, b));
|
|
1341
|
+
};
|
|
1342
|
+
})), dn = a(((e, t) => {
|
|
1343
|
+
var r = yn(), n = Vt();
|
|
1344
|
+
t.exports = function e(t, i, s, o, a) {
|
|
1345
|
+
return t === i || (null == t || null == i || !n(t) && !n(i) ? t != t && i != i : r(t, i, s, o, e, a));
|
|
1346
|
+
};
|
|
1347
|
+
})), bn = a(((e, t) => {
|
|
1348
|
+
var r = dn();
|
|
1349
|
+
t.exports = function(e, t) {
|
|
1350
|
+
return r(e, t);
|
|
1351
|
+
};
|
|
1352
|
+
})), vn = a(((e, t) => {
|
|
1353
|
+
t.exports = class e {
|
|
1354
|
+
constructor(e, t) {
|
|
1355
|
+
this.key = e, this.value = t;
|
|
1356
|
+
}
|
|
1357
|
+
clone() {
|
|
1358
|
+
const t = new e();
|
|
1359
|
+
return this.key && (t.key = this.key.clone()), this.value && (t.value = this.value.clone()), t;
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
})), gn = a(((e, t) => {
|
|
1363
|
+
t.exports = function(e) {
|
|
1364
|
+
if ("function" != typeof e) throw new TypeError("Expected a function");
|
|
1365
|
+
return function() {
|
|
1366
|
+
var t = arguments;
|
|
1367
|
+
switch (t.length) {
|
|
1368
|
+
case 0: return !e.call(this);
|
|
1369
|
+
case 1: return !e.call(this, t[0]);
|
|
1370
|
+
case 2: return !e.call(this, t[0], t[1]);
|
|
1371
|
+
case 3: return !e.call(this, t[0], t[1], t[2]);
|
|
1372
|
+
}
|
|
1373
|
+
return !e.apply(this, t);
|
|
1374
|
+
};
|
|
1375
|
+
};
|
|
1376
|
+
})), En = a(((e, t) => {
|
|
1377
|
+
var r = gn();
|
|
1378
|
+
function n(e) {
|
|
1379
|
+
return "string" == typeof e ? (t) => t.element === e : e.constructor && e.extend ? (t) => t instanceof e : e;
|
|
1380
|
+
}
|
|
1381
|
+
var i = class e {
|
|
1382
|
+
constructor(e) {
|
|
1383
|
+
this.elements = e || [];
|
|
1384
|
+
}
|
|
1385
|
+
toValue() {
|
|
1386
|
+
return this.elements.map(((e) => e.toValue()));
|
|
1387
|
+
}
|
|
1388
|
+
map(e, t) {
|
|
1389
|
+
return this.elements.map(e, t);
|
|
1390
|
+
}
|
|
1391
|
+
flatMap(e, t) {
|
|
1392
|
+
return this.map(e, t).reduce(((e, t) => e.concat(t)), []);
|
|
1393
|
+
}
|
|
1394
|
+
compactMap(e, t) {
|
|
1395
|
+
const r = [];
|
|
1396
|
+
return this.forEach(((n) => {
|
|
1397
|
+
const i = e.bind(t)(n);
|
|
1398
|
+
i && r.push(i);
|
|
1399
|
+
})), r;
|
|
1400
|
+
}
|
|
1401
|
+
filter(t, r) {
|
|
1402
|
+
return t = n(t), new e(this.elements.filter(t, r));
|
|
1403
|
+
}
|
|
1404
|
+
reject(t, i) {
|
|
1405
|
+
return t = n(t), new e(this.elements.filter(r(t), i));
|
|
1406
|
+
}
|
|
1407
|
+
find(e, t) {
|
|
1408
|
+
return e = n(e), this.elements.find(e, t);
|
|
1409
|
+
}
|
|
1410
|
+
forEach(e, t) {
|
|
1411
|
+
this.elements.forEach(e, t);
|
|
1412
|
+
}
|
|
1413
|
+
reduce(e, t) {
|
|
1414
|
+
return this.elements.reduce(e, t);
|
|
1415
|
+
}
|
|
1416
|
+
includes(e) {
|
|
1417
|
+
return this.elements.some(((t) => t.equals(e)));
|
|
1418
|
+
}
|
|
1419
|
+
shift() {
|
|
1420
|
+
return this.elements.shift();
|
|
1421
|
+
}
|
|
1422
|
+
unshift(e) {
|
|
1423
|
+
this.elements.unshift(this.refract(e));
|
|
1424
|
+
}
|
|
1425
|
+
push(e) {
|
|
1426
|
+
return this.elements.push(this.refract(e)), this;
|
|
1427
|
+
}
|
|
1428
|
+
add(e) {
|
|
1429
|
+
this.push(e);
|
|
1430
|
+
}
|
|
1431
|
+
get(e) {
|
|
1432
|
+
return this.elements[e];
|
|
1433
|
+
}
|
|
1434
|
+
getValue(e) {
|
|
1435
|
+
const t = this.elements[e];
|
|
1436
|
+
if (t) return t.toValue();
|
|
1437
|
+
}
|
|
1438
|
+
get length() {
|
|
1439
|
+
return this.elements.length;
|
|
1440
|
+
}
|
|
1441
|
+
get isEmpty() {
|
|
1442
|
+
return 0 === this.elements.length;
|
|
1443
|
+
}
|
|
1444
|
+
get first() {
|
|
1445
|
+
return this.elements[0];
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
"undefined" != typeof Symbol && (i.prototype[Symbol.iterator] = function() {
|
|
1449
|
+
return this.elements[Symbol.iterator]();
|
|
1450
|
+
}), t.exports = i;
|
|
1451
|
+
})), _n = a(((e, t) => {
|
|
1452
|
+
var r = bn(), n = vn(), i = En();
|
|
1453
|
+
t.exports = class e {
|
|
1454
|
+
constructor(e, t, r) {
|
|
1455
|
+
t && (this.meta = t), r && (this.attributes = r), this.content = e;
|
|
1456
|
+
}
|
|
1457
|
+
freeze() {
|
|
1458
|
+
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) => {
|
|
1459
|
+
e.parent = this, e.freeze();
|
|
1460
|
+
}), this), this.content && Array.isArray(this.content) && Object.freeze(this.content), Object.freeze(this));
|
|
1461
|
+
}
|
|
1462
|
+
primitive() {}
|
|
1463
|
+
clone() {
|
|
1464
|
+
const e = new this.constructor();
|
|
1465
|
+
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;
|
|
1466
|
+
}
|
|
1467
|
+
toValue() {
|
|
1468
|
+
return this.content instanceof e ? this.content.toValue() : this.content instanceof n ? {
|
|
1469
|
+
key: this.content.key.toValue(),
|
|
1470
|
+
value: this.content.value ? this.content.value.toValue() : void 0
|
|
1471
|
+
} : this.content && this.content.map ? this.content.map(((e) => e.toValue()), this) : this.content;
|
|
1472
|
+
}
|
|
1473
|
+
toRef(e) {
|
|
1474
|
+
if ("" === this.id.toValue()) throw Error("Cannot create reference to an element that does not contain an ID");
|
|
1475
|
+
const t = new this.RefElement(this.id.toValue());
|
|
1476
|
+
return e && (t.path = e), t;
|
|
1477
|
+
}
|
|
1478
|
+
findRecursive(...e) {
|
|
1479
|
+
if (arguments.length > 1 && !this.isFrozen) throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");
|
|
1480
|
+
const t = e.pop();
|
|
1481
|
+
let r = new i();
|
|
1482
|
+
const s = (e, t) => (e.push(t), e), o = (e, r) => {
|
|
1483
|
+
r.element === t && e.push(r);
|
|
1484
|
+
const i = r.findRecursive(t);
|
|
1485
|
+
return i && i.reduce(s, e), r.content instanceof n && (r.content.key && o(e, r.content.key), r.content.value && o(e, r.content.value)), e;
|
|
1486
|
+
};
|
|
1487
|
+
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) => {
|
|
1488
|
+
let r = t.parents.map(((e) => e.element));
|
|
1489
|
+
for (const t in e) {
|
|
1490
|
+
const n = e[t], i = r.indexOf(n);
|
|
1491
|
+
if (-1 === i) return !1;
|
|
1492
|
+
r = r.splice(0, i);
|
|
1493
|
+
}
|
|
1494
|
+
return !0;
|
|
1495
|
+
}))), r;
|
|
1496
|
+
}
|
|
1497
|
+
set(e) {
|
|
1498
|
+
return this.content = e, this;
|
|
1499
|
+
}
|
|
1500
|
+
equals(e) {
|
|
1501
|
+
return r(this.toValue(), e);
|
|
1502
|
+
}
|
|
1503
|
+
getMetaProperty(e, t) {
|
|
1504
|
+
if (!this.meta.hasKey(e)) {
|
|
1505
|
+
if (this.isFrozen) {
|
|
1506
|
+
const e = this.refract(t);
|
|
1507
|
+
return e.freeze(), e;
|
|
1508
|
+
}
|
|
1509
|
+
this.meta.set(e, t);
|
|
1510
|
+
}
|
|
1511
|
+
return this.meta.get(e);
|
|
1512
|
+
}
|
|
1513
|
+
setMetaProperty(e, t) {
|
|
1514
|
+
this.meta.set(e, t);
|
|
1515
|
+
}
|
|
1516
|
+
get element() {
|
|
1517
|
+
return this._storedElement || "element";
|
|
1518
|
+
}
|
|
1519
|
+
set element(e) {
|
|
1520
|
+
this._storedElement = e;
|
|
1521
|
+
}
|
|
1522
|
+
get content() {
|
|
1523
|
+
return this._content;
|
|
1524
|
+
}
|
|
1525
|
+
set content(t) {
|
|
1526
|
+
if (t instanceof e) this._content = t;
|
|
1527
|
+
else if (t instanceof i) this.content = t.elements;
|
|
1528
|
+
else if ("string" == typeof t || "number" == typeof t || "boolean" == typeof t || "null" === t || null == t) this._content = t;
|
|
1529
|
+
else if (t instanceof n) this._content = t;
|
|
1530
|
+
else if (Array.isArray(t)) this._content = t.map(this.refract);
|
|
1531
|
+
else {
|
|
1532
|
+
if ("object" != typeof t) throw new Error("Cannot set content to given value");
|
|
1533
|
+
this._content = Object.keys(t).map(((e) => new this.MemberElement(e, t[e])));
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
get meta() {
|
|
1537
|
+
if (!this._meta) {
|
|
1538
|
+
if (this.isFrozen) {
|
|
1539
|
+
const e = new this.ObjectElement();
|
|
1540
|
+
return e.freeze(), e;
|
|
1541
|
+
}
|
|
1542
|
+
this._meta = new this.ObjectElement();
|
|
1543
|
+
}
|
|
1544
|
+
return this._meta;
|
|
1545
|
+
}
|
|
1546
|
+
set meta(e) {
|
|
1547
|
+
e instanceof this.ObjectElement ? this._meta = e : this.meta.set(e || {});
|
|
1548
|
+
}
|
|
1549
|
+
get attributes() {
|
|
1550
|
+
if (!this._attributes) {
|
|
1551
|
+
if (this.isFrozen) {
|
|
1552
|
+
const e = new this.ObjectElement();
|
|
1553
|
+
return e.freeze(), e;
|
|
1554
|
+
}
|
|
1555
|
+
this._attributes = new this.ObjectElement();
|
|
1556
|
+
}
|
|
1557
|
+
return this._attributes;
|
|
1558
|
+
}
|
|
1559
|
+
set attributes(e) {
|
|
1560
|
+
e instanceof this.ObjectElement ? this._attributes = e : this.attributes.set(e || {});
|
|
1561
|
+
}
|
|
1562
|
+
get id() {
|
|
1563
|
+
return this.getMetaProperty("id", "");
|
|
1564
|
+
}
|
|
1565
|
+
set id(e) {
|
|
1566
|
+
this.setMetaProperty("id", e);
|
|
1567
|
+
}
|
|
1568
|
+
get classes() {
|
|
1569
|
+
return this.getMetaProperty("classes", []);
|
|
1570
|
+
}
|
|
1571
|
+
set classes(e) {
|
|
1572
|
+
this.setMetaProperty("classes", e);
|
|
1573
|
+
}
|
|
1574
|
+
get title() {
|
|
1575
|
+
return this.getMetaProperty("title", "");
|
|
1576
|
+
}
|
|
1577
|
+
set title(e) {
|
|
1578
|
+
this.setMetaProperty("title", e);
|
|
1579
|
+
}
|
|
1580
|
+
get description() {
|
|
1581
|
+
return this.getMetaProperty("description", "");
|
|
1582
|
+
}
|
|
1583
|
+
set description(e) {
|
|
1584
|
+
this.setMetaProperty("description", e);
|
|
1585
|
+
}
|
|
1586
|
+
get links() {
|
|
1587
|
+
return this.getMetaProperty("links", []);
|
|
1588
|
+
}
|
|
1589
|
+
set links(e) {
|
|
1590
|
+
this.setMetaProperty("links", e);
|
|
1591
|
+
}
|
|
1592
|
+
get isFrozen() {
|
|
1593
|
+
return Object.isFrozen(this);
|
|
1594
|
+
}
|
|
1595
|
+
get parents() {
|
|
1596
|
+
let { parent: e } = this;
|
|
1597
|
+
const t = new i();
|
|
1598
|
+
for (; e;) t.push(e), e = e.parent;
|
|
1599
|
+
return t;
|
|
1600
|
+
}
|
|
1601
|
+
get children() {
|
|
1602
|
+
if (Array.isArray(this.content)) return new i(this.content);
|
|
1603
|
+
if (this.content instanceof n) {
|
|
1604
|
+
const e = new i([this.content.key]);
|
|
1605
|
+
return this.content.value && e.push(this.content.value), e;
|
|
1606
|
+
}
|
|
1607
|
+
return this.content instanceof e ? new i([this.content]) : new i();
|
|
1608
|
+
}
|
|
1609
|
+
get recursiveChildren() {
|
|
1610
|
+
const e = new i();
|
|
1611
|
+
return this.children.forEach(((t) => {
|
|
1612
|
+
e.push(t), t.recursiveChildren.forEach(((t) => {
|
|
1613
|
+
e.push(t);
|
|
1614
|
+
}));
|
|
1615
|
+
})), e;
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1618
|
+
})), wn = a(((e, t) => {
|
|
1619
|
+
var r = _n();
|
|
1620
|
+
t.exports = class extends r {
|
|
1621
|
+
constructor(e, t, r) {
|
|
1622
|
+
super(e || null, t, r), this.element = "null";
|
|
1623
|
+
}
|
|
1624
|
+
primitive() {
|
|
1625
|
+
return "null";
|
|
1626
|
+
}
|
|
1627
|
+
set() {
|
|
1628
|
+
return /* @__PURE__ */ new Error("Cannot set the value of null");
|
|
1629
|
+
}
|
|
1630
|
+
};
|
|
1631
|
+
})), jn = a(((e, t) => {
|
|
1632
|
+
var r = _n();
|
|
1633
|
+
t.exports = class extends r {
|
|
1634
|
+
constructor(e, t, r) {
|
|
1635
|
+
super(e, t, r), this.element = "string";
|
|
1636
|
+
}
|
|
1637
|
+
primitive() {
|
|
1638
|
+
return "string";
|
|
1639
|
+
}
|
|
1640
|
+
get length() {
|
|
1641
|
+
return this.content.length;
|
|
1642
|
+
}
|
|
1643
|
+
};
|
|
1644
|
+
})), xn = a(((e, t) => {
|
|
1645
|
+
var r = _n();
|
|
1646
|
+
t.exports = class extends r {
|
|
1647
|
+
constructor(e, t, r) {
|
|
1648
|
+
super(e, t, r), this.element = "number";
|
|
1649
|
+
}
|
|
1650
|
+
primitive() {
|
|
1651
|
+
return "number";
|
|
1652
|
+
}
|
|
1653
|
+
};
|
|
1654
|
+
})), On = a(((e, t) => {
|
|
1655
|
+
var r = _n();
|
|
1656
|
+
t.exports = class extends r {
|
|
1657
|
+
constructor(e, t, r) {
|
|
1658
|
+
super(e, t, r), this.element = "boolean";
|
|
1659
|
+
}
|
|
1660
|
+
primitive() {
|
|
1661
|
+
return "boolean";
|
|
1662
|
+
}
|
|
1663
|
+
};
|
|
1664
|
+
})), Sn = a(((e, t) => {
|
|
1665
|
+
var r = gn(), n = _n(), i = En(), s = class extends n {
|
|
1666
|
+
constructor(e, t, r) {
|
|
1667
|
+
super(e || [], t, r), this.element = "array";
|
|
1668
|
+
}
|
|
1669
|
+
primitive() {
|
|
1670
|
+
return "array";
|
|
1671
|
+
}
|
|
1672
|
+
get(e) {
|
|
1673
|
+
return this.content[e];
|
|
1674
|
+
}
|
|
1675
|
+
getValue(e) {
|
|
1676
|
+
const t = this.get(e);
|
|
1677
|
+
if (t) return t.toValue();
|
|
1678
|
+
}
|
|
1679
|
+
getIndex(e) {
|
|
1680
|
+
return this.content[e];
|
|
1681
|
+
}
|
|
1682
|
+
set(e, t) {
|
|
1683
|
+
return this.content[e] = this.refract(t), this;
|
|
1684
|
+
}
|
|
1685
|
+
remove(e) {
|
|
1686
|
+
const t = this.content.splice(e, 1);
|
|
1687
|
+
return t.length ? t[0] : null;
|
|
1688
|
+
}
|
|
1689
|
+
map(e, t) {
|
|
1690
|
+
return this.content.map(e, t);
|
|
1691
|
+
}
|
|
1692
|
+
flatMap(e, t) {
|
|
1693
|
+
return this.map(e, t).reduce(((e, t) => e.concat(t)), []);
|
|
1694
|
+
}
|
|
1695
|
+
compactMap(e, t) {
|
|
1696
|
+
const r = [];
|
|
1697
|
+
return this.forEach(((n) => {
|
|
1698
|
+
const i = e.bind(t)(n);
|
|
1699
|
+
i && r.push(i);
|
|
1700
|
+
})), r;
|
|
1701
|
+
}
|
|
1702
|
+
filter(e, t) {
|
|
1703
|
+
return new i(this.content.filter(e, t));
|
|
1704
|
+
}
|
|
1705
|
+
reject(e, t) {
|
|
1706
|
+
return this.filter(r(e), t);
|
|
1707
|
+
}
|
|
1708
|
+
reduce(e, t) {
|
|
1709
|
+
let r, n;
|
|
1710
|
+
void 0 !== t ? (r = 0, n = this.refract(t)) : (r = 1, n = "object" === this.primitive() ? this.first.value : this.first);
|
|
1711
|
+
for (let t = r; t < this.length; t += 1) {
|
|
1712
|
+
const r = this.content[t];
|
|
1713
|
+
n = "object" === this.primitive() ? this.refract(e(n, r.value, r.key, r, this)) : this.refract(e(n, r, t, this));
|
|
1714
|
+
}
|
|
1715
|
+
return n;
|
|
1716
|
+
}
|
|
1717
|
+
forEach(e, t) {
|
|
1718
|
+
this.content.forEach(((r, n) => {
|
|
1719
|
+
e.bind(t)(r, this.refract(n));
|
|
1720
|
+
}));
|
|
1721
|
+
}
|
|
1722
|
+
shift() {
|
|
1723
|
+
return this.content.shift();
|
|
1724
|
+
}
|
|
1725
|
+
unshift(e) {
|
|
1726
|
+
this.content.unshift(this.refract(e));
|
|
1727
|
+
}
|
|
1728
|
+
push(e) {
|
|
1729
|
+
return this.content.push(this.refract(e)), this;
|
|
1730
|
+
}
|
|
1731
|
+
add(e) {
|
|
1732
|
+
this.push(e);
|
|
1733
|
+
}
|
|
1734
|
+
findElements(e, t) {
|
|
1735
|
+
const r = t || {}, n = !!r.recursive, i = void 0 === r.results ? [] : r.results;
|
|
1736
|
+
return this.forEach(((t, r, s) => {
|
|
1737
|
+
n && void 0 !== t.findElements && t.findElements(e, {
|
|
1738
|
+
results: i,
|
|
1739
|
+
recursive: n
|
|
1740
|
+
}), e(t, r, s) && i.push(t);
|
|
1741
|
+
})), i;
|
|
1742
|
+
}
|
|
1743
|
+
find(e) {
|
|
1744
|
+
return new i(this.findElements(e, { recursive: !0 }));
|
|
1745
|
+
}
|
|
1746
|
+
findByElement(e) {
|
|
1747
|
+
return this.find(((t) => t.element === e));
|
|
1748
|
+
}
|
|
1749
|
+
findByClass(e) {
|
|
1750
|
+
return this.find(((t) => t.classes.includes(e)));
|
|
1751
|
+
}
|
|
1752
|
+
getById(e) {
|
|
1753
|
+
return this.find(((t) => t.id.toValue() === e)).first;
|
|
1754
|
+
}
|
|
1755
|
+
includes(e) {
|
|
1756
|
+
return this.content.some(((t) => t.equals(e)));
|
|
1757
|
+
}
|
|
1758
|
+
contains(e) {
|
|
1759
|
+
return this.includes(e);
|
|
1760
|
+
}
|
|
1761
|
+
empty() {
|
|
1762
|
+
return new this.constructor([]);
|
|
1763
|
+
}
|
|
1764
|
+
"fantasy-land/empty"() {
|
|
1765
|
+
return this.empty();
|
|
1766
|
+
}
|
|
1767
|
+
concat(e) {
|
|
1768
|
+
return new this.constructor(this.content.concat(e.content));
|
|
1769
|
+
}
|
|
1770
|
+
"fantasy-land/concat"(e) {
|
|
1771
|
+
return this.concat(e);
|
|
1772
|
+
}
|
|
1773
|
+
"fantasy-land/map"(e) {
|
|
1774
|
+
return new this.constructor(this.map(e));
|
|
1775
|
+
}
|
|
1776
|
+
"fantasy-land/chain"(e) {
|
|
1777
|
+
return this.map(((t) => e(t)), this).reduce(((e, t) => e.concat(t)), this.empty());
|
|
1778
|
+
}
|
|
1779
|
+
"fantasy-land/filter"(e) {
|
|
1780
|
+
return new this.constructor(this.content.filter(e));
|
|
1781
|
+
}
|
|
1782
|
+
"fantasy-land/reduce"(e, t) {
|
|
1783
|
+
return this.content.reduce(e, t);
|
|
1784
|
+
}
|
|
1785
|
+
get length() {
|
|
1786
|
+
return this.content.length;
|
|
1787
|
+
}
|
|
1788
|
+
get isEmpty() {
|
|
1789
|
+
return 0 === this.content.length;
|
|
1790
|
+
}
|
|
1791
|
+
get first() {
|
|
1792
|
+
return this.getIndex(0);
|
|
1793
|
+
}
|
|
1794
|
+
get second() {
|
|
1795
|
+
return this.getIndex(1);
|
|
1796
|
+
}
|
|
1797
|
+
get last() {
|
|
1798
|
+
return this.getIndex(this.length - 1);
|
|
1799
|
+
}
|
|
1800
|
+
};
|
|
1801
|
+
s.empty = function() {
|
|
1802
|
+
return new this();
|
|
1803
|
+
}, s["fantasy-land/empty"] = s.empty, "undefined" != typeof Symbol && (s.prototype[Symbol.iterator] = function() {
|
|
1804
|
+
return this.content[Symbol.iterator]();
|
|
1805
|
+
}), t.exports = s;
|
|
1806
|
+
})), An = a(((e, t) => {
|
|
1807
|
+
var r = vn(), n = _n();
|
|
1808
|
+
t.exports = class extends n {
|
|
1809
|
+
constructor(e, t, n, i) {
|
|
1810
|
+
super(new r(), n, i), this.element = "member", this.key = e, this.value = t;
|
|
1811
|
+
}
|
|
1812
|
+
get key() {
|
|
1813
|
+
return this.content.key;
|
|
1814
|
+
}
|
|
1815
|
+
set key(e) {
|
|
1816
|
+
this.content.key = this.refract(e);
|
|
1817
|
+
}
|
|
1818
|
+
get value() {
|
|
1819
|
+
return this.content.value;
|
|
1820
|
+
}
|
|
1821
|
+
set value(e) {
|
|
1822
|
+
this.content.value = this.refract(e);
|
|
1823
|
+
}
|
|
1824
|
+
};
|
|
1825
|
+
})), kn = a(((e, t) => {
|
|
1826
|
+
var r = gn(), n = En();
|
|
1827
|
+
t.exports = class e extends n {
|
|
1828
|
+
map(e, t) {
|
|
1829
|
+
return this.elements.map(((r) => e.bind(t)(r.value, r.key, r)));
|
|
1830
|
+
}
|
|
1831
|
+
filter(t, r) {
|
|
1832
|
+
return new e(this.elements.filter(((e) => t.bind(r)(e.value, e.key, e))));
|
|
1833
|
+
}
|
|
1834
|
+
reject(e, t) {
|
|
1835
|
+
return this.filter(r(e.bind(t)));
|
|
1836
|
+
}
|
|
1837
|
+
forEach(e, t) {
|
|
1838
|
+
return this.elements.forEach(((r, n) => {
|
|
1839
|
+
e.bind(t)(r.value, r.key, r, n);
|
|
1840
|
+
}));
|
|
1841
|
+
}
|
|
1842
|
+
keys() {
|
|
1843
|
+
return this.map(((e, t) => t.toValue()));
|
|
1844
|
+
}
|
|
1845
|
+
values() {
|
|
1846
|
+
return this.map(((e) => e.toValue()));
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1849
|
+
})), Pn = a(((e, t) => {
|
|
1850
|
+
var r = gn(), n = qt(), i = Sn(), s = An(), o = kn();
|
|
1851
|
+
t.exports = class extends i {
|
|
1852
|
+
constructor(e, t, r) {
|
|
1853
|
+
super(e || [], t, r), this.element = "object";
|
|
1854
|
+
}
|
|
1855
|
+
primitive() {
|
|
1856
|
+
return "object";
|
|
1857
|
+
}
|
|
1858
|
+
toValue() {
|
|
1859
|
+
return this.content.reduce(((e, t) => (e[t.key.toValue()] = t.value ? t.value.toValue() : void 0, e)), {});
|
|
1860
|
+
}
|
|
1861
|
+
get(e) {
|
|
1862
|
+
const t = this.getMember(e);
|
|
1863
|
+
if (t) return t.value;
|
|
1864
|
+
}
|
|
1865
|
+
getMember(e) {
|
|
1866
|
+
if (void 0 !== e) return this.content.find(((t) => t.key.toValue() === e));
|
|
1867
|
+
}
|
|
1868
|
+
remove(e) {
|
|
1869
|
+
let t = null;
|
|
1870
|
+
return this.content = this.content.filter(((r) => r.key.toValue() !== e || (t = r, !1))), t;
|
|
1871
|
+
}
|
|
1872
|
+
getKey(e) {
|
|
1873
|
+
const t = this.getMember(e);
|
|
1874
|
+
if (t) return t.key;
|
|
1875
|
+
}
|
|
1876
|
+
set(e, t) {
|
|
1877
|
+
if (n(e)) return Object.keys(e).forEach(((t) => {
|
|
1878
|
+
this.set(t, e[t]);
|
|
1879
|
+
})), this;
|
|
1880
|
+
const r = e, i = this.getMember(r);
|
|
1881
|
+
return i ? i.value = t : this.content.push(new s(r, t)), this;
|
|
1882
|
+
}
|
|
1883
|
+
keys() {
|
|
1884
|
+
return this.content.map(((e) => e.key.toValue()));
|
|
1885
|
+
}
|
|
1886
|
+
values() {
|
|
1887
|
+
return this.content.map(((e) => e.value.toValue()));
|
|
1888
|
+
}
|
|
1889
|
+
hasKey(e) {
|
|
1890
|
+
return this.content.some(((t) => t.key.equals(e)));
|
|
1891
|
+
}
|
|
1892
|
+
items() {
|
|
1893
|
+
return this.content.map(((e) => [e.key.toValue(), e.value.toValue()]));
|
|
1894
|
+
}
|
|
1895
|
+
map(e, t) {
|
|
1896
|
+
return this.content.map(((r) => e.bind(t)(r.value, r.key, r)));
|
|
1897
|
+
}
|
|
1898
|
+
compactMap(e, t) {
|
|
1899
|
+
const r = [];
|
|
1900
|
+
return this.forEach(((n, i, s) => {
|
|
1901
|
+
const o = e.bind(t)(n, i, s);
|
|
1902
|
+
o && r.push(o);
|
|
1903
|
+
})), r;
|
|
1904
|
+
}
|
|
1905
|
+
filter(e, t) {
|
|
1906
|
+
return new o(this.content).filter(e, t);
|
|
1907
|
+
}
|
|
1908
|
+
reject(e, t) {
|
|
1909
|
+
return this.filter(r(e), t);
|
|
1910
|
+
}
|
|
1911
|
+
forEach(e, t) {
|
|
1912
|
+
return this.content.forEach(((r) => e.bind(t)(r.value, r.key, r)));
|
|
1913
|
+
}
|
|
1914
|
+
};
|
|
1915
|
+
})), Mn = a(((e, t) => {
|
|
1916
|
+
var r = _n();
|
|
1917
|
+
t.exports = class extends r {
|
|
1918
|
+
constructor(e, t, r) {
|
|
1919
|
+
super(e || [], t, r), this.element = "link";
|
|
1920
|
+
}
|
|
1921
|
+
get relation() {
|
|
1922
|
+
return this.attributes.get("relation");
|
|
1923
|
+
}
|
|
1924
|
+
set relation(e) {
|
|
1925
|
+
this.attributes.set("relation", e);
|
|
1926
|
+
}
|
|
1927
|
+
get href() {
|
|
1928
|
+
return this.attributes.get("href");
|
|
1929
|
+
}
|
|
1930
|
+
set href(e) {
|
|
1931
|
+
this.attributes.set("href", e);
|
|
1932
|
+
}
|
|
1933
|
+
};
|
|
1934
|
+
})), Cn = a(((e, t) => {
|
|
1935
|
+
var r = _n();
|
|
1936
|
+
t.exports = class extends r {
|
|
1937
|
+
constructor(e, t, r) {
|
|
1938
|
+
super(e || [], t, r), this.element = "ref", this.path || (this.path = "element");
|
|
1939
|
+
}
|
|
1940
|
+
get path() {
|
|
1941
|
+
return this.attributes.get("path");
|
|
1942
|
+
}
|
|
1943
|
+
set path(e) {
|
|
1944
|
+
this.attributes.set("path", e);
|
|
1945
|
+
}
|
|
1946
|
+
};
|
|
1947
|
+
})), In = a(((e, t) => {
|
|
1948
|
+
var r = _n(), n = wn(), i = jn(), s = xn(), o = On(), a = Sn(), u = An(), c = Pn(), l = Mn(), f = Cn(), p = En(), h = kn(), m = vn();
|
|
1949
|
+
function y(e) {
|
|
1950
|
+
return e instanceof r ? e : "string" == typeof e ? new i(e) : "number" == typeof e ? new s(e) : "boolean" == typeof e ? new o(e) : null === e ? new n() : Array.isArray(e) ? new a(e.map(y)) : "object" == typeof e ? new c(e) : e;
|
|
1951
|
+
}
|
|
1952
|
+
r.prototype.ObjectElement = c, r.prototype.RefElement = f, r.prototype.MemberElement = u, r.prototype.refract = y, p.prototype.refract = y, t.exports = {
|
|
1953
|
+
Element: r,
|
|
1954
|
+
NullElement: n,
|
|
1955
|
+
StringElement: i,
|
|
1956
|
+
NumberElement: s,
|
|
1957
|
+
BooleanElement: o,
|
|
1958
|
+
ArrayElement: a,
|
|
1959
|
+
MemberElement: u,
|
|
1960
|
+
ObjectElement: c,
|
|
1961
|
+
LinkElement: l,
|
|
1962
|
+
RefElement: f,
|
|
1963
|
+
refract: y,
|
|
1964
|
+
ArraySlice: p,
|
|
1965
|
+
ObjectSlice: h,
|
|
1966
|
+
KeyValuePair: m
|
|
1967
|
+
};
|
|
1968
|
+
})), Tn = a(((e, t) => {
|
|
1969
|
+
var r = Ct(), n = Ft(), i = Bt(), s = zt(), o = qt(), a = $t(), u = In(), c = class {
|
|
1970
|
+
constructor(e) {
|
|
1971
|
+
this.elementMap = {}, this.elementDetection = [], this.Element = u.Element, this.KeyValuePair = u.KeyValuePair, e && e.noDefault || this.useDefault(), this._attributeElementKeys = [], this._attributeElementArrayKeys = [];
|
|
1972
|
+
}
|
|
1973
|
+
use(e) {
|
|
1974
|
+
return e.namespace && e.namespace({ base: this }), e.load && e.load({ base: this }), this;
|
|
1975
|
+
}
|
|
1976
|
+
useDefault() {
|
|
1977
|
+
return this.register("null", u.NullElement).register("string", u.StringElement).register("number", u.NumberElement).register("boolean", u.BooleanElement).register("array", u.ArrayElement).register("object", u.ObjectElement).register("member", u.MemberElement).register("ref", u.RefElement).register("link", u.LinkElement), this.detect(r, u.NullElement, !1).detect(n, u.StringElement, !1).detect(i, u.NumberElement, !1).detect(s, u.BooleanElement, !1).detect(Array.isArray, u.ArrayElement, !1).detect(o, u.ObjectElement, !1), this;
|
|
1978
|
+
}
|
|
1979
|
+
register(e, t) {
|
|
1980
|
+
return this._elements = void 0, this.elementMap[e] = t, this;
|
|
1981
|
+
}
|
|
1982
|
+
unregister(e) {
|
|
1983
|
+
return this._elements = void 0, delete this.elementMap[e], this;
|
|
1984
|
+
}
|
|
1985
|
+
detect(e, t, r) {
|
|
1986
|
+
return void 0 === r || r ? this.elementDetection.unshift([e, t]) : this.elementDetection.push([e, t]), this;
|
|
1987
|
+
}
|
|
1988
|
+
toElement(e) {
|
|
1989
|
+
if (e instanceof this.Element) return e;
|
|
1990
|
+
let t;
|
|
1991
|
+
for (let r = 0; r < this.elementDetection.length; r += 1) {
|
|
1992
|
+
const n = this.elementDetection[r][0], i = this.elementDetection[r][1];
|
|
1993
|
+
if (n(e)) {
|
|
1994
|
+
t = new i(e);
|
|
1995
|
+
break;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
return t;
|
|
1999
|
+
}
|
|
2000
|
+
getElementClass(e) {
|
|
2001
|
+
const t = this.elementMap[e];
|
|
2002
|
+
return void 0 === t ? this.Element : t;
|
|
2003
|
+
}
|
|
2004
|
+
fromRefract(e) {
|
|
2005
|
+
return this.serialiser.deserialise(e);
|
|
2006
|
+
}
|
|
2007
|
+
toRefract(e) {
|
|
2008
|
+
return this.serialiser.serialise(e);
|
|
2009
|
+
}
|
|
2010
|
+
get elements() {
|
|
2011
|
+
return void 0 === this._elements && (this._elements = { Element: this.Element }, Object.keys(this.elementMap).forEach(((e) => {
|
|
2012
|
+
const t = e[0].toUpperCase() + e.substr(1);
|
|
2013
|
+
this._elements[t] = this.elementMap[e];
|
|
2014
|
+
}))), this._elements;
|
|
2015
|
+
}
|
|
2016
|
+
get serialiser() {
|
|
2017
|
+
return new a(this);
|
|
2018
|
+
}
|
|
2019
|
+
};
|
|
2020
|
+
a.prototype.Namespace = c, t.exports = c;
|
|
2021
|
+
})), Nn = a(((e, t) => {
|
|
2022
|
+
var r = $t();
|
|
2023
|
+
t.exports = class extends r {
|
|
2024
|
+
serialise(e) {
|
|
2025
|
+
if (!(e instanceof this.namespace.elements.Element)) throw new TypeError(`Given element \`${e}\` is not an Element instance`);
|
|
2026
|
+
let t;
|
|
2027
|
+
e._attributes && e.attributes.get("variable") && (t = e.attributes.get("variable"));
|
|
2028
|
+
const r = { element: e.element };
|
|
2029
|
+
e._meta && e._meta.length > 0 && (r.meta = this.serialiseObject(e.meta));
|
|
2030
|
+
const n = "enum" === e.element || -1 !== e.attributes.keys().indexOf("enumerations");
|
|
2031
|
+
if (n) {
|
|
2032
|
+
const t = this.enumSerialiseAttributes(e);
|
|
2033
|
+
t && (r.attributes = t);
|
|
2034
|
+
} else if (e._attributes && e._attributes.length > 0) {
|
|
2035
|
+
let { attributes: n } = e;
|
|
2036
|
+
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));
|
|
2037
|
+
}
|
|
2038
|
+
if (n) r.content = this.enumSerialiseContent(e, r);
|
|
2039
|
+
else if (this[`${e.element}SerialiseContent`]) r.content = this[`${e.element}SerialiseContent`](e, r);
|
|
2040
|
+
else if (void 0 !== e.content) {
|
|
2041
|
+
let n;
|
|
2042
|
+
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);
|
|
2043
|
+
} else this.shouldSerialiseContent(e, e.content) && e instanceof this.namespace.elements.Array && (r.content = []);
|
|
2044
|
+
return r;
|
|
2045
|
+
}
|
|
2046
|
+
shouldSerialiseContent(e, t) {
|
|
2047
|
+
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);
|
|
2048
|
+
}
|
|
2049
|
+
refSerialiseContent(e, t) {
|
|
2050
|
+
return delete t.attributes, {
|
|
2051
|
+
href: e.toValue(),
|
|
2052
|
+
path: e.path.toValue()
|
|
2053
|
+
};
|
|
2054
|
+
}
|
|
2055
|
+
sourceMapSerialiseContent(e) {
|
|
2056
|
+
return e.toValue();
|
|
2057
|
+
}
|
|
2058
|
+
dataStructureSerialiseContent(e) {
|
|
2059
|
+
return [this.serialiseContent(e.content)];
|
|
2060
|
+
}
|
|
2061
|
+
enumSerialiseAttributes(e) {
|
|
2062
|
+
const t = e.attributes.clone(), r = t.remove("enumerations") || new this.namespace.elements.Array([]), n = t.get("default");
|
|
2063
|
+
let i = t.get("samples") || new this.namespace.elements.Array([]);
|
|
2064
|
+
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) => {
|
|
2065
|
+
e.content && e.content.element && e.content.attributes.remove("typeAttributes");
|
|
2066
|
+
})), 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);
|
|
2067
|
+
}
|
|
2068
|
+
enumSerialiseContent(e) {
|
|
2069
|
+
if (e._attributes) {
|
|
2070
|
+
const t = e.attributes.get("enumerations");
|
|
2071
|
+
if (t && t.length > 0) return t.content.map(((e) => {
|
|
2072
|
+
const t = e.clone();
|
|
2073
|
+
return t.attributes.remove("typeAttributes"), this.serialise(t);
|
|
2074
|
+
}));
|
|
2075
|
+
}
|
|
2076
|
+
if (e.content) {
|
|
2077
|
+
const t = e.content.clone();
|
|
2078
|
+
return t.attributes.remove("typeAttributes"), [this.serialise(t)];
|
|
2079
|
+
}
|
|
2080
|
+
return [];
|
|
2081
|
+
}
|
|
2082
|
+
deserialise(e) {
|
|
2083
|
+
if ("string" == typeof e) return new this.namespace.elements.String(e);
|
|
2084
|
+
if ("number" == typeof e) return new this.namespace.elements.Number(e);
|
|
2085
|
+
if ("boolean" == typeof e) return new this.namespace.elements.Boolean(e);
|
|
2086
|
+
if (null === e) return new this.namespace.elements.Null();
|
|
2087
|
+
if (Array.isArray(e)) return new this.namespace.elements.Array(e.map(this.deserialise, this));
|
|
2088
|
+
const t = this.namespace.getElementClass(e.element), r = new t();
|
|
2089
|
+
r.element !== e.element && (r.element = e.element), e.meta && this.deserialiseObject(e.meta, r.meta), e.attributes && this.deserialiseObject(e.attributes, r.attributes);
|
|
2090
|
+
const n = this.deserialiseContent(e.content);
|
|
2091
|
+
if (void 0 === n && null !== r.content || (r.content = n), "enum" === r.element) {
|
|
2092
|
+
r.content && r.attributes.set("enumerations", r.content);
|
|
2093
|
+
let e = r.attributes.get("samples");
|
|
2094
|
+
if (r.attributes.remove("samples"), e) {
|
|
2095
|
+
const n = e;
|
|
2096
|
+
e = new this.namespace.elements.Array(), n.forEach(((n) => {
|
|
2097
|
+
n.forEach(((n) => {
|
|
2098
|
+
const i = new t(n);
|
|
2099
|
+
i.element = r.element, e.push(i);
|
|
2100
|
+
}));
|
|
2101
|
+
}));
|
|
2102
|
+
const i = e.shift();
|
|
2103
|
+
r.content = i ? i.content : void 0, r.attributes.set("samples", e);
|
|
2104
|
+
} else r.content = void 0;
|
|
2105
|
+
let n = r.attributes.get("default");
|
|
2106
|
+
if (n && n.length > 0) {
|
|
2107
|
+
n = n.get(0);
|
|
2108
|
+
const e = new t(n);
|
|
2109
|
+
e.element = r.element, r.attributes.set("default", e);
|
|
2110
|
+
}
|
|
2111
|
+
} else if ("dataStructure" === r.element && Array.isArray(r.content)) [r.content] = r.content;
|
|
2112
|
+
else if ("category" === r.element) {
|
|
2113
|
+
const e = r.attributes.get("meta");
|
|
2114
|
+
e && (r.attributes.set("metadata", e), r.attributes.remove("meta"));
|
|
2115
|
+
} 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"));
|
|
2116
|
+
return r;
|
|
2117
|
+
}
|
|
2118
|
+
serialiseContent(e) {
|
|
2119
|
+
if (e instanceof this.namespace.elements.Element) return this.serialise(e);
|
|
2120
|
+
if (e instanceof this.namespace.KeyValuePair) {
|
|
2121
|
+
const t = { key: this.serialise(e.key) };
|
|
2122
|
+
return e.value && (t.value = this.serialise(e.value)), t;
|
|
2123
|
+
}
|
|
2124
|
+
return e && e.map ? e.map(this.serialise, this) : e;
|
|
2125
|
+
}
|
|
2126
|
+
deserialiseContent(e) {
|
|
2127
|
+
if (e) {
|
|
2128
|
+
if (e.element) return this.deserialise(e);
|
|
2129
|
+
if (e.key) {
|
|
2130
|
+
const t = new this.namespace.KeyValuePair(this.deserialise(e.key));
|
|
2131
|
+
return e.value && (t.value = this.deserialise(e.value)), t;
|
|
2132
|
+
}
|
|
2133
|
+
if (e.map) return e.map(this.deserialise, this);
|
|
2134
|
+
}
|
|
2135
|
+
return e;
|
|
2136
|
+
}
|
|
2137
|
+
shouldRefract(e) {
|
|
2138
|
+
return !!(e._attributes && e.attributes.keys().length || e._meta && e.meta.keys().length) || "enum" !== e.element && (e.element !== e.primitive() || "member" === e.element);
|
|
2139
|
+
}
|
|
2140
|
+
convertKeyToRefract(e, t) {
|
|
2141
|
+
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();
|
|
2142
|
+
}
|
|
2143
|
+
serialiseEnum(e) {
|
|
2144
|
+
return e.children.map(((e) => this.serialise(e)));
|
|
2145
|
+
}
|
|
2146
|
+
serialiseObject(e) {
|
|
2147
|
+
const t = {};
|
|
2148
|
+
return e.forEach(((e, r) => {
|
|
2149
|
+
if (e) {
|
|
2150
|
+
const n = r.toValue();
|
|
2151
|
+
t[n] = this.convertKeyToRefract(n, e);
|
|
2152
|
+
}
|
|
2153
|
+
})), t;
|
|
2154
|
+
}
|
|
2155
|
+
deserialiseObject(e, t) {
|
|
2156
|
+
Object.keys(e).forEach(((r) => {
|
|
2157
|
+
t.set(r, this.deserialise(e[r]));
|
|
2158
|
+
}));
|
|
2159
|
+
}
|
|
2160
|
+
};
|
|
2161
|
+
})), Un = a(((e) => {
|
|
2162
|
+
var t = Tn(), r = In();
|
|
2163
|
+
e.Namespace = t, e.KeyValuePair = vn(), e.ArraySlice = r.ArraySlice, e.ObjectSlice = r.ObjectSlice, e.Element = r.Element, e.StringElement = r.StringElement, e.NumberElement = r.NumberElement, e.BooleanElement = r.BooleanElement, e.NullElement = r.NullElement, e.ArrayElement = r.ArrayElement, e.ObjectElement = r.ObjectElement, e.MemberElement = r.MemberElement, e.RefElement = r.RefElement, e.LinkElement = r.LinkElement, e.refract = r.refract, e.JSONSerialiser = $t(), e.JSON06Serialiser = Nn();
|
|
2164
|
+
}))(), Ln = class extends Un.StringElement {
|
|
2165
|
+
constructor(e, t, r) {
|
|
2166
|
+
super(e, t, r), this.element = "annotation";
|
|
2167
|
+
}
|
|
2168
|
+
get code() {
|
|
2169
|
+
return this.attributes.get("code");
|
|
2170
|
+
}
|
|
2171
|
+
set code(e) {
|
|
2172
|
+
this.attributes.set("code", e);
|
|
2173
|
+
}
|
|
2174
|
+
}, Dn = class extends Un.StringElement {
|
|
2175
|
+
constructor(e, t, r) {
|
|
2176
|
+
super(e, t, r), this.element = "comment";
|
|
2177
|
+
}
|
|
2178
|
+
}, Vn = class extends Un.ArrayElement {
|
|
2179
|
+
constructor(e, t, r) {
|
|
2180
|
+
super(e, t, r), this.element = "parseResult";
|
|
2181
|
+
}
|
|
2182
|
+
get api() {
|
|
2183
|
+
return this.children.filter(((e) => e.classes.contains("api"))).first;
|
|
2184
|
+
}
|
|
2185
|
+
get results() {
|
|
2186
|
+
return this.children.filter(((e) => e.classes.contains("result")));
|
|
2187
|
+
}
|
|
2188
|
+
get result() {
|
|
2189
|
+
return this.results.first;
|
|
2190
|
+
}
|
|
2191
|
+
get annotations() {
|
|
2192
|
+
return this.children.filter(((e) => "annotation" === e.element));
|
|
2193
|
+
}
|
|
2194
|
+
get warnings() {
|
|
2195
|
+
return this.children.filter(((e) => "annotation" === e.element && e.classes.contains("warning")));
|
|
2196
|
+
}
|
|
2197
|
+
get errors() {
|
|
2198
|
+
return this.children.filter(((e) => "annotation" === e.element && e.classes.contains("error")));
|
|
2199
|
+
}
|
|
2200
|
+
get isEmpty() {
|
|
2201
|
+
return this.children.reject(((e) => "annotation" === e.element)).isEmpty;
|
|
2202
|
+
}
|
|
2203
|
+
replaceResult(e) {
|
|
2204
|
+
const { result: t } = this;
|
|
2205
|
+
if (ft(t)) return !1;
|
|
2206
|
+
const r = this.content.findIndex(((e) => e === t));
|
|
2207
|
+
return -1 !== r && (this.content[r] = e, !0);
|
|
2208
|
+
}
|
|
2209
|
+
}, Fn = (e, t) => "object" == typeof t && null !== t && e in t && "function" == typeof t[e], Bn = (e) => "object" == typeof e && null != e && "_storedElement" in e && "string" == typeof e._storedElement && "_content" in e, zn = (e, t) => "object" == typeof t && null !== t && "primitive" in t && "function" == typeof t.primitive && t.primitive() === e, qn = (e, t) => "object" == typeof t && null !== t && "classes" in t && (Array.isArray(t.classes) || t.classes instanceof Un.ArrayElement) && t.classes.includes(e), $n = (e, t) => "object" == typeof t && null !== t && "element" in t && t.element === e, Gn = (e) => e({
|
|
2210
|
+
hasMethod: Fn,
|
|
2211
|
+
hasBasicElementProps: Bn,
|
|
2212
|
+
primitiveEq: zn,
|
|
2213
|
+
isElementType: $n,
|
|
2214
|
+
hasClass: qn
|
|
2215
|
+
}), Kn = u({
|
|
2216
|
+
hasElementSourceMap: () => ai,
|
|
2217
|
+
includesClasses: () => ci,
|
|
2218
|
+
includesSymbols: () => ui,
|
|
2219
|
+
isAnnotationElement: () => ni,
|
|
2220
|
+
isArrayElement: () => Qn,
|
|
2221
|
+
isBooleanElement: () => Xn,
|
|
2222
|
+
isCommentElement: () => ii,
|
|
2223
|
+
isElement: () => Wn,
|
|
2224
|
+
isLinkElement: () => ti,
|
|
2225
|
+
isMemberElement: () => ei,
|
|
2226
|
+
isNullElement: () => Yn,
|
|
2227
|
+
isNumberElement: () => Hn,
|
|
2228
|
+
isObjectElement: () => Zn,
|
|
2229
|
+
isParseResultElement: () => si,
|
|
2230
|
+
isPrimitiveElement: () => oi,
|
|
2231
|
+
isRefElement: () => ri,
|
|
2232
|
+
isStringElement: () => Jn
|
|
2233
|
+
}), Wn = Gn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof Un.Element || e(r) && t(void 0, r))), Jn = Gn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof Un.StringElement || e(r) && t("string", r))), Hn = Gn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof Un.NumberElement || e(r) && t("number", r))), Yn = Gn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof Un.NullElement || e(r) && t("null", r))), Xn = Gn((({ hasBasicElementProps: e, primitiveEq: t }) => (r) => r instanceof Un.BooleanElement || e(r) && t("boolean", r))), Zn = Gn((({ hasBasicElementProps: e, primitiveEq: t, hasMethod: r }) => (n) => n instanceof Un.ObjectElement || e(n) && t("object", n) && r("keys", n) && r("values", n) && r("items", n))), Qn = Gn((({ hasBasicElementProps: e, primitiveEq: t, hasMethod: r }) => (n) => n instanceof Un.ArrayElement && !(n instanceof Un.ObjectElement) || e(n) && t("array", n) && r("push", n) && r("unshift", n) && r("map", n) && r("reduce", n))), ei = Gn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Un.MemberElement || e(n) && t("member", n) && r(void 0, n))), ti = Gn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Un.LinkElement || e(n) && t("link", n) && r(void 0, n))), ri = Gn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Un.RefElement || e(n) && t("ref", n) && r(void 0, n))), ni = Gn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Ln || e(n) && t("annotation", n) && r("array", n))), ii = Gn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Dn || e(n) && t("comment", n) && r("string", n))), si = Gn((({ hasBasicElementProps: e, isElementType: t, primitiveEq: r }) => (n) => n instanceof Vn || e(n) && t("parseResult", n) && r("array", n))), oi = (e) => $n("object", e) || $n("array", e) || $n("boolean", e) || $n("number", e) || $n("string", e) || $n("null", e) || $n("member", e), ai = (e) => !!Wn(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), ui = (e, t) => {
|
|
2234
|
+
if (0 === e.length) return !0;
|
|
2235
|
+
const r = t.attributes.get("symbols");
|
|
2236
|
+
return !!Qn(r) && O(kt(r.toValue()), e);
|
|
2237
|
+
}, ci = (e, t) => 0 === e.length || O(kt(t.classes.toValue()), e), li = class extends Un.Namespace {
|
|
2238
|
+
constructor() {
|
|
2239
|
+
super(), this.register("annotation", Ln), this.register("comment", Dn), this.register("parseResult", Vn);
|
|
2240
|
+
}
|
|
2241
|
+
}, fi = new li(), pi = () => ({
|
|
2242
|
+
predicates: { ...Kn },
|
|
2243
|
+
namespace: fi
|
|
2244
|
+
}), hi = a(((e, t) => {
|
|
2245
|
+
var r = function(e) {
|
|
2246
|
+
return e && e.Math === Math && e;
|
|
2247
|
+
};
|
|
2248
|
+
t.exports = r("object" == typeof globalThis && globalThis) || r("object" == typeof window && window) || r("object" == typeof self && self) || r("object" == typeof global && global) || r("object" == typeof e && e) || function() {
|
|
2249
|
+
return this;
|
|
2250
|
+
}() || Function("return this")();
|
|
2251
|
+
})), mi = a(((e, t) => {
|
|
2252
|
+
t.exports = function(e) {
|
|
2253
|
+
try {
|
|
2254
|
+
return !!e();
|
|
2255
|
+
} catch (e) {
|
|
2256
|
+
return !0;
|
|
2257
|
+
}
|
|
2258
|
+
};
|
|
2259
|
+
})), yi = a(((e, t) => {
|
|
2260
|
+
t.exports = !mi()((function() {
|
|
2261
|
+
var e = function() {}.bind();
|
|
2262
|
+
return "function" != typeof e || e.hasOwnProperty("prototype");
|
|
2263
|
+
}));
|
|
2264
|
+
})), di = a(((e, t) => {
|
|
2265
|
+
var r = yi(), n = Function.prototype, i = n.apply, s = n.call;
|
|
2266
|
+
t.exports = "object" == typeof Reflect && Reflect.apply || (r ? s.bind(i) : function() {
|
|
2267
|
+
return s.apply(i, arguments);
|
|
2268
|
+
});
|
|
2269
|
+
})), bi = a(((e, t) => {
|
|
2270
|
+
var r = yi(), n = Function.prototype, i = n.call, s = r && n.bind.bind(i, i);
|
|
2271
|
+
t.exports = r ? s : function(e) {
|
|
2272
|
+
return function() {
|
|
2273
|
+
return i.apply(e, arguments);
|
|
2274
|
+
};
|
|
2275
|
+
};
|
|
2276
|
+
})), vi = a(((e, t) => {
|
|
2277
|
+
var r = bi(), n = r({}.toString), i = r("".slice);
|
|
2278
|
+
t.exports = function(e) {
|
|
2279
|
+
return i(n(e), 8, -1);
|
|
2280
|
+
};
|
|
2281
|
+
})), gi = a(((e, t) => {
|
|
2282
|
+
var r = vi(), n = bi();
|
|
2283
|
+
t.exports = function(e) {
|
|
2284
|
+
if ("Function" === r(e)) return n(e);
|
|
2285
|
+
};
|
|
2286
|
+
})), Ei = a(((e, t) => {
|
|
2287
|
+
var r = "object" == typeof document && document.all;
|
|
2288
|
+
t.exports = void 0 === r && void 0 !== r ? function(e) {
|
|
2289
|
+
return "function" == typeof e || e === r;
|
|
2290
|
+
} : function(e) {
|
|
2291
|
+
return "function" == typeof e;
|
|
2292
|
+
};
|
|
2293
|
+
})), _i = a(((e, t) => {
|
|
2294
|
+
t.exports = !mi()((function() {
|
|
2295
|
+
return 7 !== Object.defineProperty({}, 1, { get: function() {
|
|
2296
|
+
return 7;
|
|
2297
|
+
} })[1];
|
|
2298
|
+
}));
|
|
2299
|
+
})), wi = a(((e, t) => {
|
|
2300
|
+
var r = yi(), n = Function.prototype.call;
|
|
2301
|
+
t.exports = r ? n.bind(n) : function() {
|
|
2302
|
+
return n.apply(n, arguments);
|
|
2303
|
+
};
|
|
2304
|
+
})), ji = a(((e) => {
|
|
2305
|
+
var t = {}.propertyIsEnumerable, r = Object.getOwnPropertyDescriptor;
|
|
2306
|
+
e.f = r && !t.call({ 1: 2 }, 1) ? function(e) {
|
|
2307
|
+
var t = r(this, e);
|
|
2308
|
+
return !!t && t.enumerable;
|
|
2309
|
+
} : t;
|
|
2310
|
+
})), xi = a(((e, t) => {
|
|
2311
|
+
t.exports = function(e, t) {
|
|
2312
|
+
return {
|
|
2313
|
+
enumerable: !(1 & e),
|
|
2314
|
+
configurable: !(2 & e),
|
|
2315
|
+
writable: !(4 & e),
|
|
2316
|
+
value: t
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2319
|
+
})), Oi = a(((e, t) => {
|
|
2320
|
+
var r = bi(), n = mi(), i = vi(), s = Object, o = r("".split);
|
|
2321
|
+
t.exports = n((function() {
|
|
2322
|
+
return !s("z").propertyIsEnumerable(0);
|
|
2323
|
+
})) ? function(e) {
|
|
2324
|
+
return "String" === i(e) ? o(e, "") : s(e);
|
|
2325
|
+
} : s;
|
|
2326
|
+
})), Si = a(((e, t) => {
|
|
2327
|
+
t.exports = function(e) {
|
|
2328
|
+
return null == e;
|
|
2329
|
+
};
|
|
2330
|
+
})), Ai = a(((e, t) => {
|
|
2331
|
+
var r = Si(), n = TypeError;
|
|
2332
|
+
t.exports = function(e) {
|
|
2333
|
+
if (r(e)) throw new n("Can't call method on " + e);
|
|
2334
|
+
return e;
|
|
2335
|
+
};
|
|
2336
|
+
})), ki = a(((e, t) => {
|
|
2337
|
+
var r = Oi(), n = Ai();
|
|
2338
|
+
t.exports = function(e) {
|
|
2339
|
+
return r(n(e));
|
|
2340
|
+
};
|
|
2341
|
+
})), Pi = a(((e, t) => {
|
|
2342
|
+
var r = Ei();
|
|
2343
|
+
t.exports = function(e) {
|
|
2344
|
+
return "object" == typeof e ? null !== e : r(e);
|
|
2345
|
+
};
|
|
2346
|
+
})), Mi = a(((e, t) => {
|
|
2347
|
+
t.exports = {};
|
|
2348
|
+
})), Ci = a(((e, t) => {
|
|
2349
|
+
var r = Mi(), n = hi(), i = Ei(), s = function(e) {
|
|
2350
|
+
return i(e) ? e : void 0;
|
|
2351
|
+
};
|
|
2352
|
+
t.exports = function(e, t) {
|
|
2353
|
+
return arguments.length < 2 ? s(r[e]) || s(n[e]) : r[e] && r[e][t] || n[e] && n[e][t];
|
|
2354
|
+
};
|
|
2355
|
+
})), Ii = a(((e, t) => {
|
|
2356
|
+
t.exports = bi()({}.isPrototypeOf);
|
|
2357
|
+
})), Ti = a(((e, t) => {
|
|
2358
|
+
var r = hi().navigator, n = r && r.userAgent;
|
|
2359
|
+
t.exports = n ? String(n) : "";
|
|
2360
|
+
})), Ni = a(((e, t) => {
|
|
2361
|
+
var r, n, i = hi(), s = Ti(), o = i.process, a = i.Deno, u = o && o.versions || a && a.version, c = u && u.v8;
|
|
2362
|
+
c && (n = (r = c.split("."))[0] > 0 && r[0] < 4 ? 1 : +(r[0] + r[1])), !n && s && (!(r = s.match(/Edge\/(\d+)/)) || r[1] >= 74) && (r = s.match(/Chrome\/(\d+)/)) && (n = +r[1]), t.exports = n;
|
|
2363
|
+
})), Ri = a(((e, t) => {
|
|
2364
|
+
var r = Ni(), n = mi(), i = hi().String;
|
|
2365
|
+
t.exports = !!Object.getOwnPropertySymbols && !n((function() {
|
|
2366
|
+
var e = Symbol("symbol detection");
|
|
2367
|
+
return !i(e) || !(Object(e) instanceof Symbol) || !Symbol.sham && r && r < 41;
|
|
2368
|
+
}));
|
|
2369
|
+
})), Ui = a(((e, t) => {
|
|
2370
|
+
t.exports = Ri() && !Symbol.sham && "symbol" == typeof Symbol.iterator;
|
|
2371
|
+
})), Li = a(((e, t) => {
|
|
2372
|
+
var r = Ci(), n = Ei(), i = Ii(), s = Ui(), o = Object;
|
|
2373
|
+
t.exports = s ? function(e) {
|
|
2374
|
+
return "symbol" == typeof e;
|
|
2375
|
+
} : function(e) {
|
|
2376
|
+
var t = r("Symbol");
|
|
2377
|
+
return n(t) && i(t.prototype, o(e));
|
|
2378
|
+
};
|
|
2379
|
+
})), Di = a(((e, t) => {
|
|
2380
|
+
var r = String;
|
|
2381
|
+
t.exports = function(e) {
|
|
2382
|
+
try {
|
|
2383
|
+
return r(e);
|
|
2384
|
+
} catch (e) {
|
|
2385
|
+
return "Object";
|
|
2386
|
+
}
|
|
2387
|
+
};
|
|
2388
|
+
})), Vi = a(((e, t) => {
|
|
2389
|
+
var r = Ei(), n = Di(), i = TypeError;
|
|
2390
|
+
t.exports = function(e) {
|
|
2391
|
+
if (r(e)) return e;
|
|
2392
|
+
throw new i(n(e) + " is not a function");
|
|
2393
|
+
};
|
|
2394
|
+
})), Fi = a(((e, t) => {
|
|
2395
|
+
var r = Vi(), n = Si();
|
|
2396
|
+
t.exports = function(e, t) {
|
|
2397
|
+
var i = e[t];
|
|
2398
|
+
return n(i) ? void 0 : r(i);
|
|
2399
|
+
};
|
|
2400
|
+
})), Bi = a(((e, t) => {
|
|
2401
|
+
var r = wi(), n = Ei(), i = Pi(), s = TypeError;
|
|
2402
|
+
t.exports = function(e, t) {
|
|
2403
|
+
var o, a;
|
|
2404
|
+
if ("string" === t && n(o = e.toString) && !i(a = r(o, e))) return a;
|
|
2405
|
+
if (n(o = e.valueOf) && !i(a = r(o, e))) return a;
|
|
2406
|
+
if ("string" !== t && n(o = e.toString) && !i(a = r(o, e))) return a;
|
|
2407
|
+
throw new s("Can't convert object to primitive value");
|
|
2408
|
+
};
|
|
2409
|
+
})), zi = a(((e, t) => {
|
|
2410
|
+
t.exports = !0;
|
|
2411
|
+
})), qi = a(((e, t) => {
|
|
2412
|
+
var r = hi(), n = Object.defineProperty;
|
|
2413
|
+
t.exports = function(e, t) {
|
|
2414
|
+
try {
|
|
2415
|
+
n(r, e, {
|
|
2416
|
+
value: t,
|
|
2417
|
+
configurable: !0,
|
|
2418
|
+
writable: !0
|
|
2419
|
+
});
|
|
2420
|
+
} catch (n) {
|
|
2421
|
+
r[e] = t;
|
|
2422
|
+
}
|
|
2423
|
+
return t;
|
|
2424
|
+
};
|
|
2425
|
+
})), $i = a(((e, t) => {
|
|
2426
|
+
var r = zi(), n = hi(), i = qi(), s = "__core-js_shared__", o = t.exports = n[s] || i(s, {});
|
|
2427
|
+
(o.versions || (o.versions = [])).push({
|
|
2428
|
+
version: "3.42.0",
|
|
2429
|
+
mode: r ? "pure" : "global",
|
|
2430
|
+
copyright: "© 2014-2025 Denis Pushkarev (zloirock.ru)",
|
|
2431
|
+
license: "https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",
|
|
2432
|
+
source: "https://github.com/zloirock/core-js"
|
|
2433
|
+
});
|
|
2434
|
+
})), Gi = a(((e, t) => {
|
|
2435
|
+
var r = $i();
|
|
2436
|
+
t.exports = function(e, t) {
|
|
2437
|
+
return r[e] || (r[e] = t || {});
|
|
2438
|
+
};
|
|
2439
|
+
})), Ki = a(((e, t) => {
|
|
2440
|
+
var r = Ai(), n = Object;
|
|
2441
|
+
t.exports = function(e) {
|
|
2442
|
+
return n(r(e));
|
|
2443
|
+
};
|
|
2444
|
+
})), Wi = a(((e, t) => {
|
|
2445
|
+
var r = bi(), n = Ki(), i = r({}.hasOwnProperty);
|
|
2446
|
+
t.exports = Object.hasOwn || function(e, t) {
|
|
2447
|
+
return i(n(e), t);
|
|
2448
|
+
};
|
|
2449
|
+
})), Ji = a(((e, t) => {
|
|
2450
|
+
var r = bi(), n = 0, i = Math.random(), s = r(1 .toString);
|
|
2451
|
+
t.exports = function(e) {
|
|
2452
|
+
return "Symbol(" + (void 0 === e ? "" : e) + ")_" + s(++n + i, 36);
|
|
2453
|
+
};
|
|
2454
|
+
})), Hi = a(((e, t) => {
|
|
2455
|
+
var r = hi(), n = Gi(), i = Wi(), s = Ji(), o = Ri(), a = Ui(), u = r.Symbol, c = n("wks"), l = a ? u.for || u : u && u.withoutSetter || s;
|
|
2456
|
+
t.exports = function(e) {
|
|
2457
|
+
return i(c, e) || (c[e] = o && i(u, e) ? u[e] : l("Symbol." + e)), c[e];
|
|
2458
|
+
};
|
|
2459
|
+
})), Yi = a(((e, t) => {
|
|
2460
|
+
var r = wi(), n = Pi(), i = Li(), s = Fi(), o = Bi(), a = Hi(), u = TypeError, c = a("toPrimitive");
|
|
2461
|
+
t.exports = function(e, t) {
|
|
2462
|
+
if (!n(e) || i(e)) return e;
|
|
2463
|
+
var a, l = s(e, c);
|
|
2464
|
+
if (l) {
|
|
2465
|
+
if (void 0 === t && (t = "default"), a = r(l, e, t), !n(a) || i(a)) return a;
|
|
2466
|
+
throw new u("Can't convert object to primitive value");
|
|
2467
|
+
}
|
|
2468
|
+
return void 0 === t && (t = "number"), o(e, t);
|
|
2469
|
+
};
|
|
2470
|
+
})), Xi = a(((e, t) => {
|
|
2471
|
+
var r = Yi(), n = Li();
|
|
2472
|
+
t.exports = function(e) {
|
|
2473
|
+
var t = r(e, "string");
|
|
2474
|
+
return n(t) ? t : t + "";
|
|
2475
|
+
};
|
|
2476
|
+
})), Zi = a(((e, t) => {
|
|
2477
|
+
var r = hi(), n = Pi(), i = r.document, s = n(i) && n(i.createElement);
|
|
2478
|
+
t.exports = function(e) {
|
|
2479
|
+
return s ? i.createElement(e) : {};
|
|
2480
|
+
};
|
|
2481
|
+
})), Qi = a(((e, t) => {
|
|
2482
|
+
var r = _i(), n = mi(), i = Zi();
|
|
2483
|
+
t.exports = !r && !n((function() {
|
|
2484
|
+
return 7 !== Object.defineProperty(i("div"), "a", { get: function() {
|
|
2485
|
+
return 7;
|
|
2486
|
+
} }).a;
|
|
2487
|
+
}));
|
|
2488
|
+
})), es = a(((e) => {
|
|
2489
|
+
var t = _i(), r = wi(), n = ji(), i = xi(), s = ki(), o = Xi(), a = Wi(), u = Qi(), c = Object.getOwnPropertyDescriptor;
|
|
2490
|
+
e.f = t ? c : function(e, t) {
|
|
2491
|
+
if (e = s(e), t = o(t), u) try {
|
|
2492
|
+
return c(e, t);
|
|
2493
|
+
} catch (e) {}
|
|
2494
|
+
if (a(e, t)) return i(!r(n.f, e, t), e[t]);
|
|
2495
|
+
};
|
|
2496
|
+
})), ts = a(((e, t) => {
|
|
2497
|
+
var r = mi(), n = Ei(), i = /#|\.prototype\./, s = function(e, t) {
|
|
2498
|
+
var i = a[o(e)];
|
|
2499
|
+
return i === c || i !== u && (n(t) ? r(t) : !!t);
|
|
2500
|
+
}, o = s.normalize = function(e) {
|
|
2501
|
+
return String(e).replace(i, ".").toLowerCase();
|
|
2502
|
+
}, a = s.data = {}, u = s.NATIVE = "N", c = s.POLYFILL = "P";
|
|
2503
|
+
t.exports = s;
|
|
2504
|
+
})), rs = a(((e, t) => {
|
|
2505
|
+
var r = gi(), n = Vi(), i = yi(), s = r(r.bind);
|
|
2506
|
+
t.exports = function(e, t) {
|
|
2507
|
+
return n(e), void 0 === t ? e : i ? s(e, t) : function() {
|
|
2508
|
+
return e.apply(t, arguments);
|
|
2509
|
+
};
|
|
2510
|
+
};
|
|
2511
|
+
})), ns = a(((e, t) => {
|
|
2512
|
+
var r = _i(), n = mi();
|
|
2513
|
+
t.exports = r && n((function() {
|
|
2514
|
+
return 42 !== Object.defineProperty((function() {}), "prototype", {
|
|
2515
|
+
value: 42,
|
|
2516
|
+
writable: !1
|
|
2517
|
+
}).prototype;
|
|
2518
|
+
}));
|
|
2519
|
+
})), is = a(((e, t) => {
|
|
2520
|
+
var r = Pi(), n = String, i = TypeError;
|
|
2521
|
+
t.exports = function(e) {
|
|
2522
|
+
if (r(e)) return e;
|
|
2523
|
+
throw new i(n(e) + " is not an object");
|
|
2524
|
+
};
|
|
2525
|
+
})), ss = a(((e) => {
|
|
2526
|
+
var t = _i(), r = Qi(), n = ns(), i = is(), s = Xi(), o = TypeError, a = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = "enumerable", l = "configurable", f = "writable";
|
|
2527
|
+
e.f = t ? n ? function(e, t, r) {
|
|
2528
|
+
if (i(e), t = s(t), i(r), "function" == typeof e && "prototype" === t && "value" in r && f in r && !r[f]) {
|
|
2529
|
+
var n = u(e, t);
|
|
2530
|
+
n && n[f] && (e[t] = r.value, r = {
|
|
2531
|
+
configurable: l in r ? r[l] : n[l],
|
|
2532
|
+
enumerable: c in r ? r[c] : n[c],
|
|
2533
|
+
writable: !1
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
return a(e, t, r);
|
|
2537
|
+
} : a : function(e, t, n) {
|
|
2538
|
+
if (i(e), t = s(t), i(n), r) try {
|
|
2539
|
+
return a(e, t, n);
|
|
2540
|
+
} catch (e) {}
|
|
2541
|
+
if ("get" in n || "set" in n) throw new o("Accessors not supported");
|
|
2542
|
+
return "value" in n && (e[t] = n.value), e;
|
|
2543
|
+
};
|
|
2544
|
+
})), os = a(((e, t) => {
|
|
2545
|
+
var r = _i(), n = ss(), i = xi();
|
|
2546
|
+
t.exports = r ? function(e, t, r) {
|
|
2547
|
+
return n.f(e, t, i(1, r));
|
|
2548
|
+
} : function(e, t, r) {
|
|
2549
|
+
return e[t] = r, e;
|
|
2550
|
+
};
|
|
2551
|
+
})), as = a(((e, t) => {
|
|
2552
|
+
var r = hi(), n = di(), i = gi(), s = Ei(), o = es().f, a = ts(), u = Mi(), c = rs(), l = os(), f = Wi();
|
|
2553
|
+
$i();
|
|
2554
|
+
var p = function(e) {
|
|
2555
|
+
var t = function(r, i, s) {
|
|
2556
|
+
if (this instanceof t) {
|
|
2557
|
+
switch (arguments.length) {
|
|
2558
|
+
case 0: return new e();
|
|
2559
|
+
case 1: return new e(r);
|
|
2560
|
+
case 2: return new e(r, i);
|
|
2561
|
+
}
|
|
2562
|
+
return new e(r, i, s);
|
|
2563
|
+
}
|
|
2564
|
+
return n(e, this, arguments);
|
|
2565
|
+
};
|
|
2566
|
+
return t.prototype = e.prototype, t;
|
|
2567
|
+
};
|
|
2568
|
+
t.exports = function(e, t) {
|
|
2569
|
+
var n, h, m, y, d, b, v, g, E, _ = e.target, w = e.global, j = e.stat, x = e.proto, O = w ? r : j ? r[_] : r[_] && r[_].prototype, S = w ? u : u[_] || l(u, _, {})[_], A = S.prototype;
|
|
2570
|
+
for (y in t) h = !(n = a(w ? y : _ + (j ? "." : "#") + y, e.forced)) && O && f(O, y), b = S[y], h && (v = e.dontCallGetSet ? (E = o(O, y)) && E.value : O[y]), d = h && v ? v : t[y], (n || x || typeof b != typeof d) && (g = e.bind && h ? c(d, r) : e.wrap && h ? p(d) : x && s(d) ? i(d) : d, (e.sham || d && d.sham || b && b.sham) && l(g, "sham", !0), l(S, y, g), x && (f(u, m = _ + "Prototype") || l(u, m, {}), l(u[m], y, d), e.real && A && (n || !A[y]) && l(A, y, d)));
|
|
2571
|
+
};
|
|
2572
|
+
})), us = a(((e, t) => {
|
|
2573
|
+
var r = Gi(), n = Ji(), i = r("keys");
|
|
2574
|
+
t.exports = function(e) {
|
|
2575
|
+
return i[e] || (i[e] = n(e));
|
|
2576
|
+
};
|
|
2577
|
+
})), cs = a(((e, t) => {
|
|
2578
|
+
t.exports = !mi()((function() {
|
|
2579
|
+
function e() {}
|
|
2580
|
+
return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
|
|
2581
|
+
}));
|
|
2582
|
+
})), ls = a(((e, t) => {
|
|
2583
|
+
var r = Wi(), n = Ei(), i = Ki(), s = us(), o = cs(), a = s("IE_PROTO"), u = Object, c = u.prototype;
|
|
2584
|
+
t.exports = o ? u.getPrototypeOf : function(e) {
|
|
2585
|
+
var t = i(e);
|
|
2586
|
+
if (r(t, a)) return t[a];
|
|
2587
|
+
var s = t.constructor;
|
|
2588
|
+
return n(s) && t instanceof s ? s.prototype : t instanceof u ? c : null;
|
|
2589
|
+
};
|
|
2590
|
+
})), fs = a(((e, t) => {
|
|
2591
|
+
var r = bi(), n = Vi();
|
|
2592
|
+
t.exports = function(e, t, i) {
|
|
2593
|
+
try {
|
|
2594
|
+
return r(n(Object.getOwnPropertyDescriptor(e, t)[i]));
|
|
2595
|
+
} catch (e) {}
|
|
2596
|
+
};
|
|
2597
|
+
})), ps = a(((e, t) => {
|
|
2598
|
+
var r = Pi();
|
|
2599
|
+
t.exports = function(e) {
|
|
2600
|
+
return r(e) || null === e;
|
|
2601
|
+
};
|
|
2602
|
+
})), hs = a(((e, t) => {
|
|
2603
|
+
var r = ps(), n = String, i = TypeError;
|
|
2604
|
+
t.exports = function(e) {
|
|
2605
|
+
if (r(e)) return e;
|
|
2606
|
+
throw new i("Can't set " + n(e) + " as a prototype");
|
|
2607
|
+
};
|
|
2608
|
+
})), ms = a(((e, t) => {
|
|
2609
|
+
var r = fs(), n = Pi(), i = Ai(), s = hs();
|
|
2610
|
+
t.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
2611
|
+
var e, t = !1, o = {};
|
|
2612
|
+
try {
|
|
2613
|
+
(e = r(Object.prototype, "__proto__", "set"))(o, []), t = o instanceof Array;
|
|
2614
|
+
} catch (e) {}
|
|
2615
|
+
return function(r, o) {
|
|
2616
|
+
return i(r), s(o), n(r) ? (t ? e(r, o) : r.__proto__ = o, r) : r;
|
|
2617
|
+
};
|
|
2618
|
+
}() : void 0);
|
|
2619
|
+
})), ys = a(((e, t) => {
|
|
2620
|
+
var r = Math.ceil, n = Math.floor;
|
|
2621
|
+
t.exports = Math.trunc || function(e) {
|
|
2622
|
+
var t = +e;
|
|
2623
|
+
return (t > 0 ? n : r)(t);
|
|
2624
|
+
};
|
|
2625
|
+
})), ds = a(((e, t) => {
|
|
2626
|
+
var r = ys();
|
|
2627
|
+
t.exports = function(e) {
|
|
2628
|
+
var t = +e;
|
|
2629
|
+
return t != t || 0 === t ? 0 : r(t);
|
|
2630
|
+
};
|
|
2631
|
+
})), bs = a(((e, t) => {
|
|
2632
|
+
var r = ds(), n = Math.max, i = Math.min;
|
|
2633
|
+
t.exports = function(e, t) {
|
|
2634
|
+
var s = r(e);
|
|
2635
|
+
return s < 0 ? n(s + t, 0) : i(s, t);
|
|
2636
|
+
};
|
|
2637
|
+
})), vs = a(((e, t) => {
|
|
2638
|
+
var r = ds(), n = Math.min;
|
|
2639
|
+
t.exports = function(e) {
|
|
2640
|
+
var t = r(e);
|
|
2641
|
+
return t > 0 ? n(t, 9007199254740991) : 0;
|
|
2642
|
+
};
|
|
2643
|
+
})), gs = a(((e, t) => {
|
|
2644
|
+
var r = vs();
|
|
2645
|
+
t.exports = function(e) {
|
|
2646
|
+
return r(e.length);
|
|
2647
|
+
};
|
|
2648
|
+
})), Es = a(((e, t) => {
|
|
2649
|
+
var r = ki(), n = bs(), i = gs(), s = function(e) {
|
|
2650
|
+
return function(t, s, o) {
|
|
2651
|
+
var a = r(t), u = i(a);
|
|
2652
|
+
if (0 === u) return !e && -1;
|
|
2653
|
+
var c, l = n(o, u);
|
|
2654
|
+
if (e && s != s) {
|
|
2655
|
+
for (; u > l;) if ((c = a[l++]) != c) return !0;
|
|
2656
|
+
} else for (; u > l; l++) if ((e || l in a) && a[l] === s) return e || l || 0;
|
|
2657
|
+
return !e && -1;
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
t.exports = {
|
|
2661
|
+
includes: s(!0),
|
|
2662
|
+
indexOf: s(!1)
|
|
2663
|
+
};
|
|
2664
|
+
})), _s = a(((e, t) => {
|
|
2665
|
+
t.exports = {};
|
|
2666
|
+
})), ws = a(((e, t) => {
|
|
2667
|
+
var r = bi(), n = Wi(), i = ki(), s = Es().indexOf, o = _s(), a = r([].push);
|
|
2668
|
+
t.exports = function(e, t) {
|
|
2669
|
+
var r, u = i(e), c = 0, l = [];
|
|
2670
|
+
for (r in u) !n(o, r) && n(u, r) && a(l, r);
|
|
2671
|
+
for (; t.length > c;) n(u, r = t[c++]) && (~s(l, r) || a(l, r));
|
|
2672
|
+
return l;
|
|
2673
|
+
};
|
|
2674
|
+
})), js = a(((e, t) => {
|
|
2675
|
+
t.exports = [
|
|
2676
|
+
"constructor",
|
|
2677
|
+
"hasOwnProperty",
|
|
2678
|
+
"isPrototypeOf",
|
|
2679
|
+
"propertyIsEnumerable",
|
|
2680
|
+
"toLocaleString",
|
|
2681
|
+
"toString",
|
|
2682
|
+
"valueOf"
|
|
2683
|
+
];
|
|
2684
|
+
})), xs = a(((e) => {
|
|
2685
|
+
var t = ws(), r = js().concat("length", "prototype");
|
|
2686
|
+
e.f = Object.getOwnPropertyNames || function(e) {
|
|
2687
|
+
return t(e, r);
|
|
2688
|
+
};
|
|
2689
|
+
})), Os = a(((e) => {
|
|
2690
|
+
e.f = Object.getOwnPropertySymbols;
|
|
2691
|
+
})), Ss = a(((e, t) => {
|
|
2692
|
+
var r = Ci(), n = bi(), i = xs(), s = Os(), o = is(), a = n([].concat);
|
|
2693
|
+
t.exports = r("Reflect", "ownKeys") || function(e) {
|
|
2694
|
+
var t = i.f(o(e)), r = s.f;
|
|
2695
|
+
return r ? a(t, r(e)) : t;
|
|
2696
|
+
};
|
|
2697
|
+
})), As = a(((e, t) => {
|
|
2698
|
+
var r = Wi(), n = Ss(), i = es(), s = ss();
|
|
2699
|
+
t.exports = function(e, t, o) {
|
|
2700
|
+
for (var a = n(t), u = s.f, c = i.f, l = 0; l < a.length; l++) {
|
|
2701
|
+
var f = a[l];
|
|
2702
|
+
r(e, f) || o && r(o, f) || u(e, f, c(t, f));
|
|
2703
|
+
}
|
|
2704
|
+
};
|
|
2705
|
+
})), ks = a(((e, t) => {
|
|
2706
|
+
var r = ws(), n = js();
|
|
2707
|
+
t.exports = Object.keys || function(e) {
|
|
2708
|
+
return r(e, n);
|
|
2709
|
+
};
|
|
2710
|
+
})), Ps = a(((e) => {
|
|
2711
|
+
var t = _i(), r = ns(), n = ss(), i = is(), s = ki(), o = ks();
|
|
2712
|
+
e.f = t && !r ? Object.defineProperties : function(e, t) {
|
|
2713
|
+
i(e);
|
|
2714
|
+
for (var r, a = s(t), u = o(t), c = u.length, l = 0; c > l;) n.f(e, r = u[l++], a[r]);
|
|
2715
|
+
return e;
|
|
2716
|
+
};
|
|
2717
|
+
})), Ms = a(((e, t) => {
|
|
2718
|
+
t.exports = Ci()("document", "documentElement");
|
|
2719
|
+
})), Cs = a(((e, t) => {
|
|
2720
|
+
var r, n = is(), i = Ps(), s = js(), o = _s(), a = Ms(), u = Zi(), c = us(), l = "prototype", f = "script", p = c("IE_PROTO"), h = function() {}, m = function(e) {
|
|
2721
|
+
return "<" + f + ">" + e + "</" + f + ">";
|
|
2722
|
+
}, y = function(e) {
|
|
2723
|
+
e.write(m("")), e.close();
|
|
2724
|
+
var t = e.parentWindow.Object;
|
|
2725
|
+
return e = null, t;
|
|
2726
|
+
}, d = function() {
|
|
2727
|
+
try {
|
|
2728
|
+
r = new ActiveXObject("htmlfile");
|
|
2729
|
+
} catch (e) {}
|
|
2730
|
+
var e, t, n;
|
|
2731
|
+
d = "undefined" != typeof document ? document.domain && r ? y(r) : (t = u("iframe"), n = "java" + f + ":", t.style.display = "none", a.appendChild(t), t.src = String(n), (e = t.contentWindow.document).open(), e.write(m("document.F=Object")), e.close(), e.F) : y(r);
|
|
2732
|
+
for (var i = s.length; i--;) delete d[l][s[i]];
|
|
2733
|
+
return d();
|
|
2734
|
+
};
|
|
2735
|
+
o[p] = !0, t.exports = Object.create || function(e, t) {
|
|
2736
|
+
var r;
|
|
2737
|
+
return null !== e ? (h[l] = n(e), r = new h(), h[l] = null, r[p] = e) : r = d(), void 0 === t ? r : i.f(r, t);
|
|
2738
|
+
};
|
|
2739
|
+
})), Is = a(((e, t) => {
|
|
2740
|
+
var r = Pi(), n = os();
|
|
2741
|
+
t.exports = function(e, t) {
|
|
2742
|
+
r(t) && "cause" in t && n(e, "cause", t.cause);
|
|
2743
|
+
};
|
|
2744
|
+
})), Ts = a(((e, t) => {
|
|
2745
|
+
var r = bi(), n = Error, i = r("".replace), s = String(new n("zxcasd").stack), o = /\n\s*at [^:]*:[^\n]*/, a = o.test(s);
|
|
2746
|
+
t.exports = function(e, t) {
|
|
2747
|
+
if (a && "string" == typeof e && !n.prepareStackTrace) for (; t--;) e = i(e, o, "");
|
|
2748
|
+
return e;
|
|
2749
|
+
};
|
|
2750
|
+
})), Ns = a(((e, t) => {
|
|
2751
|
+
var r = mi(), n = xi();
|
|
2752
|
+
t.exports = !r((function() {
|
|
2753
|
+
var e = /* @__PURE__ */ new Error("a");
|
|
2754
|
+
return !("stack" in e) || (Object.defineProperty(e, "stack", n(1, 7)), 7 !== e.stack);
|
|
2755
|
+
}));
|
|
2756
|
+
})), Rs = a(((e, t) => {
|
|
2757
|
+
var r = os(), n = Ts(), i = Ns(), s = Error.captureStackTrace;
|
|
2758
|
+
t.exports = function(e, t, o, a) {
|
|
2759
|
+
i && (s ? s(e, t) : r(e, "stack", n(o, a)));
|
|
2760
|
+
};
|
|
2761
|
+
})), Us = a(((e, t) => {
|
|
2762
|
+
t.exports = {};
|
|
2763
|
+
})), Ls = a(((e, t) => {
|
|
2764
|
+
var r = Hi(), n = Us(), i = r("iterator"), s = Array.prototype;
|
|
2765
|
+
t.exports = function(e) {
|
|
2766
|
+
return void 0 !== e && (n.Array === e || s[i] === e);
|
|
2767
|
+
};
|
|
2768
|
+
})), Ds = a(((e, t) => {
|
|
2769
|
+
var r = {};
|
|
2770
|
+
r[Hi()("toStringTag")] = "z", t.exports = "[object z]" === String(r);
|
|
2771
|
+
})), Vs = a(((e, t) => {
|
|
2772
|
+
var r = Ds(), n = Ei(), i = vi(), s = Hi()("toStringTag"), o = Object, a = "Arguments" === i(function() {
|
|
2773
|
+
return arguments;
|
|
2774
|
+
}());
|
|
2775
|
+
t.exports = r ? i : function(e) {
|
|
2776
|
+
var t, r, u;
|
|
2777
|
+
return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (r = function(e, t) {
|
|
2778
|
+
try {
|
|
2779
|
+
return e[t];
|
|
2780
|
+
} catch (e) {}
|
|
2781
|
+
}(t = o(e), s)) ? r : a ? i(t) : "Object" === (u = i(t)) && n(t.callee) ? "Arguments" : u;
|
|
2782
|
+
};
|
|
2783
|
+
})), Fs = a(((e, t) => {
|
|
2784
|
+
var r = Vs(), n = Fi(), i = Si(), s = Us(), o = Hi()("iterator");
|
|
2785
|
+
t.exports = function(e) {
|
|
2786
|
+
if (!i(e)) return n(e, o) || n(e, "@@iterator") || s[r(e)];
|
|
2787
|
+
};
|
|
2788
|
+
})), Bs = a(((e, t) => {
|
|
2789
|
+
var r = wi(), n = Vi(), i = is(), s = Di(), o = Fs(), a = TypeError;
|
|
2790
|
+
t.exports = function(e, t) {
|
|
2791
|
+
var u = arguments.length < 2 ? o(e) : t;
|
|
2792
|
+
if (n(u)) return i(r(u, e));
|
|
2793
|
+
throw new a(s(e) + " is not iterable");
|
|
2794
|
+
};
|
|
2795
|
+
})), zs = a(((e, t) => {
|
|
2796
|
+
var r = wi(), n = is(), i = Fi();
|
|
2797
|
+
t.exports = function(e, t, s) {
|
|
2798
|
+
var o, a;
|
|
2799
|
+
n(e);
|
|
2800
|
+
try {
|
|
2801
|
+
if (!(o = i(e, "return"))) {
|
|
2802
|
+
if ("throw" === t) throw s;
|
|
2803
|
+
return s;
|
|
2804
|
+
}
|
|
2805
|
+
o = r(o, e);
|
|
2806
|
+
} catch (e) {
|
|
2807
|
+
a = !0, o = e;
|
|
2808
|
+
}
|
|
2809
|
+
if ("throw" === t) throw s;
|
|
2810
|
+
if (a) throw o;
|
|
2811
|
+
return n(o), s;
|
|
2812
|
+
};
|
|
2813
|
+
})), qs = a(((e, t) => {
|
|
2814
|
+
var r = rs(), n = wi(), i = is(), s = Di(), o = Ls(), a = gs(), u = Ii(), c = Bs(), l = Fs(), f = zs(), p = TypeError, h = function(e, t) {
|
|
2815
|
+
this.stopped = e, this.result = t;
|
|
2816
|
+
}, m = h.prototype;
|
|
2817
|
+
t.exports = function(e, t, y) {
|
|
2818
|
+
var d, b, v, g, E, _, w, j = y && y.that, x = !(!y || !y.AS_ENTRIES), O = !(!y || !y.IS_RECORD), S = !(!y || !y.IS_ITERATOR), A = !(!y || !y.INTERRUPTED), k = r(t, j), P = function(e) {
|
|
2819
|
+
return d && f(d, "normal", e), new h(!0, e);
|
|
2820
|
+
}, M = function(e) {
|
|
2821
|
+
return x ? (i(e), A ? k(e[0], e[1], P) : k(e[0], e[1])) : A ? k(e, P) : k(e);
|
|
2822
|
+
};
|
|
2823
|
+
if (O) d = e.iterator;
|
|
2824
|
+
else if (S) d = e;
|
|
2825
|
+
else {
|
|
2826
|
+
if (!(b = l(e))) throw new p(s(e) + " is not iterable");
|
|
2827
|
+
if (o(b)) {
|
|
2828
|
+
for (v = 0, g = a(e); g > v; v++) if ((E = M(e[v])) && u(m, E)) return E;
|
|
2829
|
+
return new h(!1);
|
|
2830
|
+
}
|
|
2831
|
+
d = c(e, b);
|
|
2832
|
+
}
|
|
2833
|
+
for (_ = O ? e.next : d.next; !(w = n(_, d)).done;) {
|
|
2834
|
+
try {
|
|
2835
|
+
E = M(w.value);
|
|
2836
|
+
} catch (e) {
|
|
2837
|
+
f(d, "throw", e);
|
|
2838
|
+
}
|
|
2839
|
+
if ("object" == typeof E && E && u(m, E)) return E;
|
|
2840
|
+
}
|
|
2841
|
+
return new h(!1);
|
|
2842
|
+
};
|
|
2843
|
+
})), $s = a(((e, t) => {
|
|
2844
|
+
var r = Vs(), n = String;
|
|
2845
|
+
t.exports = function(e) {
|
|
2846
|
+
if ("Symbol" === r(e)) throw new TypeError("Cannot convert a Symbol value to a string");
|
|
2847
|
+
return n(e);
|
|
2848
|
+
};
|
|
2849
|
+
})), Gs = a(((e, t) => {
|
|
2850
|
+
var r = $s();
|
|
2851
|
+
t.exports = function(e, t) {
|
|
2852
|
+
return void 0 === e ? arguments.length < 2 ? "" : t : r(e);
|
|
2853
|
+
};
|
|
2854
|
+
})), Ks = a((() => {
|
|
2855
|
+
var e = as(), t = Ii(), r = ls(), n = ms(), i = As(), s = Cs(), o = os(), a = xi(), u = Is(), c = Rs(), l = qs(), f = Gs(), p = Hi()("toStringTag"), h = Error, m = [].push, y = function(e, i) {
|
|
2856
|
+
var a, b = t(d, this);
|
|
2857
|
+
n ? a = n(new h(), b ? r(this) : d) : (a = b ? this : s(d), o(a, p, "Error")), void 0 !== i && o(a, "message", f(i)), c(a, y, a.stack, 1), arguments.length > 2 && u(a, arguments[2]);
|
|
2858
|
+
var v = [];
|
|
2859
|
+
return l(e, m, { that: v }), o(a, "errors", v), a;
|
|
2860
|
+
};
|
|
2861
|
+
n ? n(y, h) : i(y, h, { name: !0 });
|
|
2862
|
+
var d = y.prototype = s(h.prototype, {
|
|
2863
|
+
constructor: a(1, y),
|
|
2864
|
+
message: a(1, ""),
|
|
2865
|
+
name: a(1, "AggregateError")
|
|
2866
|
+
});
|
|
2867
|
+
e({
|
|
2868
|
+
global: !0,
|
|
2869
|
+
constructor: !0,
|
|
2870
|
+
arity: 2
|
|
2871
|
+
}, { AggregateError: y });
|
|
2872
|
+
})), Ws = a((() => {
|
|
2873
|
+
Ks();
|
|
2874
|
+
})), Js = a((() => {
|
|
2875
|
+
Ws();
|
|
2876
|
+
})), Hs = a(((e, t) => {
|
|
2877
|
+
var r = ss().f;
|
|
2878
|
+
t.exports = function(e, t, n) {
|
|
2879
|
+
n in e || r(e, n, {
|
|
2880
|
+
configurable: !0,
|
|
2881
|
+
get: function() {
|
|
2882
|
+
return t[n];
|
|
2883
|
+
},
|
|
2884
|
+
set: function(e) {
|
|
2885
|
+
t[n] = e;
|
|
2886
|
+
}
|
|
2887
|
+
});
|
|
2888
|
+
};
|
|
2889
|
+
})), Ys = a(((e, t) => {
|
|
2890
|
+
var r = Ei(), n = Pi(), i = ms();
|
|
2891
|
+
t.exports = function(e, t, s) {
|
|
2892
|
+
var o, a;
|
|
2893
|
+
return i && r(o = t.constructor) && o !== s && n(a = o.prototype) && a !== s.prototype && i(e, a), e;
|
|
2894
|
+
};
|
|
2895
|
+
})), Xs = a(((e, t) => {
|
|
2896
|
+
var r = Ci(), n = Wi(), i = os(), s = Ii(), o = ms(), a = As(), u = Hs(), c = Ys(), l = Gs(), f = Is(), p = Rs(), h = _i(), m = zi();
|
|
2897
|
+
t.exports = function(e, t, y, d) {
|
|
2898
|
+
var b = "stackTraceLimit", v = d ? 2 : 1, g = e.split("."), E = g[g.length - 1], _ = r.apply(null, g);
|
|
2899
|
+
if (_) {
|
|
2900
|
+
var w = _.prototype;
|
|
2901
|
+
if (!m && n(w, "cause") && delete w.cause, !y) return _;
|
|
2902
|
+
var j = r("Error"), x = t((function(e, t) {
|
|
2903
|
+
var r = l(d ? t : e, void 0), n = d ? new _(e) : new _();
|
|
2904
|
+
return void 0 !== r && i(n, "message", r), p(n, x, n.stack, 2), this && s(w, this) && c(n, this, x), arguments.length > v && f(n, arguments[v]), n;
|
|
2905
|
+
}));
|
|
2906
|
+
if (x.prototype = w, "Error" !== E ? o ? o(x, j) : a(x, j, { name: !0 }) : h && b in _ && (u(x, _, b), u(x, _, "prepareStackTrace")), a(x, _), !m) try {
|
|
2907
|
+
w.name !== E && i(w, "name", E), w.constructor = x;
|
|
2908
|
+
} catch (e) {}
|
|
2909
|
+
return x;
|
|
2910
|
+
}
|
|
2911
|
+
};
|
|
2912
|
+
})), Zs = a((() => {
|
|
2913
|
+
var e = as(), t = hi(), r = di(), n = Xs(), i = "WebAssembly", s = t[i], o = 7 !== new Error("e", { cause: 7 }).cause, a = function(t, r) {
|
|
2914
|
+
var i = {};
|
|
2915
|
+
i[t] = n(t, r, o), e({
|
|
2916
|
+
global: !0,
|
|
2917
|
+
constructor: !0,
|
|
2918
|
+
arity: 1,
|
|
2919
|
+
forced: o
|
|
2920
|
+
}, i);
|
|
2921
|
+
}, u = function(t, r) {
|
|
2922
|
+
if (s && s[t]) {
|
|
2923
|
+
var a = {};
|
|
2924
|
+
a[t] = n(i + "." + t, r, o), e({
|
|
2925
|
+
target: i,
|
|
2926
|
+
stat: !0,
|
|
2927
|
+
constructor: !0,
|
|
2928
|
+
arity: 1,
|
|
2929
|
+
forced: o
|
|
2930
|
+
}, a);
|
|
2931
|
+
}
|
|
2932
|
+
};
|
|
2933
|
+
a("Error", (function(e) {
|
|
2934
|
+
return function(t) {
|
|
2935
|
+
return r(e, this, arguments);
|
|
2936
|
+
};
|
|
2937
|
+
})), a("EvalError", (function(e) {
|
|
2938
|
+
return function(t) {
|
|
2939
|
+
return r(e, this, arguments);
|
|
2940
|
+
};
|
|
2941
|
+
})), a("RangeError", (function(e) {
|
|
2942
|
+
return function(t) {
|
|
2943
|
+
return r(e, this, arguments);
|
|
2944
|
+
};
|
|
2945
|
+
})), a("ReferenceError", (function(e) {
|
|
2946
|
+
return function(t) {
|
|
2947
|
+
return r(e, this, arguments);
|
|
2948
|
+
};
|
|
2949
|
+
})), a("SyntaxError", (function(e) {
|
|
2950
|
+
return function(t) {
|
|
2951
|
+
return r(e, this, arguments);
|
|
2952
|
+
};
|
|
2953
|
+
})), a("TypeError", (function(e) {
|
|
2954
|
+
return function(t) {
|
|
2955
|
+
return r(e, this, arguments);
|
|
2956
|
+
};
|
|
2957
|
+
})), a("URIError", (function(e) {
|
|
2958
|
+
return function(t) {
|
|
2959
|
+
return r(e, this, arguments);
|
|
2960
|
+
};
|
|
2961
|
+
})), u("CompileError", (function(e) {
|
|
2962
|
+
return function(t) {
|
|
2963
|
+
return r(e, this, arguments);
|
|
2964
|
+
};
|
|
2965
|
+
})), u("LinkError", (function(e) {
|
|
2966
|
+
return function(t) {
|
|
2967
|
+
return r(e, this, arguments);
|
|
2968
|
+
};
|
|
2969
|
+
})), u("RuntimeError", (function(e) {
|
|
2970
|
+
return function(t) {
|
|
2971
|
+
return r(e, this, arguments);
|
|
2972
|
+
};
|
|
2973
|
+
}));
|
|
2974
|
+
})), Qs = a((() => {
|
|
2975
|
+
var e = as(), t = Ci(), r = di(), n = mi(), i = Xs(), s = "AggregateError", o = t(s), a = !n((function() {
|
|
2976
|
+
return 1 !== o([1]).errors[0];
|
|
2977
|
+
})) && n((function() {
|
|
2978
|
+
return 7 !== o([1], s, { cause: 7 }).cause;
|
|
2979
|
+
}));
|
|
2980
|
+
e({
|
|
2981
|
+
global: !0,
|
|
2982
|
+
constructor: !0,
|
|
2983
|
+
arity: 2,
|
|
2984
|
+
forced: a
|
|
2985
|
+
}, { AggregateError: i(s, (function(e) {
|
|
2986
|
+
return function(t, n) {
|
|
2987
|
+
return r(e, this, arguments);
|
|
2988
|
+
};
|
|
2989
|
+
}), a, !0) });
|
|
2990
|
+
})), eo = a(((e, t) => {
|
|
2991
|
+
t.exports = function() {};
|
|
2992
|
+
})), to = a(((e, t) => {
|
|
2993
|
+
var r = hi(), n = Ei(), i = r.WeakMap;
|
|
2994
|
+
t.exports = n(i) && /native code/.test(String(i));
|
|
2995
|
+
})), ro = a(((e, t) => {
|
|
2996
|
+
var r, n, i, s = to(), o = hi(), a = Pi(), u = os(), c = Wi(), l = $i(), f = us(), p = _s(), h = "Object already initialized", m = o.TypeError, y = o.WeakMap;
|
|
2997
|
+
if (s || l.state) {
|
|
2998
|
+
var d = l.state || (l.state = new y());
|
|
2999
|
+
d.get = d.get, d.has = d.has, d.set = d.set, r = function(e, t) {
|
|
3000
|
+
if (d.has(e)) throw new m(h);
|
|
3001
|
+
return t.facade = e, d.set(e, t), t;
|
|
3002
|
+
}, n = function(e) {
|
|
3003
|
+
return d.get(e) || {};
|
|
3004
|
+
}, i = function(e) {
|
|
3005
|
+
return d.has(e);
|
|
3006
|
+
};
|
|
3007
|
+
} else {
|
|
3008
|
+
var b = f("state");
|
|
3009
|
+
p[b] = !0, r = function(e, t) {
|
|
3010
|
+
if (c(e, b)) throw new m(h);
|
|
3011
|
+
return t.facade = e, u(e, b, t), t;
|
|
3012
|
+
}, n = function(e) {
|
|
3013
|
+
return c(e, b) ? e[b] : {};
|
|
3014
|
+
}, i = function(e) {
|
|
3015
|
+
return c(e, b);
|
|
3016
|
+
};
|
|
3017
|
+
}
|
|
3018
|
+
t.exports = {
|
|
3019
|
+
set: r,
|
|
3020
|
+
get: n,
|
|
3021
|
+
has: i,
|
|
3022
|
+
enforce: function(e) {
|
|
3023
|
+
return i(e) ? n(e) : r(e, {});
|
|
3024
|
+
},
|
|
3025
|
+
getterFor: function(e) {
|
|
3026
|
+
return function(t) {
|
|
3027
|
+
var r;
|
|
3028
|
+
if (!a(t) || (r = n(t)).type !== e) throw new m("Incompatible receiver, " + e + " required");
|
|
3029
|
+
return r;
|
|
3030
|
+
};
|
|
3031
|
+
}
|
|
3032
|
+
};
|
|
3033
|
+
})), no = a(((e, t) => {
|
|
3034
|
+
var r = _i(), n = Wi(), i = Function.prototype, s = r && Object.getOwnPropertyDescriptor, o = n(i, "name");
|
|
3035
|
+
t.exports = {
|
|
3036
|
+
EXISTS: o,
|
|
3037
|
+
PROPER: o && "something" === function() {}.name,
|
|
3038
|
+
CONFIGURABLE: o && (!r || r && s(i, "name").configurable)
|
|
3039
|
+
};
|
|
3040
|
+
})), io = a(((e, t) => {
|
|
3041
|
+
var r = os();
|
|
3042
|
+
t.exports = function(e, t, n, i) {
|
|
3043
|
+
return i && i.enumerable ? e[t] = n : r(e, t, n), e;
|
|
3044
|
+
};
|
|
3045
|
+
})), so = a(((e, t) => {
|
|
3046
|
+
var r, n, i, s = mi(), o = Ei(), a = Pi(), u = Cs(), c = ls(), l = io(), f = Hi(), p = zi(), h = f("iterator"), m = !1;
|
|
3047
|
+
[].keys && ("next" in (i = [].keys()) ? (n = c(c(i))) !== Object.prototype && (r = n) : m = !0), !a(r) || s((function() {
|
|
3048
|
+
var e = {};
|
|
3049
|
+
return r[h].call(e) !== e;
|
|
3050
|
+
})) ? r = {} : p && (r = u(r)), o(r[h]) || l(r, h, (function() {
|
|
3051
|
+
return this;
|
|
3052
|
+
})), t.exports = {
|
|
3053
|
+
IteratorPrototype: r,
|
|
3054
|
+
BUGGY_SAFARI_ITERATORS: m
|
|
3055
|
+
};
|
|
3056
|
+
})), oo = a(((e, t) => {
|
|
3057
|
+
var r = Ds(), n = Vs();
|
|
3058
|
+
t.exports = r ? {}.toString : function() {
|
|
3059
|
+
return "[object " + n(this) + "]";
|
|
3060
|
+
};
|
|
3061
|
+
})), ao = a(((e, t) => {
|
|
3062
|
+
var r = Ds(), n = ss().f, i = os(), s = Wi(), o = oo(), a = Hi()("toStringTag");
|
|
3063
|
+
t.exports = function(e, t, u, c) {
|
|
3064
|
+
var l = u ? e : e && e.prototype;
|
|
3065
|
+
l && (s(l, a) || n(l, a, {
|
|
3066
|
+
configurable: !0,
|
|
3067
|
+
value: t
|
|
3068
|
+
}), c && !r && i(l, "toString", o));
|
|
3069
|
+
};
|
|
3070
|
+
})), uo = a(((e, t) => {
|
|
3071
|
+
var r = so().IteratorPrototype, n = Cs(), i = xi(), s = ao(), o = Us(), a = function() {
|
|
3072
|
+
return this;
|
|
3073
|
+
};
|
|
3074
|
+
t.exports = function(e, t, u, c) {
|
|
3075
|
+
var l = t + " Iterator";
|
|
3076
|
+
return e.prototype = n(r, { next: i(+!c, u) }), s(e, l, !1, !0), o[l] = a, e;
|
|
3077
|
+
};
|
|
3078
|
+
})), co = a(((e, t) => {
|
|
3079
|
+
var r = as(), n = wi(), i = zi(), s = no(), o = Ei(), a = uo(), u = ls(), c = ms(), l = ao(), f = os(), p = io(), h = Hi(), m = Us(), y = so(), d = s.PROPER, b = s.CONFIGURABLE, v = y.IteratorPrototype, g = y.BUGGY_SAFARI_ITERATORS, E = h("iterator"), _ = "keys", w = "values", j = "entries", x = function() {
|
|
3080
|
+
return this;
|
|
3081
|
+
};
|
|
3082
|
+
t.exports = function(e, t, s, h, y, O, S) {
|
|
3083
|
+
a(s, t, h);
|
|
3084
|
+
var A, k, P, M = function(e) {
|
|
3085
|
+
if (e === y && R) return R;
|
|
3086
|
+
if (!g && e && e in T) return T[e];
|
|
3087
|
+
switch (e) {
|
|
3088
|
+
case _:
|
|
3089
|
+
case w:
|
|
3090
|
+
case j: return function() {
|
|
3091
|
+
return new s(this, e);
|
|
3092
|
+
};
|
|
3093
|
+
}
|
|
3094
|
+
return function() {
|
|
3095
|
+
return new s(this);
|
|
3096
|
+
};
|
|
3097
|
+
}, C = t + " Iterator", I = !1, T = e.prototype, N = T[E] || T["@@iterator"] || y && T[y], R = !g && N || M(y), U = "Array" === t && T.entries || N;
|
|
3098
|
+
if (U && (A = u(U.call(new e()))) !== Object.prototype && A.next && (i || u(A) === v || (c ? c(A, v) : o(A[E]) || p(A, E, x)), l(A, C, !0, !0), i && (m[C] = x)), d && y === w && N && N.name !== w && (!i && b ? f(T, "name", w) : (I = !0, R = function() {
|
|
3099
|
+
return n(N, this);
|
|
3100
|
+
})), y) if (k = {
|
|
3101
|
+
values: M(w),
|
|
3102
|
+
keys: O ? R : M(_),
|
|
3103
|
+
entries: M(j)
|
|
3104
|
+
}, S) for (P in k) (g || I || !(P in T)) && p(T, P, k[P]);
|
|
3105
|
+
else r({
|
|
3106
|
+
target: t,
|
|
3107
|
+
proto: !0,
|
|
3108
|
+
forced: g || I
|
|
3109
|
+
}, k);
|
|
3110
|
+
return i && !S || T[E] === R || p(T, E, R, { name: y }), m[t] = R, k;
|
|
3111
|
+
};
|
|
3112
|
+
})), lo = a(((e, t) => {
|
|
3113
|
+
t.exports = function(e, t) {
|
|
3114
|
+
return {
|
|
3115
|
+
value: e,
|
|
3116
|
+
done: t
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
})), fo = a(((e, t) => {
|
|
3120
|
+
var r = ki(), n = eo(), i = Us(), s = ro(), o = ss().f, a = co(), u = lo(), c = zi(), l = _i(), f = "Array Iterator", p = s.set, h = s.getterFor(f);
|
|
3121
|
+
t.exports = a(Array, "Array", (function(e, t) {
|
|
3122
|
+
p(this, {
|
|
3123
|
+
type: f,
|
|
3124
|
+
target: r(e),
|
|
3125
|
+
index: 0,
|
|
3126
|
+
kind: t
|
|
3127
|
+
});
|
|
3128
|
+
}), (function() {
|
|
3129
|
+
var e = h(this), t = e.target, r = e.index++;
|
|
3130
|
+
if (!t || r >= t.length) return e.target = null, u(void 0, !0);
|
|
3131
|
+
switch (e.kind) {
|
|
3132
|
+
case "keys": return u(r, !1);
|
|
3133
|
+
case "values": return u(t[r], !1);
|
|
3134
|
+
}
|
|
3135
|
+
return u([r, t[r]], !1);
|
|
3136
|
+
}), "values");
|
|
3137
|
+
var m = i.Arguments = i.Array;
|
|
3138
|
+
if (n("keys"), n("values"), n("entries"), !c && l && "values" !== m.name) try {
|
|
3139
|
+
o(m, "name", { value: "values" });
|
|
3140
|
+
} catch (e) {}
|
|
3141
|
+
})), po = a(((e, t) => {
|
|
3142
|
+
var r = bi(), n = ds(), i = $s(), s = Ai(), o = r("".charAt), a = r("".charCodeAt), u = r("".slice), c = function(e) {
|
|
3143
|
+
return function(t, r) {
|
|
3144
|
+
var c, l, f = i(s(t)), p = n(r), h = f.length;
|
|
3145
|
+
return p < 0 || p >= h ? e ? "" : void 0 : (c = a(f, p)) < 55296 || c > 56319 || p + 1 === h || (l = a(f, p + 1)) < 56320 || l > 57343 ? e ? o(f, p) : c : e ? u(f, p, p + 2) : l - 56320 + (c - 55296 << 10) + 65536;
|
|
3146
|
+
};
|
|
3147
|
+
};
|
|
3148
|
+
t.exports = {
|
|
3149
|
+
codeAt: c(!1),
|
|
3150
|
+
charAt: c(!0)
|
|
3151
|
+
};
|
|
3152
|
+
})), ho = a((() => {
|
|
3153
|
+
var e = po().charAt, t = $s(), r = ro(), n = co(), i = lo(), s = "String Iterator", o = r.set, a = r.getterFor(s);
|
|
3154
|
+
n(String, "String", (function(e) {
|
|
3155
|
+
o(this, {
|
|
3156
|
+
type: s,
|
|
3157
|
+
string: t(e),
|
|
3158
|
+
index: 0
|
|
3159
|
+
});
|
|
3160
|
+
}), (function() {
|
|
3161
|
+
var t, r = a(this), n = r.string, s = r.index;
|
|
3162
|
+
return s >= n.length ? i(void 0, !0) : (t = e(n, s), r.index += t.length, i(t, !1));
|
|
3163
|
+
}));
|
|
3164
|
+
})), mo = a(((e, t) => {
|
|
3165
|
+
Zs(), Ws(), Qs(), fo(), ho();
|
|
3166
|
+
t.exports = Mi().AggregateError;
|
|
3167
|
+
})), yo = a(((e, t) => {
|
|
3168
|
+
t.exports = {
|
|
3169
|
+
CSSRuleList: 0,
|
|
3170
|
+
CSSStyleDeclaration: 0,
|
|
3171
|
+
CSSValueList: 0,
|
|
3172
|
+
ClientRectList: 0,
|
|
3173
|
+
DOMRectList: 0,
|
|
3174
|
+
DOMStringList: 0,
|
|
3175
|
+
DOMTokenList: 1,
|
|
3176
|
+
DataTransferItemList: 0,
|
|
3177
|
+
FileList: 0,
|
|
3178
|
+
HTMLAllCollection: 0,
|
|
3179
|
+
HTMLCollection: 0,
|
|
3180
|
+
HTMLFormElement: 0,
|
|
3181
|
+
HTMLSelectElement: 0,
|
|
3182
|
+
MediaList: 0,
|
|
3183
|
+
MimeTypeArray: 0,
|
|
3184
|
+
NamedNodeMap: 0,
|
|
3185
|
+
NodeList: 1,
|
|
3186
|
+
PaintRequestList: 0,
|
|
3187
|
+
Plugin: 0,
|
|
3188
|
+
PluginArray: 0,
|
|
3189
|
+
SVGLengthList: 0,
|
|
3190
|
+
SVGNumberList: 0,
|
|
3191
|
+
SVGPathSegList: 0,
|
|
3192
|
+
SVGPointList: 0,
|
|
3193
|
+
SVGStringList: 0,
|
|
3194
|
+
SVGTransformList: 0,
|
|
3195
|
+
SourceBufferList: 0,
|
|
3196
|
+
StyleSheetList: 0,
|
|
3197
|
+
TextTrackCueList: 0,
|
|
3198
|
+
TextTrackList: 0,
|
|
3199
|
+
TouchList: 0
|
|
3200
|
+
};
|
|
3201
|
+
})), bo = a((() => {
|
|
3202
|
+
fo();
|
|
3203
|
+
var e = yo(), t = hi(), r = ao(), n = Us();
|
|
3204
|
+
for (var i in e) r(t[i], i), n[i] = n.Array;
|
|
3205
|
+
})), vo = a(((e, t) => {
|
|
3206
|
+
Js();
|
|
3207
|
+
var r = mo();
|
|
3208
|
+
bo(), t.exports = r;
|
|
3209
|
+
})), go = a(((e, t) => {
|
|
3210
|
+
t.exports = vo();
|
|
3211
|
+
})), Eo = a(((e, t) => {
|
|
3212
|
+
Js();
|
|
3213
|
+
t.exports = go();
|
|
3214
|
+
})), _o = a(((e, t) => {
|
|
3215
|
+
t.exports = Eo();
|
|
3216
|
+
})), wo = c(a(((e, t) => {
|
|
3217
|
+
t.exports = _o();
|
|
3218
|
+
}))(), 1), jo = class extends wo.default {
|
|
3219
|
+
constructor(e, t, r) {
|
|
3220
|
+
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)) {
|
|
3221
|
+
const { cause: e } = r;
|
|
3222
|
+
this.cause = e, e instanceof Error && "stack" in e && (this.stack = `${this.stack}\nCAUSE: ${e.stack}`);
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3225
|
+
}, xo = class extends Error {
|
|
3226
|
+
static [Symbol.hasInstance](e) {
|
|
3227
|
+
return super[Symbol.hasInstance](e) || Function.prototype[Symbol.hasInstance].call(jo, e);
|
|
3228
|
+
}
|
|
3229
|
+
constructor(e, t) {
|
|
3230
|
+
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)) {
|
|
3231
|
+
const { cause: e } = t;
|
|
3232
|
+
this.cause = e, e instanceof Error && "stack" in e && (this.stack = `${this.stack}\nCAUSE: ${e.stack}`);
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
}, Oo = class extends xo {
|
|
3236
|
+
constructor(e, t) {
|
|
3237
|
+
if (super(e, t), null != t && "object" == typeof t) {
|
|
3238
|
+
const { cause: e, ...r } = t;
|
|
3239
|
+
Object.assign(this, r);
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
}, So = class extends xo {}, Ao = class extends So {}, ko = (e, t, r) => {
|
|
3243
|
+
const n = e[t];
|
|
3244
|
+
if (null != n) {
|
|
3245
|
+
if (!r && "function" == typeof n) return n;
|
|
3246
|
+
const e = r ? n.leave : n.enter;
|
|
3247
|
+
if ("function" == typeof e) return e;
|
|
3248
|
+
} else {
|
|
3249
|
+
const n = r ? e.leave : e.enter;
|
|
3250
|
+
if (null != n) {
|
|
3251
|
+
if ("function" == typeof n) return n;
|
|
3252
|
+
const e = n[t];
|
|
3253
|
+
if ("function" == typeof e) return e;
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
return null;
|
|
3257
|
+
}, Po = {}, Mo = (e) => null == e ? void 0 : e.type, Co = (e) => "string" == typeof Mo(e), Io = (e) => Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)), To = (e, { visitFnGetter: t = ko, nodeTypeGetter: r = Mo, breakSymbol: n = Po, deleteNodeSymbol: i = null, skipVisitingNodeSymbol: s = !1, exposeEdits: o = !1 } = {}) => {
|
|
3258
|
+
const a = Symbol("skip"), u = new Array(e.length).fill(a);
|
|
3259
|
+
return {
|
|
3260
|
+
enter(c, l, f, p, h, m) {
|
|
3261
|
+
let y = c, d = !1;
|
|
3262
|
+
const b = {
|
|
3263
|
+
...m,
|
|
3264
|
+
replaceWith(e, t) {
|
|
3265
|
+
m.replaceWith(e, t), y = e;
|
|
3266
|
+
}
|
|
3267
|
+
};
|
|
3268
|
+
for (let c = 0; c < e.length; c += 1) if (u[c] === a) {
|
|
3269
|
+
const a = t(e[c], r(y), !1);
|
|
3270
|
+
if ("function" == typeof a) {
|
|
3271
|
+
const t = a.call(e[c], y, l, f, p, h, b);
|
|
3272
|
+
if ("function" == typeof (null == t ? void 0 : t.then)) throw new Oo("Async visitor not supported in sync mode", {
|
|
3273
|
+
visitor: e[c],
|
|
3274
|
+
visitFn: a
|
|
3275
|
+
});
|
|
3276
|
+
if (t === s) u[c] = y;
|
|
3277
|
+
else if (t === n) u[c] = n;
|
|
3278
|
+
else {
|
|
3279
|
+
if (t === i) return t;
|
|
3280
|
+
if (void 0 !== t) {
|
|
3281
|
+
if (!o) return t;
|
|
3282
|
+
y = t, d = !0;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
return d ? y : void 0;
|
|
3288
|
+
},
|
|
3289
|
+
leave(i, o, c, l, f, p) {
|
|
3290
|
+
let h = i;
|
|
3291
|
+
const m = {
|
|
3292
|
+
...p,
|
|
3293
|
+
replaceWith(e, t) {
|
|
3294
|
+
p.replaceWith(e, t), h = e;
|
|
3295
|
+
}
|
|
3296
|
+
};
|
|
3297
|
+
for (let i = 0; i < e.length; i += 1) if (u[i] === a) {
|
|
3298
|
+
const a = t(e[i], r(h), !0);
|
|
3299
|
+
if ("function" == typeof a) {
|
|
3300
|
+
const t = a.call(e[i], h, o, c, l, f, m);
|
|
3301
|
+
if ("function" == typeof (null == t ? void 0 : t.then)) throw new Oo("Async visitor not supported in sync mode", {
|
|
3302
|
+
visitor: e[i],
|
|
3303
|
+
visitFn: a
|
|
3304
|
+
});
|
|
3305
|
+
if (t === n) u[i] = n;
|
|
3306
|
+
else if (void 0 !== t && t !== s) return t;
|
|
3307
|
+
}
|
|
3308
|
+
} else u[i] === h && (u[i] = a);
|
|
3309
|
+
}
|
|
3310
|
+
};
|
|
3311
|
+
};
|
|
3312
|
+
To[Symbol.for("nodejs.util.promisify.custom")] = (e, { visitFnGetter: t = ko, nodeTypeGetter: r = Mo, breakSymbol: n = Po, deleteNodeSymbol: i = null, skipVisitingNodeSymbol: s = !1, exposeEdits: o = !1 } = {}) => {
|
|
3313
|
+
const a = Symbol("skip"), u = new Array(e.length).fill(a);
|
|
3314
|
+
return {
|
|
3315
|
+
async enter(c, l, f, p, h, m) {
|
|
3316
|
+
let y = c, d = !1;
|
|
3317
|
+
const b = {
|
|
3318
|
+
...m,
|
|
3319
|
+
replaceWith(e, t) {
|
|
3320
|
+
m.replaceWith(e, t), y = e;
|
|
3321
|
+
}
|
|
3322
|
+
};
|
|
3323
|
+
for (let c = 0; c < e.length; c += 1) if (u[c] === a) {
|
|
3324
|
+
const a = t(e[c], r(y), !1);
|
|
3325
|
+
if ("function" == typeof a) {
|
|
3326
|
+
const t = await a.call(e[c], y, l, f, p, h, b);
|
|
3327
|
+
if (t === s) u[c] = y;
|
|
3328
|
+
else if (t === n) u[c] = n;
|
|
3329
|
+
else {
|
|
3330
|
+
if (t === i) return t;
|
|
3331
|
+
if (void 0 !== t) {
|
|
3332
|
+
if (!o) return t;
|
|
3333
|
+
y = t, d = !0;
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
return d ? y : void 0;
|
|
3339
|
+
},
|
|
3340
|
+
async leave(i, o, c, l, f, p) {
|
|
3341
|
+
let h = i;
|
|
3342
|
+
const m = {
|
|
3343
|
+
...p,
|
|
3344
|
+
replaceWith(e, t) {
|
|
3345
|
+
p.replaceWith(e, t), h = e;
|
|
3346
|
+
}
|
|
3347
|
+
};
|
|
3348
|
+
for (let i = 0; i < e.length; i += 1) if (u[i] === a) {
|
|
3349
|
+
const a = t(e[i], r(h), !0);
|
|
3350
|
+
if ("function" == typeof a) {
|
|
3351
|
+
const t = await a.call(e[i], h, o, c, l, f, m);
|
|
3352
|
+
if (t === n) u[i] = n;
|
|
3353
|
+
else if (void 0 !== t && t !== s) return t;
|
|
3354
|
+
}
|
|
3355
|
+
} else u[i] === h && (u[i] = a);
|
|
3356
|
+
}
|
|
3357
|
+
};
|
|
3358
|
+
};
|
|
3359
|
+
var No = (e, t, { keyMap: r = null, state: n = {}, breakSymbol: i = Po, deleteNodeSymbol: s = null, skipVisitingNodeSymbol: o = !1, visitFnGetter: a = ko, nodeTypeGetter: u = Mo, nodePredicate: c = Co, nodeCloneFn: l = Io, detectCycles: f = !0, detectCyclesCallback: p = null } = {}) => {
|
|
3360
|
+
const h = r || {};
|
|
3361
|
+
let m, y, d = Array.isArray(e), b = [e], v = -1, g = [], E = e;
|
|
3362
|
+
const _ = [], w = [];
|
|
3363
|
+
do {
|
|
3364
|
+
v += 1;
|
|
3365
|
+
const e = v === b.length;
|
|
3366
|
+
let r;
|
|
3367
|
+
const O = e && 0 !== g.length;
|
|
3368
|
+
if (e) {
|
|
3369
|
+
if (r = 0 === w.length ? void 0 : _.pop(), E = y, y = w.pop(), O) if (d) {
|
|
3370
|
+
E = E.slice();
|
|
3371
|
+
let e = 0;
|
|
3372
|
+
for (const [t, r] of g) {
|
|
3373
|
+
const n = t - e;
|
|
3374
|
+
r === s ? (E.splice(n, 1), e += 1) : E[n] = r;
|
|
3375
|
+
}
|
|
3376
|
+
} else {
|
|
3377
|
+
E = l(E);
|
|
3378
|
+
for (const [e, t] of g) E[e] = t;
|
|
3379
|
+
}
|
|
3380
|
+
v = m.index, b = m.keys, g = m.edits, d = m.inArray, m = m.prev;
|
|
3381
|
+
} else if (y !== s && void 0 !== y) {
|
|
3382
|
+
if (r = d ? v : b[v], E = y[r], E === s || void 0 === E) continue;
|
|
3383
|
+
_.push(r);
|
|
3384
|
+
}
|
|
3385
|
+
let S;
|
|
3386
|
+
if (!Array.isArray(E)) {
|
|
3387
|
+
var j;
|
|
3388
|
+
if (!c(E)) throw new Oo(`Invalid AST Node: ${String(E)}`, { node: E });
|
|
3389
|
+
if (f && w.includes(E)) {
|
|
3390
|
+
"function" == typeof p && p(E, r, y, _, w), _.pop();
|
|
3391
|
+
continue;
|
|
3392
|
+
}
|
|
3393
|
+
const s = a(t, u(E), e);
|
|
3394
|
+
if (s) {
|
|
3395
|
+
for (const [e, r] of Object.entries(n)) t[e] = r;
|
|
3396
|
+
S = s.call(t, E, r, y, _, w, { replaceWith(t, n) {
|
|
3397
|
+
"function" == typeof n ? n(t, E, r, y, _, w) : y && (y[r] = t), e || (E = t);
|
|
3398
|
+
} });
|
|
3399
|
+
}
|
|
3400
|
+
if ("function" == typeof (null === (j = S) || void 0 === j ? void 0 : j.then)) throw new Oo("Async visitor not supported in sync mode", {
|
|
3401
|
+
visitor: t,
|
|
3402
|
+
visitFn: s
|
|
3403
|
+
});
|
|
3404
|
+
if (S === i) break;
|
|
3405
|
+
if (S === o) {
|
|
3406
|
+
if (!e) {
|
|
3407
|
+
_.pop();
|
|
3408
|
+
continue;
|
|
3409
|
+
}
|
|
3410
|
+
} else if (void 0 !== S && (g.push([r, S]), !e)) {
|
|
3411
|
+
if (!c(S)) {
|
|
3412
|
+
_.pop();
|
|
3413
|
+
continue;
|
|
3414
|
+
}
|
|
3415
|
+
E = S;
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
var x;
|
|
3419
|
+
if (void 0 === S && O && g.push([r, E]), !e) m = {
|
|
3420
|
+
inArray: d,
|
|
3421
|
+
index: v,
|
|
3422
|
+
keys: b,
|
|
3423
|
+
edits: g,
|
|
3424
|
+
prev: m
|
|
3425
|
+
}, d = Array.isArray(E), b = d ? E : null !== (x = h[u(E)]) && void 0 !== x ? x : [], v = -1, g = [], y !== s && void 0 !== y && w.push(y), y = E;
|
|
3426
|
+
} while (void 0 !== m);
|
|
3427
|
+
return 0 !== g.length ? g[g.length - 1][1] : e;
|
|
3428
|
+
};
|
|
3429
|
+
No[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, { keyMap: r = null, state: n = {}, breakSymbol: i = Po, deleteNodeSymbol: s = null, skipVisitingNodeSymbol: o = !1, visitFnGetter: a = ko, nodeTypeGetter: u = Mo, nodePredicate: c = Co, nodeCloneFn: l = Io, detectCycles: f = !0, detectCyclesCallback: p = null } = {}) => {
|
|
3430
|
+
const h = r || {};
|
|
3431
|
+
let m, y, d = Array.isArray(e), b = [e], v = -1, g = [], E = e;
|
|
3432
|
+
const _ = [], w = [];
|
|
3433
|
+
do {
|
|
3434
|
+
v += 1;
|
|
3435
|
+
const e = v === b.length;
|
|
3436
|
+
let r;
|
|
3437
|
+
const x = e && 0 !== g.length;
|
|
3438
|
+
if (e) {
|
|
3439
|
+
if (r = 0 === w.length ? void 0 : _.pop(), E = y, y = w.pop(), x) if (d) {
|
|
3440
|
+
E = E.slice();
|
|
3441
|
+
let e = 0;
|
|
3442
|
+
for (const [t, r] of g) {
|
|
3443
|
+
const n = t - e;
|
|
3444
|
+
r === s ? (E.splice(n, 1), e += 1) : E[n] = r;
|
|
3445
|
+
}
|
|
3446
|
+
} else {
|
|
3447
|
+
E = l(E);
|
|
3448
|
+
for (const [e, t] of g) E[e] = t;
|
|
3449
|
+
}
|
|
3450
|
+
v = m.index, b = m.keys, g = m.edits, d = m.inArray, m = m.prev;
|
|
3451
|
+
} else if (y !== s && void 0 !== y) {
|
|
3452
|
+
if (r = d ? v : b[v], E = y[r], E === s || void 0 === E) continue;
|
|
3453
|
+
_.push(r);
|
|
3454
|
+
}
|
|
3455
|
+
let O;
|
|
3456
|
+
if (!Array.isArray(E)) {
|
|
3457
|
+
if (!c(E)) throw new Oo(`Invalid AST Node: ${String(E)}`, { node: E });
|
|
3458
|
+
if (f && w.includes(E)) {
|
|
3459
|
+
"function" == typeof p && p(E, r, y, _, w), _.pop();
|
|
3460
|
+
continue;
|
|
3461
|
+
}
|
|
3462
|
+
const s = a(t, u(E), e);
|
|
3463
|
+
if (s) {
|
|
3464
|
+
for (const [e, r] of Object.entries(n)) t[e] = r;
|
|
3465
|
+
O = await s.call(t, E, r, y, _, w, { replaceWith(t, n) {
|
|
3466
|
+
"function" == typeof n ? n(t, E, r, y, _, w) : y && (y[r] = t), e || (E = t);
|
|
3467
|
+
} });
|
|
3468
|
+
}
|
|
3469
|
+
if (O === i) break;
|
|
3470
|
+
if (O === o) {
|
|
3471
|
+
if (!e) {
|
|
3472
|
+
_.pop();
|
|
3473
|
+
continue;
|
|
3474
|
+
}
|
|
3475
|
+
} else if (void 0 !== O && (g.push([r, O]), !e)) {
|
|
3476
|
+
if (!c(O)) {
|
|
3477
|
+
_.pop();
|
|
3478
|
+
continue;
|
|
3479
|
+
}
|
|
3480
|
+
E = O;
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3483
|
+
var j;
|
|
3484
|
+
if (void 0 === O && x && g.push([r, E]), !e) m = {
|
|
3485
|
+
inArray: d,
|
|
3486
|
+
index: v,
|
|
3487
|
+
keys: b,
|
|
3488
|
+
edits: g,
|
|
3489
|
+
prev: m
|
|
3490
|
+
}, d = Array.isArray(E), b = d ? E : null !== (j = h[u(E)]) && void 0 !== j ? j : [], v = -1, g = [], y !== s && void 0 !== y && w.push(y), y = E;
|
|
3491
|
+
} while (void 0 !== m);
|
|
3492
|
+
return 0 !== g.length ? g[g.length - 1][1] : e;
|
|
3493
|
+
};
|
|
3494
|
+
var Ro = class extends Oo {
|
|
3495
|
+
value;
|
|
3496
|
+
constructor(e, t) {
|
|
3497
|
+
super(e, t), void 0 !== t && (this.value = t.value);
|
|
3498
|
+
}
|
|
3499
|
+
}, Uo = class extends Ro {}, Lo = class extends Ro {}, Do = (e, t) => {
|
|
3500
|
+
const r = De(e, t);
|
|
3501
|
+
return et(((e) => Ot(e) && Ke("$ref", e) && ut(gt, "$ref", e) ? it(Mt("#/", it(["$ref"], e)).split("/"), r) : Ot(e) ? Do(e, r) : e), e);
|
|
3502
|
+
}, Vo = (e, t) => (e.startPositionRow = t?.startPositionRow, e.startPositionColumn = t?.startPositionColumn, e.startIndex = t?.startIndex, e.endPositionRow = t?.endPositionRow, e.endPositionColumn = t?.endPositionColumn, e.endIndex = t?.endIndex, e), Fo = (e, t = {}) => {
|
|
3503
|
+
const { visited: r = /* @__PURE__ */ new WeakMap() } = t, n = {
|
|
3504
|
+
...t,
|
|
3505
|
+
visited: r
|
|
3506
|
+
};
|
|
3507
|
+
if (r.has(e)) return r.get(e);
|
|
3508
|
+
if (e instanceof Un.KeyValuePair) {
|
|
3509
|
+
const { key: t, value: i } = e, s = new Un.KeyValuePair(Wn(t) ? Fo(t, n) : t, Wn(i) ? Fo(i, n) : i);
|
|
3510
|
+
return r.set(e, s), s;
|
|
3511
|
+
}
|
|
3512
|
+
if (e instanceof Un.ObjectSlice) {
|
|
3513
|
+
const t = (e) => Fo(e, n), i = new Un.ObjectSlice([...e].map(t));
|
|
3514
|
+
return r.set(e, i), i;
|
|
3515
|
+
}
|
|
3516
|
+
if (e instanceof Un.ArraySlice) {
|
|
3517
|
+
const t = (e) => Fo(e, n), i = new Un.ArraySlice([...e].map(t));
|
|
3518
|
+
return r.set(e, i), i;
|
|
3519
|
+
}
|
|
3520
|
+
if (Wn(e)) {
|
|
3521
|
+
const t = qo(e);
|
|
3522
|
+
if (r.set(e, t), e.content) if (Wn(e.content)) t.content = Fo(e.content, n);
|
|
3523
|
+
else if (e.content instanceof Un.KeyValuePair) t.content = Fo(e.content, n);
|
|
3524
|
+
else if (Array.isArray(e.content)) {
|
|
3525
|
+
const r = (e) => Fo(e, n);
|
|
3526
|
+
t.content = e.content.map(r);
|
|
3527
|
+
} else t.content = e.content;
|
|
3528
|
+
else t.content = e.content;
|
|
3529
|
+
return t;
|
|
3530
|
+
}
|
|
3531
|
+
throw new Uo("Value provided to cloneDeep function couldn't be cloned", { value: e });
|
|
3532
|
+
};
|
|
3533
|
+
Fo.safe = (e) => {
|
|
3534
|
+
try {
|
|
3535
|
+
return Fo(e);
|
|
3536
|
+
} catch {
|
|
3537
|
+
return e;
|
|
3538
|
+
}
|
|
3539
|
+
};
|
|
3540
|
+
var Bo = (e) => {
|
|
3541
|
+
const { key: t, value: r } = e;
|
|
3542
|
+
return new Un.KeyValuePair(t, r);
|
|
3543
|
+
}, zo = (e) => {
|
|
3544
|
+
const t = new e.constructor();
|
|
3545
|
+
if (t.element = e.element, ai(e) && Vo(t, e), e.meta.length > 0 && (t._meta = Fo(e.meta)), e.attributes.length > 0 && (t._attributes = Fo(e.attributes)), Wn(e.content)) {
|
|
3546
|
+
const r = e.content;
|
|
3547
|
+
t.content = zo(r);
|
|
3548
|
+
} else Array.isArray(e.content) ? t.content = [...e.content] : e.content instanceof Un.KeyValuePair ? t.content = Bo(e.content) : t.content = e.content;
|
|
3549
|
+
return t;
|
|
3550
|
+
}, qo = (e) => {
|
|
3551
|
+
if (e instanceof Un.KeyValuePair) return Bo(e);
|
|
3552
|
+
if (e instanceof Un.ObjectSlice) return t = e, new Un.ObjectSlice([...t]);
|
|
3553
|
+
var t, r;
|
|
3554
|
+
if (e instanceof Un.ArraySlice) return r = e, new Un.ArraySlice([...r]);
|
|
3555
|
+
if (Wn(e)) return zo(e);
|
|
3556
|
+
throw new Lo("Value provided to cloneShallow function couldn't be cloned", { value: e });
|
|
3557
|
+
};
|
|
3558
|
+
qo.safe = (e) => {
|
|
3559
|
+
try {
|
|
3560
|
+
return qo(e);
|
|
3561
|
+
} catch {
|
|
3562
|
+
return e;
|
|
3563
|
+
}
|
|
3564
|
+
};
|
|
3565
|
+
var $o = (e) => Zn(e) ? "ObjectElement" : Qn(e) ? "ArrayElement" : ei(e) ? "MemberElement" : Jn(e) ? "StringElement" : Xn(e) ? "BooleanElement" : Hn(e) ? "NumberElement" : Yn(e) ? "NullElement" : ti(e) ? "LinkElement" : ri(e) ? "RefElement" : void 0, Go = (e) => Wn(e) ? qo(e) : Io(e), Ko = Le($o, gt), Wo = {
|
|
3566
|
+
ObjectElement: ["content"],
|
|
3567
|
+
ArrayElement: ["content"],
|
|
3568
|
+
MemberElement: ["key", "value"],
|
|
3569
|
+
StringElement: [],
|
|
3570
|
+
BooleanElement: [],
|
|
3571
|
+
NumberElement: [],
|
|
3572
|
+
NullElement: [],
|
|
3573
|
+
RefElement: [],
|
|
3574
|
+
LinkElement: [],
|
|
3575
|
+
Annotation: [],
|
|
3576
|
+
Comment: [],
|
|
3577
|
+
ParseResultElement: ["content"]
|
|
3578
|
+
}, Jo = class {
|
|
3579
|
+
result;
|
|
3580
|
+
predicate;
|
|
3581
|
+
returnOnTrue;
|
|
3582
|
+
returnOnFalse;
|
|
3583
|
+
constructor({ predicate: e = l, returnOnTrue: t, returnOnFalse: r } = {}) {
|
|
3584
|
+
this.result = [], this.predicate = e, this.returnOnTrue = t, this.returnOnFalse = r;
|
|
3585
|
+
}
|
|
3586
|
+
enter(e) {
|
|
3587
|
+
return this.predicate(e) ? (this.result.push(e), this.returnOnTrue) : this.returnOnFalse;
|
|
3588
|
+
}
|
|
3589
|
+
}, Ho = (e, t, { keyMap: r = Wo, ...n } = {}) => No(e, t, {
|
|
3590
|
+
keyMap: r,
|
|
3591
|
+
nodeTypeGetter: $o,
|
|
3592
|
+
nodePredicate: Ko,
|
|
3593
|
+
nodeCloneFn: Go,
|
|
3594
|
+
...n
|
|
3595
|
+
});
|
|
3596
|
+
Ho[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, { keyMap: r = Wo, ...n } = {}) => No[Symbol.for("nodejs.util.promisify.custom")](e, t, {
|
|
3597
|
+
keyMap: r,
|
|
3598
|
+
nodeTypeGetter: $o,
|
|
3599
|
+
nodePredicate: Ko,
|
|
3600
|
+
nodeCloneFn: Go,
|
|
3601
|
+
...n
|
|
3602
|
+
});
|
|
3603
|
+
var Yo = {
|
|
3604
|
+
toolboxCreator: pi,
|
|
3605
|
+
visitorOptions: {
|
|
3606
|
+
nodeTypeGetter: $o,
|
|
3607
|
+
exposeEdits: !0
|
|
3608
|
+
}
|
|
3609
|
+
}, Xo = (e, t, r = {}) => {
|
|
3610
|
+
if (0 === t.length) return e;
|
|
3611
|
+
const { toolboxCreator: n, visitorOptions: i } = nt(Yo, r), s = n(), o = t.map(((e) => e(s))), a = To(o.map(at({}, "visitor")), { ...i });
|
|
3612
|
+
o.forEach(Pt(["pre"], []));
|
|
3613
|
+
const u = Ho(e, a, i);
|
|
3614
|
+
return o.forEach(Pt(["post"], [])), u;
|
|
3615
|
+
};
|
|
3616
|
+
Xo[Symbol.for("nodejs.util.promisify.custom")] = async (e, t, r = {}) => {
|
|
3617
|
+
if (0 === t.length) return e;
|
|
3618
|
+
const { toolboxCreator: n, visitorOptions: i } = nt(Yo, r), s = n(), o = t.map(((e) => e(s))), a = To[Symbol.for("nodejs.util.promisify.custom")], u = Ho[Symbol.for("nodejs.util.promisify.custom")], c = a(o.map(at({}, "visitor")), { ...i });
|
|
3619
|
+
await Promise.allSettled(o.map(Pt(["pre"], [])));
|
|
3620
|
+
const l = await u(e, c, i);
|
|
3621
|
+
return await Promise.allSettled(o.map(Pt(["post"], []))), l;
|
|
3622
|
+
};
|
|
3623
|
+
var Qo = c(a(((e, t) => {
|
|
3624
|
+
var r = (() => {
|
|
3625
|
+
var e = Object.defineProperty, t = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, n = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable, o = (t, r, n) => r in t ? e(t, r, {
|
|
3626
|
+
enumerable: !0,
|
|
3627
|
+
configurable: !0,
|
|
3628
|
+
writable: !0,
|
|
3629
|
+
value: n
|
|
3630
|
+
}) : t[r] = n, a = (e, t) => {
|
|
3631
|
+
for (var r in t || (t = {})) i.call(t, r) && o(e, r, t[r]);
|
|
3632
|
+
if (n) for (var r of n(t)) s.call(t, r) && o(e, r, t[r]);
|
|
3633
|
+
return e;
|
|
3634
|
+
}, u = (e, t, r) => o(e, "symbol" != typeof t ? t + "" : t, r), c = {};
|
|
3635
|
+
((t, r) => {
|
|
3636
|
+
for (var n in r) e(t, n, {
|
|
3637
|
+
get: r[n],
|
|
3638
|
+
enumerable: !0
|
|
3639
|
+
});
|
|
3640
|
+
})(c, {
|
|
3641
|
+
DEFAULT_OPTIONS: () => f,
|
|
3642
|
+
DEFAULT_UUID_LENGTH: () => l,
|
|
3643
|
+
default: () => m
|
|
3644
|
+
});
|
|
3645
|
+
var l = 6, f = {
|
|
3646
|
+
dictionary: "alphanum",
|
|
3647
|
+
shuffle: !0,
|
|
3648
|
+
debug: !1,
|
|
3649
|
+
length: l,
|
|
3650
|
+
counter: 0
|
|
3651
|
+
}, p = class {
|
|
3652
|
+
constructor(e = {}) {
|
|
3653
|
+
u(this, "counter"), u(this, "debug"), u(this, "dict"), u(this, "version"), u(this, "dictIndex", 0), u(this, "dictRange", []), u(this, "lowerBound", 0), u(this, "upperBound", 0), u(this, "dictLength", 0), u(this, "uuidLength"), u(this, "_digit_first_ascii", 48), u(this, "_digit_last_ascii", 58), u(this, "_alpha_lower_first_ascii", 97), u(this, "_alpha_lower_last_ascii", 123), u(this, "_hex_last_ascii", 103), u(this, "_alpha_upper_first_ascii", 65), u(this, "_alpha_upper_last_ascii", 91), u(this, "_number_dict_ranges", { digits: [this._digit_first_ascii, this._digit_last_ascii] }), u(this, "_alpha_dict_ranges", {
|
|
3654
|
+
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
3655
|
+
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
3656
|
+
}), u(this, "_alpha_lower_dict_ranges", { lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii] }), u(this, "_alpha_upper_dict_ranges", { upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii] }), u(this, "_alphanum_dict_ranges", {
|
|
3657
|
+
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
3658
|
+
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii],
|
|
3659
|
+
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
3660
|
+
}), u(this, "_alphanum_lower_dict_ranges", {
|
|
3661
|
+
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
3662
|
+
lowerCase: [this._alpha_lower_first_ascii, this._alpha_lower_last_ascii]
|
|
3663
|
+
}), u(this, "_alphanum_upper_dict_ranges", {
|
|
3664
|
+
digits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
3665
|
+
upperCase: [this._alpha_upper_first_ascii, this._alpha_upper_last_ascii]
|
|
3666
|
+
}), u(this, "_hex_dict_ranges", {
|
|
3667
|
+
decDigits: [this._digit_first_ascii, this._digit_last_ascii],
|
|
3668
|
+
alphaDigits: [this._alpha_lower_first_ascii, this._hex_last_ascii]
|
|
3669
|
+
}), u(this, "_dict_ranges", {
|
|
3670
|
+
_number_dict_ranges: this._number_dict_ranges,
|
|
3671
|
+
_alpha_dict_ranges: this._alpha_dict_ranges,
|
|
3672
|
+
_alpha_lower_dict_ranges: this._alpha_lower_dict_ranges,
|
|
3673
|
+
_alpha_upper_dict_ranges: this._alpha_upper_dict_ranges,
|
|
3674
|
+
_alphanum_dict_ranges: this._alphanum_dict_ranges,
|
|
3675
|
+
_alphanum_lower_dict_ranges: this._alphanum_lower_dict_ranges,
|
|
3676
|
+
_alphanum_upper_dict_ranges: this._alphanum_upper_dict_ranges,
|
|
3677
|
+
_hex_dict_ranges: this._hex_dict_ranges
|
|
3678
|
+
}), u(this, "log", ((...e) => {
|
|
3679
|
+
const t = [...e];
|
|
3680
|
+
t[0] = "[short-unique-id] ".concat(e[0]), !0 !== this.debug || "undefined" == typeof console || null === console || console.log(...t);
|
|
3681
|
+
})), u(this, "_normalizeDictionary", ((e, t) => {
|
|
3682
|
+
let r;
|
|
3683
|
+
if (e && Array.isArray(e) && e.length > 1) r = e;
|
|
3684
|
+
else {
|
|
3685
|
+
r = [], this.dictIndex = 0;
|
|
3686
|
+
const t = "_".concat(e, "_dict_ranges"), n = this._dict_ranges[t];
|
|
3687
|
+
let i = 0;
|
|
3688
|
+
for (const [, e] of Object.entries(n)) {
|
|
3689
|
+
const [t, r] = e;
|
|
3690
|
+
i += Math.abs(r - t);
|
|
3691
|
+
}
|
|
3692
|
+
r = new Array(i);
|
|
3693
|
+
let s = 0;
|
|
3694
|
+
for (const [, e] of Object.entries(n)) {
|
|
3695
|
+
this.dictRange = e, this.lowerBound = this.dictRange[0], this.upperBound = this.dictRange[1];
|
|
3696
|
+
const t = this.lowerBound <= this.upperBound, n = this.lowerBound, i = this.upperBound;
|
|
3697
|
+
if (t) for (let e = n; e < i; e++) r[s++] = String.fromCharCode(e), this.dictIndex = e;
|
|
3698
|
+
else for (let e = n; e > i; e--) r[s++] = String.fromCharCode(e), this.dictIndex = e;
|
|
3699
|
+
}
|
|
3700
|
+
r.length = s;
|
|
3701
|
+
}
|
|
3702
|
+
if (t) for (let e = r.length - 1; e > 0; e--) {
|
|
3703
|
+
const t = Math.floor(Math.random() * (e + 1));
|
|
3704
|
+
[r[e], r[t]] = [r[t], r[e]];
|
|
3705
|
+
}
|
|
3706
|
+
return r;
|
|
3707
|
+
})), u(this, "setDictionary", ((e, t) => {
|
|
3708
|
+
this.dict = this._normalizeDictionary(e, t), this.dictLength = this.dict.length, this.setCounter(0);
|
|
3709
|
+
})), u(this, "seq", (() => this.sequentialUUID())), u(this, "sequentialUUID", (() => {
|
|
3710
|
+
const e = this.dictLength, t = this.dict;
|
|
3711
|
+
let r = this.counter;
|
|
3712
|
+
const n = [];
|
|
3713
|
+
do {
|
|
3714
|
+
const i = r % e;
|
|
3715
|
+
r = Math.trunc(r / e), n.push(t[i]);
|
|
3716
|
+
} while (0 !== r);
|
|
3717
|
+
const i = n.join("");
|
|
3718
|
+
return this.counter += 1, i;
|
|
3719
|
+
})), u(this, "rnd", ((e = this.uuidLength || l) => this.randomUUID(e))), u(this, "randomUUID", ((e = this.uuidLength || l) => {
|
|
3720
|
+
if (null == e || e < 1) throw new Error("Invalid UUID Length Provided");
|
|
3721
|
+
const t = new Array(e), r = this.dictLength, n = this.dict;
|
|
3722
|
+
for (let i = 0; i < e; i++) t[i] = n[Math.floor(Math.random() * r)];
|
|
3723
|
+
return t.join("");
|
|
3724
|
+
})), u(this, "fmt", ((e, t) => this.formattedUUID(e, t))), u(this, "formattedUUID", ((e, t) => {
|
|
3725
|
+
const r = {
|
|
3726
|
+
$r: this.randomUUID,
|
|
3727
|
+
$s: this.sequentialUUID,
|
|
3728
|
+
$t: this.stamp
|
|
3729
|
+
};
|
|
3730
|
+
return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g, ((e) => {
|
|
3731
|
+
const n = e.slice(0, 2), i = Number.parseInt(e.slice(2), 10);
|
|
3732
|
+
return "$s" === n ? r[n]().padStart(i, "0") : "$t" === n && t ? r[n](i, t) : r[n](i);
|
|
3733
|
+
}));
|
|
3734
|
+
})), u(this, "availableUUIDs", ((e = this.uuidLength) => Number.parseFloat(([...new Set(this.dict)].length ** e).toFixed(0)))), u(this, "_collisionCache", /* @__PURE__ */ new Map()), u(this, "approxMaxBeforeCollision", ((e = this.availableUUIDs(this.uuidLength)) => {
|
|
3735
|
+
const t = e, r = this._collisionCache.get(t);
|
|
3736
|
+
if (void 0 !== r) return r;
|
|
3737
|
+
const n = Number.parseFloat(Math.sqrt(Math.PI / 2 * e).toFixed(20));
|
|
3738
|
+
return this._collisionCache.set(t, n), n;
|
|
3739
|
+
})), u(this, "collisionProbability", ((e = this.availableUUIDs(this.uuidLength), t = this.uuidLength) => Number.parseFloat((this.approxMaxBeforeCollision(e) / this.availableUUIDs(t)).toFixed(20)))), u(this, "uniqueness", ((e = this.availableUUIDs(this.uuidLength)) => {
|
|
3740
|
+
const t = Number.parseFloat((1 - this.approxMaxBeforeCollision(e) / e).toFixed(20));
|
|
3741
|
+
return t > 1 ? 1 : t < 0 ? 0 : t;
|
|
3742
|
+
})), u(this, "getVersion", (() => this.version)), u(this, "stamp", ((e, t) => {
|
|
3743
|
+
const r = Math.floor(+(t || /* @__PURE__ */ new Date()) / 1e3).toString(16);
|
|
3744
|
+
if ("number" == typeof e && 0 === e) return r;
|
|
3745
|
+
if ("number" != typeof e || e < 10) throw new Error(["Param finalLength must be a number greater than or equal to 10,", "or 0 if you want the raw hexadecimal timestamp"].join("\n"));
|
|
3746
|
+
const n = e - 9, i = Math.round(Math.random() * (n > 15 ? 15 : n)), s = this.randomUUID(n);
|
|
3747
|
+
return "".concat(s.substring(0, i)).concat(r).concat(s.substring(i)).concat(i.toString(16));
|
|
3748
|
+
})), u(this, "parseStamp", ((e, t) => {
|
|
3749
|
+
if (t && !/t0|t[1-9]\d{1,}/.test(t)) throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");
|
|
3750
|
+
const r = t ? t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g, ((e) => {
|
|
3751
|
+
const t = {
|
|
3752
|
+
$r: (e) => [...Array(e)].map((() => "r")).join(""),
|
|
3753
|
+
$s: (e) => [...Array(e)].map((() => "s")).join(""),
|
|
3754
|
+
$t: (e) => [...Array(e)].map((() => "t")).join("")
|
|
3755
|
+
}, r = e.slice(0, 2), n = Number.parseInt(e.slice(2), 10);
|
|
3756
|
+
return t[r](n);
|
|
3757
|
+
})).replace(/^(.*?)(t{8,})(.*)$/g, ((t, r, n) => e.substring(r.length, r.length + n.length))) : e;
|
|
3758
|
+
if (8 === r.length) return /* @__PURE__ */ new Date(1e3 * Number.parseInt(r, 16));
|
|
3759
|
+
if (r.length < 10) throw new Error("Stamp length invalid");
|
|
3760
|
+
const n = Number.parseInt(r.substring(r.length - 1), 16);
|
|
3761
|
+
return /* @__PURE__ */ new Date(1e3 * Number.parseInt(r.substring(n, n + 8), 16));
|
|
3762
|
+
})), u(this, "setCounter", ((e) => {
|
|
3763
|
+
this.counter = e;
|
|
3764
|
+
})), u(this, "validate", ((e, t) => {
|
|
3765
|
+
const r = t ? this._normalizeDictionary(t) : this.dict;
|
|
3766
|
+
return e.split("").every(((e) => r.includes(e)));
|
|
3767
|
+
}));
|
|
3768
|
+
const t = a(a({}, f), e);
|
|
3769
|
+
this.counter = 0, this.debug = !1, this.dict = [], this.version = "5.3.2";
|
|
3770
|
+
const { dictionary: r, shuffle: n, length: i, counter: s } = t;
|
|
3771
|
+
this.uuidLength = i, this.setDictionary(r, n), this.setCounter(s), this.debug = t.debug, this.log(this.dict), this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength, " and counter set to ").concat(this.counter)), this.log = this.log.bind(this), this.setDictionary = this.setDictionary.bind(this), this.setCounter = this.setCounter.bind(this), this.seq = this.seq.bind(this), this.sequentialUUID = this.sequentialUUID.bind(this), this.rnd = this.rnd.bind(this), this.randomUUID = this.randomUUID.bind(this), this.fmt = this.fmt.bind(this), this.formattedUUID = this.formattedUUID.bind(this), this.availableUUIDs = this.availableUUIDs.bind(this), this.approxMaxBeforeCollision = this.approxMaxBeforeCollision.bind(this), this.collisionProbability = this.collisionProbability.bind(this), this.uniqueness = this.uniqueness.bind(this), this.getVersion = this.getVersion.bind(this), this.stamp = this.stamp.bind(this), this.parseStamp = this.parseStamp.bind(this);
|
|
3772
|
+
}
|
|
3773
|
+
};
|
|
3774
|
+
u(p, "default", p);
|
|
3775
|
+
var h, m = p;
|
|
3776
|
+
return h = c, ((n, s, o, a) => {
|
|
3777
|
+
if (s && "object" == typeof s || "function" == typeof s) for (let u of r(s)) i.call(n, u) || u === o || e(n, u, {
|
|
3778
|
+
get: () => s[u],
|
|
3779
|
+
enumerable: !(a = t(s, u)) || a.enumerable
|
|
3780
|
+
});
|
|
3781
|
+
return n;
|
|
3782
|
+
})(e({}, "__esModule", { value: !0 }), h);
|
|
3783
|
+
})();
|
|
3784
|
+
void 0 !== t && (t.exports = r.default), "undefined" != typeof window && (r = r.default);
|
|
3785
|
+
}))(), 1), ea = class extends Oo {
|
|
3786
|
+
value;
|
|
3787
|
+
constructor(e, t) {
|
|
3788
|
+
super(e, t), void 0 !== t && (this.value = t.value);
|
|
3789
|
+
}
|
|
3790
|
+
}, ta = class {
|
|
3791
|
+
uuid;
|
|
3792
|
+
identityMap;
|
|
3793
|
+
constructor({ length: e = 6 } = {}) {
|
|
3794
|
+
this.uuid = new Qo.default({ length: e }), this.identityMap = /* @__PURE__ */ new WeakMap();
|
|
3795
|
+
}
|
|
3796
|
+
identify(e) {
|
|
3797
|
+
if (!Wn(e)) throw new ea("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.", { value: e });
|
|
3798
|
+
if (e.meta.hasKey("id") && Jn(e.meta.get("id")) && !e.meta.get("id").equals("")) return e.id;
|
|
3799
|
+
if (this.identityMap.has(e)) return this.identityMap.get(e);
|
|
3800
|
+
const t = new Un.StringElement(this.generateId());
|
|
3801
|
+
return this.identityMap.set(e, t), t;
|
|
3802
|
+
}
|
|
3803
|
+
forget(e) {
|
|
3804
|
+
return !!this.identityMap.has(e) && (this.identityMap.delete(e), !0);
|
|
3805
|
+
}
|
|
3806
|
+
generateId() {
|
|
3807
|
+
return this.uuid.randomUUID();
|
|
3808
|
+
}
|
|
3809
|
+
}, ra = new ta(), na = (e) => (t, r = {}) => ((e, { Type: t, plugins: r = [] }) => {
|
|
3810
|
+
const n = new t(e);
|
|
3811
|
+
return Wn(e) && (e.meta.length > 0 && (n.meta = Fo(e.meta)), e.attributes.length > 0 && (n.attributes = Fo(e.attributes))), Xo(n, r, {
|
|
3812
|
+
toolboxCreator: pi,
|
|
3813
|
+
visitorOptions: { nodeTypeGetter: $o }
|
|
3814
|
+
});
|
|
3815
|
+
})(t, {
|
|
3816
|
+
...r,
|
|
3817
|
+
Type: e
|
|
3818
|
+
});
|
|
3819
|
+
Un.ObjectElement.refract = na(Un.ObjectElement), Un.ArrayElement.refract = na(Un.ArrayElement), Un.StringElement.refract = na(Un.StringElement), Un.BooleanElement.refract = na(Un.BooleanElement), Un.NullElement.refract = na(Un.NullElement), Un.NumberElement.refract = na(Un.NumberElement), Un.LinkElement.refract = na(Un.LinkElement), Un.RefElement.refract = na(Un.RefElement), Ln.refract = na(Ln), Dn.refract = na(Dn), Vn.refract = na(Vn);
|
|
3820
|
+
var ia = (e, t) => {
|
|
3821
|
+
const r = new Jo({ predicate: e });
|
|
3822
|
+
return Ho(t, r), new Un.ArraySlice(r.result);
|
|
3823
|
+
}, sa = (e, t) => {
|
|
3824
|
+
const r = new Jo({
|
|
3825
|
+
predicate: e,
|
|
3826
|
+
returnOnTrue: Po
|
|
3827
|
+
});
|
|
3828
|
+
return Ho(t, r), st(void 0, [0], r.result);
|
|
3829
|
+
}, oa = class {
|
|
3830
|
+
result;
|
|
3831
|
+
offset;
|
|
3832
|
+
includeRightBound;
|
|
3833
|
+
constructor({ offset: e = 0, includeRightBound: t = !1 } = {}) {
|
|
3834
|
+
this.result = [], this.offset = e, this.includeRightBound = t;
|
|
3835
|
+
}
|
|
3836
|
+
enter(e) {
|
|
3837
|
+
if (!ai(e)) return;
|
|
3838
|
+
const { startIndex: t, endIndex: r } = e;
|
|
3839
|
+
if (!(this.offset >= t && (this.offset < r || this.includeRightBound && this.offset <= r))) return !1;
|
|
3840
|
+
this.result.push(e);
|
|
3841
|
+
}
|
|
3842
|
+
}, aa = class extends Jo {
|
|
3843
|
+
callback;
|
|
3844
|
+
constructor({ callback: e = At, ...t } = {}) {
|
|
3845
|
+
super({ ...t }), this.callback = e;
|
|
3846
|
+
}
|
|
3847
|
+
enter(e) {
|
|
3848
|
+
return this.predicate(e) ? (this.callback(e), this.returnOnTrue) : this.returnOnFalse;
|
|
3849
|
+
}
|
|
3850
|
+
}, ua = class {
|
|
3851
|
+
parentEdges;
|
|
3852
|
+
parent;
|
|
3853
|
+
constructor() {
|
|
3854
|
+
this.parentEdges = /* @__PURE__ */ new WeakMap();
|
|
3855
|
+
}
|
|
3856
|
+
ObjectElement(e) {
|
|
3857
|
+
this.parentEdges.set(e, this.parent), this.parent = e;
|
|
3858
|
+
}
|
|
3859
|
+
ArrayElement(e) {
|
|
3860
|
+
this.parentEdges.set(e, this.parent), this.parent = e;
|
|
3861
|
+
}
|
|
3862
|
+
MemberElement(e) {
|
|
3863
|
+
this.parentEdges.set(e, this.parent), this.parent = e;
|
|
3864
|
+
}
|
|
3865
|
+
enter(e) {
|
|
3866
|
+
this.parentEdges.set(e, this.parent);
|
|
3867
|
+
}
|
|
3868
|
+
}, ca = (e, t = /* @__PURE__ */ new WeakMap()) => (ei(e) ? (t.set(e.key, e), ca(e.key, t), t.set(e.value, e), ca(e.value, t)) : e.children.forEach(((r) => {
|
|
3869
|
+
t.set(r, e), ca(r, t);
|
|
3870
|
+
})), t), la = class {
|
|
3871
|
+
element;
|
|
3872
|
+
edges;
|
|
3873
|
+
constructor({ element: e }) {
|
|
3874
|
+
this.element = e;
|
|
3875
|
+
}
|
|
3876
|
+
transclude(e, t) {
|
|
3877
|
+
if (e === this.element) return t;
|
|
3878
|
+
if (e === t) return this.element;
|
|
3879
|
+
this.edges = this.edges ?? ca(this.element);
|
|
3880
|
+
const r = this.edges.get(e);
|
|
3881
|
+
return ft(r) ? void 0 : (Zn(r) ? ((e, t, r) => {
|
|
3882
|
+
const n = r.get(e);
|
|
3883
|
+
Zn(n) && (n.content = n.map(((i, s, o) => o === e ? (r.delete(e), r.set(t, n), t) : o)));
|
|
3884
|
+
})(e, t, this.edges) : Qn(r) ? ((e, t, r) => {
|
|
3885
|
+
const n = r.get(e);
|
|
3886
|
+
Qn(n) && (n.content = n.map(((i) => i === e ? (r.delete(e), r.set(t, n), t) : i)));
|
|
3887
|
+
})(e, t, this.edges) : ei(r) && ((e, t, r) => {
|
|
3888
|
+
const n = r.get(e);
|
|
3889
|
+
ei(n) && (n.key === e && (n.key = t, r.delete(e), r.set(t, n)), n.value === e && (n.value = t, r.delete(e), r.set(t, n)));
|
|
3890
|
+
})(e, t, this.edges), this.element);
|
|
3891
|
+
}
|
|
3892
|
+
}, fa = la, pa = (e) => "string" == typeof e?.type ? e.type : $o(e), ha = {
|
|
3893
|
+
EphemeralObject: ["content"],
|
|
3894
|
+
EphemeralArray: ["content"],
|
|
3895
|
+
...Wo
|
|
3896
|
+
}, ma = (e, t, { keyMap: r = ha, ...n } = {}) => Ho(e, t, {
|
|
3897
|
+
keyMap: r,
|
|
3898
|
+
nodeTypeGetter: pa,
|
|
3899
|
+
nodePredicate: f,
|
|
3900
|
+
detectCycles: !1,
|
|
3901
|
+
deleteNodeSymbol: Symbol.for("delete-node"),
|
|
3902
|
+
skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"),
|
|
3903
|
+
...n
|
|
3904
|
+
});
|
|
3905
|
+
ma[Symbol.for("nodejs.util.promisify.custom")] = async (e, { keyMap: t = ha, ...r } = {}) => Ho[Symbol.for("nodejs.util.promisify.custom")](e, visitor, {
|
|
3906
|
+
keyMap: t,
|
|
3907
|
+
nodeTypeGetter: pa,
|
|
3908
|
+
nodePredicate: f,
|
|
3909
|
+
detectCycles: !1,
|
|
3910
|
+
deleteNodeSymbol: Symbol.for("delete-node"),
|
|
3911
|
+
skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"),
|
|
3912
|
+
...r
|
|
3913
|
+
});
|
|
3914
|
+
var ya = class {
|
|
3915
|
+
type = "EphemeralArray";
|
|
3916
|
+
content = [];
|
|
3917
|
+
reference = void 0;
|
|
3918
|
+
constructor(e) {
|
|
3919
|
+
this.content = e, this.reference = [];
|
|
3920
|
+
}
|
|
3921
|
+
toReference() {
|
|
3922
|
+
return this.reference;
|
|
3923
|
+
}
|
|
3924
|
+
toArray() {
|
|
3925
|
+
return this.reference.push(...this.content), this.reference;
|
|
3926
|
+
}
|
|
3927
|
+
}, da = class {
|
|
3928
|
+
type = "EphemeralObject";
|
|
3929
|
+
content = [];
|
|
3930
|
+
reference = void 0;
|
|
3931
|
+
constructor(e) {
|
|
3932
|
+
this.content = e, this.reference = {};
|
|
3933
|
+
}
|
|
3934
|
+
toReference() {
|
|
3935
|
+
return this.reference;
|
|
3936
|
+
}
|
|
3937
|
+
toObject() {
|
|
3938
|
+
return Object.assign(this.reference, Object.fromEntries(this.content));
|
|
3939
|
+
}
|
|
3940
|
+
}, ba = class {
|
|
3941
|
+
ObjectElement = { enter: (e) => {
|
|
3942
|
+
if (this.references.has(e)) return this.references.get(e).toReference();
|
|
3943
|
+
const t = new da(e.content);
|
|
3944
|
+
return this.references.set(e, t), t;
|
|
3945
|
+
} };
|
|
3946
|
+
EphemeralObject = { leave: (e) => e.toObject() };
|
|
3947
|
+
MemberElement = { enter: (e) => [e.key, e.value] };
|
|
3948
|
+
ArrayElement = { enter: (e) => {
|
|
3949
|
+
if (this.references.has(e)) return this.references.get(e).toReference();
|
|
3950
|
+
const t = new ya(e.content);
|
|
3951
|
+
return this.references.set(e, t), t;
|
|
3952
|
+
} };
|
|
3953
|
+
EphemeralArray = { leave: (e) => e.toArray() };
|
|
3954
|
+
references = /* @__PURE__ */ new WeakMap();
|
|
3955
|
+
BooleanElement(e) {
|
|
3956
|
+
return e.toValue();
|
|
3957
|
+
}
|
|
3958
|
+
NumberElement(e) {
|
|
3959
|
+
return e.toValue();
|
|
3960
|
+
}
|
|
3961
|
+
StringElement(e) {
|
|
3962
|
+
return e.toValue();
|
|
3963
|
+
}
|
|
3964
|
+
NullElement() {
|
|
3965
|
+
return null;
|
|
3966
|
+
}
|
|
3967
|
+
RefElement(e, ...t) {
|
|
3968
|
+
const r = t[3];
|
|
3969
|
+
return "EphemeralObject" === r[r.length - 1]?.type ? Symbol.for("delete-node") : String(e.toValue());
|
|
3970
|
+
}
|
|
3971
|
+
LinkElement(e) {
|
|
3972
|
+
return Jn(e.href) ? e.href.toValue() : "";
|
|
3973
|
+
}
|
|
3974
|
+
}, va = (e) => Wn(e) ? Jn(e) || Hn(e) || Xn(e) || Yn(e) ? e.toValue() : ma(e, new ba()) : e, ga = class e {
|
|
3975
|
+
static indentChar = " ";
|
|
3976
|
+
result;
|
|
3977
|
+
indent;
|
|
3978
|
+
constructor({ directive: e = !1, indent: t = 0 } = {}) {
|
|
3979
|
+
this.result = e ? "%YAML 1.2\n---\n" : "", this.indent = t;
|
|
3980
|
+
}
|
|
3981
|
+
NumberElement(e) {
|
|
3982
|
+
this.result += va(e);
|
|
3983
|
+
}
|
|
3984
|
+
BooleanElement(e) {
|
|
3985
|
+
const t = va(e);
|
|
3986
|
+
this.result += t ? "true" : "false";
|
|
3987
|
+
}
|
|
3988
|
+
StringElement(e) {
|
|
3989
|
+
this.result += JSON.stringify(va(e));
|
|
3990
|
+
}
|
|
3991
|
+
NullElement() {
|
|
3992
|
+
this.result += "null";
|
|
3993
|
+
}
|
|
3994
|
+
ArrayElement(t) {
|
|
3995
|
+
return 0 === t.length ? (this.result += "[]", !1) : (t.forEach(((t) => {
|
|
3996
|
+
const r = new e({ indent: this.indent + 1 }), n = e.indentChar.repeat(this.indent);
|
|
3997
|
+
Ho(t, r);
|
|
3998
|
+
const { result: i } = r;
|
|
3999
|
+
this.result += i.startsWith("\n") ? `\n${n}-${i}` : `\n${n}- ${i}`;
|
|
4000
|
+
})), !1);
|
|
4001
|
+
}
|
|
4002
|
+
ObjectElement(t) {
|
|
4003
|
+
return 0 === t.length ? (this.result += "{}", !1) : (t.forEach(((t, r) => {
|
|
4004
|
+
const n = new e({ indent: this.indent + 1 }), i = new e({ indent: this.indent + 1 }), s = e.indentChar.repeat(this.indent);
|
|
4005
|
+
Ho(r, n), Ho(t, i);
|
|
4006
|
+
const { result: o } = n, { result: a } = i;
|
|
4007
|
+
this.result += a.startsWith("\n") ? `\n${s}${o}:${a}` : `\n${s}${o}: ${a}`;
|
|
4008
|
+
})), !1);
|
|
4009
|
+
}
|
|
4010
|
+
}, Ea = (e, t = fi) => t.toRefract(e), _a = class {
|
|
4011
|
+
result = "";
|
|
4012
|
+
nestingLevel = 0;
|
|
4013
|
+
enter(e) {
|
|
4014
|
+
const { element: t } = e, r = t.charAt(0).toUpperCase() + t.slice(1), n = " ".repeat(this.nestingLevel);
|
|
4015
|
+
this.result += this.nestingLevel > 0 ? "\n" : "", this.result += `${n}(${r}Element`, this.nestingLevel += 1;
|
|
4016
|
+
}
|
|
4017
|
+
leave() {
|
|
4018
|
+
this.nestingLevel -= 1, this.result += ")";
|
|
4019
|
+
}
|
|
4020
|
+
}, wa = (e) => {
|
|
4021
|
+
const t = e.meta.length > 0 ? Fo(e.meta) : void 0, r = e.attributes.length > 0 ? Fo(e.attributes) : void 0;
|
|
4022
|
+
return new e.constructor(void 0, t, r);
|
|
4023
|
+
}, ja = (e, t) => t.clone && t.isMergeableElement(e) ? Oa(wa(e), e, t) : e, xa = {
|
|
4024
|
+
clone: !0,
|
|
4025
|
+
isMergeableElement: (e) => Zn(e) || Qn(e),
|
|
4026
|
+
arrayElementMerge: (e, t, r) => e.concat(t)["fantasy-land/map"](((e) => ja(e, r))),
|
|
4027
|
+
objectElementMerge: (e, t, r) => {
|
|
4028
|
+
const n = Zn(e) ? wa(e) : wa(t);
|
|
4029
|
+
return Zn(e) && e.forEach(((e, t, i) => {
|
|
4030
|
+
const s = qo(i);
|
|
4031
|
+
s.value = ja(e, r), n.content.push(s);
|
|
4032
|
+
})), t.forEach(((t, i, s) => {
|
|
4033
|
+
const o = va(i);
|
|
4034
|
+
let a;
|
|
4035
|
+
if (Zn(e) && e.hasKey(o) && r.isMergeableElement(t)) {
|
|
4036
|
+
const n = e.get(o);
|
|
4037
|
+
a = qo(s), a.value = ((e, t) => {
|
|
4038
|
+
if ("function" != typeof t.customMerge) return Oa;
|
|
4039
|
+
const r = t.customMerge(e, t);
|
|
4040
|
+
return "function" == typeof r ? r : Oa;
|
|
4041
|
+
})(i, r)(n, t, r);
|
|
4042
|
+
} else a = qo(s), a.value = ja(t, r);
|
|
4043
|
+
n.remove(o), n.content.push(a);
|
|
4044
|
+
})), n;
|
|
4045
|
+
},
|
|
4046
|
+
customMerge: void 0,
|
|
4047
|
+
customMetaMerge: void 0,
|
|
4048
|
+
customAttributesMerge: void 0
|
|
4049
|
+
}, Oa = (e, t, r) => {
|
|
4050
|
+
const n = {
|
|
4051
|
+
...xa,
|
|
4052
|
+
...r
|
|
4053
|
+
};
|
|
4054
|
+
n.isMergeableElement = n.isMergeableElement ?? xa.isMergeableElement, n.arrayElementMerge = n.arrayElementMerge ?? xa.arrayElementMerge, n.objectElementMerge = n.objectElementMerge ?? xa.objectElementMerge;
|
|
4055
|
+
const i = Qn(t);
|
|
4056
|
+
if (i !== Qn(e)) return ja(t, n);
|
|
4057
|
+
const s = i && "function" == typeof n.arrayElementMerge ? n.arrayElementMerge(e, t, n) : n.objectElementMerge(e, t, n);
|
|
4058
|
+
return s.meta = ((e) => "function" != typeof e.customMetaMerge ? (e) => Fo(e) : e.customMetaMerge)(n)(e.meta, t.meta), s.attributes = ((e) => "function" != typeof e.customAttributesMerge ? (e) => Fo(e) : e.customAttributesMerge)(n)(e.attributes, t.attributes), s;
|
|
4059
|
+
};
|
|
4060
|
+
Oa.all = (e, t) => {
|
|
4061
|
+
if (!Array.isArray(e)) throw new TypeError("First argument of deepmerge should be an array.");
|
|
4062
|
+
return 0 === e.length ? new Un.ObjectElement() : e.reduce(((e, r) => Oa(e, r, t)), wa(e[0]));
|
|
4063
|
+
};
|
|
4064
|
+
var Sa = (e, t, r) => Oa(e, t, {
|
|
4065
|
+
...xa,
|
|
4066
|
+
...r,
|
|
4067
|
+
customMerge: () => (e, t) => t,
|
|
4068
|
+
clone: !1
|
|
4069
|
+
});
|
|
4070
|
+
Sa.all = (e, t) => {
|
|
4071
|
+
if (!Array.isArray(e)) throw new TypeError("First argument of mergeRight should be an array.");
|
|
4072
|
+
return 0 === e.length ? new Un.ObjectElement() : e.reduce(((e, r) => Sa(e, r, t)), wa(e[0]));
|
|
4073
|
+
};
|
|
4074
|
+
var Aa = (...[e, t, r]) => Sa(t, e, r);
|
|
4075
|
+
Aa.all = (...[e, t]) => Sa.all([...e].reverse(), t), e.AnnotationElement = Ln, Object.defineProperty(e, "ArrayElement", {
|
|
4076
|
+
enumerable: !0,
|
|
4077
|
+
get: function() {
|
|
4078
|
+
return Un.ArrayElement;
|
|
4079
|
+
}
|
|
4080
|
+
}), Object.defineProperty(e, "ArraySlice", {
|
|
4081
|
+
enumerable: !0,
|
|
4082
|
+
get: function() {
|
|
4083
|
+
return Un.ArraySlice;
|
|
4084
|
+
}
|
|
4085
|
+
}), e.BREAK = Po, Object.defineProperty(e, "BooleanElement", {
|
|
4086
|
+
enumerable: !0,
|
|
4087
|
+
get: function() {
|
|
4088
|
+
return Un.BooleanElement;
|
|
4089
|
+
}
|
|
4090
|
+
}), e.CloneError = Ro, e.CommentElement = Dn, e.DeepCloneError = Uo, Object.defineProperty(e, "Element", {
|
|
4091
|
+
enumerable: !0,
|
|
4092
|
+
get: function() {
|
|
4093
|
+
return Un.Element;
|
|
4094
|
+
}
|
|
4095
|
+
}), e.ElementIdentityError = ea, e.IdentityManager = ta, Object.defineProperty(e, "KeyValuePair", {
|
|
4096
|
+
enumerable: !0,
|
|
4097
|
+
get: function() {
|
|
4098
|
+
return Un.KeyValuePair;
|
|
4099
|
+
}
|
|
4100
|
+
}), Object.defineProperty(e, "LinkElement", {
|
|
4101
|
+
enumerable: !0,
|
|
4102
|
+
get: function() {
|
|
4103
|
+
return Un.LinkElement;
|
|
4104
|
+
}
|
|
4105
|
+
}), e.MediaTypes = class extends Array {
|
|
4106
|
+
unknownMediaType = "application/octet-stream";
|
|
4107
|
+
filterByFormat() {
|
|
4108
|
+
throw new Ao("filterByFormat method in MediaTypes class is not yet implemented.");
|
|
4109
|
+
}
|
|
4110
|
+
findBy() {
|
|
4111
|
+
throw new Ao("findBy method in MediaTypes class is not yet implemented.");
|
|
4112
|
+
}
|
|
4113
|
+
latest() {
|
|
4114
|
+
throw new Ao("latest method in MediaTypes class is not yet implemented.");
|
|
4115
|
+
}
|
|
4116
|
+
}, Object.defineProperty(e, "MemberElement", {
|
|
4117
|
+
enumerable: !0,
|
|
4118
|
+
get: function() {
|
|
4119
|
+
return Un.MemberElement;
|
|
4120
|
+
}
|
|
4121
|
+
}), e.Namespace = li, Object.defineProperty(e, "NullElement", {
|
|
4122
|
+
enumerable: !0,
|
|
4123
|
+
get: function() {
|
|
4124
|
+
return Un.NullElement;
|
|
4125
|
+
}
|
|
4126
|
+
}), Object.defineProperty(e, "NumberElement", {
|
|
4127
|
+
enumerable: !0,
|
|
4128
|
+
get: function() {
|
|
4129
|
+
return Un.NumberElement;
|
|
4130
|
+
}
|
|
4131
|
+
}), Object.defineProperty(e, "ObjectElement", {
|
|
4132
|
+
enumerable: !0,
|
|
4133
|
+
get: function() {
|
|
4134
|
+
return Un.ObjectElement;
|
|
4135
|
+
}
|
|
4136
|
+
}), Object.defineProperty(e, "ObjectSlice", {
|
|
4137
|
+
enumerable: !0,
|
|
4138
|
+
get: function() {
|
|
4139
|
+
return Un.ObjectSlice;
|
|
4140
|
+
}
|
|
4141
|
+
}), e.ParseResultElement = Vn, Object.defineProperty(e, "RefElement", {
|
|
4142
|
+
enumerable: !0,
|
|
4143
|
+
get: function() {
|
|
4144
|
+
return Un.RefElement;
|
|
4145
|
+
}
|
|
4146
|
+
}), e.ShallowCloneError = Lo, Object.defineProperty(e, "StringElement", {
|
|
4147
|
+
enumerable: !0,
|
|
4148
|
+
get: function() {
|
|
4149
|
+
return Un.StringElement;
|
|
4150
|
+
}
|
|
4151
|
+
}), e.Transcluder = fa, e.assignSourceMap = Vo, e.cloneDeep = Fo, e.cloneNode = Go, e.cloneShallow = qo, e.createNamespace = (e) => {
|
|
4152
|
+
const t = new li();
|
|
4153
|
+
return Ot(e) && t.use(e), t;
|
|
4154
|
+
}, e.createPredicate = Gn, e.deepmerge = Oa, e.defaultIdentityManager = ra, e.dehydrate = Ea, e.dereference = Do, e.dispatchRefractorPlugins = Xo, e.filter = ia, e.find = sa, e.findAtOffset = (e, t) => {
|
|
4155
|
+
let r, n;
|
|
4156
|
+
St(e) ? (r = e, n = !1) : (r = st(0, ["offset"], e), n = st(!1, ["includeRightBound"], e));
|
|
4157
|
+
const i = new oa({
|
|
4158
|
+
offset: r,
|
|
4159
|
+
includeRightBound: n
|
|
4160
|
+
});
|
|
4161
|
+
return Ho(t, i), Ve(i.result);
|
|
4162
|
+
}, e.from = (e, t = fi) => {
|
|
4163
|
+
if (gt(e)) try {
|
|
4164
|
+
return t.fromRefract(JSON.parse(e));
|
|
4165
|
+
} catch {}
|
|
4166
|
+
return Ot(e) && Ke("element", e) ? t.fromRefract(e) : t.toElement(e);
|
|
4167
|
+
}, e.getNodeType = $o, e.hasElementSourceMap = ai, e.includesClasses = ci, e.includesSymbols = ui, e.isAnnotationElement = ni, e.isArrayElement = Qn, e.isBooleanElement = Xn, e.isElement = Wn, e.isLinkElement = ti, e.isMemberElement = ei, e.isNullElement = Yn, e.isNumberElement = Hn, e.isObjectElement = Zn, e.isParseResultElement = si, e.isPrimitiveElement = oi, e.isRefElement = ri, e.isStringElement = Jn, e.keyMap = Wo, e.mergeAllVisitors = To, e.mergeLeft = Aa, e.mergeRight = Sa, e.namespace = fi, e.parents = (e) => {
|
|
4168
|
+
const t = new ua();
|
|
4169
|
+
return Ho(e, t), t.parentEdges;
|
|
4170
|
+
}, Object.defineProperty(e, "refract", {
|
|
4171
|
+
enumerable: !0,
|
|
4172
|
+
get: function() {
|
|
4173
|
+
return Un.refract;
|
|
4174
|
+
}
|
|
4175
|
+
}), e.refractorPluginElementIdentity = ({ length: e = 6 } = {}) => () => {
|
|
4176
|
+
let t;
|
|
4177
|
+
return {
|
|
4178
|
+
pre() {
|
|
4179
|
+
t = new ta({ length: e });
|
|
4180
|
+
},
|
|
4181
|
+
visitor: { enter(e) {
|
|
4182
|
+
e.id = t.identify(e);
|
|
4183
|
+
} },
|
|
4184
|
+
post() {
|
|
4185
|
+
t = null;
|
|
4186
|
+
}
|
|
4187
|
+
};
|
|
4188
|
+
}, e.refractorPluginSemanticElementIdentity = ({ length: e = 6 } = {}) => ({ predicates: t }) => {
|
|
4189
|
+
let r;
|
|
4190
|
+
return {
|
|
4191
|
+
pre() {
|
|
4192
|
+
r = new ta({ length: e });
|
|
4193
|
+
},
|
|
4194
|
+
visitor: { enter(e) {
|
|
4195
|
+
t.isPrimitiveElement(e) || (e.id = r.identify(e));
|
|
4196
|
+
} },
|
|
4197
|
+
post() {
|
|
4198
|
+
r = null;
|
|
4199
|
+
}
|
|
4200
|
+
};
|
|
4201
|
+
}, e.reject = (e, t) => ia(Ie(e), t), e.sexprs = (e) => {
|
|
4202
|
+
const t = new _a();
|
|
4203
|
+
return Ho(e, t), t.result;
|
|
4204
|
+
}, e.some = (e, t) => pt(sa(e, t)), e.toJSON = (e, t, r) => JSON.stringify(va(e), t, r), e.toString = (e, t = fi) => {
|
|
4205
|
+
const r = Ea(e, t);
|
|
4206
|
+
return JSON.stringify(r);
|
|
4207
|
+
}, e.toValue = va, e.toYAML = (e, { directive: t = !1 } = {}) => {
|
|
4208
|
+
const r = new ga({ directive: t });
|
|
4209
|
+
return Ho(e, r), r.result;
|
|
4210
|
+
}, e.transclude = (e, t, r) => new la({ element: r }).transclude(e, t), e.traverse = (e, t) => {
|
|
4211
|
+
let r, n;
|
|
4212
|
+
bt(e) ? (r = e, n = Wn) : (r = st(At, ["callback"], e), n = st(Wn, ["predicate"], e)), Ho(t, new aa({
|
|
4213
|
+
callback: r,
|
|
4214
|
+
predicate: n
|
|
4215
|
+
}));
|
|
4216
|
+
}, e.visit = Ho;
|
|
4217
|
+
}));
|