UNPKG

swagger-client

Version:

SwaggerJS - a collection of interfaces for OAI specs

2 lines 556 kB
/*! For license information please see swagger-client.browser.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={4744(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function n(e,t,r){return e.concat(t).map((function(e){return s(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var n={};return r.isMergeableObject(e)&&i(e).forEach((function(t){n[t]=s(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):n[i]=s(t[i],r))})),n}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||n,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=s;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):s(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},5580(e,t,r){var s=r(6110)(r(9325),"DataView");e.exports=s},1549(e,t,r){var s=r(2032),n=r(3862),i=r(6721),o=r(2749),a=r(5749);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},79(e,t,r){var s=r(3702),n=r(80),i=r(4739),o=r(8655),a=r(3556);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8223(e,t,r){var s=r(6110)(r(9325),"Map");e.exports=s},3661(e,t,r){var s=r(3040),n=r(7670),i=r(289),o=r(4509),a=r(2949);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2804(e,t,r){var s=r(6110)(r(9325),"Promise");e.exports=s},6545(e,t,r){var s=r(6110)(r(9325),"Set");e.exports=s},8859(e,t,r){var s=r(3661),n=r(1380),i=r(1459);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},7217(e,t,r){var s=r(79),n=r(1420),i=r(938),o=r(3605),a=r(9817),c=r(945);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1873(e,t,r){var s=r(9325).Symbol;e.exports=s},7828(e,t,r){var s=r(9325).Uint8Array;e.exports=s},8303(e,t,r){var s=r(6110)(r(9325),"WeakMap");e.exports=s},9770(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},695(e,t,r){var s=r(8096),n=r(2428),i=r(6449),o=r(3656),a=r(361),c=r(7167),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),d=r||u||p||h,m=d?s(e.length,String):[],f=m.length;for(var y in e)!t&&!l.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,f))||m.push(y);return m}},4528(e){e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},4248(e){e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},6025(e,t,r){var s=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},2199(e,t,r){var s=r(4528),n=r(6449);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},2552(e,t,r){var s=r(1873),n=r(659),i=r(9350),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7534(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},270(e,t,r){var s=r(7068),n=r(346);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},7068(e,t,r){var s=r(7217),n=r(5911),i=r(1986),o=r(689),a=r(5861),c=r(6449),l=r(3656),u=r(7167),p="[object Arguments]",h="[object Array]",d="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,v){var g=c(e),b=c(t),x=g?h:a(e),E=b?h:a(t),w=(x=x==p?d:x)==d,j=(E=E==p?d:E)==d,S=x==E;if(S&&l(e)){if(!l(t))return!1;g=!0,w=!1}if(S&&!w)return v||(v=new s),g||u(e)?n(e,t,r,f,y,v):i(e,t,x,r,f,y,v);if(!(1&r)){var O=w&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(O||P){var $=O?e.value():e,A=P?t.value():t;return v||(v=new s),y($,A,r,f,v)}}return!!S&&(v||(v=new s),o(e,t,r,f,y,v))}},5083(e,t,r){var s=r(1882),n=r(7296),i=r(3805),o=r(7473),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},4901(e,t,r){var s=r(2552),n=r(294),i=r(346),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},8984(e,t,r){var s=r(5527),n=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8096(e){e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},7301(e){e.exports=function(e){return function(t){return e(t)}}},9219(e){e.exports=function(e,t){return e.has(t)}},5481(e,t,r){var s=r(9325)["__core-js_shared__"];e.exports=s},5911(e,t,r){var s=r(8859),n=r(4248),i=r(9219);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var m=-1,f=!0,y=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var v=e[m],g=t[m];if(o)var b=l?o(g,v,m,t,e,c):o(v,g,m,e,t,c);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(v===e||a(v,e,r,o,c)))return y.push(t)}))){f=!1;break}}else if(v!==g&&!a(v,g,r,o,c)){f=!1;break}}return c.delete(e),c.delete(t),f}},1986(e,t,r){var s=r(1873),n=r(7828),i=r(5288),o=r(5911),a=r(317),c=r(4247),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=a;case"[object Set]":var m=1&s;if(d||(d=c),e.size!=t.size&&!m)return!1;var f=h.get(e);if(f)return f==t;s|=2,h.set(e,t);var y=o(d(e),d(t),s,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689(e,t,r){var s=r(2),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:n.call(t,h)))return!1}var d=a.get(e),m=a.get(t);if(d&&m)return d==t&&m==e;var f=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var v=e[h=l[p]],g=t[h];if(i)var b=c?i(g,v,h,t,e,a):i(v,g,h,e,t,a);if(!(void 0===b?v===g||o(v,g,r,i,a):b)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(f=!1)}return a.delete(e),a.delete(t),f}},2459(e,t,r){var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2(e,t,r){var s=r(2199),n=r(4664),i=r(5950);e.exports=function(e){return s(e,i,n)}},2651(e,t,r){var s=r(4218);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110(e,t,r){var s=r(5083),n=r(392);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},659(e,t,r){var s=r(1873),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},4664(e,t,r){var s=r(9770),n=r(3345),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},5861(e,t,r){var s=r(5580),n=r(8223),i=r(2804),o=r(6545),a=r(8303),c=r(2552),l=r(7473),u="[object Map]",p="[object Promise]",h="[object Set]",d="[object WeakMap]",m="[object DataView]",f=l(s),y=l(n),v=l(i),g=l(o),b=l(a),x=c;(s&&x(new s(new ArrayBuffer(1)))!=m||n&&x(new n)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=d)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case f:return m;case y:return u;case v:return p;case g:return h;case b:return d}return t}),e.exports=x},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032(e,t,r){var s=r(5804);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},2749(e,t,r){var s=r(5804),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5749(e,t,r){var s=r(5804);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var s,n=r(5481),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var s=r(6025),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},4739(e,t,r){var s=r(6025);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var s=r(6025);e.exports=function(e){return s(this.__data__,e)>-1}},3556(e,t,r){var s=r(6025);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},3040(e,t,r){var s=r(1549),n=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},7670(e,t,r){var s=r(2651);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).get(e)}},4509(e,t,r){var s=r(2651);e.exports=function(e){return s(this,e).has(e)}},2949(e,t,r){var s=r(2651);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},317(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},5804(e,t,r){var s=r(6110)(Object,"create");e.exports=s},3650(e,t,r){var s=r(4335)(Object.keys,Object);e.exports=s},6009(e,t,r){e=r.nmd(e);var s=r(2459),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var s=r(2459),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1380(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459(e){e.exports=function(e){return this.__data__.has(e)}},4247(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},1420(e,t,r){var s=r(79);e.exports=function(){this.__data__=new s,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var s=r(79),n=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var s=r(7534),n=r(346),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var s=r(1882),n=r(294);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},3812(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3656(e,t,r){e=r.nmd(e);var s=r(9325),n=r(9935),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},2404(e,t,r){var s=r(270);e.exports=function(e,t){return s(e,t)}},1882(e,t,r){var s=r(2552),n=r(3805);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5187(e){e.exports=function(e){return null===e}},8023(e,t,r){var s=r(2552),n=r(346);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},5015(e,t,r){var s=r(2552),n=r(6449),i=r(346);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},7167(e,t,r){var s=r(4901),n=r(7301),i=r(6009),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},5950(e,t,r){var s=r(695),n=r(8984),i=r(4894);e.exports=function(e){return i(e)?s(e):n(e)}},6048(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},2340(e,t,r){const s=r(6048);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},5973(e){class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},3110(e,t,r){const s=r(5187),n=r(5015),i=r(8023),o=r(3812),a=r(3805),c=r(5105),l=r(6804);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(s,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},866(e,t,r){const s=r(6048),n=r(2340);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},6804(e,t,r){const s=r(316),n=r(1067),i=r(1167),o=r(239),a=r(2242),c=r(6233),l=r(7726),u=r(1045),p=r(6303),h=r(4540),d=r(2340),m=r(866),f=r(5973);function y(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=h,s.prototype.MemberElement=l,s.prototype.refract=y,d.prototype.refract=y,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:d,ObjectSlice:m,KeyValuePair:f}},6303(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},4540(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},4035(e,t,r){const s=r(3110),n=r(6804);t.g$=s,t.KeyValuePair=r(5973),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(5105),r(5147)},6233(e,t,r){const s=r(6048),n=r(316),i=r(2340);class o extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2242(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},316(e,t,r){const s=r(2404),n=r(5973),i=r(2340);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7726(e,t,r){const s=r(5973),n=r(316);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},1067(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},239(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1045(e,t,r){const s=r(6048),n=r(3805),i=r(6233),o=r(7726),a=r(866);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},1167(e,t,r){const s=r(316);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},5147(e,t,r){const s=r(5105);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},5105(e){e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},8068(e){"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,s)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[r]=s,a=(e,t)=>{for(var r in t||(t={}))n.call(t,r)&&o(e,r,t[r]);if(s)for(var r of s(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>o(e,"symbol"!=typeof t?t+"":t,r),l={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>m});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];t[0]="[short-unique-id] ".concat(e[0]),!0!==this.debug||"undefined"==typeof console||null===console||console.log(...t)})),c(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{r=[],this.dictIndex=0;const t="_".concat(e,"_dict_ranges"),s=this._dict_ranges[t];let n=0;for(const[,e]of Object.entries(s)){const[t,r]=e;n+=Math.abs(r-t)}r=new Array(n);let i=0;for(const[,e]of Object.entries(s)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const t=this.lowerBound<=this.upperBound,s=this.lowerBound,n=this.upperBound;if(t)for(let e=s;e<n;e++)r[i++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=s;e>n;e--)r[i++]=String.fromCharCode(e),this.dictIndex=e}r.length=i}if(t){for(let e=r.length-1;e>0;e--){const t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}}return r})),c(this,"setDictionary",((e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{const e=this.dictLength,t=this.dict;let r=this.counter;const s=[];do{const n=r%e;r=Math.trunc(r/e),s.push(t[n])}while(0!==r);const n=s.join("");return this.counter+=1,n})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{if(null==e||e<1)throw new Error("Invalid UUID Length Provided");const t=new Array(e),r=this.dictLength,s=this.dict;for(let n=0;n<e;n++){const e=Math.floor(Math.random()*r);t[n]=s[e]}return t.join("")})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const s=e.slice(0,2),n=Number.parseInt(e.slice(2),10);return"$s"===s?r[s]().padStart(n,"0"):"$t"===s&&t?r[s](n,t):r[s](n)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0)))),c(this,"_collisionCache",new Map),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>{const t=e,r=this._collisionCache.get(t);if(void 0!==r)return r;const s=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,s),s})),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const s=e-9,n=Math.round(Math.random()*(s>15?15:s)),i=this.randomUUID(s);return"".concat(i.substring(0,n)).concat(r).concat(i.substring(n)).concat(n.toString(16))})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),s=Number.parseInt(e.slice(2),10);return t[r](s)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,s)=>e.substring(r.length,r.length+s.length))):e;if(8===r.length)return new Date(1e3*Number.parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=Number.parseInt(r.substring(r.length-1),16);return new Date(1e3*Number.parseInt(r.substring(s,s+8),16))})),c(this,"setCounter",(e=>{this.counter=e})),c(this,"validate",((e,t)=>{const r=t?this._normalizeDictionary(t):this.dict;return e.split("").every((e=>r.includes(e)))}));const t=a(a({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.3.2";const{dictionary:r,shuffle:s,length:n,counter:i}=t;this.uuidLength=n,this.setDictionary(r,s),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".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)}};c(h,"default",h);var d,m=h;return d=l,((s,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))n.call(s,c)||c===o||e(s,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return s})(e({},"__esModule",{value:!0}),d)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},8675(e,t,r){e.exports=r(850)},8623(e,t,r){"use strict";var s=r(694);e.exports=s},7257(e,t,r){"use strict";r(6605),r(4502),r(6371),r(9363),r(7057);var s=r(2046);e.exports=s.AggregateError},850(e,t,r){"use strict";e.exports=r(6076)},6076(e,t,r){"use strict";r(1599);var s=r(8623);e.exports=s},2159(e,t,r){"use strict";var s=r(2250),n=r(4640),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},43(e,t,r){"use strict";var s=r(4018),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2156(e){"use strict";e.exports=function(){}},6624(e,t,r){"use strict";var s=r(6285),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},4436(e,t,r){"use strict";var s=r(7374),n=r(4849),i=r(575),o=function(e){return function(t,r,o){var a=s(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5807(e,t,r){"use strict";var s=r(1907),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},3948(e,t,r){"use strict";var s=r(2623),n=r(2250),i=r(5807),o=r(6264)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},9595(e,t,r){"use strict";var s=r(9724),n=r(1042),i=r(3846),o=r(4284);e.exports=function(e,t,r){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];s(e,p)||r&&s(r,p)||c(e,p,l(t,p))}}},7382(e,t,r){"use strict";var s=r(8828);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9550(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},1626(e,t,r){"use strict";var s=r(9447),n=r(4284),i=r(5817);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5817(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8055(e,t,r){"use strict";var s=r(1626);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},2532(e,t,r){"use strict";var s=r(5951),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},9447(e,t,r){"use strict";var s=r(8828);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552(e,t,r){"use strict";var s=r(5951),n=r(6285),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9287(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},376(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6794(e,t,r){"use strict";var s=r(5951).navigator,n=s&&s.u