!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("libName",[],t):"object"==typeof exports?exports.libName=t():e.libName=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=15)}([function(module,exports,__webpack_require__){(function(global,process){module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(1)),o=r(8),i=r(2),s=r(17);t.validatorSymbol=Symbol("validators"),t.Predicate=class{constructor(e,t={}){this.type=e,this.options=t,this.context={validators:[]},this.context=Object.assign({},this.context,this.options);const r=this.type[0].toLowerCase()+this.type.slice(1);this.addValidator({message:(e,t)=>`Expected ${t&&t.substring(this.type.length+1)||"argument"} to be of type \`${this.type}\` but received type \`${a.default(e)}\``,validator:e=>a.default[r](e)})}[i.testSymbol](e,t,r){for(const{validator:n,message:a}of this.context.validators){if(!0===this.options.optional&&void 0===e)continue;const i=n(e);if(!0===i)continue;let s=r;throw"function"==typeof r&&(s=r()),s=s?`${this.type} \`${s}\``:this.type,new o.ArgumentError(a(e,s,i),t)}}get[t.validatorSymbol](){return this.context.validators}get not(){return s.not(this)}is(e){return this.addValidator({message:(e,t,r)=>r?`(${t}) ${r}`:`Expected ${t} \`${e}\` to pass custom validation function`,validator:e})}addValidator(e){return this.context.validators.push(e),this}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="undefined"==typeof URL?r(16).URL:URL,a=Object.prototype.toString,o=e=>t=>typeof t===e,i=e=>!l.nullOrUndefined(e)&&!l.nullOrUndefined(e.constructor)&&l.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e),s=e=>a.call(e).slice(8,-1)||null,c=e=>t=>s(t)===e;function l(e){switch(e){case null:return"null";case!0:case!1:return"boolean"}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol"}if(l.function_(e))return"Function";if(l.observable(e))return"Observable";if(Array.isArray(e))return"Array";if(i(e))return"Buffer";const t=s(e);if(t)return t;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}!function(e){const t=e=>"object"==typeof e;e.undefined=o("undefined"),e.string=o("string"),e.number=o("number"),e.function_=o("function"),e.null_=e=>null===e,e.class_=t=>e.function_(t)&&t.toString().startsWith("class "),e.boolean=e=>!0===e||!1===e,e.symbol=o("symbol"),e.numericString=t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)),e.array=Array.isArray,e.buffer=i,e.nullOrUndefined=t=>e.null_(t)||e.undefined(t),e.object=r=>!e.nullOrUndefined(r)&&(e.function_(r)||t(r)),e.iterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]),e.asyncIterable=t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]),e.generator=t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw),e.nativePromise=e=>c("Promise")(e),e.promise=r=>e.nativePromise(r)||(r=>!e.null_(r)&&t(r)&&e.function_(r.then)&&e.function_(r.catch))(r),e.generatorFunction=c("GeneratorFunction"),e.asyncFunction=c("AsyncFunction"),e.boundFunction=t=>e.function_(t)&&!t.hasOwnProperty("prototype"),e.regExp=c("RegExp"),e.date=c("Date"),e.error=c("Error"),e.map=e=>c("Map")(e),e.set=e=>c("Set")(e),e.weakMap=e=>c("WeakMap")(e),e.weakSet=e=>c("WeakSet")(e),e.int8Array=c("Int8Array"),e.uint8Array=c("Uint8Array"),e.uint8ClampedArray=c("Uint8ClampedArray"),e.int16Array=c("Int16Array"),e.uint16Array=c("Uint16Array"),e.int32Array=c("Int32Array"),e.uint32Array=c("Uint32Array"),e.float32Array=c("Float32Array"),e.float64Array=c("Float64Array"),e.arrayBuffer=c("ArrayBuffer"),e.sharedArrayBuffer=c("SharedArrayBuffer"),e.dataView=c("DataView"),e.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype,e.urlInstance=e=>c("URL")(e),e.urlString=t=>{if(!e.string(t))return!1;try{return new n(t),!0}catch(e){return!1}},e.truthy=e=>Boolean(e),e.falsy=e=>!e,e.nan=e=>Number.isNaN(e);const r=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=t=>e.null_(t)||r.has(typeof t),e.integer=e=>Number.isInteger(e),e.safeInteger=e=>Number.isSafeInteger(e),e.plainObject=e=>{let t;return"Object"===s(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))};const a=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=e=>{const t=s(e);return null!==t&&a.has(t)},e.arrayLike=t=>!e.nullOrUndefined(t)&&!e.function_(t)&&(t=>e.safeInteger(t)&&t>-1)(t.length),e.inRange=(t,r)=>{if(e.number(r))return t>=Math.min(0,r)&&t<=Math.max(r,0);if(e.array(r)&&2===r.length)return t>=Math.min(...r)&&t<=Math.max(...r);throw new TypeError("Invalid range: "+JSON.stringify(r))};const l=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=t=>e.object(t)&&1===t.nodeType&&e.string(t.nodeName)&&!e.plainObject(t)&&l.every(e=>e in t),e.observable=e=>!!(e&&(e[Symbol.observable]&&e===e[Symbol.observable]()||e["@@observable"]&&e===e["@@observable"]())),e.nodeStream=r=>!e.nullOrUndefined(r)&&t(r)&&e.function_(r.pipe)&&!e.observable(r),e.infinite=e=>e===1/0||e===-1/0;const u=t=>r=>e.integer(r)&&Math.abs(r%2)===t;e.even=u(0),e.odd=u(1),e.emptyArray=t=>e.array(t)&&0===t.length,e.nonEmptyArray=t=>e.array(t)&&t.length>0,e.emptyString=t=>e.string(t)&&0===t.length,e.nonEmptyString=t=>e.string(t)&&t.length>0,e.emptyStringOrWhitespace=t=>e.emptyString(t)||(t=>e.string(t)&&!1===/\S/.test(t))(t),e.emptyObject=t=>e.object(t)&&!e.map(t)&&!e.set(t)&&0===Object.keys(t).length,e.nonEmptyObject=t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0,e.emptySet=t=>e.set(t)&&0===t.size,e.nonEmptySet=t=>e.set(t)&&t.size>0,e.emptyMap=t=>e.map(t)&&0===t.size,e.nonEmptyMap=t=>e.map(t)&&t.size>0;const d=(t,r,n)=>{if(!1===e.function_(r))throw new TypeError("Invalid predicate: "+JSON.stringify(r));if(0===n.length)throw new TypeError("Invalid number of values");return t.call(n,r)};e.any=(e,...t)=>d(Array.prototype.some,e,t),e.all=(e,...t)=>d(Array.prototype.every,e,t)}(l||(l={})),Object.defineProperties(l,{class:{value:l.class_},function:{value:l.function_},null:{value:l.null_}}),t.default=l,e.exports=l,e.exports.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testSymbol=Symbol("test"),t.isPredicate=e=>Boolean(e&&e[t.testSymbol])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,r=5)=>{const n=[];for(const a of t)if(!e.has(a)&&(n.push(a),n.length===r))return n;return 0===n.length||n}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(10)),o=r(11),i=r(0);t.Predicate=i.Predicate;const s=r(2),c=n(r(18)),l=n(r(6)),u=n(r(9)),d=(e,t,r)=>{if(!s.isPredicate(t)&&"string"!=typeof t)throw new TypeError(`Expected second argument to be a predicate or a string, got \`${typeof t}\``);if(s.isPredicate(t)){const r=a.default();u.default(e,()=>o.inferLabel(r),t)}else u.default(e,t,r)};Object.defineProperties(d,{isValid:{value:(e,t)=>{try{return d(e,t),!0}catch(e){return!1}}},create:{value:(e,t)=>r=>{if(s.isPredicate(e)){const t=a.default();u.default(r,()=>o.inferLabel(t),e)}else u.default(r,e,t)}}}),t.default=l.default(c.default(d));var f=r(6);t.StringPredicate=f.StringPredicate,t.NumberPredicate=f.NumberPredicate,t.BooleanPredicate=f.BooleanPredicate,t.ArrayPredicate=f.ArrayPredicate,t.ObjectPredicate=f.ObjectPredicate,t.DatePredicate=f.DatePredicate,t.ErrorPredicate=f.ErrorPredicate,t.MapPredicate=f.MapPredicate,t.WeakMapPredicate=f.WeakMapPredicate,t.SetPredicate=f.SetPredicate,t.WeakSetPredicate=f.WeakSetPredicate,t.AnyPredicate=f.AnyPredicate},function(e,t,r){(function(e){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",p="[object RegExp]",h="[object Set]",g="[object String]",y="[object ArrayBuffer]",m="[object DataView]",v=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[a]=_[o]=_[y]=_[i]=_[m]=_[s]=_[c]=_[l]=_[u]=_[d]=_[f]=_[p]=_[h]=_[g]=_["[object WeakMap]"]=!1;var O="object"==typeof global&&global&&global.Object===Object&&global,j="object"==typeof self&&self&&self.Object===Object&&self,$=O||j||Function("return this")(),x=t&&!t.nodeType&&t,w=x&&"object"==typeof e&&e&&!e.nodeType&&e,P=w&&w.exports===x,E=P&&O.process,S=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),A=S&&S.isTypedArray;function V(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function k(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function N(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var M,z,T,I=Array.prototype,C=Function.prototype,L=Object.prototype,D=$["__core-js_shared__"],U=C.toString,R=L.hasOwnProperty,q=(M=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",F=L.toString,B=RegExp("^"+U.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=P?$.Buffer:void 0,W=$.Symbol,H=$.Uint8Array,Q=L.propertyIsEnumerable,K=I.splice,G=W?W.toStringTag:void 0,Z=Object.getOwnPropertySymbols,X=J?J.isBuffer:void 0,Y=(z=Object.keys,T=Object,function(e){return z(T(e))}),ee=we($,"DataView"),te=we($,"Map"),re=we($,"Promise"),ne=we($,"Set"),ae=we($,"WeakMap"),oe=we(Object,"create"),ie=Ae(ee),se=Ae(te),ce=Ae(re),le=Ae(ne),ue=Ae(ae),de=W?W.prototype:void 0,fe=de?de.valueOf:void 0;function pe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function he(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ye(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ge;++t<r;)this.add(e[t])}function me(e){var t=this.__data__=new he(e);this.size=t.size}function ve(e,t){for(var r=e.length;r--;)if(Ve(e[r][0],t))return r;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?function(e){var t=R.call(e,G),r=e[G];try{e[G]=void 0;var n=!0}catch(e){}var a=F.call(e);return n&&(t?e[G]=r:delete e[G]),a}(e):function(e){return F.call(e)}(e)}function _e(e){return Ce(e)&&be(e)==a}function Oe(e,t,r,n,l){return e===t||(null==e||null==t||!Ce(e)&&!Ce(t)?e!=e&&t!=t:function(e,t,r,n,l,v){var b=Ne(e),_=Ne(t),O=b?o:Ee(e),j=_?o:Ee(t),$=(O=O==a?f:O)==f,x=(j=j==a?f:j)==f,w=O==j;if(w&&Me(e)){if(!Me(t))return!1;b=!0,$=!1}if(w&&!$)return v||(v=new me),b||Le(e)?je(e,t,r,n,l,v):function(e,t,r,n,a,o,l){switch(r){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!o(new H(e),new H(t)));case i:case s:case d:return Ve(+e,+t);case c:return e.name==t.name&&e.message==t.message;case p:case g:return e==t+"";case u:var f=k;case h:var v=1&n;if(f||(f=N),e.size!=t.size&&!v)return!1;var b=l.get(e);if(b)return b==t;n|=2,l.set(e,t);var _=je(f(e),f(t),n,a,o,l);return l.delete(e),_;case"[object Symbol]":if(fe)return fe.call(e)==fe.call(t)}return!1}(e,t,O,r,n,l,v);if(!(1&r)){var P=$&&R.call(e,"__wrapped__"),E=x&&R.call(t,"__wrapped__");if(P||E){var S=P?e.value():e,A=E?t.value():t;return v||(v=new me),l(S,A,r,n,v)}}return!!w&&(v||(v=new me),function(e,t,r,n,a,o){var i=1&r,s=$e(e),c=s.length;if(c!=$e(t).length&&!i)return!1;for(var l=c;l--;){var u=s[l];if(!(i?u in t:R.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=i;++l<c;){var h=e[u=s[l]],g=t[u];if(n)var y=i?n(g,h,u,t,e,o):n(h,g,u,e,t,o);if(!(void 0===y?h===g||a(h,g,r,n,o):y)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var m=e.constructor,v=t.constructor;m!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,n,l,v))}(e,t,r,n,Oe,l))}function je(e,t,r,n,a,o){var i=1&r,s=e.length,c=t.length;if(s!=c&&!(i&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,f=2&r?new ye:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var p=e[u],h=t[u];if(n)var g=i?n(h,p,u,t,e,o):n(p,h,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!V(t,(function(e,t){if(i=t,!f.has(i)&&(p===e||a(p,e,r,n,o)))return f.push(t);var i}))){d=!1;break}}else if(p!==h&&!a(p,h,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function $e(e){return function(e,t,r){var n=t(e);return Ne(e)?n:function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}(n,r(e))}(e,De,Pe)}function xe(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function we(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||(t=e,q&&q in t))&&(ze(e)?B:v).test(Ae(e));var t}(r)?r:void 0}pe.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(oe){var n=t[e];return n===r?void 0:n}return R.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:R.call(t,e)},pe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=oe&&void 0===t?r:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,r=ve(t,e);return!(r<0||(r==t.length-1?t.pop():K.call(t,r,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,r=ve(t,e);return r<0?void 0:t[r][1]},he.prototype.has=function(e){return ve(this.__data__,e)>-1},he.prototype.set=function(e,t){var r=this.__data__,n=ve(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=xe(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return xe(this,e).get(e)},ge.prototype.has=function(e){return xe(this,e).has(e)},ge.prototype.set=function(e,t){var r=xe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,r),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new he,this.size=0},me.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var r=this.__data__;if(r instanceof he){var n=r.__data__;if(!te||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ge(n)}return r.set(e,t),this.size=r.size,this};var Pe=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i)&&(o[a++]=i)}return o}(Z(e),(function(t){return Q.call(e,t)})))}:function(){return[]},Ee=be;function Se(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||b.test(e))&&e>-1&&e%1==0&&e<t}function Ae(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(ee&&Ee(new ee(new ArrayBuffer(1)))!=m||te&&Ee(new te)!=u||re&&"[object Promise]"!=Ee(re.resolve())||ne&&Ee(new ne)!=h||ae&&"[object WeakMap]"!=Ee(new ae))&&(Ee=function(e){var t=be(e),r=t==f?e.constructor:void 0,n=r?Ae(r):"";if(n)switch(n){case ie:return m;case se:return u;case ce:return"[object Promise]";case le:return h;case ue:return"[object WeakMap]"}return t});var ke=_e(function(){return arguments}())?_e:function(e){return Ce(e)&&R.call(e,"callee")&&!Q.call(e,"callee")},Ne=Array.isArray,Me=X||function(){return!1};function ze(e){if(!Ie(e))return!1;var t=be(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ce(e){return null!=e&&"object"==typeof e}var Le=A?function(e){return function(t){return e(t)}}(A):function(e){return Ce(e)&&Te(e.length)&&!!_[be(e)]};function De(e){return null!=(t=e)&&Te(t.length)&&!ze(t)?function(e,t){var r=Ne(e),n=!r&&ke(e),a=!r&&!n&&Me(e),o=!r&&!n&&!a&&Le(e),i=r||n||a||o,s=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var l in e)!t&&!R.call(e,l)||i&&("length"==l||a&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Se(l,c))||s.push(l);return s}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||L))return Y(e);var t,r,n=[];for(var a in Object(e))R.call(e,a)&&"constructor"!=a&&n.push(a);return n}(e);var t}e.exports=function(e,t){return Oe(e,t)}}).call(this,r(24)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(19);t.StringPredicate=n.StringPredicate;const a=r(21);t.NumberPredicate=a.NumberPredicate;const o=r(22);t.BooleanPredicate=o.BooleanPredicate;const i=r(0),s=r(23);t.ArrayPredicate=s.ArrayPredicate;const c=r(25);t.ObjectPredicate=c.ObjectPredicate;const l=r(30);t.DatePredicate=l.DatePredicate;const u=r(31);t.ErrorPredicate=u.ErrorPredicate;const d=r(32);t.MapPredicate=d.MapPredicate;const f=r(33);t.WeakMapPredicate=f.WeakMapPredicate;const p=r(34);t.SetPredicate=p.SetPredicate;const h=r(35);t.WeakSetPredicate=h.WeakSetPredicate;const g=r(36);t.AnyPredicate=g.AnyPredicate,t.default=(e,t)=>(Object.defineProperties(e,{string:{get:()=>new n.StringPredicate(t)},number:{get:()=>new a.NumberPredicate(t)},boolean:{get:()=>new o.BooleanPredicate(t)},undefined:{get:()=>new i.Predicate("undefined",t)},null:{get:()=>new i.Predicate("null",t)},nullOrUndefined:{get:()=>new i.Predicate("nullOrUndefined",t)},nan:{get:()=>new i.Predicate("nan",t)},symbol:{get:()=>new i.Predicate("symbol",t)},array:{get:()=>new s.ArrayPredicate(t)},object:{get:()=>new c.ObjectPredicate(t)},date:{get:()=>new l.DatePredicate(t)},error:{get:()=>new u.ErrorPredicate(t)},map:{get:()=>new d.MapPredicate(t)},weakMap:{get:()=>new f.WeakMapPredicate(t)},set:{get:()=>new p.SetPredicate(t)},weakSet:{get:()=>new h.WeakSetPredicate(t)},function:{get:()=>new i.Predicate("Function",t)},buffer:{get:()=>new i.Predicate("Buffer",t)},regExp:{get:()=>new i.Predicate("RegExp",t)},promise:{get:()=>new i.Predicate("Promise",t)},typedArray:{get:()=>new i.Predicate("TypedArray",t)},int8Array:{get:()=>new i.Predicate("Int8Array",t)},uint8Array:{get:()=>new i.Predicate("Uint8Array",t)},uint8ClampedArray:{get:()=>new i.Predicate("Uint8ClampedArray",t)},int16Array:{get:()=>new i.Predicate("Int16Array",t)},uint16Array:{get:()=>new i.Predicate("Uint16Array",t)},int32Array:{get:()=>new i.Predicate("Int32Array",t)},uint32Array:{get:()=>new i.Predicate("Uint32Array",t)},float32Array:{get:()=>new i.Predicate("Float32Array",t)},float64Array:{get:()=>new i.Predicate("Float64Array",t)},arrayBuffer:{get:()=>new i.Predicate("ArrayBuffer",t)},dataView:{get:()=>new i.Predicate("DataView",t)},iterable:{get:()=>new i.Predicate("Iterable",t)},any:{value:(...e)=>new g.AnyPredicate(e,t)}}),e)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(4));t.default=(e,t)=>{try{for(const r of e)a.default(r,t);return!0}catch(e){return e.message}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentError=class extends Error{constructor(e,t){super(e),Error.captureStackTrace(this,t),this.name="ArgumentError"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2);t.default=function e(t,r,a){a[n.testSymbol](t,e,r)}},function(e,t,r){"use strict";const n=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=(e,t)=>t;const t=(new Error).stack.slice(1);return Error.prepareStackTrace=e,t};e.exports=n,e.exports.default=n},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(12)),o=n(r(14)),i=n(r(15)),s=/^.*?\((.*?)[,)]/;t.inferLabel=e=>{if(!i.default)return;const t=a.default(),r=e[1],n=r.getFileName(),c=r.getLineNumber(),l=r.getColumnNumber();if(!n||null===c||null===l)return;let u=[];try{u=t.readFileSync(n,"utf8").split("\n")}catch(e){return}let d=u[c-1];if(!d)return;d=d.slice(l-1);const f=s.exec(d);if(!f||!f[1])return;const p=f[1];return o.default(p)||o.default(p.split(".").pop())?p:void 0}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(13));t.default=()=>a.default("fs")},function(module,exports,__webpack_require__){"use strict";let customRequire;Object.defineProperty(exports,"__esModule",{value:!0});try{customRequire="function"===global.__non_webpack_require__?global.__non_webpack_require__:eval("require")}catch(e){customRequire=()=>{}}exports.default=customRequire},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=/^[a-z$_][a-z$_0-9]*$/i,a=new Set(["undefined","null","true","false","super","this","Infinity","NaN"]);t.default=e=>e&&!a.has(e)&&n.test(e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=Boolean(void 0!==process&&process.versions&&process.versions.node)},function(e,t){e.exports=__webpack_require__(8)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);t.not=e=>{const t=e.addValidator;return e.addValidator=r=>{const a=r.validator,o=r.message;return r.message=(e,t)=>"[NOT] "+o(e,t),r.validator=e=>!a(e),e[n.validatorSymbol].push(r),e.addValidator=t,e},e}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(6));t.default=e=>(Object.defineProperties(e,{optional:{get:()=>a.default({},{optional:!0})}}),e)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(20)),o=r(0);t.StringPredicate=class extends o.Predicate{constructor(e){super("string",e)}length(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have length \`${e}\`, got \`${t}\``,validator:t=>t.length===e})}minLength(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a minimum length of \`${e}\`, got \`${t}\``,validator:t=>t.length>=e})}maxLength(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a maximum length of \`${e}\`, got \`${t}\``,validator:t=>t.length<=e})}matches(e){return this.addValidator({message:(t,r)=>`Expected ${r} to match \`${e}\`, got \`${t}\``,validator:t=>e.test(t)})}startsWith(e){return this.addValidator({message:(t,r)=>`Expected ${r} to start with \`${e}\`, got \`${t}\``,validator:t=>t.startsWith(e)})}endsWith(e){return this.addValidator({message:(t,r)=>`Expected ${r} to end with \`${e}\`, got \`${t}\``,validator:t=>t.endsWith(e)})}includes(e){return this.addValidator({message:(t,r)=>`Expected ${r} to include \`${e}\`, got \`${t}\``,validator:t=>t.includes(e)})}oneOf(e){return this.addValidator({message:(t,r)=>{let n=JSON.stringify(e);if(e.length>10){const t=e.length-10;n=JSON.stringify(e.slice(0,10)).replace(/]$/,`,…+${t} more]`)}return`Expected ${r} to be one of \`${n}\`, got \`${t}\``},validator:t=>e.includes(t)})}get empty(){return this.addValidator({message:(e,t)=>`Expected ${t} to be empty, got \`${e}\``,validator:e=>""===e})}get nonEmpty(){return this.addValidator({message:(e,t)=>`Expected ${t} to not be empty`,validator:e=>""!==e})}equals(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be equal to \`${e}\`, got \`${t}\``,validator:t=>t===e})}get alphanumeric(){return this.addValidator({message:(e,t)=>`Expected ${t} to be alphanumeric, got \`${e}\``,validator:e=>/^[a-z\d]+$/i.test(e)})}get alphabetical(){return this.addValidator({message:(e,t)=>`Expected ${t} to be alphabetical, got \`${e}\``,validator:e=>/^[a-z]+$/gi.test(e)})}get numeric(){return this.addValidator({message:(e,t)=>`Expected ${t} to be numeric, got \`${e}\``,validator:e=>/^(\+|-)?\d+$/i.test(e)})}get date(){return this.addValidator({message:(e,t)=>`Expected ${t} to be a date, got \`${e}\``,validator:a.default})}get lowercase(){return this.addValidator({message:(e,t)=>`Expected ${t} to be lowercase, got \`${e}\``,validator:e=>""!==e.trim()&&e===e.toLowerCase()})}get uppercase(){return this.addValidator({message:(e,t)=>`Expected ${t} to be uppercase, got \`${e}\``,validator:e=>""!==e.trim()&&e===e.toUpperCase()})}}},function(e,t,r){"use strict";e.exports=function(e){return!isNaN(Date.parse(e))}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(1)),o=r(0);t.NumberPredicate=class extends o.Predicate{constructor(e){super("number",e)}inRange(e,t){return this.addValidator({message:(r,n)=>`Expected ${n} to be in range [${e}..${t}], got ${r}`,validator:r=>a.default.inRange(r,[e,t])})}greaterThan(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be greater than ${e}, got ${t}`,validator:t=>t>e})}greaterThanOrEqual(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be greater than or equal to ${e}, got ${t}`,validator:t=>t>=e})}lessThan(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be less than ${e}, got ${t}`,validator:t=>t<e})}lessThanOrEqual(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be less than or equal to ${e}, got ${t}`,validator:t=>t<=e})}equal(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be equal to ${e}, got ${t}`,validator:t=>t===e})}get integer(){return this.addValidator({message:(e,t)=>`Expected ${t} to be an integer, got ${e}`,validator:e=>a.default.integer(e)})}get finite(){return this.addValidator({message:(e,t)=>`Expected ${t} to be finite, got ${e}`,validator:e=>!a.default.infinite(e)})}get infinite(){return this.addValidator({message:(e,t)=>`Expected ${t} to be infinite, got ${e}`,validator:e=>a.default.infinite(e)})}get positive(){return this.addValidator({message:(e,t)=>`Expected ${t} to be positive, got ${e}`,validator:e=>e>0})}get negative(){return this.addValidator({message:(e,t)=>`Expected ${t} to be negative, got ${e}`,validator:e=>e<0})}get integerOrInfinite(){return this.addValidator({message:(e,t)=>`Expected ${t} to be an integer or infinite, got ${e}`,validator:e=>a.default.integer(e)||a.default.infinite(e)})}get uint8(){return this.integer.inRange(0,255)}get uint16(){return this.integer.inRange(0,65535)}get uint32(){return this.integer.inRange(0,4294967295)}get int8(){return this.integer.inRange(-128,127)}get int16(){return this.integer.inRange(-32768,32767)}get int32(){return this.integer.inRange(-2147483648,2147483647)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);t.BooleanPredicate=class extends n.Predicate{constructor(e){super("boolean",e)}get true(){return this.addValidator({message:(e,t)=>`Expected ${t} to be true, got ${e}`,validator:e=>!0===e})}get false(){return this.addValidator({message:(e,t)=>`Expected ${t} to be false, got ${e}`,validator:e=>!1===e})}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(5)),o=n(r(4)),i=r(0);t.ArrayPredicate=class extends i.Predicate{constructor(e){super("array",e)}length(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have length \`${e}\`, got \`${t.length}\``,validator:t=>t.length===e})}minLength(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a minimum length of \`${e}\`, got \`${t.length}\``,validator:t=>t.length>=e})}maxLength(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a maximum length of \`${e}\`, got \`${t.length}\``,validator:t=>t.length<=e})}startsWith(e){return this.addValidator({message:(t,r)=>`Expected ${r} to start with \`${e}\`, got \`${t[0]}\``,validator:t=>t[0]===e})}endsWith(e){return this.addValidator({message:(t,r)=>`Expected ${r} to end with \`${e}\`, got \`${t[t.length-1]}\``,validator:t=>t[t.length-1]===e})}includes(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to include all elements of \`${JSON.stringify(e)}\`, got \`${JSON.stringify(t)}\``,validator:t=>e.every(e=>-1!==t.indexOf(e))})}includesAny(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to include any element of \`${JSON.stringify(e)}\`, got \`${JSON.stringify(t)}\``,validator:t=>e.some(e=>-1!==t.indexOf(e))})}get empty(){return this.addValidator({message:(e,t)=>`Expected ${t} to be empty, got \`${JSON.stringify(e)}\``,validator:e=>0===e.length})}get nonEmpty(){return this.addValidator({message:(e,t)=>`Expected ${t} to not be empty`,validator:e=>e.length>0})}deepEqual(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(e)}\`, got \`${JSON.stringify(t)}\``,validator:t=>a.default(t,e)})}ofType(e){let t;return this.addValidator({message:(e,r)=>`(${r}) ${t}`,validator:r=>{try{for(const t of r)o.default(t,e);return!0}catch(e){return t=e.message,!1}}})}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(1)),o=n(r(26)),i=n(r(5)),s=r(0),c=n(r(3)),l=n(r(7)),u=n(r(28)),d=r(29);t.ObjectPredicate=class extends s.Predicate{constructor(e){super("object",e)}get plain(){return this.addValidator({message:(e,t)=>`Expected ${t} to be a plain object`,validator:e=>a.default.plainObject(e)})}get empty(){return this.addValidator({message:(e,t)=>`Expected ${t} to be empty, got \`${JSON.stringify(e)}\``,validator:e=>0===Object.keys(e).length})}get nonEmpty(){return this.addValidator({message:(e,t)=>`Expected ${t} to not be empty`,validator:e=>Object.keys(e).length>0})}valuesOfType(e){return this.addValidator({message:(e,t,r)=>`(${t}) ${r}`,validator:t=>{const r=Object.keys(t).map(e=>t[e]);return l.default(r,e)}})}deepValuesOfType(e){return this.addValidator({message:(e,t,r)=>`(${t}) ${r}`,validator:t=>u.default(t,e)})}deepEqual(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(e)}\`, got \`${JSON.stringify(t)}\``,validator:t=>i.default(t,e)})}instanceOf(e){return this.addValidator({message:(t,r)=>{let n=t.constructor.name;return n&&"Object"!==n||(n=JSON.stringify(t)),`Expected ${r} \`${n}\` to be of type \`${e.name}\``},validator:t=>t instanceof e})}hasKeys(...e){return this.addValidator({message:(e,t,r)=>`Expected ${t} to have keys \`${JSON.stringify(r)}\``,validator:t=>c.default({has:e=>o.default.has(t,e)},e)})}hasAnyKeys(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to have any key of \`${JSON.stringify(e)}\``,validator:t=>e.some(e=>o.default.has(t,e))})}partialShape(e){return this.addValidator({message:(e,t,r)=>`${r.replace("Expected","Expected property")} in ${t}`,validator:t=>d.partial(t,e)})}exactShape(e){return this.addValidator({message:(e,t,r)=>`${r.replace("Expected","Expected property")} in ${t}`,validator:t=>d.exact(t,e)})}}},function(e,t,r){"use strict";const n=r(27);function a(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r}e.exports={get(e,t,r){if(!n(e)||"string"!=typeof t)return void 0===r?e:r;const o=a(t);for(let t=0;t<o.length;t++){if(!Object.prototype.propertyIsEnumerable.call(e,o[t]))return r;if(null==(e=e[o[t]])){if(t!==o.length-1)return r;break}}return e},set(e,t,r){if(!n(e)||"string"!=typeof t)return e;const o=e,i=a(t);for(let t=0;t<i.length;t++){const a=i[t];n(e[a])||(e[a]={}),t===i.length-1&&(e[a]=r),e=e[a]}return o},delete(e,t){if(!n(e)||"string"!=typeof t)return;const r=a(t);for(let t=0;t<r.length;t++){const a=r[t];if(t===r.length-1)return void delete e[a];if(e=e[a],!n(e))return}},has(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=a(t);for(let t=0;t<r.length;t++){if(!n(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}}},function(e,t,r){"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(1)),o=n(r(4)),i=(e,t)=>a.default.plainObject(e)?Object.keys(e).every(r=>i(e[r],t)):(o.default(e,t),!0);t.default=(e,t)=>{try{return i(e,t)}catch(e){return e.message}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(1)),o=n(r(9)),i=r(2);t.partial=function e(t,r,n){try{for(const s of Object.keys(r)){const c=n?`${n}.${s}`:s;if(i.isPredicate(r[s]))o.default(t[s],c,r[s]);else if(a.default.plainObject(r[s])){const n=e(t[s],r[s],c);if(!0!==n)return n}}return!0}catch(e){return e.message}},t.exact=function e(t,r,n){try{const s=new Set(Object.keys(t));for(const c of Object.keys(r)){s.delete(c);const l=n?`${n}.${c}`:c;if(i.isPredicate(r[c]))o.default(t[c],l,r[c]);else if(a.default.plainObject(r[c])){const n=e(t[c],r[c],l);if(!0!==n)return n}}if(s.size>0){const e=Array.from(s.keys())[0];return`Did not expect property \`${n?`${n}.${e}`:e}\` to exist, got \`${t[e]}\``}return!0}catch(e){return e.message}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);t.DatePredicate=class extends n.Predicate{constructor(e){super("date",e)}before(e){return this.addValidator({message:(t,r)=>`Expected ${r} ${t.toISOString()} to be before ${e.toISOString()}`,validator:t=>t.getTime()<e.getTime()})}after(e){return this.addValidator({message:(t,r)=>`Expected ${r} ${t.toISOString()} to be after ${e.toISOString()}`,validator:t=>t.getTime()>e.getTime()})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0);t.ErrorPredicate=class extends n.Predicate{constructor(e){super("error",e)}name(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have name \`${e}\`, got \`${t.name}\``,validator:t=>t.name===e})}message(e){return this.addValidator({message:(t,r)=>`Expected ${r} message to be \`${e}\`, got \`${t.message}\``,validator:t=>t.message===e})}messageIncludes(e){return this.addValidator({message:(t,r)=>`Expected ${r} message to include \`${e}\`, got \`${t.message}\``,validator:t=>t.message.includes(e)})}hasKeys(...e){return this.addValidator({message:(t,r)=>`Expected ${r} message to have keys \`${e.join("`, `")}\``,validator:t=>e.every(e=>t.hasOwnProperty(e))})}instanceOf(e){return this.addValidator({message:(t,r)=>`Expected ${r} \`${t.name}\` to be of type \`${e.name}\``,validator:t=>t instanceof e})}get typeError(){return this.instanceOf(TypeError)}get evalError(){return this.instanceOf(EvalError)}get rangeError(){return this.instanceOf(RangeError)}get referenceError(){return this.instanceOf(ReferenceError)}get syntaxError(){return this.instanceOf(SyntaxError)}get uriError(){return this.instanceOf(URIError)}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(5)),o=r(0),i=n(r(3)),s=n(r(7));t.MapPredicate=class extends o.Predicate{constructor(e){super("Map",e)}size(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have size \`${e}\`, got \`${t.size}\``,validator:t=>t.size===e})}minSize(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a minimum size of \`${e}\`, got \`${t.size}\``,validator:t=>t.size>=e})}maxSize(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a maximum size of \`${e}\`, got \`${t.size}\``,validator:t=>t.size<=e})}hasKeys(...e){return this.addValidator({message:(e,t,r)=>`Expected ${t} to have keys \`${JSON.stringify(r)}\``,validator:t=>i.default(t,e)})}hasAnyKeys(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to have any key of \`${JSON.stringify(e)}\``,validator:t=>e.some(e=>t.has(e))})}hasValues(...e){return this.addValidator({message:(e,t,r)=>`Expected ${t} to have values \`${JSON.stringify(r)}\``,validator:t=>i.default(new Set(t.values()),e)})}hasAnyValues(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to have any value of \`${JSON.stringify(e)}\``,validator:t=>{const r=new Set(t.values());return e.some(e=>r.has(e))}})}keysOfType(e){return this.addValidator({message:(e,t,r)=>`(${t}) ${r}`,validator:t=>s.default(t.keys(),e)})}valuesOfType(e){return this.addValidator({message:(e,t,r)=>`(${t}) ${r}`,validator:t=>s.default(t.values(),e)})}get empty(){return this.addValidator({message:(e,t)=>`Expected ${t} to be empty, got \`${JSON.stringify(Array.from(e))}\``,validator:e=>0===e.size})}get nonEmpty(){return this.addValidator({message:(e,t)=>`Expected ${t} to not be empty`,validator:e=>e.size>0})}deepEqual(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(Array.from(e))}\`, got \`${JSON.stringify(Array.from(t))}\``,validator:t=>a.default(t,e)})}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=r(0),o=n(r(3));t.WeakMapPredicate=class extends a.Predicate{constructor(e){super("WeakMap",e)}hasKeys(...e){return this.addValidator({message:(e,t,r)=>`Expected ${t} to have keys \`${JSON.stringify(r)}\``,validator:t=>o.default(t,e)})}hasAnyKeys(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to have any key of \`${JSON.stringify(e)}\``,validator:t=>e.some(e=>t.has(e))})}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(r(5)),o=r(0),i=n(r(3)),s=n(r(7));t.SetPredicate=class extends o.Predicate{constructor(e){super("Set",e)}size(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have size \`${e}\`, got \`${t.size}\``,validator:t=>t.size===e})}minSize(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a minimum size of \`${e}\`, got \`${t.size}\``,validator:t=>t.size>=e})}maxSize(e){return this.addValidator({message:(t,r)=>`Expected ${r} to have a maximum size of \`${e}\`, got \`${t.size}\``,validator:t=>t.size<=e})}has(...e){return this.addValidator({message:(e,t,r)=>`Expected ${t} to have items \`${JSON.stringify(r)}\``,validator:t=>i.default(t,e)})}hasAny(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to have any item of \`${JSON.stringify(e)}\``,validator:t=>e.some(e=>t.has(e))})}ofType(e){return this.addValidator({message:(e,t,r)=>`(${t}) ${r}`,validator:t=>s.default(t,e)})}get empty(){return this.addValidator({message:(e,t)=>`Expected ${t} to be empty, got \`${JSON.stringify(Array.from(e))}\``,validator:e=>0===e.size})}get nonEmpty(){return this.addValidator({message:(e,t)=>`Expected ${t} to not be empty`,validator:e=>e.size>0})}deepEqual(e){return this.addValidator({message:(t,r)=>`Expected ${r} to be deeply equal to \`${JSON.stringify(Array.from(e))}\`, got \`${JSON.stringify(Array.from(t))}\``,validator:t=>a.default(t,e)})}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=r(0),o=n(r(3));t.WeakSetPredicate=class extends a.Predicate{constructor(e){super("WeakSet",e)}has(...e){return this.addValidator({message:(e,t,r)=>`Expected ${t} to have items \`${JSON.stringify(r)}\``,validator:t=>o.default(t,e)})}hasAny(...e){return this.addValidator({message:(t,r)=>`Expected ${r} to have any item of \`${JSON.stringify(e)}\``,validator:t=>e.some(e=>t.has(e))})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8),a=r(2);t.AnyPredicate=class{constructor(e,t={}){this.predicates=e,this.options=t}[a.testSymbol](e,t,r){const a=["Any predicate failed with the following errors:"];for(const n of this.predicates)try{return void t(e,r,n)}catch(t){if(void 0===e&&!0===this.options.optional)return;a.push("- "+t.message)}throw new n.ArgumentError(a.join("\n"),t)}}}]);const __export__=module.exports.default;module.exports=__export__,module.exports.default=__export__}).call(this,__webpack_require__(3),__webpack_require__(7))},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],s=Object.keys(i),c=0;c<s.length;++c){var l=s[c],u=i[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",i=0;i<n.length;++i){var s=n.charCodeAt(i);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?a+=n.charAt(i):s<128?a+=o[s]:s<2048?a+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?a+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(i)),a+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(a(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return a(t)&&!a(r)&&(s=i(t,o)),a(t)&&a(r)?(r.forEach((function(r,a){if(n.call(t,a)){var i=t[a];i&&"object"==typeof i&&r&&"object"==typeof r?t[a]=e(i,r,o):t.push(r)}else t[a]=r})),t):Object.keys(r).reduce((function(t,a){var i=r[a];return n.call(t,a)?t[a]=e(t[a],i,o):t[a]=i,t}),s)}}},function(e,t,r){"use strict";var n=String.prototype.replace,a=/%20/g,o=r(1),i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}}},i)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(5),a=r(6),o=r(2);e.exports={formats:o,parse:a,stringify:n}},function(e,t,r){"use strict";var n=r(1),a=r(2),o=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=a.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,a,o,i,c,u,d,p,h,g,y,m){var v,b=t;if("function"==typeof u?b=u(r,b):b instanceof Date?b=h(b):"comma"===a&&s(b)&&(b=n.maybeMap(b,(function(e){return e instanceof Date?h(e):e})).join(",")),null===b){if(o)return c&&!y?c(r,f.encoder,m,"key"):r;b=""}if("string"==typeof(v=b)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||n.isBuffer(b))return c?[g(y?r:c(r,f.encoder,m,"key"))+"="+g(c(b,f.encoder,m,"value"))]:[g(r)+"="+g(String(b))];var _,O=[];if(void 0===b)return O;if(s(u))_=u;else{var j=Object.keys(b);_=d?j.sort(d):j}for(var $=0;$<_.length;++$){var x=_[$],w=b[x];if(!i||null!==w){var P=s(b)?"function"==typeof a?a(r,x):r:r+(p?"."+x:"["+x+"]");l(O,e(w,P,a,o,i,c,u,d,p,h,g,y,m))}}return O};e.exports=function(e,t){var r,n=e,c=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a.default;if(void 0!==e.format){if(!o.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=a.formatters[r],i=f.filter;return("function"==typeof e.filter||s(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?n=(0,c.filter)("",n):s(c.filter)&&(r=c.filter);var u,d=[];if("object"!=typeof n||null===n)return"";u=t&&t.arrayFormat in i?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=i[u];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var g=0;g<r.length;++g){var y=r[g];c.skipNulls&&null===n[y]||l(d,p(n[y],y,h,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var m=d.join(c.delimiter),v=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""}},function(e,t,r){"use strict";var n=r(1),a=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),l=s?o.slice(0,s.index):o,u=[];if(l){if(!r.plainObjects&&a.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var d=0;r.depth>0&&null!==(s=i.exec(o))&&d<r.depth;){if(d+=1,!r.plainObjects&&a.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+o.slice(s.index)+"]"),function(e,t,r,n){for(var a=n?t:c(t,r),o=e.length-1;o>=0;--o){var i,s=e[o];if("[]"===s&&r.parseArrays)i=[].concat(a);else{i=r.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=a:i[l]=a:i={0:a}}a=i}return a}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),p=r,r=f.length);for(r=0;r<f.length;++r)if(r!==p){var g,y,m=f[r],v=m.indexOf("]="),b=-1===v?m.indexOf("="):v+1;-1===b?(g=t.decoder(m,i.decoder,h,"key"),y=t.strictNullHandling?null:""):(g=t.decoder(m.slice(0,b),i.decoder,h,"key"),y=n.maybeMap(c(m.slice(b+1),t),(function(e){return t.decoder(e,i.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),m.indexOf("[]=")>-1&&(y=o(y)?[y]:y),a.call(l,g)?l[g]=n.combine(l[g],y):l[g]=y}return l}(e,r):e,d=r.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],g=l(h,u[h],r,"string"==typeof e);d=n.merge(d,g,r)}return n.compact(d)}},function(e,t){var r,n,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(9),a=r(11);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){a.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(12);function b(e,t,r){if(e&&a.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var b=e=l.join(s);if(b=b.trim(),!r&&1===e.split("#").length){var _=c.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var O=i.exec(b);if(O){var j=(O=O[0]).toLowerCase();this.protocol=j,b=b.substr(O.length)}if(r||O||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var $="//"===b.substr(0,2);!$||O&&y[O]||(b=b.substr(2),this.slashes=!0)}if(!y[O]&&($||O&&!m[O])){for(var x,w,P=-1,E=0;E<f.length;E++){-1!==(S=b.indexOf(f[E]))&&(-1===P||S<P)&&(P=S)}-1!==(w=-1===P?b.lastIndexOf("@"):b.lastIndexOf("@",P))&&(x=b.slice(0,w),b=b.slice(w+1),this.auth=decodeURIComponent(x)),P=-1;for(E=0;E<d.length;E++){var S;-1!==(S=b.indexOf(d[E]))&&(-1===P||S<P)&&(P=S)}-1===P&&(P=b.length),this.host=b.slice(0,P),b=b.slice(P),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var V=this.hostname.split(/\./),k=(E=0,V.length);E<k;E++){var N=V[E];if(N&&!N.match(p)){for(var M="",z=0,T=N.length;z<T;z++)N.charCodeAt(z)>127?M+="x":M+=N[z];if(!M.match(p)){var I=V.slice(0,E),C=V.slice(E+1),L=N.match(h);L&&(I.push(L[1]),C.unshift(L[2])),C.length&&(b="/"+C.join(".")+b),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+D,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!g[j])for(E=0,k=u.length;E<k;E++){var R=u[E];if(-1!==b.indexOf(R)){var q=encodeURIComponent(R);q===R&&(q=escape(R)),b=b.split(R).join(q)}}var F=b.indexOf("#");-1!==F&&(this.hash=b.substr(F),b=b.slice(0,F));var B=b.indexOf("?");if(-1!==B?(this.search=b.substr(B),this.query=b.substr(B+1),t&&(this.query=v.parse(this.query)),b=b.slice(0,B)):t&&(this.search="",this.query={}),b&&(this.pathname=b),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var J=this.search||"";this.path=D+J}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(i=v.stringify(this.query));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(a.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),i=0;i<n.length;i++){var s=n[i];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(r[u]=e[u])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var g=r.pathname||"",v=r.search||"";r.path=g+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),O=_||b||r.host&&e.pathname,j=O,$=r.pathname&&r.pathname.split("/")||[],x=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(x&&(r.hostname="",r.port=null,r.host&&(""===$[0]?$[0]=r.host:$.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),O=O&&(""===h[0]||""===$[0])),_)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,$=h;else if(h.length)$||($=[]),$.pop(),$=$.concat(h),r.search=e.search,r.query=e.query;else if(!a.isNullOrUndefined(e.search)){if(x)r.hostname=r.host=$.shift(),(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift());return r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!$.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=$.slice(-1)[0],P=(r.host||e.host||$.length>1)&&("."===w||".."===w)||""===w,E=0,S=$.length;S>=0;S--)"."===(w=$[S])?$.splice(S,1):".."===w?($.splice(S,1),E++):E&&($.splice(S,1),E--);if(!O&&!j)for(;E--;E)$.unshift("..");!O||""===$[0]||$[0]&&"/"===$[0].charAt(0)||$.unshift(""),P&&"/"!==$.join("/").substr(-1)&&$.push("");var A,V=""===$[0]||$[0]&&"/"===$[0].charAt(0);x&&(r.hostname=r.host=V?"":$.length?$.shift():"",(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift()));return(O=O||r.host&&$.length)&&!V&&$.unshift(""),$.length?r.pathname=$.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n&&n;i.global!==i&&i.window!==i&&i.self;var s,c=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function g(e){throw new RangeError(f[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function m(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(d,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],a=0,o=e.length;a<o;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<o?56320==(64512&(r=e.charCodeAt(a++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),a--):n.push(t);return n}function b(e){return y(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=36)e=p(e/35);return p(n+36*e/(e+38))}function j(e){var t,r,n,a,o,i,s,l,u,d,f,h=[],y=e.length,m=0,v=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&g("not-basic"),h.push(e.charCodeAt(n));for(a=r>0?r+1:0;a<y;){for(o=m,i=1,s=36;a>=y&&g("invalid-input"),((l=(f=e.charCodeAt(a++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||l>p((c-m)/i))&&g("overflow"),m+=l*i,!(l<(u=s<=_?1:s>=_+26?26:s-_));s+=36)i>p(c/(d=36-u))&&g("overflow"),i*=d;_=O(m-o,t=h.length+1,0==o),p(m/t)>c-v&&g("overflow"),v+=p(m/t),m%=t,h.splice(m++,0,v)}return b(h)}function $(e){var t,r,n,a,o,i,s,l,u,d,f,y,m,b,j,$=[];for(y=(e=v(e)).length,t=128,r=0,o=72,i=0;i<y;++i)(f=e[i])<128&&$.push(h(f));for(n=a=$.length,a&&$.push("-");n<y;){for(s=c,i=0;i<y;++i)(f=e[i])>=t&&f<s&&(s=f);for(s-t>p((c-r)/(m=n+1))&&g("overflow"),r+=(s-t)*m,t=s,i=0;i<y;++i)if((f=e[i])<t&&++r>c&&g("overflow"),f==t){for(l=r,u=36;!(l<(d=u<=o?1:u>=o+26?26:u-o));u+=36)j=l-d,b=36-d,$.push(h(_(d+j%b,0))),l=p(j/b);$.push(h(_(l,0))),o=O(r,m,n==a),r=0,++n}++r,++t}return $.join("")}s={version:"1.4.1",ucs2:{decode:v,encode:b},decode:j,encode:$,toASCII:function(e){return m(e,(function(e){return u.test(e)?"xn--"+$(e):e}))},toUnicode:function(e){return m(e,(function(e){return l.test(e)?j(e.slice(4).toLowerCase()):e}))}},void 0===(a=function(){return s}.call(t,r,t,e))||(e.exports=a)}()}).call(this,r(10)(e),r(3))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(13),t.encode=t.stringify=r(14)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var d,f,p,h,g=e[u].replace(s,"%20"),y=g.indexOf(r);y>=0?(d=g.substr(0,y),f=g.substr(y+1)):(d=g,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),n(i,p)?a(i[p])?i[p].push(h):i[p]=[i[p],h]:i[p]=h}return i};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(i(e),(function(i){var s=encodeURIComponent(n(i))+r;return a(e[i])?o(e[i],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[i]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){"use strict";r.r(t);var n=e=>(({attrs:e})=>{const t=document.createElement("iframe");for(const[r,n]of Object.entries(e))t.setAttribute(r,n);return t})(e),a=r(4),o=r.n(a);var i=r(0),s=r.n(i);var c=class{constructor(e){this.addEventListener=this.addEventListener.bind(this),this.listener=this.listener.bind(this),this.listeners={},this.config=e,this.addEventListener()}bindEventListener(e,t){this.listeners[e]=t}listener(e){this.listeners[e.data]&&this.listeners[e.data](this.config)}addEventListener(){window.addEventListener?window.addEventListener("message",this.listener):window.attachEvent("onmessage",this.listener)}};!function(e,t){const r=({base_url:e="https://com.paycore.io/hpp",public_key:t,amount:r,currency:n,service:a=null,service_fields:i=null,cpi:s=null,description:c=null,expires:l=null,reference_id:u=null,metadata:d=null,language:f=null,customer:p=null,display:h=null,style:g=null,pay_button_label:y=null})=>{var m;return`${e}?${m={amount:r,currency:n,public_key:t,description:c,expires:l,reference_id:u,metadata:d,language:f,customer:p,display:h,style:g,pay_button_label:y,service:a,service_fields:i,cpi:s},o.a.stringify(m,{skipNulls:!0})}`},a=t=>{try{if(s()(t,s.a.object.exactShape({public_key:s.a.string,amount:s.a.number,currency:s.a.string,target:s.a.optional.string,selector_id:s.a.optional.string,frame_id:s.a.optional.string,base_url:s.a.optional.string,description:s.a.optional.string,reference_id:s.a.optional.string,service:s.a.optional.string,service_fields:s.a.optional.array,cpi:s.a.optional.string,expires:s.a.optional.any(s.a.string,s.a.number),language:s.a.optional.string,logo:s.a.optional.string,metadata:s.a.optional.any(s.a.object,s.a.array),handlers:s.a.optional.object,display:s.a.optional.object.exactShape({hide_footer:s.a.optional.boolean,hide_header:s.a.optional.boolean,hide_progress_bar:s.a.optional.boolean,hide_method_filter:s.a.optional.boolean,hide_lifetime_counter:s.a.optional.boolean}),style:s.a.optional.object.exactShape({theme:s.a.optional.string,font_family:s.a.optional.string,success_color:s.a.optional.string,warning_color:s.a.optional.string,danger_color:s.a.optional.string,info_color:s.a.optional.string,primary:s.a.optional.string,primary_variant:s.a.optional.string,primary_text_color:s.a.optional.string,primary_background_color:s.a.optional.string,on_primary_color:s.a.optional.string,secondary:s.a.optional.string,secondary_variant:s.a.optional.string,secondary_text_color:s.a.optional.string,secondary_background_color:s.a.optional.string,on_secondary_color:s.a.optional.string,pay_button_label:s.a.optional.string,show_method_logo:s.a.optional.boolean,primary:s.a.optional.string,primary_variant:s.a.optional.string,secondary:s.a.optional.string,secondary_variant:s.a.optional.string,background:s.a.optional.string,surface:s.a.optional.string,error:s.a.optional.string,on_primary:s.a.optional.string,on_secondary:s.a.optional.string,on_background:s.a.optional.string,on_surface:s.a.optional.string,on_error:s.a.optional.string}),customer:s.a.optional.object.exactShape({reference_id:s.a.string,email:s.a.optional.string,phone:s.a.optional.string,name:s.a.optional.string,metadata:s.a.optional.any(s.a.object,s.a.array)})})),"iframe"===t.target){t.selector_id||(t.selector_id="payment_widget"),t.frame_id||(t.frame_id="payment_frame");if(document.getElementById(t.frame_id))return void l(t);let e=r(t);const a=u({src:e,frame_id:t.frame_id});n=a,document.getElementById(t.selector_id).appendChild(n)}else{const n=r(t);e.open(n,"_blank")}}catch(e){throw e}var n},i=e=>{const t=document.getElementById(e.frame_id);t&&t.remove()},l=e=>{i(e),a(e)},u=e=>n({attrs:{id:e.frame_id,src:e.src||"",width:"100%",height:"100%",frameborder:"none"}});e.payment_widget=new function(){this.config={},this.init=e=>{if(this.config=e,a({target:"iframe",...e}),e.handlers)for(const[t,r]of Object.entries(e.handlers))this.bindEventListener(t,r)},this.reinit=()=>{l(this.config)},this.close=()=>{i(this.config)},this.bindEventListener=(e,t)=>{this.CommunicationService.bindEventListener(e,t)},this.CommunicationService=new c(this.config),this.bindEventListener("rendered",()=>{}),this.bindEventListener("return",this.close()),e.HPPConfig&&this.init(e.HPPConfig)}}(window)}])}));
//# sourceMappingURL=paymentWidget.umd.min.js.map