UNPKG

1.96 MBJavaScriptView Raw
1/*! For license information please see markdown-template.js.LICENSE.txt */
2!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("markdown-template",[],e):"object"==typeof exports?exports["markdown-template"]=e():t["markdown-template"]=e()}(self,(function(){return(()=>{var t={4640:t=>{self,t.exports=function(){var t={1696:function(t,e,r){"use strict";var n=r(4406),o=r(3716);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a,s,u=r(7515).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,d=r(4082),m=r(3335).inspect,y=r(3335).types,g=y.isPromise,v=y.isRegExp,b=Object.assign?Object.assign:r(4956).assign,w=Object.is?Object.is:r(4679);function A(){var t=r(6796);a=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var M=!1,E=t.exports=k,_={};function C(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function S(t,e,r,n){if(!r){var o=!1;if(0===e)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw i.generatedMessage=o,i}}function k(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[k,e.length].concat(e))}E.fail=function t(e,r,i,a,s){var u,c=arguments.length;if(0===c?u="Failed":1===c?(i=e,e=void 0):(!1===M&&(M=!0,(n.emitWarning?n.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(a="!=")),i instanceof Error)throw i;var l={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==i&&(l.message=i);var f=new d(l);throw u&&(f.message=u,f.generatedMessage=!0),f},E.AssertionError=d,E.ok=k,E.equal=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e!=r&&C({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},E.notEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e==r&&C({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},E.deepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)||C({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},E.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},E.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)||C({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},E.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},E.strictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)||C({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},E.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)&&C({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var x=function t(e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&v(e[t])&&e[t].test(n[t])?o[t]=n[t]:o[t]=e[t])}))};function O(t,e,r,n,o,i){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new x(t,o),u=new x(e,o,t),c=new d({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=t,c.expected=e,c.operator=i.name,c}C({actual:t,expected:e,message:n,operator:i.name,stackStartFn:i})}}function D(t,e,r,n){if("function"!=typeof e){if(v(e))return e.test(t);if(2===arguments.length)throw new l("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var o=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var s=Object.keys(e);if(e instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",e,"may not be an empty object");return void 0===a&&A(),s.forEach((function(o){"string"==typeof t[o]&&v(e[o])&&e[o].test(t[o])||O(t,e,o,r,s,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function F(t){if("function"!=typeof t)throw new l("fn","Function",t);try{t()}catch(t){return t}return _}function T(t){return g(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!T(e=t()))throw new h("instance of Promise","promiseFn",e)}else{if(!T(t))throw new l("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return _})).catch((function(t){return t}))}))}function P(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(e===_){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";C({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:t})}if(r&&!D(e,r,n,t))throw e}function R(t,e,r,n){if(e!==_){if("string"==typeof r&&(n=r,r=void 0),!r||D(e,r)){var o=n?": ".concat(n):".",i="doesNotReject"===t.name?"rejection":"exception";C({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function B(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[B,e.length].concat(e))}E.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];P.apply(void 0,[t,F(e)].concat(n))},E.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return P.apply(void 0,[t,e].concat(n))}))},E.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];R.apply(void 0,[t,F(e)].concat(n))},E.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return R.apply(void 0,[t,e].concat(n))}))},E.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=m(e);var n=new d({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},E.strict=b(B,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},4082:function(t,e,r){"use strict";var n=r(4406);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},s(t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return c=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},c.apply(null,arguments)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var p=r(3335).inspect,d=r(7515).codes.ERR_INVALID_ARG_TYPE;function m(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var y="",g="",v="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function M(t){return p(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==h(t)||null===t)throw new d("options","Object",t);var o=t.message,s=t.operator,u=t.stackStartFn,c=t.actual,l=t.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=i(this,f(e).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",g="",b="",v=""):(y="",g="",b="",v="")),"object"===h(c)&&null!==c&&"object"===h(l)&&null!==l&&"stack"in c&&c instanceof Error&&"stack"in l&&l instanceof Error&&(c=A(c),l=A(l)),"deepStrictEqual"===s||"strictEqual"===s)r=i(this,f(e).call(this,function(t,e,r){var o="",i="",a=0,s="",u=!1,c=M(t),l=c.split("\n"),f=M(e).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var A=l[0].length+f[0].length;if(A<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&A<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var E=l[l.length-1],_=f[f.length-1];E===_&&(p++<2?s="\n ".concat(E).concat(s):o=E,l.pop(),f.pop(),0!==l.length&&0!==f.length);)E=l[l.length-1],_=f[f.length-1];var C=Math.max(l.length,f.length);if(0===C){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(y,"...").concat(b);S.length>27;)S.pop();return"".concat(w.notIdentical,"\n\n").concat(S.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(b).concat(s),u=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var k=0,x=w[r]+"\n".concat(g,"+ actual").concat(b," ").concat(v,"- expected").concat(b),O=" ".concat(y,"...").concat(b," Lines skipped");for(p=0;p<C;p++){var D=p-a;if(l.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(f[p-2]),k++),i+="\n ".concat(f[p-1]),k++),a=p,o+="\n".concat(v,"-").concat(b," ").concat(f[p]),k++;else if(f.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(l[p]),k++;else{var F=f[p],T=l[p],j=T!==F&&(!m(T,",")||T.slice(0,-1)!==F);j&&m(F,",")&&F.slice(0,-1)===T&&(j=!1,T+=","),j?(D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(T),o+="\n".concat(v,"-").concat(b," ").concat(F),k+=2):(i+=o,o="",1!==D&&0!==p||(i+="\n ".concat(T),k++))}if(k>20&&p<C-2)return"".concat(x).concat(O,"\n").concat(i,"\n").concat(y,"...").concat(b).concat(o,"\n")+"".concat(y,"...").concat(b)}return"".concat(x).concat(u?O:"","\n").concat(i).concat(o).concat(s).concat(d)}(c,l,s)));else if("notDeepStrictEqual"===s||"notStrictEqual"===s){var E=w[s],_=M(c).split("\n");if("notStrictEqual"===s&&"object"===h(c)&&null!==c&&(E=w.notStrictEqualObject),_.length>30)for(_[26]="".concat(y,"...").concat(b);_.length>27;)_.pop();r=1===_.length?i(this,f(e).call(this,"".concat(E," ").concat(_[0]))):i(this,f(e).call(this,"".concat(E,"\n\n").concat(_.join("\n"),"\n")))}else{var C=M(c),S="",k=w[s];"notDeepEqual"===s||"notEqual"===s?(C="".concat(w[s],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(S="".concat(M(l)),C.length>512&&(C="".concat(C.slice(0,509),"...")),S.length>512&&(S="".concat(S.slice(0,509),"...")),"deepEqual"===s||"equal"===s?C="".concat(k,"\n\n").concat(C,"\n\nshould equal\n\n"):S=" ".concat(s," ").concat(S)),r=i(this,f(e).call(this,"".concat(C).concat(S)))}return Error.stackTraceLimit=p,r.generatedMessage=!o,Object.defineProperty(a(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=l,r.operator=s,Error.captureStackTrace&&Error.captureStackTrace(a(r),u),r.stack,r.name="AssertionError",i(r)}var r,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),r=e,s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(t,e){return p(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],s&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,s),e}(s(Error));t.exports=E},7515:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}var a,s,u={};function c(t,e,r){r||(r=Error);var a=function(r){function a(r,i,s){var u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),u=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,o(a).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,i,s))),u.code=t,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(a,r),a}(r);u[t]=a}function l(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(t,e,o){var i,s,u,c,f;if(void 0===a&&(a=r(1696)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(i," ").concat(l(e,"type"));else{var h=("number"!=typeof f&&(f=0),f+".".length>(c=t).length||-1===c.indexOf(".",f)?"argument":"property");u='The "'.concat(t,'" ').concat(h," ").concat(i," ").concat(l(e,"type"))}return u+". Received type ".concat(n(o))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(3335));var o=s.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=r(1696)),a(e.length>0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),t.exports.codes=u},6796:function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var i=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},s=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},u=Object.is?Object.is:r(4679),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4782);function f(t){return t.call.bind(t)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(3335).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,v=m.isDate,b=m.isMap,w=m.isRegExp,A=m.isSet,M=m.isNativeError,E=m.isBoxedPrimitive,_=m.isNumberObject,C=m.isStringObject,S=m.isBooleanObject,k=m.isBigIntObject,x=m.isSymbolObject,O=m.isFloat32Array,D=m.isFloat64Array;function F(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function T(t){return Object.keys(t).filter(F).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function j(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0}function P(t,e,r,n){if(t===e)return 0!==t||!r||u(t,e);if(r){if("object"!==o(t))return"number"==typeof t&&l(t)&&l(e);if("object"!==o(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==o(t))return(null===e||"object"!==o(e))&&t==e;if(null===e||"object"!==o(e))return!1}var a,s,c,f,h=d(t);if(h!==d(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var p=T(t),m=T(e);return p.length===m.length&&B(t,e,r,n,1,p)}if("[object Object]"===h&&(!b(t)&&b(e)||!A(t)&&A(e)))return!1;if(v(t)){if(!v(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||(c=t,f=e,!(i?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(M(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(g(t)){if(r||!O(t)&&!D(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===j(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var F=T(t),P=T(e);return F.length===P.length&&B(t,e,r,n,0,F)}if(A(t))return!(!A(e)||t.size!==e.size)&&B(t,e,r,n,2);if(b(t))return!(!b(e)||t.size!==e.size)&&B(t,e,r,n,3);if(y(t)){if(s=e,(a=t).byteLength!==s.byteLength||0!==j(new Uint8Array(a),new Uint8Array(s)))return!1}else if(E(t)&&!function(t,e){return _(t)?_(e)&&u(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):C(t)?C(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):S(t)?S(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):k(t)?k(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):x(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return B(t,e,r,n,0)}function R(t,e){return e.filter((function(e){return p(t,e)}))}function B(t,e,r,n,o,i){if(5===arguments.length){i=Object.keys(t);var a=Object.keys(e);if(i.length!==a.length)return!1}for(var s=0;s<i.length;s++)if(!h(e,i[s]))return!1;if(r&&5===arguments.length){var u=c(t);if(0!==u.length){var l=0;for(s=0;s<u.length;s++){var f=u[s];if(p(t,f)){if(!p(e,f))return!1;i.push(f),l++}else if(p(e,f))return!1}var d=c(e);if(u.length!==d.length&&R(e,d).length!==l)return!1}else{var m=c(e);if(0!==m.length&&0!==R(e,m).length)return!1}}if(0===i.length&&(0===o||1===o&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(t);if(void 0!==y){var g=n.val2.get(e);if(void 0!==g)return y===g}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var v=q(t,e,r,i,n,o);return n.val1.delete(t),n.val2.delete(e),v}function I(t,e,r,n){for(var o=a(t),i=0;i<o.length;i++){var s=o[i];if(P(e,s,r,n))return t.delete(s),!0}return!1}function N(t){switch(o(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function $(t,e,r){var n=N(r);return null!=n?n:e.has(n)&&!t.has(n)}function L(t,e,r,n,o){var i=N(r);if(null!=i)return i;var a=e.get(i);return!(void 0===a&&!e.has(i)||!P(n,a,!1,o))&&!t.has(i)&&P(n,a,!1,o)}function U(t,e,r,n,o,i){for(var s=a(t),u=0;u<s.length;u++){var c=s[u];if(P(r,c,o,i)&&P(n,e.get(c),o,i))return t.delete(c),!0}return!1}function q(t,e,r,i,u,c){var l=0;if(2===c){if(!function(t,e,r,n){for(var i=null,s=a(t),u=0;u<s.length;u++){var c=s[u];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!e.has(c)){if(r)return!1;if(!$(t,e,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var l=a(e),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!I(i,h,r,n))return!1}else if(!r&&!t.has(h)&&!I(i,h,r,n))return!1}return 0===i.size}return!0}(t,e,r,u))return!1}else if(3===c){if(!function(t,e,r,i){for(var a=null,u=s(t),c=0;c<u.length;c++){var l=n(u[c],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=e.get(f);if(void 0===p&&!e.has(f)||!P(h,p,r,i)){if(r)return!1;if(!L(t,e,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var d=s(e),m=0;m<d.length;m++){var y=n(d[m],2),g=(f=y[0],y[1]);if("object"===o(f)&&null!==f){if(!U(a,t,f,g,r,i))return!1}else if(!(r||t.has(f)&&P(t.get(f),g,!1,i)||U(a,t,f,g,!1,i)))return!1}return 0===a.size}return!0}(t,e,r,u))return!1}else if(1===c)for(;l<t.length;l++){if(!h(t,l)){if(h(e,l))return!1;for(var f=Object.keys(t);l<f.length;l++){var p=f[l];if(!h(e,p)||!P(t[p],e[p],r,u))return!1}return f.length===Object.keys(e).length}if(!h(e,l)||!P(t[l],e[l],r,u))return!1}for(l=0;l<i.length;l++){var d=i[l];if(!P(t[d],e[d],r,u))return!1}return!0}t.exports={isDeepEqual:function(t,e){return P(t,e,!1)},isDeepStrictEqual:function(t,e){return P(t,e,!0)}}},9379:function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}var o=r(5783),i=r(3133),a=i.DefaultFileLoader,s=i.FileDownloader,u=i.ModelWriter,c=r(5076),l=c.MetaModelUtil,f=c.MetaModelNamespace,h=r(6938),p=r(5338),d=r(7619),m=r(3407),y=r(6697),g=r(6972),v=r(5400),b=r(4449).getRootModel;void 0===r.g&&(r(1988),r(4356),r(79),r(7291),r(8334),r(1081),r(6858),r(9966));var w=r(5130)("concerto:BaseModelManager"),A=function(t,e){return{ast:e,definitions:null,fileName:t}},M=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.processFile=r||A,this.modelFiles={},this.factory=new h(this),this.serializer=new g(this.factory,this,e),this.decoratorFactories=[],this.strict=!(null==e||!e.strict),this.options=e,this.addRootModel()}var e,r,i,c;return e=t,r=[{key:"isModelManager",value:function(){return!0}},{key:"isStrict",value:function(){return this.strict}},{key:"addRootModel",value:function(){var t=b(!0),e=t.rootModelAst,r=t.rootModelCto,n=t.rootModelFile,o=new m(this,e,r,n);if(this.strict)this.addModelFile(o,r,n);else{this.addModelFile(o,r,n);var i=b(!1),a=new m(this,i.rootModelAst,i.rootModelCto,i.rootModelFile);this.addModelFile(a,i.rootModelCto,i.rootModelFile)}}},{key:"accept",value:function(t,e){return t.visit(this,e)}},{key:"validateModelFile",value:function(t,e){if("string"==typeof t){var r=this.processFile(e,t).ast;new m(this,r,t,e).validate()}else t.validate()}},{key:"_throwAlreadyExists",value:function(t){var e=this.modelFiles[t.getNamespace()].getName(),r=e?" in file ".concat(e):"",n=t.getName()?" specified in file ".concat(t.getName()):"",o="Namespace ".concat(t.getNamespace()).concat(n," is already declared").concat(r);throw new Error(o)}},{key:"addModelFile",value:function(t,e,r,n){if(w("addModelFile","addModelFile",t,r),this.isStrict()&&!t.getVersion())throw new Error("Cannot add an unversioned namespace when 'strict' is true");return this.modelFiles[t.getNamespace()]?this._throwAlreadyExists(t):(n||t.validate(),this.modelFiles[t.getNamespace()]=t),t}},{key:"addModel",value:function(t,e,r,n){w("addModel","addModel",t,r);var o=this.processFile(r,t),i=o.ast,a=o.definitions,s=e||a,u=new m(this,i,s,r);return this.addModelFile(u,s,r,n),u}},{key:"updateModelFile",value:function(t,e,r){if(w("updateModelFile","updateModelFile",t,e),"string"==typeof t){var n=this.processFile(e,t).ast,o=new m(this,n,t,e);return this.updateModelFile(o,e,r)}if(!this.modelFiles[t.getNamespace()])throw new Error("Model file for namespace ".concat(t.getNamespace()," not found"));return r||t.validate(),this.modelFiles[t.getNamespace()]=t,t}},{key:"deleteModelFile",value:function(t){if(!this.modelFiles[t])throw new Error("Model file does not exist");delete this.modelFiles[t]}},{key:"addModelFiles",value:function(t,e,r){var n="addModelFiles";w(n,"addModelFiles",t,e);var o={};Object.assign(o,this.modelFiles);var i=[];try{for(var a=0;a<t.length;a++){var s=t[a],u=null;e&&(u=e[a]);var c=void 0;if("string"==typeof s){var l=this.processFile(u,s).ast;c=new m(this,l,s,u)}else c=s;this.modelFiles[c.getNamespace()]?this._throwAlreadyExists(c):(this.modelFiles[c.getNamespace()]=c,i.push(c))}return r||this.validateModelFiles(),i}catch(t){throw this.modelFiles={},Object.assign(this.modelFiles,o),t}finally{w(n,i)}}},{key:"validateModelFiles",value:function(){for(var t in this.modelFiles)this.modelFiles[t].validate()}},{key:"updateExternalModels",value:(i=regeneratorRuntime.mark((function t(e,r){var n,o,i,u=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return w("updateExternalModels","updateExternalModels",e),r||(r=new s(new a(this.processFile),(function(t){return l.getExternalImports(t.ast)}))),n={},Object.assign(n,this.modelFiles),t.prev=5,t.next=8,r.downloadExternalDependencies(this.getModelFiles(),e);case 8:return o=t.sent,i=[],o.forEach((function(t){var e=new m(u,t.ast,t.definitions,t.fileName);u.modelFiles[e.getNamespace()]?i.push(u.updateModelFile(e,e.getName(),!0)):i.push(u.addModelFile(e,null,e.getName(),!0))})),this.validateModelFiles(),t.abrupt("return",i);case 15:throw t.prev=15,t.t0=t.catch(5),this.modelFiles={},Object.assign(this.modelFiles,n),t.t0;case 20:case"end":return t.stop()}}),t,this,[[5,15]])})),c=function(){var t=this,e=arguments;return new Promise((function(r,o){var a=i.apply(t,e);function s(t){n(a,r,o,s,u,"next",t)}function u(t){n(a,r,o,s,u,"throw",t)}s(void 0)}))},function(t,e){return c.apply(this,arguments)})},{key:"writeModelsToFileSystem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u.writeModelsToFileSystem(this.getModelFiles(),t,e)}},{key:"getModelFiles",value:function(t){for(var e=Object.keys(this.modelFiles),r=[],n=0;n<e.length;n++){var o=e[n];(t||"concerto@1.0.0"!==o&&"concerto"!==o)&&r.push(this.modelFiles[o])}return r}},{key:"getModels",value:function(t){var e=this.getModelFiles(),r=[],n=Object.assign({includeExternalModels:!0},t);return e.forEach((function(t){if(!t.isExternal()||n.includeExternalModels){var e;if("UNKNOWN"!==t.fileName&&null!==t.fileName&&t.fileName){var i=t.fileName;e=o.basename(i)}else e=t.namespace+".cto";r.push({name:e,content:t.definitions})}})),r}},{key:"resolveType",value:function(t,e){if(y.isPrimitiveType(e))return e;var r=y.getNamespace(e),n=this.getModelFile(r);if(!n){var o=p.messageFormatter("modelmanager-resolvetype-nonsfortype");throw new d(o({type:e,context:t}))}if(n.isLocalType(e))return e;var i=p.messageFormatter("modelmanager-resolvetype-notypeinnsforcontext");throw new d(i({context:t,type:e,namespace:n.getNamespace()}))}},{key:"clearModelFiles",value:function(){this.modelFiles={},this.addRootModel()}},{key:"getModelFile",value:function(t){return this.modelFiles[t]}},{key:"getModelFileByFileName",value:function(t){return this.getModelFiles().filter((function(e){return e.getName()===t}))[0]}},{key:"getNamespaces",value:function(){return Object.keys(this.modelFiles)}},{key:"getType",value:function(t){var e=y.getNamespace(t),r=this.getModelFile(e);if(!r){var n=p.messageFormatter("modelmanager-gettype-noregisteredns");throw new v(t,n({type:t}))}var o=r.getType(t);if(!o){var i=p.messageFormatter("modelmanager-gettype-notypeinns");throw new v(t,i({type:y.getShortName(t),namespace:e}))}return o}},{key:"getAssetDeclarations",value:function(){return this.getModelFiles().reduce((function(t,e){return t.concat(e.getAssetDeclarations())}),[])}},{key:"getTransactionDeclarations",value:function(){return this.getModelFiles().reduce((function(t,e){return t.concat(e.getTransactionDeclarations())}),[])}},{key:"getEventDeclarations",value:function(){return this.getModelFiles().reduce((function(t,e){return t.concat(e.getEventDeclarations())}),[])}},{key:"getParticipantDeclarations",value:function(){return this.getModelFiles().reduce((function(t,e){return t.concat(e.getParticipantDeclarations())}),[])}},{key:"getEnumDeclarations",value:function(){return this.getModelFiles().reduce((function(t,e){return t.concat(e.getEnumDeclarations())}),[])}},{key:"getConceptDeclarations",value:function(){return this.getModelFiles().reduce((function(t,e){return t.concat(e.getConceptDeclarations())}),[])}},{key:"getFactory",value:function(){return this.factory}},{key:"getSerializer",value:function(){return this.serializer}},{key:"getDecoratorFactories",value:function(){return this.decoratorFactories}},{key:"addDecoratorFactory",value:function(t){this.decoratorFactories.push(t)}},{key:"derivesFrom",value:function(t,e){for(var r=this.getType(t);r;){if(r.getFullyQualifiedName()===e)return!0;r=r.getSuperTypeDeclaration()}return!1}},{key:"resolveMetaModel",value:function(t){var e=this.getAst();return l.resolveLocalNames(e,t)}},{key:"fromAst",value:function(t){var e=this;this.clearModelFiles(),t.models.forEach((function(t){var r=new m(e,t);e.addModelFile(r,null,null,!0)})),this.validateModelFiles()}},{key:"getAst",value:function(t){var e=this,r={$class:"".concat(f,".Models"),models:[]};return this.getModelFiles().forEach((function(n){var o=n.getAst();t&&(o=e.resolveMetaModel(o)),r.models.push(o)})),r}}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,r),t}();t.exports=M},4857:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(957),i="resource",a=r(3133).TypedStack,s=r(1607);void 0===r.g&&r(4975);var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modelManager=e}var e;return(e=[{key:"validate",value:function(t,e){var r=this.getTypeDeclaration(t),n={};n.stack=new a(t);var o=new s(this,e);r.accept(o,n)}},{key:"getModelManager",value:function(){return this.modelManager}},{key:"isObject",value:function(t){return"object"===n(t)&&t.$class}},{key:"getTypeDeclaration",value:function(t){if(!t.$class)throw new Error("Input object does not have a $class attribute.");return this.modelManager.getType(t.$class)}},{key:"getIdentifier",value:function(t){var e=this.getTypeDeclaration(t).getIdentifierFieldName();if(!e)throw new Error("Object does not have an identifier: ".concat(JSON.stringify(t)));return t[e]}},{key:"isIdentifiable",value:function(t){var e=this.getTypeDeclaration(t);return!e.isSystemIdentified()&&null!==e.getIdentifierFieldName()}},{key:"isRelationship",value:function(t){return"string"==typeof t&&t.startsWith("".concat(i,":"))}},{key:"setIdentifier",value:function(t,e){var r=this.getTypeDeclaration(t).getIdentifierFieldName(),n=JSON.parse(JSON.stringify(t));return n[r]=e,n}},{key:"getFullyQualifiedIdentifier",value:function(t){return this.getTypeDeclaration(t),"".concat(t.$class,"#").concat(this.getIdentifier(t))}},{key:"toURI",value:function(t){return this.getTypeDeclaration(t),"".concat(i,":").concat(t.$class,"#").concat(encodeURI(this.getIdentifier(t)))}},{key:"fromURI",value:function(t){var e;try{e=o.parse(t)}catch(e){throw new Error("Invalid URI: "+t)}var r=e.protocol;if(r&&r!==i)throw new Error("Invalid URI scheme: "+t);if(e.username||e.password||e.port||e.query)throw new Error("Invalid resource URI format: "+t);return{typeDeclaration:this.getTypeDeclaration({$class:e.path}),id:decodeURIComponent(e.fragment)}}},{key:"getType",value:function(t){return this.getTypeDeclaration(t).getName()}},{key:"getNamespace",value:function(t){return this.getTypeDeclaration(t).getNamespace()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=u},7663:function(t,e,r){"use strict";var n=r(8879),o=r(264);n.extend(o);var i=r(3134);n.extend(i);var a=r(7995);n.extend(a);var s=r(4989);n.extend(s),t.exports={setCurrentTime:function(t,e){var r="number"==typeof e?e:n().utcOffset(),o=t?n.utc(t):n().utc();if(!o.isValid())throw new Error("Current time '".concat(t,"' is not in standard UTC format"));var i=o.utcOffset(r);if(!i.isValid())throw new Error("Cannot set current time to '".concat(t,"' with UTC offset '").concat(e,"'"));return{currentTime:i,utcOffset:r}}}},1840:function(t,e,r){"use strict";var n=r(4975),o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return e=[{key:"decorateModels",value:function(t,e){var r=this,o=t.getAst(!0),i=JSON.parse(JSON.stringify(o));i.models.forEach((function(t){t.declarations.forEach((function(n){e.commands.forEach((function(e){r.executeCommand(t.namespace,n,e)}))}))}));var a=new n;return a.fromAst(i),a}},{key:"falsyOrEqual",value:function(t,e){return!t||t===e}},{key:"applyDecorator",value:function(t,e,r){if("UPSERT"===e){var n=!1;if(t.decorators)for(var o=0;o<t.decorators.length;o++)t.decorators[o].name===r.name&&(t.decorators[o]=r,n=!0);n||(t.decorators?t.decorators.push(r):t.decorators=[r])}else{if("APPEND"!==e)throw new Error("Unknown command type ".concat(e));t.decorators?t.decorators.push(r):t.decorators=[r]}}},{key:"executeCommand",value:function(t,e,r){var n=this,o=r.target,i=r.decorator,a=r.type;this.falsyOrEqual(o.namespace,t)&&this.falsyOrEqual(o.declaration,e.name)&&(o.property||o.type?e.properties.forEach((function(t){n.falsyOrEqual(o.property,t.name)&&n.falsyOrEqual(o.type,t.$class)&&n.applyDecorator(t,a,i)})):this.applyDecorator(e,a,i))}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t,e),t}();t.exports=o},6938:function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=r(3133).TypedStack,i=r(5130)("concerto:Factory"),a=r(5338),s=r(6697),u=r(97),c=r(3232),l=r(1399),f=r(4469),h=r(8031),p=r(8938),d=r(9987),m=r(8879),y=r(264);m.extend(y),void 0===r.g&&r(4975);var g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modelManager=e}var e,r,y;return e=t,y=[{key:"newId",value:function(){return d.v4()}}],(r=[{key:"newResource",value:function(e,r,n,o){o=o||{};var u=s.getFullyQualifiedName(e,r),c=this.modelManager.getType(u);if(c.isAbstract()){var f=a.messageFormatter("factory-newinstance-abstracttype");throw new Error(f({namespace:e,type:r}))}var d=c.getIdentifierFieldName();if(c.isSystemIdentified()&&(n=null==n?t.newId():n),d){if("string"!=typeof n){var y=a.messageFormatter("factory-newinstance-invalididentifier");throw new Error(y({namespace:e,type:r}))}if(0===n.trim().length){var g=a.messageFormatter("factory-newinstance-missingidentifier");throw new Error(g({namespace:e,type:r}))}}else if(n)throw new Error("Type is not identifiable "+c.getFullyQualifiedName());var v=null,b=null;return(c.isTransaction()||c.isEvent())&&(b=m.utc()),(v=o.disableValidation?new h(this.modelManager,c,e,r,n,b):new p(this.modelManager,c,e,r,n,b,new l)).assignFieldDefaults(),this.initializeNewObject(v,c,o),d&&(v[d]=n),i("newResource","Factory.newResource created ",n||"valid"),v}},{key:"newConcept",value:function(t,e,r,n){return this.newResource(t,e,r,n)}},{key:"newRelationship",value:function(t,e,r){var n=s.getFullyQualifiedName(t,e),o=this.modelManager.getType(n);if(!o.isIdentified())throw new Error("Cannot create a relationship to ".concat(n,", it is not identifiable."));return new f(this.modelManager,o,t,e,r)}},{key:"newTransaction",value:function(t,e,r,n){if(!t)throw new Error("ns not specified");if(!e)throw new Error("type not specified");var o=this.newResource(t,e,r,n);if(!o.getClassDeclaration().isTransaction())throw new Error(o.getClassDeclaration().getFullyQualifiedName()+" is not a transaction");return o}},{key:"newEvent",value:function(t,e,r,n){if(!t)throw new Error("ns not specified");if(!e)throw new Error("type not specified");var o=this.newResource(t,e,r,n);if(!o.getClassDeclaration().isEvent())throw new Error(o.getClassDeclaration().getFullyQualifiedName()+" is not an event");return o}},{key:"initializeNewObject",value:function(t,e,r){var n=this.parseGenerateOptions(r);if(n){n.stack=new o(t),n.seen=[t.getFullyQualifiedType()];var i=new u;e.accept(i,n)}}},{key:"parseGenerateOptions",value:function(t){if(!t.generate)return null;var e={};return e.modelManager=this.modelManager,e.factory=this,/^empty$/i.test(t.generate)?e.valueGenerator=c.empty():e.valueGenerator=c.sample(),e.includeOptionalFields=!!t.includeOptionalFields,e}}])&&n(e.prototype,r),y&&n(e,y),t}();t.exports=g},5338:function(t,e,r){"use strict";var n=r(6077);function o(t){return function(e){var r=n.en[t];for(var o in e)r=r.replace(new RegExp("\\{".concat(o,"\\}"),"g"),e[o]);return r}}function i(t){return n.en[t]}function a(t){return{messageFormatter:o,formatMessage:i}}a.messageFormatter=o,a.formatMessage=i,t.exports=a},1988:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(722);void 0===r.g&&r(3407);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t,e)}return(e=[{key:"declarationKind",value:function(){return"AssetDeclaration"}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(s);t.exports=u},4356:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(5076).MetaModelNamespace,l=r(7386),f=r(4823),h=r(4833),p=r(5338),d=r(7619),m=r(9444),y=r(6697),g=r(3988);void 0===r.g&&(r(3407),r(5960));var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(l,t);var e,r,n,i=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function l(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(r=i.call(this,e)).modelFile=t,r.process(),r}return(e=[{key:"getModelFile",value:function(){return this.modelFile}},{key:"process",value:function(){o(u(l.prototype),"process",this).call(this),this.name=this.ast.name,this.properties=[],this.superType=null,this.superTypeDeclaration=null,this.idField=null,this.timestamped=!1,this.abstract=!1,this.type=this.ast.$class,this.ast.isAbstract&&(this.abstract=!0),this.ast.superType?this.superType=this.ast.superType.name:this.modelFile.isSystemModelFile()&&"Concept"===this.name||(this.superType="Concept"),this.ast.identified&&(this.ast.identified.$class==="".concat(c,".IdentifiedBy")?this.idField=this.ast.identified.name:(this.idField="$identifier",this.addIdentifierField()));for(var t=0;t<this.ast.properties.length;t++){var e=this.ast.properties[t];if(e.name&&e.name.startsWith("$"))throw new d("Invalid field name ".concat(e.name),this.modelFile,this.ast.location);if(e.$class==="".concat(c,".RelationshipProperty"))this.properties.push(new g(this,e));else if(e.$class==="".concat(c,".EnumProperty"))this.properties.push(new f(this,e));else{if(e.$class!=="".concat(c,".BooleanProperty")&&e.$class!=="".concat(c,".StringProperty")&&e.$class!=="".concat(c,".IntegerProperty")&&e.$class!=="".concat(c,".LongProperty")&&e.$class!=="".concat(c,".DoubleProperty")&&e.$class!=="".concat(c,".DateTimeProperty")&&e.$class!=="".concat(c,".ObjectProperty")){var r=p.messageFormatter("classdeclaration-process-unrecmodelelem");throw new d(r({type:e.$class}),this.modelFile,this.ast.location)}this.properties.push(new h(this,e))}}this.fqn=y.getFullyQualifiedName(this.modelFile.getNamespace(),this.name),"concerto@1.0.0.Transaction"!==this.fqn&&"concerto@1.0.0.Event"!==this.fqn||this.addTimestampField()}},{key:"addTimestampField",value:function(){var t={};t.$class="".concat(c,".DateTimeProperty"),t.name="$timestamp",this.properties.push(new h(this,t))}},{key:"addIdentifierField",value:function(){var t={};t.$class="".concat(c,".StringProperty"),t.name="$identifier",this.properties.push(new h(this,t))}},{key:"_resolveSuperType",value:function(){if(!this.superType)return null;this.superTypeDeclaration=null;var t=null;if(this.getModelFile().isImportedType(this.superType)){var e=this.getModelFile().resolveImport(this.superType);t=this.modelFile.getModelManager().getType(e)}else t=this.getModelFile().getType(this.superType);if(!t)throw new d("Could not find super type "+this.superType,this.modelFile,this.ast.location);if("ConceptDeclaration"!==t.declarationKind()&&this.declarationKind()!==t.declarationKind())throw new d("".concat(this.declarationKind()," (").concat(this.getName(),") cannot extend ").concat(t.declarationKind()," (").concat(t.getName(),")"),this.modelFile,this.ast.location);return this.superTypeDeclaration=t,t}},{key:"validate",value:function(){o(u(l.prototype),"validate",this).call(this);for(var t=this.getModelFile().getAllDeclarations(),e=0;e<t.length;e++)for(var r=t[e],n=e+1;n<t.length;n++){var i=t[n];if(r.getFullyQualifiedName()===i.getFullyQualifiedName())throw new d("Duplicate class name ".concat(r.getName()))}if(null!==this.superType&&this._resolveSuperType(),this.idField){var a=this.getProperty(this.idField);if(!a){var s=p("en").messageFormatter("classdeclaration-validate-identifiernotproperty");throw new d(s({class:this.name,idField:this.idField}),this.modelFile,this.ast.location)}if("String"!==a.getType()){var c=p("en").messageFormatter("classdeclaration-validate-identifiernotstring");throw new d(c({class:this.name,idField:this.idField}),this.modelFile,this.ast.location)}if(a.isOptional())throw new d("Identifying fields cannot be optional.",this.modelFile,this.ast.location);if(this.superType){var f=this.getModelFile().getType(this.superType);if(f&&f.isIdentified())if(this.isSystemIdentified()){if(!f.isSystemIdentified())throw new d("Super class ".concat(f.getFullyQualifiedName()," has an explicit identifier ").concat(f.getIdentifierFieldName()," that cannot be redeclared."),this.modelFile,this.ast.location)}else if(f.isExplicitlyIdentified())throw new d("Super class ".concat(f.getFullyQualifiedName()," has an explicit identifier ").concat(f.getIdentifierFieldName()," that cannot be redeclared."),this.modelFile,this.ast.location)}}for(var h=this.getProperties(),m=0;m<h.length;m++){for(var y=h[m],g=m+1;g<h.length;g++){var v=h[g];if(y.getName()===v.getName()){var b=p("en").messageFormatter("classdeclaration-validate-duplicatefieldname");throw new d(b({class:this.name,fieldName:y.getName()}),this.modelFile,this.ast.location)}}if(y.isPrimitive()||this.isEnum()||y.getNamespace()===this.getNamespace())y.validate(this);else{var w=y.getFullyQualifiedTypeName(),A=this.modelFile.getModelManager().getType(w);y.validate(A)}}}},{key:"isAbstract",value:function(){return this.abstract}},{key:"getName",value:function(){return this.name}},{key:"getNamespace",value:function(){return this.modelFile.getNamespace()}},{key:"getFullyQualifiedName",value:function(){return this.fqn}},{key:"isIdentified",value:function(){return!!this.getIdentifierFieldName()}},{key:"isSystemIdentified",value:function(){return"$identifier"===this.getIdentifierFieldName()}},{key:"isExplicitlyIdentified",value:function(){return!!this.idField&&"$identifier"!==this.idField}},{key:"getIdentifierFieldName",value:function(){if(this.idField)return this.idField;if(this.getSuperType()){var t=this.getModelFile().getLocalType(this.getSuperType());return t||(t=this.modelFile.getModelManager().getType(this.getSuperType())),t.getIdentifierFieldName()}return null}},{key:"getOwnProperty",value:function(t){for(var e=0;e<this.properties.length;e++){var r=this.properties[e];if(r.getName()===t)return r}return null}},{key:"getOwnProperties",value:function(){return this.properties}},{key:"getSuperType",value:function(){var t=this.getSuperTypeDeclaration();return t?t.getFullyQualifiedName():null}},{key:"getSuperTypeDeclaration",value:function(){return this.superType?this.superTypeDeclaration?this.superTypeDeclaration:this._resolveSuperType():null}},{key:"getAssignableClassDeclarations",value:function(){var t=new Set,e=this.getModelFile().getModelManager(),r=new m(e).getClassDeclarations(),n=new Map;return r.forEach((function(t){var e=t.getSuperType();if(e){var r=n.get(e)||new Set;r.add(t),n.set(e,r)}})),function e(r){r.forEach((function(r){t.add(r);var o=r.getFullyQualifiedName(),i=n.get(o);i&&e(i)}))}([this]),Array.from(t)}},{key:"getDirectSubclasses",value:function(){var t=this.getModelFile().getModelManager(),e=new m(t).getClassDeclarations(),r=new Map;e.forEach((function(t){var e=t.getSuperType();if(e){var n=r.get(e)||new Set;n.add(t),r.set(e,n)}}));var n=this.getFullyQualifiedName(),o=r.get(n);return o?Array.from(o):[]}},{key:"getAllSuperTypeDeclarations",value:function(){for(var t=[],e=this;e=e.getSuperTypeDeclaration();)t.push(e);return t}},{key:"getProperty",value:function(t){var e=this.getOwnProperty(t),r=null;if(null===e&&null!==this.superType){if(this.getModelFile().isImportedType(this.superType)){var n=this.getModelFile().resolveImport(this.superType);r=this.modelFile.getModelManager().getType(n)}else r=this.getModelFile().getType(this.superType);e=r.getProperty(t)}return e}},{key:"getProperties",value:function(){var t=this.getOwnProperties(),e=null;if(null!==this.superType){if(this.getModelFile().isImportedType(this.superType)){var r=this.getModelFile().resolveImport(this.superType);e=this.modelFile.getModelManager().getType(r)}else e=this.getModelFile().getType(this.superType);if(!e)throw new d("Could not find super type "+this.superType,this.modelFile,this.ast.location);t=t.concat(e.getProperties())}return t}},{key:"getNestedProperty",value:function(t){for(var e=t.split("."),r=this,n=null,o=0;o<e.length;o++){if(null===(n=r.getProperty(e[o])))throw new d("Property "+e[o]+" does not exist on "+r.getFullyQualifiedName(),this.modelFile,this.ast.location);if(o<e.length-1){if(n.isPrimitive()||n.isTypeEnum())throw new Error("Property "+e[o]+" is a primitive or enum. Invalid property path: "+t);r=r.getModelFile().getModelManager().getType(n.getFullyQualifiedTypeName())}}return n}},{key:"toString",value:function(){var t="";return this.superType&&(t=" super="+this.superType),"ClassDeclaration {id="+this.getFullyQualifiedName()+t+" enum="+this.isEnum()+" abstract="+this.isAbstract()+"}"}},{key:"isAsset",value:function(){return this.type==="".concat(c,".AssetDeclaration")}},{key:"isParticipant",value:function(){return this.type==="".concat(c,".ParticipantDeclaration")}},{key:"isTransaction",value:function(){return this.type==="".concat(c,".TransactionDeclaration")}},{key:"isEvent",value:function(){return this.type==="".concat(c,".EventDeclaration")}},{key:"isConcept",value:function(){return this.type==="".concat(c,".ConceptDeclaration")}},{key:"isEnum",value:function(){return this.type==="".concat(c,".EnumDeclaration")}},{key:"isClassDeclaration",value:function(){return!0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(l.prototype,e),l}(l);t.exports=v},79:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(4356);void 0===r.g&&r(3407);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t,e)}return(e=[{key:"declarationKind",value:function(){return"ConceptDeclaration"}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(s);t.exports=u},7386:function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var i=r(4458),a=r(7619);void 0===r.g&&r(3407);var s=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw new Error("ast not specified");this.ast=e}var e;return(e=[{key:"getModelFile",value:function(){throw new Error("not implemented")}},{key:"accept",value:function(t,e){return t.visit(this,e)}},{key:"process",value:function(){if(this.decorators=[],this.ast.decorators)for(var t=0;t<this.ast.decorators.length;t++){var e,r=this.ast.decorators[t],o=void 0,a=n(this.getModelFile().getModelManager().getDecoratorFactories());try{for(a.s();!(e=a.n()).done&&!(o=e.value.newDecorator(this,r)););}catch(t){a.e(t)}finally{a.f()}o||(o=new i(this,r)),this.decorators.push(o)}}},{key:"validate",value:function(){for(var t=0;t<this.decorators.length;t++){var e=this.decorators[t];e.validate();for(var r=t+1;r<this.decorators.length;r++){var n=this.decorators[r];if(e.getName()===n.getName()){var o=this.getModelFile();throw new a("Duplicate decorator ".concat(e.getName()),o,this.ast.location)}}}}},{key:"getDecorators",value:function(){return this.decorators}},{key:"getDecorator",value:function(t){for(var e=0;e<this.decorators.length;e++){var r=this.decorators[e];if(r.getName()===t)return r}return null}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=s},4458:function(t,e,r){"use strict";var n=r(5076).MetaModelNamespace;void 0===r.g&&(r(4356),r(5960));var o=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.ast=r,this.parent=e,this.arguments=null,this.process()}var e;return(e=[{key:"accept",value:function(t,e){return t.visit(this,e)}},{key:"getParent",value:function(){return this.parent}},{key:"process",value:function(){if(this.name=this.ast.name,this.arguments=[],this.ast.arguments)for(var t=0;t<this.ast.arguments.length;t++){var e=this.ast.arguments[t];e&&(e.$class==="".concat(n,".DecoratorTypeReference")?this.arguments.push({type:"Identifier",name:e.type.name,array:e.isArray}):this.arguments.push(e.value))}}},{key:"validate",value:function(){}},{key:"getName",value:function(){return this.name}},{key:"getArguments",value:function(){return this.arguments}},{key:"isDecorator",value:function(){return!0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=o},7291:function(t,e,r){"use strict";void 0===r.g&&(r(4356),r(4458),r(5960));var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return(e=[{key:"newDecorator",value:function(t,e){throw new Error("abstract function called")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=n},8334:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(4356);void 0===r.g&&r(3407);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t,e)}return(e=[{key:"toString",value:function(){return"EnumDeclaration {id="+this.getFullyQualifiedName()+"}"}},{key:"declarationKind",value:function(){return"EnumDeclaration"}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(s);t.exports=u},4823:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(5960);void 0===r.g&&r(4356);var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(c,t);var e,r,n,i=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function c(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t,e)}return(e=[{key:"validate",value:function(t){o(u(c.prototype),"validate",this).call(this,t)}},{key:"isEnumValue",value:function(){return!0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(c);t.exports=l},1081:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(722);void 0===r.g&&r(3407);var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(c,t);var e,r,n,i=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function c(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t,e)}return(e=[{key:"process",value:function(){o(u(c.prototype),"process",this).call(this)}},{key:"declarationKind",value:function(){return"EventDeclaration"}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(c);t.exports=l},4833:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(5960),l=r(3534),f=r(8631);void 0===r.g&&(r(4356),r(6017));var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(c,t);var e,r,n,i=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function c(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t,e)}return(e=[{key:"process",value:function(){switch(o(u(c.prototype),"process",this).call(this),this.validator=null,this.getType()){case"Integer":case"Double":case"Long":this.ast.validator&&(this.validator=new l(this,this.ast.validator));break;case"String":this.ast.validator&&(this.validator=new f(this,this.ast.validator))}this.ast.defaultValue?this.defaultValue=this.ast.defaultValue:this.defaultValue=null}},{key:"getValidator",value:function(){return this.validator}},{key:"getDefaultValue",value:function(){return this.defaultValue?this.defaultValue:null}},{key:"toString",value:function(){return"Field {name="+this.name+", type="+this.getFullyQualifiedTypeName()+", array="+this.array+", optional="+this.optional+"}"}},{key:"isField",value:function(){return!0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(c);t.exports=h},722:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(4356);void 0===r.g&&r(3407);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(r=n.call(this,t,e)).process(),r}return s}(s);t.exports=u},7619:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(3133).BaseFileException;void 0===r.g&&r(3407);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t,e,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var i="",a=null;return e&&e.getName()&&(i="File '"+(a=e.getName())+"': "),r&&(i=i+"line "+r.start.line+" column "+r.start.column+", to line "+r.end.line+" column "+r.end.column+". "),i=i.charAt(0).toUpperCase()+i.slice(1),n.call(this,t,r,t+" "+i,a,o)}return s}(s);t.exports=u},9444:function(t,e,r){"use strict";void 0===r.g&&(r(4356),r(4975));var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modelManager=e}var e;return(e=[{key:"accept",value:function(t,e){return t.visit(this,e)}},{key:"getClassDeclarations",value:function(){for(var t=[],e=this.modelManager.getModelFiles(),r=0;r<e.length;r++){var n=e[r];t=t.concat(n.getAllDeclarations())}return t}},{key:"getClassDeclaration",value:function(t){return this.modelManager.getType(t)}},{key:"getModelManager",value:function(){return this.modelManager}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=n},1209:function(t,e,r){"use strict";var n=r(5076).MetaModelUtil,o=r(4975),i=r(6938),a=r(6972),s=r(3407);function u(){var t=new o,e=new s(t,n.metaModelAst,n.metaModelCto,"concerto.metamodel",!0);return t.addModelFile(e,n.metaModelCto,"concerto.metamodel"),t}function c(t){var e=u(),r=new i(e),n=new a(r,e),o=n.fromJSON(t);return n.toJSON(o)}t.exports={newMetaModelManager:u,validateMetaModel:c,modelManagerFromMetaModel:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?t:c(t),r=new o;return e.models.forEach((function(t){var e=new s(r,t,null,null,!0);r.addModelFile(e,null,null)})),r.validateModelFiles(),r}}},3407:function(t,e,r){"use strict";var n=r(3716);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=a(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},i.apply(this,arguments)}function a(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function u(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var l=r(5076).MetaModelNamespace,f=r(4147),h=r(7699),p=r(1988),d=r(8334),m=r(79),y=r(6858),g=r(9966),v=r(1081),b=r(7619),w=r(6697),A=r(5338),M=r(7386);void 0===r.g&&(r(4356),r(4975));var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(E,t);var e,r,a,M=(r=E,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=c(r);if(a){var n=c(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return u(this,t)});function E(t,e,r,n){var i;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,E),(i=M.call(this,e)).modelManager=t,i.external=!1,i.declarations=[],i.localTypes=new Map,i.imports=[],i.importShortNames=new Map,i.importWildcardNamespaces=[],i.importUriMap={},i.fileName="UNKNOWN",i.concertoVersion=null,i.version=null,!e||"object"!==o(e))throw new Error("ModelFile expects a Concerto model AST as input.");if(i.ast=e,r&&"string"!=typeof r)throw new Error("ModelFile expects an (optional) Concerto model definition as a string.");if(i.definitions=r,n&&"string"!=typeof n)throw new Error("ModelFile expects an (optional) filename as a string.");for(var a in i.fileName=n,n&&(i.external=n.startsWith("@")),i.process(),i.fromAst(i.ast),i.isCompatibleVersion(),i.declarations){var s=i.declarations[a],u=i.getNamespace()+"."+s.getName();i.localTypes.set(u,i.declarations[a])}return i}return(e=[{key:"getModelFile",value:function(){return this}},{key:"isModelFile",value:function(){return!0}},{key:"getVersion",value:function(){return this.version}},{key:"isSystemModelFile",value:function(){return this.namespace.startsWith("concerto@")||"concerto"===this.namespace}},{key:"isExternal",value:function(){return this.external}},{key:"getImportURI",value:function(t){return this.importUriMap[t]||null}},{key:"getExternalImports",value:function(){return this.importUriMap}},{key:"accept",value:function(t,e){return t.visit(this,e)}},{key:"getModelManager",value:function(){return this.modelManager}},{key:"getImports",value:function(){var t=[];return this.imports.forEach((function(e){t=t.concat(w.importFullyQualifiedNames(e))})),t}},{key:"validate",value:function(){var t=this;i(c(E.prototype),"validate",this).call(this);var e=new Map;this.getImports().forEach((function(r){var n=w.getNamespace(r),o=w.getShortName(r),i=t.getModelManager().getModelFile(n),a=w.parseNamespace(n),s=a.name,u=a.version;if(!i){var c=A.messageFormatter("modelmanager-gettype-noregisteredns");throw new b(c({type:r}),t)}var l=e.get(s);if("concerto"!==s&&void 0!==l&&l!==u){var f=A.messageFormatter("modelmanager-gettype-duplicatensimport");throw new b(f({namespace:n,version1:l,version2:u}),t)}if(e.set(s,u),!r.endsWith("*")&&!i.isLocalType(o)){var h=A.messageFormatter("modelmanager-gettype-notypeinns");throw new b(h({type:o,namespace:n}),t)}}));for(var r=0;r<this.declarations.length;r++)this.declarations[r].validate()}},{key:"resolveType",value:function(t,e,r){if(!w.isPrimitiveType(e))if(this.isImportedType(e))this.getModelManager().resolveType(t,this.resolveImport(e));else if(!this.isLocalType(e)){var n=A("en").messageFormatter("modelfile-resolvetype-undecltype");throw new b(n({type:e,context:t}),this,r)}}},{key:"isLocalType",value:function(t){return t&&null!==this.getLocalType(t)}},{key:"isImportedType",value:function(t){if(this.importShortNames.has(t))return!0;for(var e in this.importWildcardNamespaces){var r=this.importWildcardNamespaces[e],n=this.getModelManager().getModelFile(r);if(n&&n.isLocalType(t))return!0}return!1}},{key:"resolveImport",value:function(t){if(this.importShortNames.has(t))return this.importShortNames.get(t);for(var e in this.importWildcardNamespaces){var r=this.importWildcardNamespaces[e],n=this.getModelManager().getModelFile(r);if(n&&n.isLocalType(t))return r+"."+t}var o=A("en").messageFormatter("modelfile-resolveimport-failfindimp");throw new b(o({type:t,imports:this.imports,namespace:this.getNamespace()}),this)}},{key:"isDefined",value:function(t){return w.isPrimitiveType(t)||null!==this.getLocalType(t)}},{key:"getType",value:function(t){if(w.isPrimitiveType(t))return t;if(this.isImportedType(t)){var e=this.resolveImport(t),r=this.getModelManager().getModelFile(w.getNamespace(e));return r?r.getLocalType(e):null}return this.isLocalType(t)?this.getLocalType(t):null}},{key:"getFullyQualifiedTypeName",value:function(t){return w.isPrimitiveType(t)?t:this.isImportedType(t)?this.resolveImport(t):this.isLocalType(t)?this.getLocalType(t).getFullyQualifiedName():null}},{key:"getLocalType",value:function(t){return t.startsWith(this.getNamespace())||(t=this.getNamespace()+"."+t),this.localTypes.has(t)?this.localTypes.get(t):null}},{key:"getAssetDeclaration",value:function(t){var e=this.getLocalType(t);return e&&e.isAsset()?e:null}},{key:"getTransactionDeclaration",value:function(t){var e=this.getLocalType(t);return e&&e.isTransaction()?e:null}},{key:"getEventDeclaration",value:function(t){var e=this.getLocalType(t);return e&&e.isEvent()?e:null}},{key:"getParticipantDeclaration",value:function(t){var e=this.getLocalType(t);return e&&e.isParticipant()?e:null}},{key:"getNamespace",value:function(){return this.namespace}},{key:"getName",value:function(){return this.fileName}},{key:"getAssetDeclarations",value:function(){return this.getDeclarations(p)}},{key:"getTransactionDeclarations",value:function(){return this.getDeclarations(g)}},{key:"getEventDeclarations",value:function(){return this.getDeclarations(v)}},{key:"getParticipantDeclarations",value:function(){return this.getDeclarations(y)}},{key:"getConceptDeclarations",value:function(){return this.getDeclarations(m)}},{key:"getEnumDeclarations",value:function(){return this.getDeclarations(d)}},{key:"getDeclarations",value:function(t){for(var e=[],r=0;r<this.declarations.length;r++){var n=this.declarations[r];n instanceof t&&e.push(n)}return e}},{key:"getAllDeclarations",value:function(){return this.declarations}},{key:"getDefinitions",value:function(){return this.definitions}},{key:"getAst",value:function(){return this.ast}},{key:"getConcertoVersion",value:function(){return this.concertoVersion}},{key:"isCompatibleVersion",value:function(){if(this.ast.concertoVersion){if(!h.satisfies(f.version,this.ast.concertoVersion,{includePrerelease:!0}))throw new Error("ModelFile expects Concerto version ".concat(this.ast.concertoVersion," but this is ").concat(f.version));this.concertoVersion=this.ast.concertoVersion}}},{key:"enforceImportVersioning",value:function(t){if(this.getModelManager().isStrict()&&!w.parseNamespace(t.namespace).version)throw new Error("Cannot use an unversioned import ".concat(t.namespace," when 'strict' option on Model Manager is set."))}},{key:"fromAst",value:function(t){var e=this,r=w.parseNamespace(t.namespace);this.namespace=t.namespace,this.version=r.version;var o=t.imports?t.imports.concat([]):[];if(this.isSystemModelFile()||o.push({$class:"".concat(l,".ImportTypes"),namespace:"concerto@1.0.0",types:["Concept","Asset","Transaction","Participant","Event"]}),this.imports=o,this.imports.forEach((function(t){switch(e.enforceImportVersioning(t),t.$class){case"".concat(l,".ImportAll"):if(e.getModelManager().isStrict())throw new Error("Wilcard Imports are not permitted in strict mode.");n.warn("DEPRECATED: Wilcard Imports are deprecated in this version of Concerto and will be removed in a future version."),e.importWildcardNamespaces.push(t.namespace);break;case"".concat(l,".ImportTypes"):t.types.forEach((function(r){e.importShortNames.set(r,"".concat(t.namespace,".").concat(r))}));break;default:e.importShortNames.set(t.name,w.importFullyQualifiedNames(t)[0])}t.uri&&(e.importUriMap[w.importFullyQualifiedNames(t)[0]]=t.uri)})),t.declarations)for(var i=0;i<t.declarations.length;i++){var a=Object.assign({},t.declarations[i]);if(a.$class==="".concat(l,".AssetDeclaration"))a.superType||(a.superType={$class:"".concat(l,".TypeIdentified"),name:"Asset"}),this.declarations.push(new p(this,a));else if(a.$class==="".concat(l,".TransactionDeclaration"))a.superType||(a.superType={$class:"".concat(l,".TypeIdentified"),name:"Transaction"}),this.declarations.push(new g(this,a));else if(a.$class==="".concat(l,".EventDeclaration"))a.superType||(a.superType={$class:"".concat(l,".TypeIdentified"),name:"Event"}),this.declarations.push(new v(this,a));else if(a.$class==="".concat(l,".ParticipantDeclaration"))a.superType||(a.superType={$class:"".concat(l,".TypeIdentified"),name:"Participant"}),this.declarations.push(new y(this,a));else if(a.$class==="".concat(l,".EnumDeclaration"))this.declarations.push(new d(this,a));else{if(a.$class!=="".concat(l,".ConceptDeclaration")){var s=A("en").messageFormatter("modelfile-constructor-unrecmodelelem");throw new b(s({type:a.$class}),this)}this.declarations.push(new m(this,a))}}}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(E.prototype,e),E}(M);t.exports=E},3534:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(9736).isNull,u=r(6017);void 0===r.g&&r(4833);var c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(c,t);var e,r,n,u=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function c(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(r=u.call(this,t,e)).lowerBound=null,r.upperBound=null,Object.prototype.hasOwnProperty.call(e,"lower")&&(r.lowerBound=e.lower),Object.prototype.hasOwnProperty.call(e,"upper")&&(r.upperBound=e.upper),null===r.lowerBound&&null===r.upperBound?r.reportError(null,"Invalid range, lower and-or upper bound must be specified."):null===r.lowerBound||null===r.upperBound||r.lowerBound>r.upperBound&&r.reportError(null,"Lower bound must be less than or equal to upper bound."),r}return(e=[{key:"getLowerBound",value:function(){return this.lowerBound}},{key:"getUpperBound",value:function(){return this.upperBound}},{key:"validate",value:function(t,e){null!==e&&(null!==this.lowerBound&&e<this.lowerBound&&this.reportError(t,"Value ".concat(e," is outside lower bound ").concat(this.lowerBound)),null!==this.upperBound&&e>this.upperBound&&this.reportError(t,"Value ".concat(e," is outside upper bound ").concat(this.upperBound)))}},{key:"toString",value:function(){return"NumberValidator lower: "+this.lowerBound+" upper: "+this.upperBound}},{key:"compatibleWith",value:function(t){if(!(t instanceof c))return!1;var e=this.getLowerBound(),r=t.getLowerBound();if(s(e)&&!s(r))return!1;if(!s(e)&&!s(r)&&e<r)return!1;var n=this.getUpperBound(),o=t.getUpperBound();return!(s(n)&&!s(o)||!s(n)&&!s(o)&&n>o)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(u);t.exports=c},6858:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(722);void 0===r.g&&r(3407);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t,e)}return(e=[{key:"declarationKind",value:function(){return"ParticipantDeclaration"}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(s);t.exports=u},5960:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(5076).MetaModelNamespace,l=r(6697),f=r(7386);void 0===r.g&&(r(4356),r(3407));var h=["null","true","false"],p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(f,t);var e,r,n,i=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function f(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(r=i.call(this,e)).parent=t,r.process(),r}return(e=[{key:"getModelFile",value:function(){return this.parent.getModelFile()}},{key:"getParent",value:function(){return this.parent}},{key:"process",value:function(){if(o(u(f.prototype),"process",this).call(this),h.includes(this.ast.name))throw new Error("Validator error for field 'name'. '".concat(this.ast.name,"' is a reserved name."));if(this.name=this.ast.name,this.decorator=null,!this.name)throw new Error("No name for type "+JSON.stringify(this.ast));this.ast.$class==="".concat(c,".BooleanProperty")?this.type="Boolean":this.ast.$class==="".concat(c,".StringProperty")?this.type="String":this.ast.$class==="".concat(c,".IntegerProperty")?this.type="Integer":this.ast.$class==="".concat(c,".LongProperty")?this.type="Long":this.ast.$class==="".concat(c,".DoubleProperty")?this.type="Double":this.ast.$class==="".concat(c,".DateTimeProperty")?this.type="DateTime":this.ast.$class==="".concat(c,".ObjectProperty")?this.type=this.ast.type?this.ast.type.name:null:this.ast.$class==="".concat(c,".RelationshipProperty")?this.type=this.ast.type.name:this.type=null,this.array=!1,this.ast.isArray&&(this.array=!0),this.ast.isOptional?this.optional=!0:this.optional=!1}},{key:"validate",value:function(t){o(u(f.prototype),"validate",this).call(this),this.type&&t.getModelFile().resolveType("property "+this.getFullyQualifiedName(),this.type)}},{key:"getName",value:function(){return this.name}},{key:"getType",value:function(){return this.type}},{key:"isOptional",value:function(){return this.optional}},{key:"getFullyQualifiedTypeName",value:function(){if(this.isPrimitive())return this.type;var t=this.getParent();if(!t)throw new Error("Property "+this.name+" does not have a parent.");var e=t.getModelFile();if(!e)throw new Error("Parent of property "+this.name+" does not have a ModelFile!");var r=e.getFullyQualifiedTypeName(this.type);if(!r)throw new Error("Failed to find fully qualified type name for property "+this.name+" with type "+this.type);return r}},{key:"getFullyQualifiedName",value:function(){return this.getParent().getFullyQualifiedName()+"."+this.getName()}},{key:"getNamespace",value:function(){return this.getParent().getNamespace()}},{key:"isArray",value:function(){return this.array}},{key:"isTypeEnum",value:function(){return!this.isPrimitive()&&this.getParent().getModelFile().getType(this.getType()).isEnum()}},{key:"isPrimitive",value:function(){return l.isPrimitiveType(this.getType())}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(f.prototype,e),f}(f);t.exports=p},3988:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(5960),l=r(7619),f=r(6697);void 0===r.g&&r(4356);var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(c,t);var e,r,n,i=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function c(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t,e)}return(e=[{key:"validate",value:function(t){if(o(u(c.prototype),"validate",this).call(this,t),!this.getType())throw new l("Relationship must have a type",t.getModelFile(),this.ast.location);var e=null;if(f.isPrimitiveType(this.getType()))throw new l("Relationship "+this.getName()+" cannot be to the primitive type "+this.getType(),t.getModelFile(),this.ast.location);if(this.getParent().getNamespace()===f.getNamespace(this.getFullyQualifiedTypeName()))e=this.getParent().getModelFile().getType(this.getType());else try{e=this.getParent().getModelFile().getModelManager().getType(this.getFullyQualifiedTypeName())}catch(t){}if(null===e)throw new l("Relationship "+this.getName()+" points to a missing type "+this.getFullyQualifiedTypeName(),t.getModelFile(),this.ast.location);if(!e.isIdentified())throw new l("Relationship "+this.getName()+" must be to a class that has an identifier, but this is to "+this.getFullyQualifiedTypeName(),t.getModelFile(),this.ast.location)}},{key:"toString",value:function(){return"RelationshipDeclaration {name="+this.name+", type="+this.getFullyQualifiedTypeName()+", array="+this.array+", optional="+this.optional+"}"}},{key:"isRelationship",value:function(){return!0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(c);t.exports=h},8631:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(6017);void 0===r.g&&r(4833);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),r=s.call(this,t,e);try{var n,o,i,a,c=(null==t||null===(n=t.parent)||void 0===n||null===(o=n.getModelFile())||void 0===o||null===(i=o.getModelManager())||void 0===i||null===(a=i.options)||void 0===a?void 0:a.regExp)||RegExp;r.regex=new c(e.pattern,e.flags)}catch(e){r.reportError(t.getName(),e.message)}return r}return(e=[{key:"validate",value:function(t,e){null!==e&&(this.regex.test(e)||this.reportError(t,"Value '"+e+"' failed to match validation regex: "+this.regex))}},{key:"getRegex",value:function(){return this.regex}},{key:"compatibleWith",value:function(t){return t instanceof u&&this.validator.pattern===t.validator.pattern&&this.validator.flags===t.validator.flags}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(s);t.exports=u},9966:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(722);void 0===r.g&&r(3407);var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t,e)}return(e=[{key:"declarationKind",value:function(){return"TransactionDeclaration"}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(s);t.exports=u},6017:function(t,e,r){"use strict";void 0===r.g&&r(4833);var n=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.validator=r,this.field=e}var e;return(e=[{key:"reportError",value:function(t,e){throw new Error("Validator error for field `"+t+"`. "+this.getField().getFullyQualifiedName()+": "+e)}},{key:"accept",value:function(t,e){return t.visit(this,e)}},{key:"getField",value:function(){return this.field}},{key:"validate",value:function(t,e){}},{key:"compatibleWith",value:function(t){return!1}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=n},8894:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(3228),u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(c,t);var e,r,n,u=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function c(t,e,r,n,o,i){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(a=u.call(this,t,e,r,n)).$identifier=o,a.$timestamp=i,a}return(e=[{key:"getTimestamp",value:function(){return this.$timestamp}},{key:"getIdentifier",value:function(){return this.$identifier}},{key:"setIdentifier",value:function(t){this.$identifier=t,this[this.$modelManager.getModelFile(this.getNamespace()).getType(this.getFullyQualifiedType()).getIdentifierFieldName()]=t}},{key:"getFullyQualifiedIdentifier",value:function(){return this.$identifier?this.getFullyQualifiedType()+"#"+this.$identifier:this.getFullyQualifiedType()}},{key:"toString",value:function(){return"Identifiable {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isRelationship",value:function(){return!1}},{key:"isResource",value:function(){return!1}},{key:"toURI",value:function(){return new s(this.getNamespace(),this.getType(),this.getIdentifier()).toURI()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(r(2989));t.exports=u},4469:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function a(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=r(8894),c=r(6697),l=r(3228);void 0===r.g&&r(4975);var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(p,t);var e,r,n,u,f,h=(u=p,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(u);if(f){var r=s(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return a(this,t)});function p(t,e,r,n,o,i){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),(a=h.call(this,t,e,r,n,o,i)).$class="Relationship",a}return e=p,n=[{key:"fromURI",value:function(t,e,r,n){var o=l.fromURI(e,r,n),i=c.getFullyQualifiedName(o.namespace,o.type),a=t.getType(i);return new p(t,a,o.namespace,o.type,o.id)}}],(r=[{key:"toString",value:function(){return"Relationship {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isRelationship",value:function(){return!0}}])&&o(e.prototype,r),n&&o(e,n),p}(u);t.exports=f},8031:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e,r,n,o,i){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t,e,r,n,o,i)}return(e=[{key:"toString",value:function(){return"Resource {id="+this.getFullyQualifiedIdentifier()+"}"}},{key:"isResource",value:function(){return!0}},{key:"isConcept",value:function(){return this.getClassDeclaration().isConcept()}},{key:"isIdentifiable",value:function(){return this.getClassDeclaration().isIdentified()}},{key:"toJSON",value:function(){return this.getModelManager().getSerializer().toJSON(this)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(r(8894));t.exports=s},3228:function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=r(957),i=r(6697),a=function(){function t(e,r,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw new Error("Missing namespace");if(!r)throw new Error("Missing type");if(!n)throw new Error("Missing id");this.namespace=e,this.type=r,this.id=n}var e,r,a;return e=t,a=[{key:"fromURI",value:function(e,r,n){var a;try{a=o.parse(e)}catch(t){throw new Error("Invalid URI: "+e)}var s,u,c=a.protocol;if(c&&"resource"!==c)throw new Error("Invalid URI scheme: "+e);if(a.username||a.password||a.port||a.query)throw new Error("Invalid resource URI format: "+e);var l=a.fragment;if(l){var f=a.path;s=i.getNamespace(f),u=i.getShortName(f)}else s=r,u=n,l=a.path;return new t(s,u,decodeURIComponent(l))}}],(r=[{key:"toURI",value:function(){return"resource:"+i.getFullyQualifiedName(this.namespace,this.type)+"#"+encodeURI(this.id)}}])&&n(e.prototype,r),a&&n(e,a),t}();t.exports=a},2989:function(t,e,r){"use strict";var n=r(8879),o=r(264);n.extend(o),void 0===r.g&&(r(4356),r(4975));var i=function(){function t(e,r,n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$modelManager=e,this.$classDeclaration=r,this.$namespace=n,this.$type=o}var e;return(e=[{key:"accept",value:function(t,e){return t.visit(this,e)}},{key:"getModelManager",value:function(){return this.$modelManager}},{key:"getType",value:function(){return this.$type}},{key:"getFullyQualifiedType",value:function(){return this.$classDeclaration.getFullyQualifiedName()}},{key:"getNamespace",value:function(){return this.$namespace}},{key:"getClassDeclaration",value:function(){return this.$classDeclaration}},{key:"setPropertyValue",value:function(t,e){this[t]=e}},{key:"addArrayValue",value:function(t,e){this[t]?this[t].push(e):this[t]=[e]}},{key:"assignFieldDefaults",value:function(){for(var t=this.getClassDeclaration().getProperties(),e=0;e<t.length;e++){var r,o=t[e];if(null!==(r=o.isField)&&void 0!==r&&r.call(o)){var i=o.getDefaultValue();if(i)if("String"===o.getType())this.setPropertyValue(o.getName(),i);else if("Integer"===o.getType())this.setPropertyValue(o.getName(),parseInt(i));else if("Long"===o.getType())this.setPropertyValue(o.getName(),parseInt(i));else if("Double"===o.getType())this.setPropertyValue(o.getName(),parseFloat(i));else if("Boolean"===o.getType())this.setPropertyValue(o.getName(),!0===i);else if("DateTime"===o.getType()){var a=n.utc(i);this.setPropertyValue(o.getName(),a)}else this.setPropertyValue(o.getName(),i)}}}},{key:"instanceOf",value:function(t){var e=this.getClassDeclaration();if(e.getFullyQualifiedName()===t)return!0;for(var r=e.getSuperTypeDeclaration();r;){if(r.getFullyQualifiedName()===t)return!0;r=r.getSuperTypeDeclaration()}return!1}},{key:"toJSON",value:function(){throw new Error("Use Serializer.toJSON to convert resource instances to JSON objects.")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=i},8938:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(3133).TypedStack,l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(l,t);var e,r,n,i=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function l(t,e,r,n,o,a,s){var u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(u=i.call(this,t,e,r,n,o,a)).$validator=s,u}return(e=[{key:"setPropertyValue",value:function(t,e){var r=this.getClassDeclaration().getProperty(t);if(!r)throw new Error("The instance with id "+this.getIdentifier()+" trying to set field "+t+" which is not declared in the model.");var n={};n.stack=new c(e),n.modelManager=this.getModelManager(),n.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),r.accept(this.$validator,n),o(u(l.prototype),"setPropertyValue",this).call(this,t,e)}},{key:"addArrayValue",value:function(t,e){var r=this.getClassDeclaration().getProperty(t);if(!r)throw new Error("The instance with id "+this.getIdentifier()+" trying to set field "+t+" which is not declared in the model.");if(!r.isArray())throw new Error("The instance with id "+this.getIdentifier()+" trying to add array item "+t+" which is not declared as an array in the model.");var n={},i=[];this[t]&&(i=this[t].slice(0)),i.push(e),n.stack=new c(i),n.modelManager=this.getModelManager(),n.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),r.accept(this.$validator,n),o(u(l.prototype),"addArrayValue",this).call(this,t,e)}},{key:"validate",value:function(){var t=this.getClassDeclaration(),e={};e.stack=new c(this),e.modelManager=this.getModelManager(),e.rootResourceIdentifier=this.getFullyQualifiedIdentifier(),t.accept(this.$validator,e)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(l.prototype,e),l}(r(8031));t.exports=l},1997:function(t,e,r){"use strict";function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function s(t){i(a,n,o,s,u,"next",t)}function u(t){i(a,n,o,s,u,"throw",t)}s(void 0)}))}}var s=r(2203),u=r(6739).Parser,c=r(3133).DefaultFileLoader,l=r(3407),f=r(4975),h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,o,i,h;return e=t,r=[{key:"addModel",value:(h=a(regeneratorRuntime.mark((function t(e,r,n){var o,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=null,!e.accepts(n)){t.next=7;break}return t.next=4,e.load(n);case 4:o=t.sent,t.next=10;break;case 7:i=s.readFileSync(n,"utf8"),a=u.parse(i,n),o=new l(r,a,i,n);case 10:return r.addModelFile(o,null,o.getName(),!0),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)}))),function(t,e,r){return h.apply(this,arguments)})},{key:"loadModelManager",value:(i=a(regeneratorRuntime.mark((function e(r){var o,i,a,s,h,p,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=d.length>1&&void 0!==d[1]?d[1]:{offline:!1,strict:!1},i=new f(o),a=new c((function(t,e){var r=u.parse(e);return new l(i,r,e,t)})),s=n(r),e.prev=5,s.s();case 7:if((h=s.n()).done){e.next=14;break}return p=h.value,e.next=11,t.addModel(a,i,p);case 11:i=e.sent;case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),s.e(e.t0);case 19:return e.prev=19,s.f(),e.finish(19);case 22:if(!o||!o.offline){e.next=27;break}return i.validateModelFiles(),e.abrupt("return",i);case 27:return e.next=29,i.updateExternalModels();case 29:return e.abrupt("return",i);case 30:case"end":return e.stop()}}),e,null,[[5,16,19,22]])}))),function(t){return i.apply(this,arguments)})},{key:"loadModelManagerFromModelFiles",value:(o=a(regeneratorRuntime.mark((function t(e,r){var n,o,i=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=i.length>2&&void 0!==i[2]?i[2]:{offline:!1,strict:!1},(o=new f(n)).addModelFiles(e,r,!0),!n||!n.offline){t.next=8;break}return o.validateModelFiles(),t.abrupt("return",o);case 8:return t.next=10,o.updateExternalModels();case 10:return t.abrupt("return",o);case 11:case"end":return t.stop()}}),t)}))),function(t,e){return o.apply(this,arguments)})}],r&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e,r),t}();t.exports=h},4975:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(6739).Parser,u=r(9379),c=r(5130)("concerto:BaseModelManager");void 0===r.g&&r(3407);var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(l,t);var e,r,n,u=(r=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.call(this,t,function(t){return function(e,r){var n={skipLocationNodes:null==t?void 0:t.skipLocationNodes};return{ast:s.parse(r,e,n),definitions:r,fileName:e}}}(t))}return(e=[{key:"addCTOModel",value:function(t,e,r){return c("addCTOModel","addCTOModel",t,e),this.addModel(t,t,e,r)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(l.prototype,e),l}(u);t.exports=l},6697:function(t,e,r){"use strict";var n=r(5076).MetaModelUtil,o=r(7699),i=r(5338),a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return e=[{key:"getShortName",value:function(t){var e=t,r=t.lastIndexOf(".");return r>-1&&(e=t.substr(r+1)),e}},{key:"getNamespace",value:function(t){if(!t)throw new Error(i.formatMessage("modelutil-getnamespace-nofnq"));var e="",r=t.lastIndexOf(".");return r>-1&&(e=t.substr(0,r)),e}},{key:"parseNamespace",value:function(t){if(!t)throw new Error("Namespace is null or undefined.");var e=t.split("@");if(e.length>2)throw new Error("Invalid namespace ".concat(t));if(2===e.length&&!o.valid(e[1]))throw new Error("Invalid namespace ".concat(t));return{name:e[0],escapedNamespace:t.replace("@","_"),version:e.length>1?e[1]:null,versionParsed:e.length>1?o.parse(e[1]):null}}},{key:"importFullyQualifiedNames",value:function(t){return n.importFullyQualifiedNames(t)}},{key:"isPrimitiveType",value:function(t){return["Boolean","String","DateTime","Double","Integer","Long"].indexOf(t)>=0}},{key:"isAssignableTo",value:function(e,r,n){var o=n.getFullyQualifiedTypeName(),i=r===o;if(i||t.isPrimitiveType(r)||t.isPrimitiveType(o))return i;var a=e.getType(r);if(!a)throw new Error("Cannot find type "+r);return a.getAllSuperTypeDeclarations().some((function(t){return t.getFullyQualifiedName()===o}))}},{key:"capitalizeFirstLetter",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},{key:"isEnum",value:function(t){var e=t.getParent().getModelFile().getType(t.getType());return null!==e&&e.isEnum()}},{key:"getFullyQualifiedName",value:function(t,e){return t?"".concat(t,".").concat(e):e}},{key:"removeNamespaceVersionFromFullyQualifiedName",value:function(e){if(t.isPrimitiveType(e))return e;var r=t.getNamespace(e),n=t.parseNamespace(r).name,o=t.getShortName(e);return t.getFullyQualifiedName(n,o)}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t,e),t}();t.exports=a},4449:function(t,e,r){"use strict";var n=r(4376);t.exports={getRootModel:function(t){var e=t?"concerto_1.0.0.cto":"concerto.cto",r=t?"concerto@1.0.0":"concerto",o='@DotNetNamespace("AccordProject.Concerto")\n namespace '.concat(r,"\n abstract concept Concept {}\n abstract concept Asset identified {}\n abstract concept Participant identified {}\n abstract concept Transaction {}\n abstract concept Event {}\n "),i=JSON.parse(JSON.stringify(n));return i.namespace=r,{rootModelFile:e,rootModelCto:o,rootModelAst:i}}}},9022:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),n.call(this,t)}return s}(r(3133).BaseException);t.exports=s},6972:function(t,e,r){"use strict";var n=r(3133).TypedStack,o=r(7663),i=r(5338),a=r(7724),s=r(6235),u=r(2989),c=r(1399),l={validate:!0,ergo:!1,utcOffset:o.setCurrentTime().utcOffset};void 0===r.g&&(r(6938),r(4975),r(8031));var f=function(){function t(e,r,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e)throw new Error(i.formatMessage("serializer-constructor-factorynull"));if(!r)throw new Error(i.formatMessage("serializer-constructor-modelmanagernull"));this.factory=e,this.modelManager=r,this.defaultOptions=Object.assign({},l,n||{})}var e;return(e=[{key:"setDefaultOptions",value:function(t){this.defaultOptions=Object.assign({},l,t)}},{key:"toJSON",value:function(t,e){if(!(t instanceof u))throw new Error(i.formatMessage("serializer-tojson-notcobject"));var r={};r.stack=new n(t),r.modelManager=this.modelManager,r.seenResources=new Set,r.dedupeResources=new Set;var o=this.modelManager.getType(t.getFullyQualifiedType());if((e=e?Object.assign({},this.defaultOptions,e):this.defaultOptions).validate){var s=new c(e);o.accept(s,r)}var l=new a(!0===e.convertResourcesToRelationships,!0===e.permitResourcesForRelationships,!0===e.deduplicateResources,!0===e.convertResourcesToId,!0===e.ergo,e.utcOffset);return r.stack.clear(),r.stack.push(t),o.accept(l,r)}},{key:"fromJSON",value:function(t,e){if((e=e?Object.assign({},this.defaultOptions,e):this.defaultOptions)&&!0===e.ergo){var r=t.$class.$coll[0];(t=t.$data).$class=r}if(!t.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier.");var o,i=this.modelManager.getType(t.$class);if(i.isTransaction())o=this.factory.newTransaction(i.getNamespace(),i.getName(),t[i.getIdentifierFieldName()]);else if(i.isEvent())o=this.factory.newEvent(i.getNamespace(),i.getName(),t[i.getIdentifierFieldName()]);else if(i.isConcept())o=this.factory.newConcept(i.getNamespace(),i.getName(),t[i.getIdentifierFieldName()]);else{if(i.isEnum())throw new Error("Attempting to create an ENUM declaration is not supported.");o=this.factory.newResource(i.getNamespace(),i.getName(),t[i.getIdentifierFieldName()])}var a={};a.jsonStack=new n(t),a.resourceStack=new n(o),a.modelManager=this.modelManager,a.factory=this.factory;var u=new s(!0===e.acceptResourcesForRelationships,!0===e.ergo,e.utcOffset);return i.accept(u,a),e.validate&&o.validate(),o}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=f},97:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var o=r(6697),i=r(9736),a=r(5338),s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return(e=[{key:"visit",value:function(t,e){var r,n,o;if(null!==(r=t.isClassDeclaration)&&void 0!==r&&r.call(t))return this.visitClassDeclaration(t,e);if(null!==(n=t.isRelationship)&&void 0!==n&&n.call(t))return this.visitRelationshipDeclaration(t,e);if(null!==(o=t.isField)&&void 0!==o&&o.call(t))return this.visitField(t,e);throw new Error("Unrecognised "+JSON.stringify(t))}},{key:"visitClassDeclaration",value:function(t,e){var r,o=e.stack.pop(),a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(t.getProperties());try{for(a.s();!(r=a.n()).done;){var s=r.value;if(e.includeOptionalFields||!s.isOptional()){var u=o[s.getName()];i.isNull(u)&&(o[s.getName()]=s.accept(this,e))}}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"visitField",value:function(t,e){var r,n=this;if(t.isPrimitive())e.seen.push("Primitve");else{var o=t.getFullyQualifiedTypeName(),i=e.modelManager.getType(o),a=(i=this.findConcreteSubclass(i)).getFullyQualifiedName();if(e.seen.includes(a)){if(t.isArray())return[];if(t.isOptional())return null;throw new Error("Model is recursive.")}e.seen.push(a)}return r=t.isArray()?e.valueGenerator.getArray((function(){return n.getFieldValue(t,e)})):this.getFieldValue(t,e),e.seen.pop(),r}},{key:"getFieldValue",value:function(t,e){var r=t.getFullyQualifiedTypeName();if(o.isPrimitiveType(r))switch(r){case"DateTime":return e.valueGenerator.getDateTime();case"Integer":return t.validator?e.valueGenerator.getRange(t.validator.lowerBound,t.validator.upperBound,r):e.valueGenerator.getInteger();case"Long":return t.validator?e.valueGenerator.getRange(t.validator.lowerBound,t.validator.upperBound,r):e.valueGenerator.getLong();case"Double":return t.validator?e.valueGenerator.getRange(t.validator.lowerBound,t.validator.upperBound,r):e.valueGenerator.getDouble();case"Boolean":return e.valueGenerator.getBoolean();default:return t.validator?e.valueGenerator.getRegex(t.validator.regex):e.valueGenerator.getString()}var n=e.modelManager.getType(r);if(n.isEnum()){var i=n.getOwnProperties();return e.valueGenerator.getEnum(i).getName()}var a=null;(n=this.findConcreteSubclass(n)).isIdentified()&&(a=this.generateRandomId(n));var s=e.factory.newResource(n.getNamespace(),n.getName(),a);return e.stack.push(s),n.accept(this,e)}},{key:"findConcreteSubclass",value:function(t){if(!t.isAbstract())return t;var e=t.getAssignableClassDeclarations().filter((function(t){return!t.isAbstract()}));if(0===e.length){var r=a.messageFormatter("instancegenerator-newinstance-noconcreteclass");throw new Error(r({type:t.getFullyQualifiedName()}))}return e[0]}},{key:"visitRelationshipDeclaration",value:function(t,e){var r=this,n=e.modelManager.getType(t.getFullyQualifiedTypeName());n=this.findConcreteSubclass(n);var o=e.factory,i=function(){var t=r.generateRandomId(n);return o.newRelationship(n.getNamespace(),n.getName(),t)};return t.isArray()?e.valueGenerator.getArray(i):i()}},{key:"generateRandomId",value:function(t){return Math.round(9999*Math.random()).toString().padStart(4,"0")}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=s},7724:function(t,e,r){"use strict";var n=r(8031),o=r(2989),i=r(6697),a=r(9736),s=function(){function t(e,r,n,o,i,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.convertResourcesToRelationships=e,this.permitResourcesForRelationships=r,this.deduplicateResources=n,this.convertResourcesToId=o,this.ergo=i,this.utcOffset=a||0}var e;return(e=[{key:"visit",value:function(t,e){var r,n,o;if(null!==(r=t.isClassDeclaration)&&void 0!==r&&r.call(t))return this.visitClassDeclaration(t,e);if(null!==(n=t.isRelationship)&&void 0!==n&&n.call(t))return this.visitRelationshipDeclaration(t,e);if(null!==(o=t.isField)&&void 0!==o&&o.call(t))return this.visitField(t,e);throw new Error("Unrecognised "+JSON.stringify(t))}},{key:"visitClassDeclaration",value:function(t,e){var r=e.stack.pop();if(!(r instanceof n))throw new Error("Expected a Resource, but found "+r);var o={},i=null;if(r.isIdentifiable()&&this.deduplicateResources){if(i=r.toURI(),e.dedupeResources.has(i))return i;e.dedupeResources.add(i)}o.$class=t.getFullyQualifiedName(),this.deduplicateResources&&i&&(o.$id=i);var s=t.getProperties();for(var u in s){var c=s[u],l=r[c.getName()];a.isNull(l)?this.ergo&&(o[c.getName()]={$right:null}):(e.stack.push(l),o[c.getName()]=c.accept(this,e))}if(this.ergo){var f=o.$class;delete o.$class,o={$class:{$coll:[f],$length:1},$data:o}}return o}},{key:"visitField",value:function(t,e){var r,n=e.stack.pop();if(t.isArray()){var a=[];for(var s in n){var u=n[s];if(t.isPrimitive()||i.isEnum(t))a.push(this.convertToJSON(t,u));else{e.stack.push(u,o);var c=e.modelManager.getType(u.getFullyQualifiedType());a.push(c.accept(this,e))}}r=this.ergo?{$coll:a,$length:a.length}:a}else if(t.isPrimitive())r=this.convertToJSON(t,n);else if(i.isEnum(t))if(this.ergo){for(var l=t.getParent().getModelFile().getType(t.getType()),f=l.getFullyQualifiedName(),h=l.getProperties(),p={$left:n},d=0;d<h.length&&h[d].getName()!==n;d++)p={$right:p};r={$class:[f],$data:p}}else r=this.convertToJSON(t,n);else e.stack.push(n),r=e.modelManager.getType(n.getFullyQualifiedType()).accept(this,e);return t.isOptional()&&this.ergo&&(r=r?{$left:r}:{$right:r}),r}},{key:"convertToJSON",value:function(t,e){switch(t.getType()){case"DateTime":var r=e.utc().utcOffset(this.utcOffset);if(this.ergo)return r;var n=0===r.utcOffset();return r.format("YYYY-MM-DDTHH:mm:ss.SSS".concat(n?"[Z]":"Z"));case"Integer":case"Long":return this.ergo?{$nat:e}:e;default:return e}}},{key:"visitRelationshipDeclaration",value:function(t,e){var r,o=e.stack.pop();if(t.isArray()){var i=[];for(var a in o){var s=o[a];if(this.permitResourcesForRelationships&&s instanceof n){var u=s.getFullyQualifiedIdentifier();if(e.seenResources.has(u)){var c=this.getRelationshipText(t,s);i.push(c)}else{e.seenResources.add(u),e.stack.push(s,n);var l=e.modelManager.getType(t.getFullyQualifiedTypeName());i.push(l.accept(this,e)),e.seenResources.delete(u)}}else{var f=this.getRelationshipText(t,s);i.push(f)}}r=this.ergo?{$coll:i,$length:i.length}:i}else if(this.permitResourcesForRelationships&&o instanceof n){var h=o.getFullyQualifiedIdentifier();e.seenResources.has(h)?r=this.getRelationshipText(t,o):(e.seenResources.add(h),e.stack.push(o,n),r=e.modelManager.getType(t.getFullyQualifiedTypeName()).accept(this,e),e.seenResources.delete(h))}else r=this.getRelationshipText(t,o);return r}},{key:"getRelationshipText",value:function(t,e){if(e instanceof n&&!this.convertResourcesToRelationships&&!this.permitResourcesForRelationships)throw new Error("Did not find a relationship for "+t.getFullyQualifiedTypeName()+" found "+e);return this.convertResourcesToId?e.getIdentifier():e.toURI()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=s},6235:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(3133).TypedStack,i=r(4469),a=r(9736),s=r(6697),u=r(9557),c=r(8879),l=r(264);c.extend(l);var f=r(3134);c.extend(f);var h=r(7995);c.extend(h);var p=r(4989);c.extend(p);var d=function(){function t(e,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.acceptResourcesForRelationships=e,this.ergo=r,this.utcOffset=n||0}var e;return e=[{key:"visit",value:function(t){var e,r,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!==(e=a.path)&&void 0!==e||(a.path=new o("$")),null!==(r=t.isClassDeclaration)&&void 0!==r&&r.call(t))return this.visitClassDeclaration(t,a);if(null!==(n=t.isRelationship)&&void 0!==n&&n.call(t))return this.visitRelationshipDeclaration(t,a);if(null!==(i=t.isField)&&void 0!==i&&i.call(t))return this.visitField(t,a);throw new Error("Unrecognised "+JSON.stringify(t))}},{key:"visitClassDeclaration",value:function(t,e){var r,n=this,i=e.jsonStack.pop(),s=e.resourceStack.pop();null!==(r=e.path)&&void 0!==r||(e.path=new o("$"));var c,l=(c=i,Object.keys(c).filter((function(t){return!(t.startsWith("$")||a.isNull(c[t]))})));return function(t,e){var r=e.getProperties().map((function(t){return t.getName()})),n=t.filter((function(t){return!r.includes(t)}));if(n.length>0){var o="Unexpected properties for type ".concat(e.getFullyQualifiedName(),": ")+n.join(", ");throw new u(o)}}(l,t),l.forEach((function(r){var o=i[r];if(n.ergo&&(Object.prototype.hasOwnProperty.call(o,"$left")?o=o.$left:Object.prototype.hasOwnProperty.call(o,"$right")&&(o=o.$right)),null!==o){e.path.push(".".concat(r)),e.jsonStack.push(o);var a=t.getProperty(r);s[r]=a.accept(n,e),e.path.pop()}})),s}},{key:"visitField",value:function(t,e){var r;null!==(r=e.path)&&void 0!==r||(e.path=new o("$"));var n=e.jsonStack.pop(),i=null;if(t.isArray()){this.ergo&&Object.prototype.hasOwnProperty.call(n,"$coll")&&(n=n.$coll.slice(0,n.$length)),i=[];for(var a=0;a<n.length;a++){e.path.push("[".concat(a,"]"));var s=n[a];i.push(this.convertItem(t,s,e)),e.path.pop()}}else i=this.convertItem(t,n,e);return i}},{key:"convertItem",value:function(t,e,r){var n=null;if(t.isPrimitive()||t.isTypeEnum())n=this.convertToObject(t,e,r);else{if(this.ergo){var o=e.$class.$coll[0];(e=e.$data).$class=o}var i=e.$class;i||(i=t.getFullyQualifiedTypeName());var a,s=r.modelManager.getType(i);n=a=s.isIdentified()?r.factory.newResource(s.getNamespace(),s.getName(),e[s.getIdentifierFieldName()]):r.factory.newConcept(s.getNamespace(),s.getName()),r.resourceStack.push(a),r.jsonStack.push(e),s.accept(this,r)}return n}},{key:"convertToObject",value:function(t,e){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=null;null!==(r=i.path)&&void 0!==r||(i.path=new o("$"));var s=i.path.stack.join("");switch(t.getType()){case"DateTime":if(e&&"object"===n(e)&&"function"==typeof e.isBefore)a=e;else{if("string"!=typeof e)throw new u("Expected value at path `".concat(s,"` to be of type `").concat(t.getType(),"`"));a=c.utc(e).utcOffset(this.utcOffset)}if(!a.isValid())throw new u("Expected value at path `".concat(s,"` to be of type `").concat(t.getType(),"`"));break;case"Integer":case"Long":var l=this.ergo?e.$nat:e;if("number"!=typeof l)throw new u("Expected value at path `".concat(s,"` to be of type `").concat(t.getType(),"`"));if(Math.trunc(l)!==l)throw new u("Expected value at path `".concat(s,"` to be of type `").concat(t.getType(),"`"));a=l;break;case"Double":if("number"!=typeof e)throw new u("Expected value at path `".concat(s,"` to be of type `").concat(t.getType(),"`"));a=parseFloat(e);break;case"Boolean":if("boolean"!=typeof e)throw new u("Expected value at path `".concat(s,"` to be of type `").concat(t.getType(),"`"));a=e;break;case"String":if("string"!=typeof e)throw new u("Expected value at path `".concat(s,"` to be of type `").concat(t.getType(),"`"));a=e;break;default:if(this.ergo){for(var f=e.$data;!f.$left;)f=f.$right;a=f.$left}else a=e}return a}},{key:"visitRelationshipDeclaration",value:function(t,e){var r;null!==(r=e.path)&&void 0!==r||(e.path=new o("$"));var n=e.jsonStack.pop(),a=null,u=t.getFullyQualifiedTypeName(),c=s.getNamespace(u);c||(c=t.getNamespace());var l=s.getShortName(u);if(t.isArray()){a=[];for(var f=0;f<n.length;f++){var h=n[f];if("string"==typeof h)a.push(i.fromURI(e.modelManager,h,c,l));else{if(!this.acceptResourcesForRelationships)throw new Error("Invalid JSON data. Found a value that is not a string: "+n+" for relationship "+t);if(!h.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier: "+h+" for relationship "+t);if(this.ergo){var p=h.$class.$coll[0];(h=h.$data).$class=p}var d=e.modelManager.getType(h.$class),m=e.factory.newResource(d.getNamespace(),d.getName(),h[d.getIdentifierFieldName()]);e.jsonStack.push(h),e.resourceStack.push(m),d.accept(this,e),a.push(m)}}}else if("string"==typeof n)a=i.fromURI(e.modelManager,n,c,l);else{if(!this.acceptResourcesForRelationships)throw new Error("Invalid JSON data. Found a value that is not a string: "+n+" for relationship "+t);if(!n.$class)throw new Error("Invalid JSON data. Does not contain a $class type identifier: "+n+" for relationship "+t);if(this.ergo){var y=n.$class.$coll[0];(n=n.$data).$class=y}var g=e.modelManager.getType(n.$class),v=e.factory.newResource(g.getNamespace(),g.getName(),n[g.getIdentifierFieldName()]);e.jsonStack.push(n),e.resourceStack.push(v),g.accept(this,e),a=v}return a}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=d},1607:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=r(9736),a=r(6697),s=r(9557),u=r(5338),c=r(8879),l=r(264);c.extend(l);var f=function(){function t(e,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=r||{},this.concerto=e,!this.concerto)throw new Error("Missing concerto instance")}var e,r,l;return e=t,l=[{key:"reportFieldTypeViolation",value:function(t,e,r,o,i){var a=o.isArray()?"[]":"",c=n(r);if(i.isObject(r)&&i.isIdentifiable(r))c=i.getType(r),r=i.getIdentifier(r);else if(r)try{r=JSON.stringify(r)}catch(t){r=r.toString()}var l=u.messageFormatter("resourcevalidator-fieldtypeviolation");throw new s(l({resourceId:t,propertyName:e,fieldType:o.getType()+a,value:r,typeOfValue:c}))}},{key:"reportNotRelationshipViolation",value:function(t,e,r){var n=u.messageFormatter("resourcevalidator-notrelationship");throw new s(n({resourceId:t,classFQN:e.getFullyQualifiedTypeName(),invalidValue:r.toString()}))}},{key:"reportMissingRequiredProperty",value:function(t,e){var r=u.messageFormatter("resourcevalidator-missingrequiredproperty");throw new s(r({resourceId:t,fieldName:e.getName()}))}},{key:"reportEmptyIdentifier",value:function(t){var e=u.messageFormatter("resourcevalidator-emptyidentifier");throw new s(e({resourceId:t}))}},{key:"reportInvalidEnumValue",value:function(t,e,r){var n=u.messageFormatter("resourcevalidator-invalidenumvalue");throw new s(n({resourceId:t,value:r,fieldName:e.getName()}))}},{key:"reportAbstractClass",value:function(t){var e=u.messageFormatter("resourcevalidator-abstractclass");throw new s(e({className:t.getFullyQualifiedName()}))}},{key:"reportUndeclaredField",value:function(t,e,r){var n=u.messageFormatter("resourcevalidator-undeclaredfield");throw new s(n({resourceId:t,propertyName:e,fullyQualifiedTypeName:r}))}},{key:"reportInvalidFieldAssignment",value:function(t,e,r,n){var o=u.messageFormatter("resourcevalidator-invalidfieldassignment"),i=n.getFullyQualifiedTypeName();throw n.isArray()&&(i+="[]"),new s(o({resourceId:t,propertyName:e,objectType:r.$class,fieldType:i}))}}],(r=[{key:"visit",value:function(t,e){var r,n,o,i;return null!==(r=t.isEnum)&&void 0!==r&&r.call(t)?this.visitEnumDeclaration(t,e):null!==(n=t.isClassDeclaration)&&void 0!==n&&n.call(t)?this.visitClassDeclaration(t,e):null!==(o=t.isRelationship)&&void 0!==o&&o.call(t)?this.visitRelationshipDeclaration(t,e):null!==(i=t.isField)&&void 0!==i&&i.call(t)?this.visitField(t,e):void 0}},{key:"visitEnumDeclaration",value:function(e,r){for(var n=r.stack.pop(),o=e.getProperties(),i=!1,a=0;a<o.length;a++)o[a].getName()===n&&(i=!0);return i||t.reportInvalidEnumValue(r.rootResourceIdentifier,e,n),null}},{key:"visitClassDeclaration",value:function(e,r){var n=r.stack.pop();this.concerto.isIdentifiable(n)&&(r.rootResourceIdentifier=this.concerto.getFullyQualifiedIdentifier(n));var o=this.concerto.getModelManager().getType(n.$class),a=o.getFullyQualifiedName();o.isAbstract()&&t.reportAbstractClass(o);for(var s=Object.getOwnPropertyNames(n),u=0;u<s.length;u++){var c=s[u];this.isSystemProperty(c)||o.getProperty(c)||(this.concerto.isIdentifiable(n)?t.reportUndeclaredField(this.concerto.getIdentifier(n),c,a):t.reportUndeclaredField(r.currentIdentifier,c,a))}if(this.concerto.isIdentifiable(n)){var l=this.concerto.getIdentifier(n);l&&0!==l.trim().length||t.reportEmptyIdentifier(r.rootResourceIdentifier),r.currentIdentifier=this.concerto.getFullyQualifiedIdentifier(n)}for(var f=o.getProperties(),h=0;h<f.length;h++){var p=f[h],d=n[p.getName()];i.isNull(d)?p.isOptional()||this.isSystemProperty(p.getName())||t.reportMissingRequiredProperty(r.rootResourceIdentifier,p):(r.stack.push(d),p.accept(this,r))}return null}},{key:"isSystemProperty",value:function(t){return"$"===t.charAt(0)}},{key:"visitField",value:function(e,r){var o=r.stack.pop(),i=n(o),a=e.getName();return"symbol"===i&&t.reportFieldTypeViolation(r.rootResourceIdentifier,a,o,e,this.concerto),e.isTypeEnum()?this.checkEnum(o,e,r):e.isArray()?this.checkArray(o,e,r):this.checkItem(o,e,r),null}},{key:"checkEnum",value:function(e,r,n){!r.isArray()||e instanceof Array||t.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),e,r,this.concerto);var o=r.getParent().getModelFile().getType(r.getType());if(r.isArray())for(var i=0;i<e.length;i++){var a=e[i];n.stack.push(a),o.accept(this,n)}else{var s=e;n.stack.push(s),o.accept(this,n)}}},{key:"checkArray",value:function(e,r,n){e instanceof Array||t.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),e,r,this.concerto);for(var o=0;o<e.length;o++){var i=e[o];this.checkItem(i,r,n)}}},{key:"checkItem",value:function(e,r,o){var i=n(e),s=r.getName();if("symbol"===i&&t.reportFieldTypeViolation(o.rootResourceIdentifier,s,e,r,this.concerto),r.isPrimitive()){var u=!1;switch(r.getType()){case"String":"string"!==i&&(u=!0);break;case"Double":case"Long":case"Integer":"number"!==i&&(u=!0);break;case"Boolean":"boolean"!==i&&(u=!0);break;case"DateTime":"string"==typeof e&&c.utc(e).isValid()||(u=!0)}u?t.reportFieldTypeViolation(o.rootResourceIdentifier,s,e,r,this.concerto):null!==r.getValidator()&&r.getValidator().validate(o.currentIdentifier,e)}else{var l=this.concerto.getModelManager().getType(r.getFullyQualifiedTypeName());try{l=this.concerto.getModelManager().getType(e.$class)}catch(n){t.reportFieldTypeViolation(o.rootResourceIdentifier,s,e,r,this.concerto)}a.isAssignableTo(l.getModelFile(),l.getFullyQualifiedName(),r)||t.reportInvalidFieldAssignment(o.rootResourceIdentifier,s,e,r),o.stack.push(e),l.accept(this,o)}}},{key:"visitRelationshipDeclaration",value:function(e,r){var n=r.stack.pop();if(e.isArray()){n instanceof Array||t.reportInvalidFieldAssignment(r.rootResourceIdentifier,e.getName(),n,e);for(var o=0;o<n.length;o++){var i=n[o];this.checkRelationship(r,e,i)}}else this.checkRelationship(r,e,n);return null}},{key:"checkRelationship",value:function(e,r,n){this.concerto.isRelationship(n)||this.concerto.isIdentifiable(n)&&(this.options.convertResourcesToRelationships||this.options.permitResourcesForRelationships)||t.reportNotRelationshipViolation(e.rootResourceIdentifier,r,n);var o=this.concerto.isRelationship(n)?this.concerto.fromURI(n).typeDeclaration:this.concerto.getTypeDeclaration(n);if(!o.getIdentifierFieldName())throw new Error("Relationship can only be to identified types.");a.isAssignableTo(o.getModelFile(),o.getFullyQualifiedName(),r)||t.reportInvalidFieldAssignment(e.rootResourceIdentifier,r.getName(),n,r)}}])&&o(e.prototype,r),l&&o(e,l),t}();t.exports=f},1399:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var i=r(4469),a=r(8031),s=r(8894),u=r(9736),c=r(6697),l=r(9557),f=r(5338),h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e||{}}var e,r,h;return e=t,h=[{key:"reportFieldTypeViolation",value:function(t,e,r,o){var i=o.isArray()?"[]":"",a=n(r);if(r instanceof s)a=r.getFullyQualifiedType(),r=r.getFullyQualifiedIdentifier();else if(r)try{r="number"!=typeof r||isFinite(r)?JSON.stringify(r):r.toString()}catch(t){r=r.toString()}var u=f.messageFormatter("resourcevalidator-fieldtypeviolation");throw new l(u({resourceId:t,propertyName:e,fieldType:o.getType()+i,value:r,typeOfValue:a}))}},{key:"reportNotResouceViolation",value:function(t,e,r){var n=f.messageFormatter("resourcevalidator-notresourceorconcept");throw new l(n({resourceId:t,classFQN:e.getFullyQualifiedName(),invalidValue:r.toString()}))}},{key:"reportNotRelationshipViolation",value:function(t,e,r){var n=f.messageFormatter("resourcevalidator-notrelationship");throw new l(n({resourceId:t,classFQN:e.getFullyQualifiedTypeName(),invalidValue:r.toString()}))}},{key:"reportMissingRequiredProperty",value:function(t,e){var r=f.messageFormatter("resourcevalidator-missingrequiredproperty");throw new l(r({resourceId:t,fieldName:e.getName()}))}},{key:"reportEmptyIdentifier",value:function(t){var e=f.messageFormatter("resourcevalidator-emptyidentifier");throw new l(e({resourceId:t}))}},{key:"reportInvalidEnumValue",value:function(t,e,r){var n=f.messageFormatter("resourcevalidator-invalidenumvalue");throw new l(n({resourceId:t,value:r,fieldName:e.getName()}))}},{key:"reportAbstractClass",value:function(t){var e=f.messageFormatter("resourcevalidator-abstractclass");throw new l(e({className:t.getFullyQualifiedName()}))}},{key:"reportUndeclaredField",value:function(t,e,r){var n=f.messageFormatter("resourcevalidator-undeclaredfield");throw new l(n({resourceId:t,propertyName:e,fullyQualifiedTypeName:r}))}},{key:"reportInvalidFieldAssignment",value:function(t,e,r,n){var o=f.messageFormatter("resourcevalidator-invalidfieldassignment"),i=n.getFullyQualifiedTypeName();throw n.isArray()&&(i+="[]"),new l(o({resourceId:t,propertyName:e,objectType:r.getFullyQualifiedType(),fieldType:i}))}}],(r=[{key:"visit",value:function(t,e){var r,n,o,i;return null!==(r=t.isEnum)&&void 0!==r&&r.call(t)?this.visitEnumDeclaration(t,e):null!==(n=t.isClassDeclaration)&&void 0!==n&&n.call(t)?this.visitClassDeclaration(t,e):null!==(o=t.isRelationship)&&void 0!==o&&o.call(t)?this.visitRelationshipDeclaration(t,e):null!==(i=t.isField)&&void 0!==i&&i.call(t)?this.visitField(t,e):void 0}},{key:"visitEnumDeclaration",value:function(e,r){for(var n=r.stack.pop(),o=e.getProperties(),i=!1,a=0;a<o.length;a++)o[a].getName()===n&&(i=!0);return i||t.reportInvalidEnumValue(r.rootResourceIdentifier,e,n),null}},{key:"visitClassDeclaration",value:function(e,r){var n=r.stack.pop();n instanceof a||t.reportNotResouceViolation(r.rootResourceIdentifier,e,n),n instanceof s&&(r.rootResourceIdentifier=n.getFullyQualifiedIdentifier());var o=r.modelManager.getType(n.getFullyQualifiedType()),i=o.getFullyQualifiedName();o.isAbstract()&&t.reportAbstractClass(o);for(var c=Object.getOwnPropertyNames(n),l=0;l<c.length;l++){var f=c[l];this.isSystemProperty(f)||o.getProperty(f)||(e.isIdentified()?t.reportUndeclaredField(n.getIdentifier(),f,i):t.reportUndeclaredField(r.currentIdentifier,f,i))}if(e.isIdentified()){var h=n.getIdentifier();h&&0!==h.trim().length||t.reportEmptyIdentifier(r.rootResourceIdentifier),r.currentIdentifier=n.getFullyQualifiedIdentifier()}for(var p=o.getProperties(),d=0;d<p.length;d++){var m=p[d],y=n[m.getName()];u.isNull(y)?m.isOptional()||t.reportMissingRequiredProperty(r.rootResourceIdentifier,m):(r.stack.push(y),m.accept(this,r))}return null}},{key:"isSystemProperty",value:function(t){return"$"===t.charAt(0)}},{key:"visitField",value:function(e,r){var o=r.stack.pop(),i=n(o),a=e.getName();return"undefined"!==i&&"symbol"!==i||t.reportFieldTypeViolation(r.rootResourceIdentifier,a,o,e),e.isTypeEnum()?this.checkEnum(o,e,r):e.isArray()?this.checkArray(o,e,r):this.checkItem(o,e,r),null}},{key:"checkEnum",value:function(e,r,n){!r.isArray()||e instanceof Array||t.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),e,r);var o=r.getParent().getModelFile().getType(r.getType());if(r.isArray())for(var i=0;i<e.length;i++){var a=e[i];n.stack.push(a),o.accept(this,n)}else{var s=e;n.stack.push(s),o.accept(this,n)}}},{key:"checkArray",value:function(e,r,n){e instanceof Array||t.reportFieldTypeViolation(n.rootResourceIdentifier,r.getName(),e,r);for(var o=0;o<e.length;o++){var i=e[o];this.checkItem(i,r,n)}}},{key:"checkItem",value:function(e,r,o){var i=n(e),a=r.getName();if("undefined"!==i&&"symbol"!==i||t.reportFieldTypeViolation(o.rootResourceIdentifier,a,e,r),r.isPrimitive()){var u=!1;switch(r.getType()){case"String":"string"!==i&&(u=!0);break;case"Long":case"Integer":case"Double":"number"!==i&&(u=!0),isFinite(e)||(u=!0);break;case"Boolean":"boolean"!==i&&(u=!0);break;case"DateTime":"object"===n(e)&&"function"==typeof e.isBefore||(u=!0)}u?t.reportFieldTypeViolation(o.rootResourceIdentifier,a,e,r):null!==r.getValidator()&&r.getValidator().validate(o.currentIdentifier,e)}else{var l=o.modelManager.getType(r.getFullyQualifiedTypeName());if(e instanceof s){try{l=o.modelManager.getType(e.getFullyQualifiedType())}catch(n){t.reportFieldTypeViolation(o.rootResourceIdentifier,a,e,r)}c.isAssignableTo(l.getModelFile(),l.getFullyQualifiedName(),r)||t.reportInvalidFieldAssignment(o.rootResourceIdentifier,a,e,r)}o.stack.push(e),l.accept(this,o)}}},{key:"visitRelationshipDeclaration",value:function(e,r){var n=r.stack.pop();if(e.isArray()){n instanceof Array||t.reportInvalidFieldAssignment(r.rootResourceIdentifier,e.getName(),n,e);for(var o=0;o<n.length;o++){var i=n[o];this.checkRelationship(r,e,i)}}else this.checkRelationship(r,e,n);return null}},{key:"checkRelationship",value:function(e,r,n){n instanceof i||n instanceof a&&(this.options.convertResourcesToRelationships||this.options.permitResourcesForRelationships)||t.reportNotRelationshipViolation(e.rootResourceIdentifier,r,n);var o=e.modelManager.getType(n.getFullyQualifiedType());if(!o.getIdentifierFieldName())throw new Error("Cannot have a relationship to a field that is not identifiable.");c.isAssignableTo(o.getModelFile(),n.getFullyQualifiedType(),r)||t.reportInvalidFieldAssignment(e.rootResourceIdentifier,r.getName(),n,r)}}])&&o(e.prototype,r),h&&o(e,h),t}();t.exports=h},9557:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),n.call(this,t,e)}return s}(r(3133).BaseException);t.exports=s},3232:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}var l=r(2788).loremIpsum,f=r(6116),h=r(8879),p=r(264);h.extend(p);var d=function(t,e,r,n,o){return null===t&&(t=n),t=Math.min(Math.max(t,n),o),(null===e||e>o)&&(e=o),e=Math.max(Math.min(e,o),n),e+=r,e/=r,t/=r,(Math.random()*(e-t)+t)/(1/r)},m=function(t,e,r){var n=t,o=e;switch(null!==o&&null!==n&&o<n&&(n=e,o=t),r){case"Long":return Math.floor(d(n,o,1,-Math.pow(2,32),Math.pow(2,32)));case"Integer":return Math.floor(d(n,o,1,-Math.pow(2,16),Math.pow(2,16)));case"Double":return Number(d(n,o,1e-4,-Math.pow(2,8),Math.pow(2,8)).toFixed(3));default:return 0}},y=function(){function t(){s(this,t),this.currentDate=h.utc()}return c(t,[{key:"getDateTime",value:function(){return this.currentDate}},{key:"getInteger",value:function(){return 0}},{key:"getLong",value:function(){return 0}},{key:"getDouble",value:function(){return 0}},{key:"getBoolean",value:function(){return!1}},{key:"getString",value:function(){return""}},{key:"getEnum",value:function(t){return t[0]}},{key:"getArray",value:function(t){return[]}},{key:"getRegex",value:function(t){return t?new f(t.source,t.flags).gen():""}},{key:"getRange",value:function(t,e,r){return m(t,e,r)}}]),t}(),g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n=(e=u,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function u(){return s(this,u),n.call(this)}return c(u,[{key:"getInteger",value:function(){return Math.round(Math.random()*Math.pow(2,16))}},{key:"getLong",value:function(){return Math.round(Math.random()*Math.pow(2,32))}},{key:"getDouble",value:function(){return Number((Math.random()*Math.pow(2,8)).toFixed(3))}},{key:"getBoolean",value:function(){return 1===Math.round(Math.random())}},{key:"getString",value:function(){return l({count:1,units:"sentences",sentenceLowerBound:1,sentenceUpperBound:5})}},{key:"getEnum",value:function(t){return t[Math.floor(Math.random()*t.length)]}},{key:"getArray",value:function(t){return[t()]}},{key:"getRegex",value:function(t){return t?new f(t.source,t.flags).gen():""}},{key:"getRange",value:function(t,e,r){return m(t,e,r)}}]),u}(y),v=function(){function t(){s(this,t)}return c(t,null,[{key:"empty",value:function(){return new y}},{key:"sample",value:function(){return new g}}]),t}();t.exports=v},5400:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(3133).BaseException,u=r(5338),c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(c,t);var e,r,n,s=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function c(t,e,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),e||(e=u.messageFormatter("typenotfounderror-defaultmessage")({typeName:t})),(n=s.call(this,e,r)).typeName=t,n}return(e=[{key:"getTypeName",value:function(){return this.typeName}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(s);t.exports=c},9736:function(t){"use strict";var e=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return e=[{key:"isNull",value:function(t){return null==t}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t,e),t}();t.exports=e},2680:function(t,e,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},9429:function(t,e,r){"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);return u&&c&&u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var f=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},3716:function(t,e,r){var n=r(3335),o=r(1696);function i(){return(new Date).getTime()}var a,s=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){u[t]=i()},"time"],[function(t){var e=u[t];if(!e)throw new Error("No such label: "+t);delete u[t];var r=i()-e;a.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);o.ok(!1,n.format.apply(null,e))}},"assert"]],l=0;l<c.length;l++){var f=c[l],h=f[0],p=f[1];a[p]||(a[p]=h)}t.exports=a},8879:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(n,u),i=r-o<0,a=e.clone().add(n+(i?-1:1),u);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:n,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",b={};b[v]=m;var w=function(t){return t instanceof _},A=function(t,e,r){var n;if(!t)return v;if("string"==typeof t)b[t]&&(n=t),e&&(b[t]=e,n=t);else{var o=t.name;b[o]=t,n=o}return!r&&n&&(v=n),n||!r&&v},M=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},E=g;E.l=A,E.i=w,E.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function m(t){this.$L=A(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(t,e){var r=M(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return M(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<M(t)},y.$g=function(t,e,r){return E.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,c=!!E.u(e)||e,h=E.p(t),p=function(t,e){var n=E.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return c?n:n.endOf(a)},d=function(t,e){return E.w(r.toDate()[t].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case l:return c?p(1,0):p(31,11);case u:return c?p(1,y):p(0,y+1);case s:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(c?g-w:g+(6-w),y);case a:case f:return d(v+"Hours",0);case i:return d(v+"Minutes",1);case o:return d(v+"Seconds",2);case n:return d(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var s,c=E.p(t),h="set"+(this.$u?"UTC":""),p=(s={},s[a]=h+"Date",s[f]=h+"Date",s[u]=h+"Month",s[l]=h+"FullYear",s[i]=h+"Hours",s[o]=h+"Minutes",s[n]=h+"Seconds",s[r]=h+"Milliseconds",s)[c],d=c===a?this.$D+(e-this.$W):e;if(c===u||c===l){var m=this.clone().set(f,1);m.$d[p](d),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[E.p(t)]()},y.add=function(r,c){var f,h=this;r=Number(r);var p=E.p(c),d=function(t){var e=M(h);return E.w(e.date(e.date()+Math.round(t*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===l)return this.set(l,this.$y+r);if(p===a)return d(1);if(p===s)return d(7);var m=(f={},f[o]=t,f[i]=e,f[n]=1e3,f)[p]||1,y=this.$d.getTime()+r*m;return E.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=function(t,r,o,i){return t&&(t[r]||t(e,n))||o[r].substr(0,i)},f=function(t){return E.s(i%12||12,t,"0")},p=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:E.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,u,2),ddd:l(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:E.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:E.s(a,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:o};return n.replace(d,(function(t,e){return e||m[t]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,h){var p,d=E.p(f),m=M(r),y=(m.utcOffset()-this.utcOffset())*t,g=this-m,v=E.m(this,m);return v=(p={},p[l]=v/12,p[u]=v,p[c]=v/3,p[s]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[i]=g/e,p[o]=g/t,p[n]=g/1e3,p)[d]||g,h?v:E.a(v)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=A(t,e,!0);return n&&(r.$L=n),r},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),C=_.prototype;return M.prototype=C,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,_,M),t.$i=!0),M},M.locale=A,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=b[v],M.Ls=b,M.p={},M}()},4989:function(t){t.exports=function(){"use strict";var t,e,r=1e3,n=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,u=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:u,days:i,hours:o,minutes:n,seconds:r,milliseconds:1,weeks:6048e5},f=function(t){return t instanceof v},h=function(t,e,r){return new v(t,r,e.$l)},p=function(t){return e.p(t)+"s"},d=function(t){return t<0},m=function(t){return d(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},g=function(t,e){return t?d(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},v=function(){function d(t,e,r){var n=this;if(this.$d={},this.$l=r,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*l[p(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){n.$d[p(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var o=t.match(c);if(o){var i=o.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var y=d.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,r){return e+(t.$d[r]||0)*l[r]}),0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/s),t%=s,this.$d.months=m(t/u),t%=u,this.$d.days=m(t/i),t%=i,this.$d.hours=m(t/o),t%=o,this.$d.minutes=m(t/n),t%=n,this.$d.seconds=m(t/r),t%=r,this.$d.milliseconds=t},y.toISOString=function(){var t=g(this.$d.years,"Y"),e=g(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=g(r,"D"),o=g(this.$d.hours,"H"),i=g(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=g(a,"S"),u=t.negative||e.negative||n.negative||o.negative||i.negative||s.negative,c=o.format||i.format||s.format?"T":"",l=(u?"-":"")+"P"+t.format+e.format+n.format+c+o.format+i.format+s.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(t){var r=t||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return r.replace(a,(function(t,e){return e||String(n[t])}))},y.as=function(t){return this.$ms/l[p(t)]},y.get=function(t){var e=this.$ms,r=p(t);return"milliseconds"===r?e%=1e3:e="weeks"===r?m(e/l[r]):this.$d[r],0===e?0:e},y.add=function(t,e,r){var n;return n=e?t*l[p(e)]:f(t)?t.$ms:h(t,this).$ms,h(this.$ms+n*(r?-1:1),this)},y.subtract=function(t,e){return this.add(t,e,!0)},y.locale=function(t){var e=this.clone();return e.$l=t,e},y.clone=function(){return h(this.$ms,this)},y.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},d}();return function(r,n,o){t=o,e=o().$utils(),o.duration=function(t,e){var r=o.locale();return h(t,{$l:r},e)},o.isDuration=f;var i=n.prototype.add,a=n.prototype.subtract;n.prototype.add=function(t,e){return f(t)&&(t=t.asMilliseconds()),i.bind(this)(t,e)},n.prototype.subtract=function(t,e){return f(t)&&(t=t.asMilliseconds()),a.bind(this)(t,e)}}}()},7995:function(t){t.exports=function(){"use strict";return function(t,e,r){var n=function(t,e){if(!e||!e.length||!e[0]||1===e.length&&!e[0].length)return null;var r;1===e.length&&e[0].length>0&&(e=e[0]),r=e[0];for(var n=1;n<e.length;n+=1)e[n].isValid()&&!e[n][t](r)||(r=e[n]);return r};r.max=function(){var t=[].slice.call(arguments,0);return n("isAfter",t)},r.min=function(){var t=[].slice.call(arguments,0);return n("isBefore",t)}}}()},3134:function(t){t.exports=function(){"use strict";var t="month",e="quarter";return function(r,n){var o=n.prototype;o.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var i=o.add;o.add=function(r,n){return r=Number(r),this.$utils().p(n)===e?this.add(3*r,t):i.bind(this)(r,n)};var a=o.startOf;o.startOf=function(r,n){var o=this.$utils(),i=!!o.u(n)||n;if(o.p(r)===e){var s=this.quarter()-1;return i?this.month(3*s).startOf(t).startOf("day"):this.month(3*s+2).endOf(t).endOf("day")}return a.bind(this)(r,n)}}}()},264:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},a.utc=function(e){var r=i(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var u=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,t)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=a.diff;a.diff=function(t,e,r){if(t&&this.$u===t.$u)return h.call(this,t,e,r);var n=this.local(),o=i(t).local();return h.call(n,o,e,r)}}}()},5881:function(t){var e=1e3,r=60*e,n=60*r,o=24*n;function i(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var s,u,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===c&&isFinite(t))return a.long?(s=t,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=e?i(s,u,e,"second"):s+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},5130:function(t,e,r){var n=r(3716),o=r(4406);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==o&&"env"in o&&(t={NODE_ENV:"production"}.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=n.debug||n.log||(()=>{}),t.exports=r(7123)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},7123:function(t,e,r){var n=r(3716);t.exports=function(t){function e(t){let r,n=null;function i(...t){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=o,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===n?e.enabled(t):n,set:t=>{n=t}}),"function"==typeof e.init&&e.init(i),i}function o(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(i),...e.skips.map(i).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(5881),e.destroy=function(){n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},4926:function(t,e,r){"use strict";var n=r(3464),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=r(1181)(),c=s&&u,l=function(t,e,r,n){var o;(!(e in t)||"function"==typeof(o=n)&&"[object Function]"===i.call(o)&&n())&&(c?s(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)l(t,i[s],e[i[s]],r[i[s]])};f.supportsDescriptors=!!c,t.exports=f},4644:function(t){"use strict";class e{constructor(t,e){this.low=t,this.high=e,this.length=1+e-t}overlaps(t){return!(this.high<t.low||this.low>t.high)}touches(t){return!(this.high+1<t.low||this.low-1>t.high)}add(t){return new e(Math.min(this.low,t.low),Math.max(this.high,t.high))}subtract(t){return t.low<=this.low&&t.high>=this.high?[]:t.low>this.low&&t.high<this.high?[new e(this.low,t.low-1),new e(t.high+1,this.high)]:t.low<=this.low?[new e(t.high+1,this.high)]:[new e(this.low,t.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class r{constructor(t,e){this.ranges=[],this.length=0,null!=t&&this.add(t,e)}_update_length(){this.length=this.ranges.reduce(((t,e)=>t+e.length),0)}add(t,n){var o=t=>{for(var e=0;e<this.ranges.length&&!t.touches(this.ranges[e]);)e++;for(var r=this.ranges.slice(0,e);e<this.ranges.length&&t.touches(this.ranges[e]);)t=t.add(this.ranges[e]),e++;r.push(t),this.ranges=r.concat(this.ranges.slice(e)),this._update_length()};return t instanceof r?t.ranges.forEach(o):(null==n&&(n=t),o(new e(t,n))),this}subtract(t,n){var o=t=>{for(var e=0;e<this.ranges.length&&!t.overlaps(this.ranges[e]);)e++;for(var r=this.ranges.slice(0,e);e<this.ranges.length&&t.overlaps(this.ranges[e]);)r=r.concat(this.ranges[e].subtract(t)),e++;this.ranges=r.concat(this.ranges.slice(e)),this._update_length()};return t instanceof r?t.ranges.forEach(o):(null==n&&(n=t),o(new e(t,n))),this}intersect(t,n){var o=[],i=t=>{for(var r=0;r<this.ranges.length&&!t.overlaps(this.ranges[r]);)r++;for(;r<this.ranges.length&&t.overlaps(this.ranges[r]);){var n=Math.max(this.ranges[r].low,t.low),i=Math.min(this.ranges[r].high,t.high);o.push(new e(n,i)),r++}};return t instanceof r?t.ranges.forEach(i):(null==n&&(n=t),i(new e(t,n))),this.ranges=o,this._update_length(),this}index(t){for(var e=0;e<this.ranges.length&&this.ranges[e].length<=t;)t-=this.ranges[e].length,e++;return this.ranges[e].low+t}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new r(this)}numbers(){return this.ranges.reduce(((t,e)=>{for(var r=e.low;r<=e.high;)t.push(r),r++;return t}),[])}subranges(){return this.ranges.map((t=>({low:t.low,high:t.high,length:1+t.high-t.low})))}}t.exports=r},4956:function(t){"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(o,u);void 0!==c&&c.enumerable&&(r[u]=o[u])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},3243:function(t,e,r){"use strict";var n=r(9680),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},u=function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===o.call(t)?a(t,e,i):"string"==typeof t?s(t,e,i):u(t,e,i)}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(r.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var h=function(){};h.prototype=i.prototype,a.prototype=new h,h.prototype=null}return a}},4090:function(t,e,r){"use strict";var n=r(7795);t.exports=Function.prototype.bind||n},7286:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=r(2636)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=h(o.prototype))}return m[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),w=v.call(Function.call,Array.prototype.concat),A=v.call(Function.apply,Array.prototype.splice),M=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),_=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,k=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return M(t,C,(function(t,e,r,o){n[n.length]=r?M(o,S,"$1"):e||t})),n},x=function(t,e){var r,n=t;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(m,n)){var i=m[n];if(i===p&&(i=y(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(t),n=r.length>0?r[0]:"",i=x("%"+n+"%",e),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],A(r,w([0,1],f)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],y=E(d,0,1),g=E(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&p||(l=!0),b(m,s="%"+(n+="."+d)+"%"))c=m[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var v=u(c,d);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else p=b(c,d),c=c[d];p&&!l&&(m[s]=c)}}return c}},1181:function(t,e,r){"use strict";var n=r(7286)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},2636:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7226:function(t,e,r){"use strict";var n=r(6679);t.exports=function(){return n()&&!!Symbol.toStringTag}},3198:function(t,e,r){"use strict";var n=r(4090);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2635:function(t,e,r){"use strict";var n=r(7226)(),o=r(2680)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=s?i:a},9680:function(t){"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(t){if((l||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},3138:function(t,e,r){"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(7226)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(i.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},7053:function(t){"use strict";t.exports=function(t){return t!=t}},4782:function(t,e,r){"use strict";var n=r(9429),o=r(4926),i=r(7053),a=r(755),s=r(5346),u=n(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},755:function(t,e,r){"use strict";var n=r(7053);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},5346:function(t,e,r){"use strict";var n=r(4926),o=r(755);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},198:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},f=i("String.prototype.slice"),h={},p=r(9765),d=Object.getPrototypeOf;s&&p&&d&&n(c,(function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=p(r,Symbol.toStringTag);if(!n){var o=d(r);n=p(o,Symbol.toStringTag)}h[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=f(a(t),8,-1);return l(c,e)>-1}return!!p&&function(t){var e=!1;return n(h,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},7883:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FORMATS=e.FORMAT_PLAIN=e.FORMAT_HTML=void 0;var r="html";e.FORMAT_HTML=r;var n="plain";e.FORMAT_PLAIN=n;var o=[r,n];e.FORMATS=o},779:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINE_ENDINGS=void 0,e.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},6021:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUPPORTED_PLATFORMS=void 0,e.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},783:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WORDS=void 0,e.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},2788:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoremIpsum",{enumerable:!0,get:function(){return i.default}}),e.loremIpsum=void 0;var n,o=r(783),i=(n=r(5548))&&n.__esModule?n:{default:n};e.loremIpsum=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.count,r=void 0===e?1:e,n=t.format,a=void 0===n?"plain":n,s=t.paragraphLowerBound,u=void 0===s?3:s,c=t.paragraphUpperBound,l=void 0===c?7:c,f=t.random,h=t.sentenceLowerBound,p=void 0===h?5:h,d=t.sentenceUpperBound,m=void 0===d?15:d,y=t.units,g=void 0===y?"sentences":y,v=t.words,b=void 0===v?o.WORDS:v,w=t.suffix,A=void 0===w?"":w,M={random:f,sentencesPerParagraph:{max:l,min:u},words:b,wordsPerSentence:{max:m,min:p}},E=new i.default(M,a,A);switch(g){case"paragraphs":case"paragraph":return E.generateParagraphs(r);case"sentences":case"sentence":return E.generateSentences(r);case"words":case"word":return E.generateWords(r);default:return""}}},5548:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o=r(7883),i=r(779),a=(n=r(928))&&n.__esModule?n:{default:n},s=r(3749);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.FORMAT_PLAIN,n=arguments.length>2?arguments[2]:void 0;if(u(this,t),c(this,"generator",void 0),c(this,"format",void 0),c(this,"suffix",void 0),-1===o.FORMATS.indexOf(r.toLowerCase()))throw new Error("".concat(r," is an invalid format. Please use ").concat(o.FORMATS.join(" or "),"."));this.format=r.toLowerCase(),this.suffix=n,this.generator=new a.default(e)}var e;return(e=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,s.isReactNative)()&&(0,s.isNode)()&&(0,s.isWindows)()?i.LINE_ENDINGS.WIN32:i.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(t){return this.format===o.FORMAT_HTML?"<p>".concat(t,"</p>"):t}},{key:"formatStrings",value:function(t){var e=this;return t.map((function(t){return e.formatString(t)}))}},{key:"generateWords",value:function(t){return this.formatString(this.generator.generateRandomWords(t))}},{key:"generateSentences",value:function(t){return this.formatString(this.generator.generateRandomParagraph(t))}},{key:"generateParagraphs",value:function(t){var e=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,s.makeArrayOfStrings)(t,e)).join(this.getLineEnding())}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}(),f=l;e.default=f},928:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(783),o=r(3749);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.sentencesPerParagraph,o=void 0===r?{max:7,min:3}:r,s=e.wordsPerSentence,u=void 0===s?{max:15,min:5}:s,c=e.random,l=(e.seed,e.words),f=void 0===l?n.WORDS:l;if(i(this,t),a(this,"sentencesPerParagraph",void 0),a(this,"wordsPerSentence",void 0),a(this,"random",void 0),a(this,"words",void 0),o.min>o.max)throw new Error("Minimum number of sentences per paragraph (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));if(u.min>u.max)throw new Error("Minimum number of words per sentence (".concat(u.min,") cannot exceed maximum (").concat(u.max,")."));this.sentencesPerParagraph=o,this.words=f,this.wordsPerSentence=u,this.random=c||Math.random}var e;return(e=[{key:"generateRandomInteger",value:function(t,e){return Math.floor(this.random()*(e-t+1)+t)}},{key:"generateRandomWords",value:function(t){var e=this,r=this.wordsPerSentence,n=r.min,i=r.max,a=t||this.generateRandomInteger(n,i);return(0,o.makeArrayOfLength)(a).reduce((function(t,r){return"".concat(e.pluckRandomWord()," ").concat(t)}),"").trim()}},{key:"generateRandomSentence",value:function(t){return"".concat((0,o.capitalize)(this.generateRandomWords(t)),".")}},{key:"generateRandomParagraph",value:function(t){var e=this,r=this.sentencesPerParagraph,n=r.min,i=r.max,a=t||this.generateRandomInteger(n,i);return(0,o.makeArrayOfLength)(a).reduce((function(t,r){return"".concat(e.generateRandomSentence()," ").concat(t)}),"").trim()}},{key:"pluckRandomWord",value:function(){var t=this.words.length-1,e=this.generateRandomInteger(0,t);return this.words[e]}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}(),u=s;e.default=u},9998:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){var e=t.trim();return e.charAt(0).toUpperCase()+e.slice(1)}},3749:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"isReactNative",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"isWindows",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"makeArrayOfLength",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeArrayOfStrings",{enumerable:!0,get:function(){return u.default}});var n=c(r(9998)),o=c(r(8077)),i=c(r(6002)),a=c(r(9759)),s=c(r(3385)),u=c(r(4523));function c(t){return t&&t.__esModule?t:{default:t}}},8077:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){return!!t.exports}},6002:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){return"undefined"!=typeof navigator&&"ReactNative"===navigator.product}},9759:function(t,e,r){"use strict";var n=r(4406);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(6021);e.default=function(){return void 0!==n&&n.platform===o.SUPPORTED_PLATFORMS.WIN32}},3385:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(t)).map((function(t,e){return e}))}},4523:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(3749);e.default=function(t,e){return(0,n.makeArrayOfLength)(t).map((function(){return e()}))}},7105:function(t,e,r){"use strict";const n=r(8006),o=Symbol("max"),i=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),h=Symbol("cache"),p=Symbol("updateAgeOnGet"),d=()=>1,m=(t,e,r)=>{const n=t[h].get(e);if(n){const e=n.value;if(y(t,e)){if(v(t,n),!t[s])return}else r&&(t[p]&&(n.value.now=Date.now()),t[f].unshiftNode(n));return e.value}},y=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[u]&&r>t[u]},g=t=>{if(t[i]>t[o])for(let e=t[f].tail;t[i]>t[o]&&null!==e;){const r=e.prev;v(t,e),e=r}},v=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[i]-=r.length,t[h].delete(r.key),t[f].removeNode(e)}};class b{constructor(t,e,r,n,o){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=o||0}}const w=(t,e,r,n)=>{let o=r.value;y(t,o)&&(v(t,r),t[s]||(o=void 0)),o&&e.call(n,o.value,o.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[o]=t.max||1/0;const e=t.length||d;if(this[a]="function"!=typeof e?d:e,this[s]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[c]=t.dispose,this[l]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[o]=t||1/0,g(this)}get max(){return this[o]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,g(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!=typeof t&&(t=d),t!==this[a]&&(this[a]=t,this[i]=0,this[f].forEach((t=>{t.length=this[a](t.value,t.key),this[i]+=t.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(t,e){e=e||this;for(let r=this[f].tail;null!==r;){const n=r.prev;w(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[f].head;null!==r;){const n=r.next;w(this,t,r,e),r=n}}keys(){return this[f].toArray().map((t=>t.key))}values(){return this[f].toArray().map((t=>t.value))}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach((t=>this[c](t.key,t.value))),this[h]=new Map,this[f]=new n,this[i]=0}dump(){return this[f].map((t=>!y(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[f]}set(t,e,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[a](e,t);if(this[h].has(t)){if(s>this[o])return v(this,this[h].get(t)),!1;const a=this[h].get(t).value;return this[c]&&(this[l]||this[c](t,a.value)),a.now=n,a.maxAge=r,a.value=e,this[i]+=s-a.length,a.length=s,this.get(t),g(this),!0}const p=new b(t,e,s,n,r);return p.length>this[o]?(this[c]&&this[c](t,e),!1):(this[i]+=p.length,this[f].unshift(p),this[h].set(t,this[f].head),g(this),!0)}has(t){if(!this[h].has(t))return!1;const e=this[h].get(t).value;return!y(this,e)}get(t){return m(this,t,!0)}peek(t){return m(this,t,!1)}pop(){const t=this[f].tail;return t?(v(this,t),t.value):null}del(t){v(this,this[h].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const t=o-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[h].forEach(((t,e)=>m(this,e,!1)))}}},8169:function(t){"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},4679:function(t,e,r){"use strict";var n=r(4926),o=r(9429),i=r(8169),a=r(8070),s=r(191),u=o(a(),Object);n(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},8070:function(t,e,r){"use strict";var n=r(8169);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},191:function(t,e,r){"use strict";var n=r(8070),o=r(4926);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5691:function(t,e,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(801),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=a(t),s=e&&"[object String]"===i.call(t),h=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&t.length>0&&!o.call(t,0))for(var m=0;m<t.length;++m)h.push(String(m));if(n&&t.length>0)for(var y=0;y<t.length;++y)h.push(String(y));else for(var g in t)d&&"prototype"===g||!o.call(t,g)||h.push(String(g));if(u)for(var v=function(t){if("undefined"==typeof window||!p)return f(t);try{return f(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)v&&"constructor"===l[b]||!o.call(t,l[b])||h.push(l[b]);return h}}t.exports=n},3464:function(t,e,r){"use strict";var n=Array.prototype.slice,o=r(801),i=Object.keys,a=i?function(t){return i(t)}:r(5691),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},801:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},4406:function(t){var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=a(f);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l<e;)s&&s[l].run();l=-1,e=u.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},6116:function(t,e,r){const n=r(6589),o=r(4644),i=n.types;t.exports=class t{constructor(t,e){if(this._setDefaults(t),t instanceof RegExp)this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,t=t.source;else{if("string"!=typeof t)throw new Error("Expected a regexp or string");this.ignoreCase=e&&-1!==e.indexOf("i"),this.multiline=e&&-1!==e.indexOf("m")}this.tokens=n(t)}_setDefaults(e){this.max=null!=e.max?e.max:null!=t.prototype.max?t.prototype.max:100,this.defaultRange=e.defaultRange?e.defaultRange:this.defaultRange.clone(),e.randInt&&(this.randInt=e.randInt)}gen(){return this._gen(this.tokens,[])}_gen(t,e){var r,n,o,a,s;switch(t.type){case i.ROOT:case i.GROUP:if(t.followedBy||t.notFollowedBy)return"";for(t.remember&&void 0===t.groupNumber&&(t.groupNumber=e.push(null)-1),n="",a=0,s=(r=t.options?this._randSelect(t.options):t.stack).length;a<s;a++)n+=this._gen(r[a],e);return t.remember&&(e[t.groupNumber]=n),n;case i.POSITION:return"";case i.SET:var u=this._expand(t);return u.length?String.fromCharCode(this._randSelect(u)):"";case i.REPETITION:for(o=this.randInt(t.min,t.max===1/0?t.min+this.max:t.max),n="",a=0;a<o;a++)n+=this._gen(t.value,e);return n;case i.REFERENCE:return e[t.value-1]||"";case i.CHAR:var c=this.ignoreCase&&this._randBool()?this._toOtherCase(t.value):t.value;return String.fromCharCode(c)}}_toOtherCase(t){return t+(97<=t&&t<=122?-32:65<=t&&t<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(t){return t instanceof o?t.index(this.randInt(0,t.length-1)):t[this.randInt(0,t.length-1)]}_expand(t){if(t.type===n.types.CHAR)return new o(t.value);if(t.type===n.types.RANGE)return new o(t.from,t.to);{let e=new o;for(let r=0;r<t.set.length;r++){let n=this._expand(t.set[r]);if(e.add(n),this.ignoreCase)for(let t=0;t<n.length;t++){let r=n.index(t),o=this._toOtherCase(r);r!==o&&e.add(o)}}return t.not?this.defaultRange.clone().subtract(e):this.defaultRange.clone().intersect(e)}}randInt(t,e){return t+Math.floor(Math.random()*(1+e-t))}get defaultRange(){return this._range=this._range||new o(32,126)}set defaultRange(t){this._range=t}static randexp(e,r){var n;return"string"==typeof e&&(e=new RegExp(e,r)),void 0===e._randexp?(n=new t(e,r),e._randexp=n):(n=e._randexp)._setDefaults(e),n.gen()}static sugar(){RegExp.prototype.gen=function(){return t.randexp(this)}}}},6589:function(t,e,r){const n=r(3895),o=r(3472),i=r(5631),a=r(8013);t.exports=t=>{var e,r,s=0,u={type:o.ROOT,stack:[]},c=u,l=u.stack,f=[],h=e=>{n.error(t,"Nothing to repeat at column "+(e-1))},p=n.strToChars(t);for(e=p.length;s<e;)switch(r=p[s++]){case"\\":switch(r=p[s++]){case"b":l.push(a.wordBoundary());break;case"B":l.push(a.nonWordBoundary());break;case"w":l.push(i.words());break;case"W":l.push(i.notWords());break;case"d":l.push(i.ints());break;case"D":l.push(i.notInts());break;case"s":l.push(i.whitespace());break;case"S":l.push(i.notWhitespace());break;default:/\d/.test(r)?l.push({type:o.REFERENCE,value:parseInt(r,10)}):l.push({type:o.CHAR,value:r.charCodeAt(0)})}break;case"^":l.push(a.begin());break;case"$":l.push(a.end());break;case"[":var d;"^"===p[s]?(d=!0,s++):d=!1;var m=n.tokenizeClass(p.slice(s),t);s+=m[1],l.push({type:o.SET,set:m[0],not:d});break;case".":l.push(i.anyChar());break;case"(":var y={type:o.GROUP,stack:[],remember:!0};"?"===(r=p[s])&&(r=p[s+1],s+=2,"="===r?y.followedBy=!0:"!"===r?y.notFollowedBy=!0:":"!==r&&n.error(t,`Invalid group, character '${r}' after '?' at column `+(s-1)),y.remember=!1),l.push(y),f.push(c),c=y,l=y.stack;break;case")":0===f.length&&n.error(t,"Unmatched ) at column "+(s-1)),l=(c=f.pop()).options?c.options[c.options.length-1]:c.stack;break;case"|":c.options||(c.options=[c.stack],delete c.stack);var g=[];c.options.push(g),l=g;break;case"{":var v,b,w=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(s));null!==w?(0===l.length&&h(s),v=parseInt(w[1],10),b=w[2]?w[3]?parseInt(w[3],10):1/0:v,s+=w[0].length,l.push({type:o.REPETITION,min:v,max:b,value:l.pop()})):l.push({type:o.CHAR,value:123});break;case"?":0===l.length&&h(s),l.push({type:o.REPETITION,min:0,max:1,value:l.pop()});break;case"+":0===l.length&&h(s),l.push({type:o.REPETITION,min:1,max:1/0,value:l.pop()});break;case"*":0===l.length&&h(s),l.push({type:o.REPETITION,min:0,max:1/0,value:l.pop()});break;default:l.push({type:o.CHAR,value:r.charCodeAt(0)})}return 0!==f.length&&n.error(t,"Unterminated group"),u},t.exports.types=o},8013:function(t,e,r){const n=r(3472);e.wordBoundary=()=>({type:n.POSITION,value:"b"}),e.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),e.begin=()=>({type:n.POSITION,value:"^"}),e.end=()=>({type:n.POSITION,value:"$"})},5631:function(t,e,r){const n=r(3472),o=()=>[{type:n.RANGE,from:48,to:57}],i=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(o()),a=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}];e.words=()=>({type:n.SET,set:i(),not:!1}),e.notWords=()=>({type:n.SET,set:i(),not:!0}),e.ints=()=>({type:n.SET,set:o(),not:!1}),e.notInts=()=>({type:n.SET,set:o(),not:!0}),e.whitespace=()=>({type:n.SET,set:a(),not:!1}),e.notWhitespace=()=>({type:n.SET,set:a(),not:!0}),e.anyChar=()=>({type:n.SET,set:[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}],not:!0})},3472:function(t){t.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},3895:function(t,e,r){const n=r(3472),o=r(5631),i={0:0,t:9,n:10,v:11,f:12,r:13};e.strToChars=function(t){return t.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,(function(t,e,r,n,o,a,s,u){if(r)return t;var c=e?8:n?parseInt(n,16):o?parseInt(o,16):a?parseInt(a,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):i[u],l=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(l)&&(l="\\"+l),l}))},e.tokenizeClass=(t,r)=>{for(var i,a,s=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(i=u.exec(t));)if(i[1])s.push(o.words());else if(i[2])s.push(o.ints());else if(i[3])s.push(o.whitespace());else if(i[4])s.push(o.notWords());else if(i[5])s.push(o.notInts());else if(i[6])s.push(o.notWhitespace());else if(i[7])s.push({type:n.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else{if(!(a=i[12]))return[s,u.lastIndex];s.push({type:n.CHAR,value:a.charCodeAt(0)})}e.error(r,"Unterminated character class")},e.error=(t,e)=>{throw new SyntaxError("Invalid regular expression: /"+t+"/: "+e)}},7847:function(t,e,r){const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(t,e){if(e=i(e),t instanceof o){if(t.loose===!!e.loose)return t;t=t.value}c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){const e=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}return u(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof o))throw new TypeError("a Comparator is required");if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new f(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new f(this.value,e).test(t.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),i=this.semver.version===t.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),s=u(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=u(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||n||i&&a||s||c}}t.exports=o;const i=r(1388),{re:a,t:s}=r(4808),u=r(8117),c=r(952),l=r(2435),f=r(6843)},6843:function(t,e,r){class n{constructor(t,e){if(e=i(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t,this.set=t.split(/\s*\|\|\s*/).map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!d(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();const e=`parseRange:${Object.keys(this.options).join(",")}:${t}`,r=o.get(e);if(r)return r;const n=this.options.loose,i=n?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];t=t.replace(i,k(this.options.includePrerelease)),s("hyphen replace",t),t=t.replace(c[l.COMPARATORTRIM],f),s("comparator trim",t,c[l.COMPARATORTRIM]),t=(t=(t=t.replace(c[l.TILDETRIM],h)).replace(c[l.CARETTRIM],p)).split(/\s+/).join(" ");const u=n?c[l.COMPARATORLOOSE]:c[l.COMPARATOR],m=t.split(" ").map((t=>g(t,this.options))).join(" ").split(/\s+/).map((t=>S(t,this.options))).filter(this.options.loose?t=>!!t.match(u):()=>!0).map((t=>new a(t,this.options))),y=(m.length,new Map);for(const t of m){if(d(t))return[t];y.set(t.value,t)}y.size>1&&y.has("")&&y.delete("");const v=[...y.values()];return o.set(e,v),v}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,e)&&t.set.some((t=>y(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new u(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(x(this.set[e],t,this.options))return!0;return!1}}t.exports=n;const o=new(r(7105))({max:1e3}),i=r(1388),a=r(7847),s=r(952),u=r(2435),{re:c,t:l,comparatorTrimReplace:f,tildeTrimReplace:h,caretTrimReplace:p}=r(4808),d=t=>"<0.0.0-0"===t.value,m=t=>""===t.value,y=(t,e)=>{let r=!0;const n=t.slice();let o=n.pop();for(;r&&n.length;)r=n.every((t=>o.intersects(t,e))),o=n.pop();return r},g=(t,e)=>(s("comp",t,e),t=A(t,e),s("caret",t),t=b(t,e),s("tildes",t),t=E(t,e),s("xrange",t),t=C(t,e),s("stars",t),t),v=t=>!t||"x"===t.toLowerCase()||"*"===t,b=(t,e)=>t.trim().split(/\s+/).map((t=>w(t,e))).join(" "),w=(t,e)=>{const r=e.loose?c[l.TILDELOOSE]:c[l.TILDE];return t.replace(r,((e,r,n,o,i)=>{let a;return s("tilde",t,e,r,n,o,i),v(r)?a="":v(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:v(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},A=(t,e)=>t.trim().split(/\s+/).map((t=>M(t,e))).join(" "),M=(t,e)=>{s("caret",t,e);const r=e.loose?c[l.CARETLOOSE]:c[l.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,o,i,a)=>{let u;return s("caret",t,e,r,o,i,a),v(r)?u="":v(o)?u=`>=${r}.0.0${n} <${+r+1}.0.0-0`:v(i)?u="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),u="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),u="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",u),u}))},E=(t,e)=>(s("replaceXRanges",t,e),t.split(/\s+/).map((t=>_(t,e))).join(" ")),_=(t,e)=>{t=t.trim();const r=e.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return t.replace(r,((r,n,o,i,a,u)=>{s("xRange",t,r,n,o,i,a,u);const c=v(o),l=c||v(i),f=l||v(a),h=f;return"="===n&&h&&(n=""),u=e.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(l&&(i=0),a=0,">"===n?(n=">=",l?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),"<"===n&&(u="-0"),r=`${n+o}.${i}.${a}${u}`):l?r=`>=${o}.0.0${u} <${+o+1}.0.0-0`:f&&(r=`>=${o}.${i}.0${u} <${o}.${+i+1}.0-0`),s("xRange return",r),r}))},C=(t,e)=>(s("replaceStars",t,e),t.trim().replace(c[l.STAR],"")),S=(t,e)=>(s("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?l.GTE0PRE:l.GTE0],"")),k=t=>(e,r,n,o,i,a,s,u,c,l,f,h,p)=>`${r=v(n)?"":v(o)?`>=${n}.0.0${t?"-0":""}`:v(i)?`>=${n}.${o}.0${t?"-0":""}`:a?`>=${r}`:`>=${r}${t?"-0":""}`} ${u=v(c)?"":v(l)?`<${+c+1}.0.0-0`:v(f)?`<${c}.${+l+1}.0-0`:h?`<=${c}.${l}.${f}-${h}`:t?`<${c}.${l}.${+f+1}-0`:`<=${u}`}`.trim(),x=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(s(t[r].semver),t[r].semver!==a.ANY&&t[r].semver.prerelease.length>0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},2435:function(t,e,r){const n=r(952),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(5558),{re:a,t:s}=r(4808),u=r(1388),{compareIdentifiers:c}=r(4935);class l{constructor(t,e){if(e=u(e),t instanceof l){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid Version: ${t}`);if(t.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<i)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof l||(t=new l(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],o=t.prerelease[e];if(n("prerelease compare",e,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++e)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let e=0;do{const r=this.build[e],o=t.build[e];if(n("prerelease compare",e,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++e)}inc(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let t=this.prerelease.length;for(;--t>=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}t.exports=l},6694:function(t,e,r){const n=r(9943);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},8117:function(t,e,r){const n=r(3276),o=r(7893),i=r(6379),a=r(8463),s=r(1897),u=r(506);t.exports=(t,e,r,c)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,c);case"!=":return o(t,r,c);case">":return i(t,r,c);case">=":return a(t,r,c);case"<":return s(t,r,c);case"<=":return u(t,r,c);default:throw new TypeError(`Invalid operator: ${e}`)}}},8686:function(t,e,r){const n=r(2435),o=r(9943),{re:i,t:a}=r(4808);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=i[a.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),i[a.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;i[a.COERCERTL].lastIndex=-1}else r=t.match(i[a.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},5914:function(t,e,r){const n=r(2435);t.exports=(t,e,r)=>{const o=new n(t,r),i=new n(e,r);return o.compare(i)||o.compareBuild(i)}},5404:function(t,e,r){const n=r(2271);t.exports=(t,e)=>n(t,e,!0)},2271:function(t,e,r){const n=r(2435);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},6007:function(t,e,r){const n=r(9943),o=r(3276);t.exports=(t,e)=>{if(o(t,e))return null;{const r=n(t),o=n(e),i=r.prerelease.length||o.prerelease.length,a=i?"pre":"",s=i?"prerelease":"";for(const t in r)if(("major"===t||"minor"===t||"patch"===t)&&r[t]!==o[t])return a+t;return s}}},3276:function(t,e,r){const n=r(2271);t.exports=(t,e,r)=>0===n(t,e,r)},6379:function(t,e,r){const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)>0},8463:function(t,e,r){const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)>=0},6360:function(t,e,r){const n=r(2435);t.exports=(t,e,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(t,r).inc(e,o).version}catch(t){return null}}},1897:function(t,e,r){const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)<0},506:function(t,e,r){const n=r(2271);t.exports=(t,e,r)=>n(t,e,r)<=0},4551:function(t,e,r){const n=r(2435);t.exports=(t,e)=>new n(t,e).major},469:function(t,e,r){const n=r(2435);t.exports=(t,e)=>new n(t,e).minor},7893:function(t,e,r){const n=r(2271);t.exports=(t,e,r)=>0!==n(t,e,r)},9943:function(t,e,r){const{MAX_LENGTH:n}=r(5558),{re:o,t:i}=r(4808),a=r(2435),s=r(1388);t.exports=(t,e)=>{if(e=s(e),t instanceof a)return t;if("string"!=typeof t)return null;if(t.length>n)return null;if(!(e.loose?o[i.LOOSE]:o[i.FULL]).test(t))return null;try{return new a(t,e)}catch(t){return null}}},4250:function(t,e,r){const n=r(2435);t.exports=(t,e)=>new n(t,e).patch},8204:function(t,e,r){const n=r(9943);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},733:function(t,e,r){const n=r(2271);t.exports=(t,e,r)=>n(e,t,r)},2961:function(t,e,r){const n=r(5914);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},9844:function(t,e,r){const n=r(6843);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},1116:function(t,e,r){const n=r(5914);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},7230:function(t,e,r){const n=r(9943);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},7699:function(t,e,r){const n=r(4808);t.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(5558).SEMVER_SPEC_VERSION,SemVer:r(2435),compareIdentifiers:r(4935).compareIdentifiers,rcompareIdentifiers:r(4935).rcompareIdentifiers,parse:r(9943),valid:r(7230),clean:r(6694),inc:r(6360),diff:r(6007),major:r(4551),minor:r(469),patch:r(4250),prerelease:r(8204),compare:r(2271),rcompare:r(733),compareLoose:r(5404),compareBuild:r(5914),sort:r(1116),rsort:r(2961),gt:r(6379),lt:r(1897),eq:r(3276),neq:r(7893),gte:r(8463),lte:r(506),cmp:r(8117),coerce:r(8686),Comparator:r(7847),Range:r(6843),satisfies:r(9844),toComparators:r(8865),maxSatisfying:r(3727),minSatisfying:r(4338),minVersion:r(1542),validRange:r(6240),outside:r(9106),gtr:r(995),ltr:r(7805),intersects:r(2013),simplifyRange:r(1338),subset:r(3122)}},5558:function(t){const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:e,MAX_SAFE_COMPONENT_LENGTH:16}},952:function(t,e,r){var n=r(4406),o=r(3716);const i="object"==typeof n&&{NODE_ENV:"production"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production"}.NODE_DEBUG)?(...t)=>o.error("SEMVER",...t):()=>{};t.exports=i},4935:function(t){const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),o=e.test(r);return n&&o&&(t=+t,r=+r),t===r?0:n&&!o?-1:o&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},1388:function(t){const e=["includePrerelease","loose","rtl"];t.exports=t=>t?"object"!=typeof t?{loose:!0}:e.filter((e=>t[e])).reduce(((t,e)=>(t[e]=!0,t)),{}):{}},4808:function(t,e,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(5558),o=r(952),i=(e=t.exports={}).re=[],a=e.src=[],s=e.t={};let u=0;const c=(t,e,r)=>{const n=u++;o(n,e),s[t]=n,a[n]=e,i[n]=new RegExp(e,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),c("FULL",`^${a[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),c("LOOSE",`^${a[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),c("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",a[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},995:function(t,e,r){const n=r(9106);t.exports=(t,e,r)=>n(t,e,">",r)},2013:function(t,e,r){const n=r(6843);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e))},7805:function(t,e,r){const n=r(9106);t.exports=(t,e,r)=>n(t,e,"<",r)},3727:function(t,e,r){const n=r(2435),o=r(6843);t.exports=(t,e,r)=>{let i=null,a=null,s=null;try{s=new o(e,r)}catch(t){return null}return t.forEach((t=>{s.test(t)&&(i&&-1!==a.compare(t)||(i=t,a=new n(i,r)))})),i}},4338:function(t,e,r){const n=r(2435),o=r(6843);t.exports=(t,e,r)=>{let i=null,a=null,s=null;try{s=new o(e,r)}catch(t){return null}return t.forEach((t=>{s.test(t)&&(i&&1!==a.compare(t)||(i=t,a=new n(i,r)))})),i}},1542:function(t,e,r){const n=r(2435),o=r(6843),i=r(6379);t.exports=(t,e)=>{t=new o(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const o=t.set[e];let a=null;o.forEach((t=>{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":a&&!i(e,a)||(a=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||r&&!i(r,a)||(r=a)}return r&&t.test(r)?r:null}},9106:function(t,e,r){const n=r(2435),o=r(7847),{ANY:i}=o,a=r(6843),s=r(9844),u=r(6379),c=r(1897),l=r(506),f=r(8463);t.exports=(t,e,r,h)=>{let p,d,m,y,g;switch(t=new n(t,h),e=new a(e,h),r){case">":p=u,d=l,m=c,y=">",g=">=";break;case"<":p=c,d=f,m=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(t,e,h))return!1;for(let r=0;r<e.set.length;++r){const n=e.set[r];let a=null,s=null;if(n.forEach((t=>{t.semver===i&&(t=new o(">=0.0.0")),a=a||t,s=s||t,p(t.semver,a.semver,h)?a=t:m(t.semver,s.semver,h)&&(s=t)})),a.operator===y||a.operator===g)return!1;if((!s.operator||s.operator===y)&&d(t,s.semver))return!1;if(s.operator===g&&m(t,s.semver))return!1}return!0}},1338:function(t,e,r){const n=r(9844),o=r(2271);t.exports=(t,e,r)=>{const i=[];let a=null,s=null;const u=t.sort(((t,e)=>o(t,e,r)));for(const t of u)n(t,e,r)?(s=t,a||(a=t)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);const c=[];for(const[t,e]of i)t===e?c.push(t):e||t!==u[0]?e?t===u[0]?c.push(`<=${e}`):c.push(`${t} - ${e}`):c.push(`>=${t}`):c.push("*");const l=c.join(" || "),f="string"==typeof e.raw?e.raw:String(e);return l.length<f.length?l:e}},3122:function(t,e,r){const n=r(6843),o=r(7847),{ANY:i}=o,a=r(9844),s=r(2271),u=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===i){if(1===e.length&&e[0].semver===i)return!0;t=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===e.length&&e[0].semver===i){if(r.includePrerelease)return!0;e=[new o(">=0.0.0")]}const n=new Set;let u,f,h,p,d,m,y;for(const e of t)">"===e.operator||">="===e.operator?u=c(u,e,r):"<"===e.operator||"<="===e.operator?f=l(f,e,r):n.add(e.semver);if(n.size>1)return null;if(u&&f){if(h=s(u.semver,f.semver,r),h>0)return null;if(0===h&&(">="!==u.operator||"<="!==f.operator))return null}for(const t of n){if(u&&!a(t,String(u),r))return null;if(f&&!a(t,String(f),r))return null;for(const n of e)if(!a(t,String(n),r))return!1;return!0}let g=!(!f||r.includePrerelease||!f.semver.prerelease.length)&&f.semver,v=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===f.operator&&0===g.prerelease[0]&&(g=!1);for(const t of e){if(y=y||">"===t.operator||">="===t.operator,m=m||"<"===t.operator||"<="===t.operator,u)if(v&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===v.major&&t.semver.minor===v.minor&&t.semver.patch===v.patch&&(v=!1),">"===t.operator||">="===t.operator){if(p=c(u,t,r),p===t&&p!==u)return!1}else if(">="===u.operator&&!a(u.semver,String(t),r))return!1;if(f)if(g&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===g.major&&t.semver.minor===g.minor&&t.semver.patch===g.patch&&(g=!1),"<"===t.operator||"<="===t.operator){if(d=l(f,t,r),d===t&&d!==f)return!1}else if("<="===f.operator&&!a(f.semver,String(t),r))return!1;if(!t.operator&&(f||u)&&0!==h)return!1}return!(u&&m&&!f&&0!==h||f&&y&&!u&&0!==h||v||g)},c=(t,e,r)=>{if(!t)return e;const n=s(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},l=(t,e,r)=>{if(!t)return e;const n=s(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let o=!1;t:for(const n of t.set){for(const t of e.set){const e=u(n,t,r);if(o=o||null!==e,e)continue t}if(o)return!1}return!0}},8865:function(t,e,r){const n=r(6843);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},6240:function(t,e,r){const n=r(6843);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},9569:function(t,e,r){var n,o;!function(i,a){"use strict";t.exports?t.exports=a():void 0===(o="function"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=o)}(0,(function(t){"use strict";var e=t&&t.IPv6;return{best:function(t){var e,r,n=t.toLowerCase().split(":"),o=n.length,i=8;for(""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[o-1]&&""===n[o-2]&&n.pop(),-1!==n[(o=n.length)-1].indexOf(".")&&(i=7),e=0;e<o&&""!==n[e];e++);if(e<i)for(n.splice(e,1,"0000");n.length<i;)n.splice(e,0,"0000");for(var a=0;a<i;a++){r=n[a].split("");for(var s=0;s<3&&"0"===r[0]&&r.length>1;s++)r.splice(0,1);n[a]=r.join("")}var u=-1,c=0,l=0,f=-1,h=!1;for(a=0;a<i;a++)h?"0"===n[a]?l+=1:(h=!1,l>c&&(u=f,c=l)):"0"===n[a]&&(h=!0,f=a,l=1);l>c&&(u=f,c=l),c>1&&n.splice(u,c,""),o=n.length;var p="";for(""===n[0]&&(p=":"),a=0;a<o&&(p+=n[a],a!==o-1);a++)p+=":";return""===n[o-1]&&(p+=":"),p},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}))},4171:function(t,e,r){var n,o;!function(i,a){"use strict";t.exports?t.exports=a():void 0===(o="function"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=o)}(0,(function(t){"use strict";var e=t&&t.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;var n=t.lastIndexOf(".",e-1);if(n<=0||n>=e-1)return!1;var o=r.list[t.slice(e+1)];return!!o&&o.indexOf(" "+t.slice(n+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var n=r.list[t.slice(e+1)];return!!n&&n.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var n=t.lastIndexOf(".",e-1);if(n<=0||n>=e-1)return null;var o=r.list[t.slice(e+1)];return o?o.indexOf(" "+t.slice(n+1,e)+" ")<0?null:t.slice(n+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return r}))},957:function(t,e,r){var n,o,i;!function(a,s){"use strict";t.exports?t.exports=s(r(9942),r(9569),r(4171)):(o=[r(9942),r(9569),r(4171)],void 0===(i="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=i))}(0,(function(t,e,r,n){"use strict";var o=n&&n.URI;function i(t,e){var r=arguments.length>=1;if(!(this instanceof i))return r?arguments.length>=2?new i(t,e):new i(t):new i;if(void 0===t){if(r)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&r)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}i.version="1.19.11";var a=i.prototype,s=Object.prototype.hasOwnProperty;function u(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function l(t){return"Array"===c(t)}function f(t,e){var r,n,o={};if("RegExp"===c(e))o=null;else if(l(e))for(r=0,n=e.length;r<n;r++)o[e[r]]=!0;else o[e]=!0;for(r=0,n=t.length;r<n;r++)(o&&void 0!==o[t[r]]||!o&&e.test(t[r]))&&(t.splice(r,1),n--,r--);return t}function h(t,e){var r,n;if(l(e)){for(r=0,n=e.length;r<n;r++)if(!h(t,e[r]))return!1;return!0}var o=c(e);for(r=0,n=t.length;r<n;r++)if("RegExp"===o){if("string"==typeof t[r]&&t[r].match(e))return!0}else if(t[r]===e)return!0;return!1}function p(t,e){if(!l(t)||!l(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var r=0,n=t.length;r<n;r++)if(t[r]!==e[r])return!1;return!0}function d(t){return t.replace(/^\/+|\/+$/g,"")}function m(t){return escape(t)}function y(t){return encodeURIComponent(t).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return i.domAttributes[e]}},i.encode=y,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=y,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(t,e){var r=i.encode(t+"");return void 0===e&&(e=i.escapeQuerySpace),e?r.replace(/%20/g,"+"):r},i.decodeQuery=function(t,e){t+="",void 0===e&&(e=i.escapeQuerySpace);try{return i.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var g,v={encode:"encode",decode:"decode"},b=function(t,e){return function(r){try{return i[e](r+"").replace(i.characters[t][e].expression,(function(r){return i.characters[t][e].map[r]}))}catch(t){return r}}};for(g in v)i[g+"PathSegment"]=b("pathname",v[g]),i[g+"UrnPathSegment"]=b("urnpath",v[g]);var w=function(t,e,r){return function(n){var o;o=r?function(t){return i[e](i[r](t))}:i[e];for(var a=(n+"").split(t),s=0,u=a.length;s<u;s++)a[s]=o(a[s]);return a.join(t)}};function A(t){return function(e,r){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!r),this)}}function M(t,e){return function(r,n){return void 0===r?this._parts[t]||"":(null!==r&&(r+="").charAt(0)===e&&(r=r.substring(1)),this._parts[t]=r,this.build(!n),this)}}i.decodePath=w("/","decodePathSegment"),i.decodeUrnPath=w(":","decodeUrnPathSegment"),i.recodePath=w("/","encodePathSegment","decode"),i.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),i.encodeReserved=b("reserved","encode"),i.parse=function(t,e){var r;return e||(e={preventInvalidHostname:i.preventInvalidHostname}),(r=(t=(t=t.replace(i.leading_whitespace_expression,"")).replace(i.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(e.fragment=t.substring(r+1)||null,t=t.substring(0,r)),(r=t.indexOf("?"))>-1&&(e.query=t.substring(r+1)||null,t=t.substring(0,r)),"//"===(t=(t=t.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(e.protocol=null,t=t.substring(2),t=i.parseAuthority(t,e)):(r=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,r)||null,e.protocol&&!e.protocol.match(i.protocol_expression)?e.protocol=void 0:"//"===t.substring(r+1,r+3).replace(/\\/g,"/")?(t=t.substring(r+3),t=i.parseAuthority(t,e)):(t=t.substring(r+1),e.urn=!0)),e.path=t,e},i.parseHost=function(t,e){t||(t="");var r,n,o=(t=t.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=t.length),"["===t.charAt(0))r=t.indexOf("]"),e.hostname=t.substring(1,r)||null,e.port=t.substring(r+2,o)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),s=t.indexOf("/"),u=t.indexOf(":",a+1);-1!==u&&(-1===s||u<s)?(e.hostname=t.substring(0,o)||null,e.port=null):(n=t.substring(0,o).split(":"),e.hostname=n[0]||null,e.port=n[1]||null)}return e.hostname&&"/"!==t.substring(o).charAt(0)&&(o++,t="/"+t),e.preventInvalidHostname&&i.ensureValidHostname(e.hostname,e.protocol),e.port&&i.ensureValidPort(e.port),t.substring(o)||"/"},i.parseAuthority=function(t,e){return t=i.parseUserinfo(t,e),i.parseHost(t,e)},i.parseUserinfo=function(t,e){var r=t;-1!==t.indexOf("\\")&&(t=t.replace(/\\/g,"/"));var n,o=t.indexOf("/"),a=t.lastIndexOf("@",o>-1?o:t.length-1);return a>-1&&(-1===o||a<o)?(n=t.substring(0,a).split(":"),e.username=n[0]?i.decode(n[0]):null,n.shift(),e.password=n[0]?i.decode(n.join(":")):null,t=r.substring(a+1)):(e.username=null,e.password=null),t},i.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,o,a={},u=t.split("&"),c=u.length,l=0;l<c;l++)r=u[l].split("="),n=i.decodeQuery(r.shift(),e),o=r.length?i.decodeQuery(r.join("="),e):null,"__proto__"!==n&&(s.call(a,n)?("string"!=typeof a[n]&&null!==a[n]||(a[n]=[a[n]]),a[n].push(o)):a[n]=o);return a},i.build=function(t){var e="",r=!1;return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//",r=!0),e+=i.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&r&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},i.buildHost=function(t){var e="";return t.hostname?(i.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},i.buildAuthority=function(t){return i.buildUserinfo(t)+i.buildHost(t)},i.buildUserinfo=function(t){var e="";return t.username&&(e+=i.encode(t.username)),t.password&&(e+=":"+i.encode(t.password)),e&&(e+="@"),e},i.buildQuery=function(t,e,r){var n,o,a,u,c="";for(o in t)if("__proto__"!==o&&s.call(t,o))if(l(t[o]))for(n={},a=0,u=t[o].length;a<u;a++)void 0!==t[o][a]&&void 0===n[t[o][a]+""]&&(c+="&"+i.buildQueryParameter(o,t[o][a],r),!0!==e&&(n[t[o][a]+""]=!0));else void 0!==t[o]&&(c+="&"+i.buildQueryParameter(o,t[o],r));return c.substring(1)},i.buildQueryParameter=function(t,e,r){return i.encodeQuery(t,r)+(null!==e?"="+i.encodeQuery(e,r):"")},i.addQuery=function(t,e,r){if("object"==typeof e)for(var n in e)s.call(e,n)&&i.addQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=r);"string"==typeof t[e]&&(t[e]=[t[e]]),l(r)||(r=[r]),t[e]=(t[e]||[]).concat(r)}},i.setQuery=function(t,e,r){if("object"==typeof e)for(var n in e)s.call(e,n)&&i.setQuery(t,n,e[n]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===r?null:r}},i.removeQuery=function(t,e,r){var n,o,a;if(l(e))for(n=0,o=e.length;n<o;n++)t[e[n]]=void 0;else if("RegExp"===c(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)s.call(e,a)&&i.removeQuery(t,a,e[a]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===c(r)?!l(t[e])&&r.test(t[e])?t[e]=void 0:t[e]=f(t[e],r):t[e]!==String(r)||l(r)&&1!==r.length?l(t[e])&&(t[e]=f(t[e],r)):t[e]=void 0:t[e]=void 0}},i.hasQuery=function(t,e,r,n){switch(c(e)){case"String":break;case"RegExp":for(var o in t)if(s.call(t,o)&&e.test(o)&&(void 0===r||i.hasQuery(t,o,r)))return!0;return!1;case"Object":for(var a in e)if(s.call(e,a)&&!i.hasQuery(t,a,e[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(c(r)){case"Undefined":return e in t;case"Boolean":return r===Boolean(l(t[e])?t[e].length:t[e]);case"Function":return!!r(t[e],e,t);case"Array":return!!l(t[e])&&(n?h:p)(t[e],r);case"RegExp":return l(t[e])?!!n&&h(t[e],r):Boolean(t[e]&&t[e].match(r));case"Number":r=String(r);case"String":return l(t[e])?!!n&&h(t[e],r):t[e]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var t=[],e=[],r=0,n=0;n<arguments.length;n++){var o=new i(arguments[n]);t.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&r++}if(!e.length||!r)return new i("");var u=new i("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},i.commonPath=function(t,e){var r,n=Math.min(t.length,e.length);for(r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r)){r--;break}return r<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(r)&&"/"===e.charAt(r)||(r=t.substring(0,r).lastIndexOf("/")),t.substring(0,r+1))},i.withinString=function(t,e,r){r||(r={});var n=r.start||i.findUri.start,o=r.end||i.findUri.end,a=r.trim||i.findUri.trim,s=r.parens||i.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var c=n.exec(t);if(!c)break;var l=c.index;if(r.ignoreHtml){var f=t.slice(Math.max(l-3,0),l);if(f&&u.test(f))continue}for(var h=l+t.slice(l).search(o),p=t.slice(l,h),d=-1;;){var m=s.exec(p);if(!m)break;var y=m.index+m[0].length;d=Math.max(d,y)}if(!((p=d>-1?p.slice(0,d)+p.slice(d).replace(a,""):p.replace(a,"")).length<=c[0].length||r.ignore&&r.ignore.test(p))){var g=e(p,l,h=l+p.length,t);void 0!==g?(g=String(g),t=t.slice(0,l)+g+t.slice(h),n.lastIndex=l+g.length):n.lastIndex=h}}return n.lastIndex=0,t},i.ensureValidHostname=function(e,r){var n=!!e,o=!1;if(!!r&&(o=h(i.hostProtocols,r)),o&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(e&&e.match(i.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(t){if(t){var e=Number(t);if(!(/^[0-9]+$/.test(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},i.noConflict=function(t){if(t){var e={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(e.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(e.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=n.SecondLevelDomains.noConflict()),e}return n.URI===this&&(n.URI=o),this},a.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new i(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=A("protocol"),a.username=A("username"),a.password=A("password"),a.hostname=A("hostname"),a.port=A("port"),a.query=M("query","?"),a.fragment=M("fragment","#"),a.search=function(t,e){var r=this.query(t,e);return"string"==typeof r&&r.length?"?"+r:r},a.hash=function(t,e){var r=this.fragment(t,e);return"string"==typeof r&&r.length?"#"+r:r},a.pathname=function(t,e){if(void 0===t||!0===t){var r=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?i.decodeUrnPath:i.decodePath)(r):r}return this._parts.urn?this._parts.path=t?i.recodeUrnPath(t):"":this._parts.path=t?i.recodePath(t):"/",this.build(!e),this},a.path=a.pathname,a.href=function(t,e){var r;if(void 0===t)return this.toString();this._string="",this._parts=i._parts();var n=t instanceof i,o="object"==typeof t&&(t.hostname||t.path||t.pathname);if(t.nodeName&&(t=t[i.getDomAttribute(t)]||"",o=!1),!n&&o&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=i.parse(String(t),this._parts);else{if(!n&&!o)throw new TypeError("invalid input");var a=n?t._parts:t;for(r in a)"query"!==r&&s.call(this._parts,r)&&(this._parts[r]=a[r]);a.query&&this.query(a.query,!1)}return this.build(!e),this},a.is=function(t){var e=!1,n=!1,o=!1,a=!1,s=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,n=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),s=(a=!(e=n||o))&&r&&r.has(this._parts.hostname),u=a&&i.idn_expression.test(this._parts.hostname),c=a&&i.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return a;case"sld":return s;case"ip":return e;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var E=a.protocol,_=a.port,C=a.hostname;a.protocol=function(t,e){if(t&&!(t=t.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return E.call(this,t,e)},a.scheme=a.protocol,a.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),i.ensureValidPort(t))),_.call(this,t,e))},a.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(t,r))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=r.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},a.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=i(t);return this.protocol(n.protocol()).authority(n.authority()).build(!e),this},a.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var r=i.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==t[t.length-1]&&(t+="@"),i.parseUserinfo(t,this._parts),this.build(!e),this},a.resource=function(t,e){var r;return void 0===t?this.path()+this.search()+this.hash():(r=i.parse(t),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!e),this)},a.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,n),a=new RegExp("^"+u(o));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&i.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,t),this.build(!e),this},a.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(e).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var o=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},a.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(n+1);return!0!==e&&r&&r.list[o.toLowerCase()]&&r.get(this._parts.hostname)||o}var i;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},a.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return t?i.decodePath(n):n}var o=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,o),s=new RegExp("^"+u(a));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=i.recodePath(t),this._parts.path=this._parts.path.replace(s,t),this.build(!e),this},a.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return t?i.decodePathSegment(n):n}var o=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(o=!0);var a=new RegExp(u(this.filename())+"$");return t=i.recodePath(t),this._parts.path=this._parts.path.replace(a,t),o?this.normalizePath(e):this.build(!e),this},a.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,o=this.filename(),a=o.lastIndexOf(".");return-1===a?"":(r=o.substring(a+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",t?i.decodePathSegment(n):n)}"."===t.charAt(0)&&(t=t.substring(1));var s,c=this.suffix();if(c)s=t?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!t)return this;this._parts.path+="."+i.recodePath(t)}return s&&(t=i.recodePath(t),this._parts.path=this._parts.path.replace(s,t)),this.build(!e),this},a.segment=function(t,e,r){var n=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),a=o.split(n);if(void 0!==t&&"number"!=typeof t&&(r=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(i&&a.shift(),t<0&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(l(e)){a=[];for(var s=0,u=e.length;s<u;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(d(e[s])))}else(e||"string"==typeof e)&&(e=d(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=d(e):a.splice(t,1);return i&&a.unshift(""),this.path(a.join(n),r)},a.segmentCoded=function(t,e,r){var n,o,a;if("number"!=typeof t&&(r=e,e=t,t=void 0),void 0===e){if(l(n=this.segment(t,e,r)))for(o=0,a=n.length;o<a;o++)n[o]=i.decode(n[o]);else n=void 0!==n?i.decode(n):void 0;return n}if(l(e))for(o=0,a=e.length;o<a;o++)e[o]=i.encode(e[o]);else e="string"==typeof e||e instanceof String?i.encode(e):e;return this.segment(t,e,r)};var S=a.query;return a.query=function(t,e){if(!0===t)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=t.call(this,r);return this._parts.query=i.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=i.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):S.call(this,t,e)},a.setQuery=function(t,e,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)n[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in t)s.call(t,o)&&(n[o]=t[o])}return this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},a.addQuery=function(t,e,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(n,t,void 0===e?null:e),this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},a.removeQuery=function(t,e,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(n,t,e),this._parts.query=i.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(r=e),this.build(!r),this},a.hasQuery=function(t,e,r){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(n,t,e,r)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},a.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},a.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},a.normalizePath=function(t){var e,r=this._parts.path;if(!r)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var n,o,a="";for("/"!==(r=i.recodePath(r)).charAt(0)&&(e=!0,r="/"+r),"/.."!==r.slice(-3)&&"/."!==r.slice(-2)||(r+="/"),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(a=r.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(n=r.search(/\/\.\.(\/|$)/));)0!==n?(-1===(o=r.substring(0,n).lastIndexOf("/"))&&(o=n),r=r.substring(0,o)+r.substring(n+3)):r=r.substring(3);return e&&this.is("relative")&&(r=a+r.substring(1)),this._parts.path=r,this.build(!t),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},a.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var t=i.encode,e=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},a.unicode=function(){var t=i.encode,e=i.decode;i.encode=y,i.decode=unescape;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},a.readable=function(){var e=this.clone();e.username("").password("").normalize();var r="";if(e._parts.protocol&&(r+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(r+=t.toUnicode(e._parts.hostname),e._parts.port&&(r+=":"+e._parts.port)):r+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(r+="/"),r+=e.path(!0),e._parts.query){for(var n="",o=0,a=e._parts.query.split("&"),s=a.length;o<s;o++){var u=(a[o]||"").split("=");n+="&"+i.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(n+="="+i.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+i.decodeQuery(e.hash(),!0)},a.absoluteTo=function(t){var e,r,n,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof i||(t=new i(t)),o._parts.protocol)return o;if(o._parts.protocol=t._parts.protocol,this._parts.hostname)return o;for(r=0;n=a[r];r++)o._parts[n]=t._parts[n];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(e=(e=t.directory())||(0===t.path().indexOf("/")?"/":""),o._parts.path=(e?e+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=t._parts.path,o._parts.query||(o._parts.query=t._parts.query)),o.build(),o},a.relativeTo=function(t){var e,r,n,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new i(t).normalize(),e=s._parts,r=t._parts,o=s.path(),a=t.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===r.protocol&&(e.protocol=null),e.username!==r.username||e.password!==r.password)return s.build();if(null!==e.protocol||null!==e.username||null!==e.password)return s.build();if(e.hostname!==r.hostname||e.port!==r.port)return s.build();if(e.hostname=null,e.port=null,o===a)return e.path="",s.build();if(!(n=i.commonPath(o,a)))return s.build();var u=r.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=u+e.path.substring(n.length)||"./",s.build()},a.equals=function(t){var e,r,n,o,a,u=this.clone(),c=new i(t),f={};if(u.normalize(),c.normalize(),u.toString()===c.toString())return!0;if(n=u.query(),o=c.query(),u.query(""),c.query(""),u.toString()!==c.toString())return!1;if(n.length!==o.length)return!1;for(a in e=i.parseQuery(n,this._parts.escapeQuerySpace),r=i.parseQuery(o,this._parts.escapeQuerySpace),e)if(s.call(e,a)){if(l(e[a])){if(!p(e[a],r[a]))return!1}else if(e[a]!==r[a])return!1;f[a]=!0}for(a in r)if(s.call(r,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},a.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},a.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},i}))},9942:function(t,e,r){var n;t=r.nmd(t),function(o){e&&e.nodeType,t&&t.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,h={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,d=String.fromCharCode;function m(t){throw new RangeError(h[t])}function y(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function g(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+y((t=t.replace(f,".")).split("."),e).join(".")}function v(t){for(var e,r,n=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function b(t){return y(t,(function(t){var e="";return t>65535&&(e+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+d(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=u)t=p(t/35);return p(n+36*t/(t+38))}function M(t){var e,r,n,o,i,a,c,l,f,h,d,y=[],g=t.length,v=0,w=128,M=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&m("not-basic"),y.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,c=u;o>=g&&m("invalid-input"),((l=(d=t.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||l>p((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=M?1:c>=M+26?26:c-M));c+=u)a>p(s/(h=u-f))&&m("overflow"),a*=h;M=A(v-i,e=y.length+1,0==i),p(v/e)>s-w&&m("overflow"),w+=p(v/e),v%=e,y.splice(v++,0,w)}return b(y)}function E(t){var e,r,n,o,i,a,c,l,f,h,y,g,b,M,E,_=[];for(g=(t=v(t)).length,e=128,r=0,i=72,a=0;a<g;++a)(y=t[a])<128&&_.push(d(y));for(n=o=_.length,o&&_.push("-");n<g;){for(c=s,a=0;a<g;++a)(y=t[a])>=e&&y<c&&(c=y);for(c-e>p((s-r)/(b=n+1))&&m("overflow"),r+=(c-e)*b,e=c,a=0;a<g;++a)if((y=t[a])<e&&++r>s&&m("overflow"),y==e){for(l=r,f=u;!(l<(h=f<=i?1:f>=i+26?26:f-i));f+=u)E=l-h,M=u-h,_.push(d(w(h+E%M,0))),l=p(E/M);_.push(d(w(l,0))),i=A(r,b,n==o),r=0,++n}++r,++e}return _.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:M,encode:E,toASCII:function(t){return g(t,(function(t){return l.test(t)?"xn--"+E(t):t}))},toUnicode:function(t){return g(t,(function(t){return c.test(t)?M(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},82:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},4895:function(t,e,r){"use strict";var n=r(2635),o=r(3138),i=r(2094),a=r(198);function s(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function g(t){return"[object Map]"===l(t)}function v(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function A(t){return"[object ArrayBuffer]"===l(t)}function M(t){return"undefined"!=typeof ArrayBuffer&&(A.working?A(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===l(t)}function _(t){return"undefined"!=typeof DataView&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||_(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},g.working="undefined"!=typeof Map&&g(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(g.working?g(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),e.isArrayBuffer=M,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===l(t)}function k(t){return void 0!==C&&(void 0===S.working&&(S.working=S(new C)),S.working?S(t):t instanceof C)}function x(t){return y(t,f)}function O(t){return y(t,h)}function D(t){return y(t,p)}function F(t){return u&&y(t,d)}function T(t){return c&&y(t,m)}e.isSharedArrayBuffer=k,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=x,e.isStringObject=O,e.isBooleanObject=D,e.isBigIntObject=F,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return x(t)||O(t)||D(t)||F(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(M(t)||k(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},3335:function(t,e,r){var n=r(4406),o=r(3716),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(l(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(t).replace(a,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])v(s)||!E(s)?i+=" "+s:i+=" "+l(s);return i},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),i=!0}return t.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production"}.NODE_DEBUG){var c={NODE_ENV:"production"}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}function l(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),A(n.showHidden)&&(n.showHidden=!1),A(n.depth)&&(n.depth=2),A(n.colors)&&(n.colors=!1),A(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),p(n,t,n.depth)}function f(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return w(o)||(o=p(t,o,n)),o}var i=function(t,e){if(A(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return b(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),C(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(M(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(C(r))return d(r)}var c,l="",f=!1,h=["{","}"];return y(r)&&(f=!0,h=["[","]"]),S(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),_(r)&&(l=" "+Date.prototype.toUTCString.call(r)),C(r)&&(l=" "+d(r)),0!==a.length||f&&0!=r.length?n<0?M(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=f?function(t,e,r,n,o){for(var i=[],a=0,s=e.length;a<s;++a)F(e,String(a))?i.push(m(t,e,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(m(t,e,r,n,o,!0))})),i}(t,r,n,s,a):a.map((function(e){return m(t,r,n,s,e,f)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,l,h)):h[0]+l+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function m(t,e,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),F(n,o)||(a="["+o+"]"),s||(t.seen.indexOf(u.value)<0?(s=v(r)?p(t,u.value,null):p(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),A(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function v(t){return null===t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function A(t){return void 0===t}function M(t){return E(t)&&"[object RegExp]"===k(t)}function E(t){return"object"==typeof t&&null!==t}function _(t){return E(t)&&"[object Date]"===k(t)}function C(t){return E(t)&&("[object Error]"===k(t)||t instanceof Error)}function S(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(u.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);o.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(4895),e.isArray=y,e.isBoolean=g,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=A,e.isRegExp=M,e.types.isRegExp=M,e.isObject=E,e.isDate=_,e.types.isDate=_,e.isError=C,e.types.isNativeError=C,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(82);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),O[t.getMonth()],e].join(" ")}function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){o.log("%s - %s",D(),e.format.apply(e,arguments))},e.inherits=r(1285),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=T,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var o=e.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(j.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},9987:function(t,e,r){"use strict";var n;r.r(e),r.d(e,{NIL:function(){return D},parse:function(){return y},stringify:function(){return h},v1:function(){return m},v3:function(){return C},v4:function(){return S},v5:function(){return O},validate:function(){return s},version:function(){return F}});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(t){return"string"==typeof t&&a.test(t)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,f,h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r},p=0,d=0,m=function(t,e,r){var n=e&&r||0,o=e||new Array(16),a=(t=t||{}).node||l,s=void 0!==t.clockseq?t.clockseq:f;if(null==a||null==s){var u=t.random||(t.rng||i)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==t.msecs?t.msecs:Date.now(),m=void 0!==t.nsecs?t.nsecs:d+1,y=c-p+(m-d)/1e4;if(y<0&&void 0===t.clockseq&&(s=s+1&16383),(y<0||c>p)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,d=m,f=s;var g=(1e4*(268435455&(c+=122192928e5))+m)%4294967296;o[n++]=g>>>24&255,o[n++]=g>>>16&255,o[n++]=g>>>8&255,o[n++]=255&g;var v=c/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var b=0;b<6;++b)o[n+b]=a[b];return e||h(o)},y=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function g(t,e,r){function n(t,n,o,i){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(n),a.set(t,n.length),(a=r(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return h(a)}try{n.name=t}catch(t){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function v(t){return 14+(t+64>>>9<<4)+1}function b(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function w(t,e,r,n,o,i){return b((a=b(b(e,t),b(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function A(t,e,r,n,o,i,a){return w(e&r|~e&n,t,e,o,i,a)}function M(t,e,r,n,o,i,a){return w(e&n|r&~n,t,e,o,i,a)}function E(t,e,r,n,o,i,a){return w(e^r^n,t,e,o,i,a)}function _(t,e,r,n,o,i,a){return w(r^(e|~n),t,e,o,i,a)}var C=g("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)}return function(t){for(var e=[],r=32*t.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);e.push(a)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[v(e)-1]=e;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var s=r,u=n,c=o,l=i;r=A(r,n,o,i,t[a],7,-680876936),i=A(i,r,n,o,t[a+1],12,-389564586),o=A(o,i,r,n,t[a+2],17,606105819),n=A(n,o,i,r,t[a+3],22,-1044525330),r=A(r,n,o,i,t[a+4],7,-176418897),i=A(i,r,n,o,t[a+5],12,1200080426),o=A(o,i,r,n,t[a+6],17,-1473231341),n=A(n,o,i,r,t[a+7],22,-45705983),r=A(r,n,o,i,t[a+8],7,1770035416),i=A(i,r,n,o,t[a+9],12,-1958414417),o=A(o,i,r,n,t[a+10],17,-42063),n=A(n,o,i,r,t[a+11],22,-1990404162),r=A(r,n,o,i,t[a+12],7,1804603682),i=A(i,r,n,o,t[a+13],12,-40341101),o=A(o,i,r,n,t[a+14],17,-1502002290),r=M(r,n=A(n,o,i,r,t[a+15],22,1236535329),o,i,t[a+1],5,-165796510),i=M(i,r,n,o,t[a+6],9,-1069501632),o=M(o,i,r,n,t[a+11],14,643717713),n=M(n,o,i,r,t[a],20,-373897302),r=M(r,n,o,i,t[a+5],5,-701558691),i=M(i,r,n,o,t[a+10],9,38016083),o=M(o,i,r,n,t[a+15],14,-660478335),n=M(n,o,i,r,t[a+4],20,-405537848),r=M(r,n,o,i,t[a+9],5,568446438),i=M(i,r,n,o,t[a+14],9,-1019803690),o=M(o,i,r,n,t[a+3],14,-187363961),n=M(n,o,i,r,t[a+8],20,1163531501),r=M(r,n,o,i,t[a+13],5,-1444681467),i=M(i,r,n,o,t[a+2],9,-51403784),o=M(o,i,r,n,t[a+7],14,1735328473),r=E(r,n=M(n,o,i,r,t[a+12],20,-1926607734),o,i,t[a+5],4,-378558),i=E(i,r,n,o,t[a+8],11,-2022574463),o=E(o,i,r,n,t[a+11],16,1839030562),n=E(n,o,i,r,t[a+14],23,-35309556),r=E(r,n,o,i,t[a+1],4,-1530992060),i=E(i,r,n,o,t[a+4],11,1272893353),o=E(o,i,r,n,t[a+7],16,-155497632),n=E(n,o,i,r,t[a+10],23,-1094730640),r=E(r,n,o,i,t[a+13],4,681279174),i=E(i,r,n,o,t[a],11,-358537222),o=E(o,i,r,n,t[a+3],16,-722521979),n=E(n,o,i,r,t[a+6],23,76029189),r=E(r,n,o,i,t[a+9],4,-640364487),i=E(i,r,n,o,t[a+12],11,-421815835),o=E(o,i,r,n,t[a+15],16,530742520),r=_(r,n=E(n,o,i,r,t[a+2],23,-995338651),o,i,t[a],6,-198630844),i=_(i,r,n,o,t[a+7],10,1126891415),o=_(o,i,r,n,t[a+14],15,-1416354905),n=_(n,o,i,r,t[a+5],21,-57434055),r=_(r,n,o,i,t[a+12],6,1700485571),i=_(i,r,n,o,t[a+3],10,-1894986606),o=_(o,i,r,n,t[a+10],15,-1051523),n=_(n,o,i,r,t[a+1],21,-2054922799),r=_(r,n,o,i,t[a+8],6,1873313359),i=_(i,r,n,o,t[a+15],10,-30611744),o=_(o,i,r,n,t[a+6],15,-1560198380),n=_(n,o,i,r,t[a+13],21,1309151649),r=_(r,n,o,i,t[a+4],6,-145523070),i=_(i,r,n,o,t[a+11],10,-1120210379),o=_(o,i,r,n,t[a+2],15,718787259),n=_(n,o,i,r,t[a+9],21,-343485551),r=b(r,s),n=b(n,u),o=b(o,c),i=b(i,l)}return[r,n,o,i]}(function(t){if(0===t.length)return[];for(var e=8*t.length,r=new Uint32Array(v(e)),n=0;n<e;n+=8)r[n>>5]|=(255&t[n/8])<<n%32;return r}(t),8*t.length))})),S=function(t,e,r){var n=(t=t||{}).random||(t.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return h(n)};function k(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:case 3:return e^r^n;case 2:return e&r^e&n^r&n}}function x(t,e){return t<<e|t>>>32-e}var O=g("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=t[64*u+4*l]<<24|t[64*u+4*l+1]<<16|t[64*u+4*l+2]<<8|t[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var f=0;f<a;++f){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[f][p];for(var d=16;d<80;++d)h[d]=x(h[d-3]^h[d-8]^h[d-14]^h[d-16],1);for(var m=r[0],y=r[1],g=r[2],v=r[3],b=r[4],w=0;w<80;++w){var A=Math.floor(w/20),M=x(m,5)+k(A,y,g,v)+b+e[A]+h[w]>>>0;b=v,v=g,g=x(y,30)>>>0,y=m,m=M}r[0]=r[0]+m>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),D="00000000-0000-0000-0000-000000000000",F=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},2094:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("String.prototype.slice"),f={},h=r(9765),p=Object.getPrototypeOf;s&&h&&p&&n(c,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=p(e),n=h(r,Symbol.toStringTag);if(!n){var o=p(r);n=h(o,Symbol.toStringTag)}f[t]=n.get}}}));var d=r(198);t.exports=function(t){return!!d(t)&&(s&&Symbol.toStringTag in t?function(t){var e=!1;return n(f,(function(r,n){if(!e)try{var o=r.call(t);o===n&&(e=o)}catch(t){}})),e}(t):l(a(t),8,-1))}},8268:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},8006:function(t,e,r){"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)e.push(arguments[r]);return e}function o(t,e,r){var n=e===t.head?new s(r,null,e,t):new s(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}function i(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,r,n){if(!(this instanceof s))return new s(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)i(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,o=this.head;null!==o;)r.push(t.call(e,o.value,this)),o=o.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,o=this.tail;null!==o;)r.push(t.call(e,o.value,this)),o=o.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=t(r,n.value,o),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=t(r,n.value,o),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var o=0,i=this.head;null!==i&&o<t;o++)i=i.next;for(;null!==i&&o<e;o++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var o=this.length,i=this.tail;null!==i&&o>e;o--)i=i.prev;for(;null!==i&&o>t;o--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;null!==i&&n<t;n++)i=i.next;var a=[];for(n=0;i&&n<e;n++)a.push(i.value),i=this.removeNode(i);for(null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev),n=0;n<r.length;n++)i=o(this,i,r[n]);return a},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(8268)(n)}catch(t){}},6010:function(t,e,r){"use strict";const n=r(9022),o=r(7619),i=r(5400),a=r(4458),s=r(7291),u=r(4356),c=r(722),l=r(1988),f=r(79),h=r(4823),p=r(1081),d=r(6858),m=r(9966),y=r(5960),g=r(4833),v=r(8334),b=r(3988),w=r(6017),A=r(3534),M=r(8631),E=r(2989),_=r(8894),C=r(4469),S=r(8031),k=r(6938),x=r(5338),O=r(9444),D=r(3407),F=r(4975),T=r(6972),j=r(6697),P=r(1997),R=r(1840),B=r(7663),I=r(4857),N=r(1209),$=r(4147);t.exports={SecurityException:n,IllegalModelException:o,TypeNotFoundException:i,Decorator:a,DecoratorFactory:s,DecoratorManager:R,ClassDeclaration:u,IdentifiedDeclaration:c,AssetDeclaration:l,ConceptDeclaration:f,EnumValueDeclaration:h,EventDeclaration:p,ParticipantDeclaration:d,TransactionDeclaration:m,Property:y,Field:g,EnumDeclaration:v,RelationshipDeclaration:b,Validator:w,NumberValidator:A,StringValidator:M,Typed:E,Identifiable:_,Relationship:C,Resource:S,Factory:k,Globalize:x,Introspector:O,ModelFile:D,ModelManager:F,Serializer:T,ModelUtil:j,ModelLoader:P,DateTimeUtil:B,Concerto:I,MetaModel:N,version:$}},6739:function(t,e,r){var n,o,i=r(4406),a=r(3716);self,t.exports=(n={165:function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}}var i=r(23),a=r(133),s=a.DefaultFileLoader,u=a.FileDownloader,c=r(130)("concerto:ModelManager"),l=r(353),f=r(76),h=f.MetaModelUtil,p=f.MetaModelNamespace;function d(t,e){var r={$class:"".concat(p,".Models"),models:[]},n=e.namespace,o=t.models,i=!1;return o.forEach((function(t,o){t.namespace===n?(r.models.push(e),i=!0):r.models.push(t)})),i||r.models.push(e),r}function m(){return(m=o(regeneratorRuntime.mark((function t(e,r,n){var o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c("updateExternalModels","updateExternalModels",r),n||(n=new u(new s((function(t,e){if(".cto"===i.extname(t))return l.parse(e);throw new Error("External model file references are expected to have a .cto extension")})),h.getExternalImports)),t.next=5,n.downloadExternalDependencies(e.models,r);case 5:return o=t.sent,a=e,o.forEach((function(t){a=d(a,t)})),t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}t.exports={resolveExternal:function(t,e,r){return m.apply(this,arguments)}}},358:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t,e,r,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var a=t,u="";return r&&(u+=" File "+r),e&&(e.end&&e.start&&e.end.offset&&e.start.offset&&e.end.offset-e.start.offset==1&&(e.end.column=e.start.column,e.end.offset=e.start.offset),u+=u?" line "+e.start.line+" column "+e.start.column:" Line "+e.start.line+" column "+e.start.column),a+=u,n.call(this,t,e,o||a,r,i)}return s}(r(133).BaseFileException);t.exports=s},353:function(t){"use strict";function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e,r,n){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,a.prototype),o.expected=e,o.found=r,o.location=n,o.name="SyntaxError",o}function s(t,e,r){return r=r||" ",t.length>e?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}!function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(a,Error),a.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<t.length;r++)if(t[r].source===this.location.source){n=t[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source+":"+o.line+":"+o.column;if(n){var a=this.location.end,u=s("",o.line.toString().length," "),c=n[o.line-1],l=(o.line===a.line?a.column:c.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+u+" |\n"+o.line+" | "+c+"\n"+u+" | "+s("",o.column-1," ")+s("",l,"^")}else e+="\n at "+i}return e},a.buildMessage=function(t,e){var r={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function a(t){return r[t.type](t)}return"Expected "+function(t){var e,r,n=t.map(a);if(n.sort(),n.length>0){for(e=1,r=1;e<n.length;e++)n[e-1]!==n[e]&&(n[r]=n[e],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."},t.exports={SyntaxError:a,parse:function(t,e){var n,i={},s=(e=void 0!==e?e:{}).grammarSource,u={Start:pn},c=pn,l="/*",f="*/",h="//",p="\\",d=".",m='"',y="'",g="/",v="[",b="]",w="enum",A="false",M="import",E="null",_="true",C="}",S=":",k="?",x="@",O="+",D=",",F="=",T="-",j="::",P="concerto",R="version",B="namespace",I="abstract",N="concept",$="asset",L="transaction",U="event",q="participant",z="from",V="Integer",H="Double",G="Long",W="String",Z="DateTime",J="Boolean",Q="identified by",Y="identified",K="[]",X="extends",tt="{",et="optional",rt="default",nt="o",ot="regex",it="range",at=/^[\n\r\u2028\u2029]/,st=/^[+\-]/,ut=/^[0-9]/,ct=/^[1-9]/,lt=/^[0-9a-f]/i,ft=/^[*\\\/[]/,ht=/^[\\\/[]/,pt=/^[\]\\]/,dt=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,mt=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,yt=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,gt=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,vt=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,bt=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,wt=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,At=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,Mt=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,Et=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,_t=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ct=/^[A-Z]/,St=/^[a-z]/,kt=/^[0-5]/,xt=/^[0-4]/,Ot=/^[a-z0-9\-]/i,Dt=/^[a-z\-]/i,Ft={type:"any"},Tt=cn("whitespace"),jt=sn("\t",!1),Pt=sn("\v",!1),Rt=sn("\f",!1),Bt=sn(" ",!1),It=sn(" ",!1),Nt=sn("\ufeff",!1),$t=un(["\n","\r","\u2028","\u2029"],!1,!1),Lt=cn("end of line"),Ut=sn("\n",!1),qt=sn("\r\n",!1),zt=sn("\r",!1),Vt=sn("\u2028",!1),Ht=sn("\u2029",!1),Gt=cn("comment"),Wt=sn("/*",!1),Zt=sn("*/",!1),Jt=sn("//",!1),Qt=cn("identifier"),Yt=sn("$",!1),Kt=sn("_",!1),Xt=sn("\\",!1),te=sn("‌",!1),ee=sn("‍",!1),re=cn("number"),ne=sn(".",!1),oe=un(["+","-"],!1,!1),ie=sn("0",!1),ae=un([["0","9"]],!1,!1),se=un([["1","9"]],!1,!1),ue=sn("e",!0),ce=sn("0x",!0),le=un([["0","9"],["a","f"]],!1,!0),fe=cn("string"),he=sn('"',!1),pe=sn("'",!1),de=sn("b",!1),me=sn("f",!1),ye=sn("n",!1),ge=sn("r",!1),ve=sn("t",!1),be=sn("v",!1),we=sn("x",!1),Ae=sn("u",!1),Me=cn("regular expression"),Ee=sn("/",!1),_e=un(["*","\\","/","["],!1,!1),Ce=un(["\\","/","["],!1,!1),Se=sn("[",!1),ke=sn("]",!1),xe=un(["]","\\"],!1,!1),Oe=un([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),De=un([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),Fe=un(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Te=un(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),je=un([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Pe=un(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Re=un([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Be=un([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Ie=un([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Ne=un(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),$e=un([" "," "," ",[" "," "]," "," "," "],!1,!1),Le=sn("enum",!1),Ue=sn("false",!1),qe=sn("import",!1),ze=sn("null",!1),Ve=sn("true",!1),He=sn(";",!1),Ge=sn("}",!1),We=un([["A","Z"]],!1,!1),Ze=un([["a","z"]],!1,!1),Je=sn("1",!1),Qe=(un([["",""]],!1,!1),un([["\0",""]],!1,!1),sn("",!1),un(['"'],!1,!1),sn("A",!0)),Ye=sn("B",!0),Ke=sn("C",!0),Xe=sn("D",!0),tr=sn("E",!0),er=sn("F",!0),rr=(un([["\0","ÿ"]],!1,!1),un([["!","~"]],!1,!1),sn("%",!1)),nr=sn(":",!1),or=sn("?",!1),ir=sn("#",!1),ar=sn("@",!1),sr=sn("!",!1),ur=sn("&",!1),cr=sn("(",!1),lr=sn(")",!1),fr=sn("*",!1),hr=sn("+",!1),pr=sn(",",!1),dr=sn("=",!1),mr=sn("-",!1),yr=sn("~",!1),gr=sn("::",!1),vr=sn("25",!1),br=un([["0","5"]],!1,!1),wr=sn("2",!1),Ar=un([["0","4"]],!1,!1),Mr=un([["a","z"],["0","9"],"-"],!1,!0),Er=un([["a","z"],"-"],!1,!0),_r=sn("concerto",!1),Cr=sn("version",!1),Sr=sn("namespace",!1),kr=sn("abstract",!1),xr=sn("concept",!1),Or=sn("asset",!1),Dr=sn("transaction",!1),Fr=sn("event",!1),Tr=sn("participant",!1),jr=sn("from",!1),Pr=sn("Integer",!1),Rr=sn("Double",!1),Br=sn("Long",!1),Ir=sn("String",!1),Nr=sn("DateTime",!1),$r=sn("Boolean",!1),Lr=sn("identified by",!1),Ur=sn("identified",!1),qr=sn("[]",!1),zr=sn("extends",!1),Vr=sn("{",!1),Hr=sn("optional",!1),Gr=sn("default",!1),Wr=sn("o",!1),Zr=sn("regex",!1),Jr=sn("range",!1),Qr=sn("--\x3e",!1),Yr=sn(".{",!1),Kr=0,Xr=0,tn=[{line:1,column:1}],en=0,rn=[],nn=0;if("startRule"in e){if(!(e.startRule in u))throw new Error("Can't start parsing from rule \""+e.startRule+'".');c=u[e.startRule]}function on(){return t.substring(Xr,Kr)}function an(){return fn(Xr,Kr)}function sn(t,e){return{type:"literal",text:t,ignoreCase:e}}function un(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function cn(t){return{type:"other",description:t}}function ln(e){var r,n=tn[e];if(n)return n;for(r=e-1;!tn[r];)r--;for(n={line:(n=tn[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return tn[e]=n,n}function fn(t,e){var r=ln(t),n=ln(e);return{source:s,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:n.line,column:n.column}}}function hn(t){Kr<en||(Kr>en&&(en=Kr,rn=[]),rn.push(t))}function pn(){var e,r;return e=Kr,zn(),r=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,r=function(){var e,r,n,o;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,8)===P?(r=P,Kr+=8):(r=i,0===nn&&hn(_r)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(zn(),n=function(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===R?(r=R,Kr+=7):(r=i,0===nn&&hn(Cr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),n!==i?(zn(),(o=Dn())!==i?(zn(),Xr=e,e=o.value):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),r===i&&(r=null),n=ko(),o=function(){var e,r,n;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,9)===B?(r=B,Kr+=9):(r=i,0===nn&&hn(Sr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(zn(),(n=Bo())!==i?(zn(),Xr=e,e=n):(Kr=e,e=i)):(Kr=e,e=i),e}(),o!==i?(a=function(){var t,e,r,n,o,a;if(t=Kr,(e=No())!==i){for(r=[],n=Kr,o=zn(),(a=No())!==i?n=o=[o,a]:(Kr=n,n=i);n!==i;)r.push(n),n=Kr,o=zn(),(a=No())!==i?n=o=[o,a]:(Kr=n,n=i);Xr=t,t=Lo(e,r,1)}else Kr=t,t=i;return t}(),a===i&&(a=null),s=function(){var t,e,r,n,o,a;if(t=Kr,(e=$o())!==i){for(r=[],n=Kr,o=zn(),(a=$o())!==i?n=o=[o,a]:(Kr=n,n=i);n!==i;)r.push(n),n=Kr,o=zn(),(a=$o())!==i?n=o=[o,a]:(Kr=n,n=i);Xr=t,t=Lo(e,r,1)}else Kr=t,t=i;return t}(),s===i&&(s=null),Xr=e,u=r,c=o,l=a,f=s,h={$class:"concerto.metamodel@1.0.0.Model",decorators:Uo(n),namespace:c,imports:Uo(l),declarations:Uo(f)},u&&(h.concertoVersion=u),e=h):(Kr=e,e=i),e}(),r!==i?(zn(),Xr=e,e=r):(Kr=e,e=i),e}function dn(){var e;return t.length>Kr?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ft)),e}function mn(){var e;return nn++,9===t.charCodeAt(Kr)?(e="\t",Kr++):(e=i,0===nn&&hn(jt)),e===i&&(11===t.charCodeAt(Kr)?(e="\v",Kr++):(e=i,0===nn&&hn(Pt)),e===i&&(12===t.charCodeAt(Kr)?(e="\f",Kr++):(e=i,0===nn&&hn(Rt)),e===i&&(32===t.charCodeAt(Kr)?(e=" ",Kr++):(e=i,0===nn&&hn(Bt)),e===i&&(160===t.charCodeAt(Kr)?(e=" ",Kr++):(e=i,0===nn&&hn(It)),e===i&&(65279===t.charCodeAt(Kr)?(e="\ufeff",Kr++):(e=i,0===nn&&hn(Nt)),e===i&&(e=function(){var e;return _t.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn($e)),e}())))))),nn--,e===i&&0===nn&&hn(Tt),e}function yn(){var e;return at.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn($t)),e}function gn(){var e;return nn++,10===t.charCodeAt(Kr)?(e="\n",Kr++):(e=i,0===nn&&hn(Ut)),e===i&&("\r\n"===t.substr(Kr,2)?(e="\r\n",Kr+=2):(e=i,0===nn&&hn(qt)),e===i&&(13===t.charCodeAt(Kr)?(e="\r",Kr++):(e=i,0===nn&&hn(zt)),e===i&&(8232===t.charCodeAt(Kr)?(e="\u2028",Kr++):(e=i,0===nn&&hn(Vt)),e===i&&(8233===t.charCodeAt(Kr)?(e="\u2029",Kr++):(e=i,0===nn&&hn(Ht)))))),nn--,e===i&&0===nn&&hn(Lt),e}function vn(){var e;return nn++,(e=function(){var e,r,n,o,a,s;if(e=Kr,t.substr(Kr,2)===l?(r=l,Kr+=2):(r=i,0===nn&&hn(Wt)),r!==i){for(n=[],o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);o!==i;)n.push(o),o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);t.substr(Kr,2)===f?(o=f,Kr+=2):(o=i,0===nn&&hn(Zt)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)}else Kr=e,e=i;return e}())===i&&(e=function(){var e,r,n,o,a,s;if(e=Kr,t.substr(Kr,2)===h?(r=h,Kr+=2):(r=i,0===nn&&hn(Jt)),r!==i){for(n=[],o=Kr,a=Kr,nn++,s=yn(),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);o!==i;)n.push(o),o=Kr,a=Kr,nn++,s=yn(),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);e=r=[r,n]}else Kr=e,e=i;return e}()),nn--,e===i&&0===nn&&hn(Gt),e}function bn(){var e,r,n,o,a,s;if(e=Kr,t.substr(Kr,2)===l?(r=l,Kr+=2):(r=i,0===nn&&hn(Wt)),r!==i){for(n=[],o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),s===i&&(s=yn()),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);o!==i;)n.push(o),o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),s===i&&(s=yn()),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);t.substr(Kr,2)===f?(o=f,Kr+=2):(o=i,0===nn&&hn(Zt)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)}else Kr=e,e=i;return e}function wn(){var e,r,n;return e=Kr,r=Kr,nn++,n=function(){var e;return(e=function(){var e,r;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===E?(r=E,Kr+=4):(r=i,0===nn&&hn(ze)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i&&(Xr=e,r={type:"Literal",value:null}),r}())===i&&(e=En()),e}(),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i?(n=function(){var t,e,r,n;if(nn++,t=Kr,(e=An())!==i){for(r=[],n=Mn();n!==i;)r.push(n),n=Mn();Xr=t,t={$class:"concerto.metamodel@1.0.0.TypeIdentifier",name:e+r.join("")}}else Kr=t,t=i;return nn--,t===i&&(e=i,0===nn&&hn(Qt)),t}(),n!==i?(Xr=e,e=n):(Kr=e,e=i)):(Kr=e,e=i),e}function An(){var e,r,n;return(e=function(){var e;return(e=function(){var e;return vt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(je)),e}())===i&&(e=function(){var e;return dt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Oe)),e}())===i&&(e=function(){var e;return gt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Te)),e}())===i&&(e=function(){var e;return mt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(De)),e}())===i&&(e=function(){var e;return yt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Fe)),e}())===i&&(e=function(){var e;return Mt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ie)),e}()),e}())===i&&(36===t.charCodeAt(Kr)?(e="$",Kr++):(e=i,0===nn&&hn(Yt)),e===i&&(95===t.charCodeAt(Kr)?(e="_",Kr++):(e=i,0===nn&&hn(Kt)),e===i&&(e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=Bn())!==i?(Xr=e,e=n):(Kr=e,e=i)))),e}function Mn(){var e;return(e=An())===i&&(e=function(){var e;return(e=function(){var e;return wt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Re)),e}())===i&&(e=function(){var e;return bt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Pe)),e}()),e}())===i&&(e=function(){var e;return At.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Be)),e}())===i&&(e=function(){var e;return Et.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ne)),e}())===i&&(8204===t.charCodeAt(Kr)?(e="‌",Kr++):(e=i,0===nn&&hn(te)),e===i&&(8205===t.charCodeAt(Kr)?(e="‍",Kr++):(e=i,0===nn&&hn(ee)))),e}function En(){var e,r;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===_?(r=_,Kr+=4):(r=i,0===nn&&hn(Ve)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i&&(Xr=e,r={type:"Literal",value:!0}),(e=r)===i&&(e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===A?(r=A,Kr+=5):(r=i,0===nn&&hn(Ue)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i&&(Xr=e,r={type:"Literal",value:!1}),e=r),e}function _n(){var e,r,n,o,a;if(e=Kr,st.test(t.charAt(Kr))?(r=t.charAt(Kr),Kr++):(r=i,0===nn&&hn(oe)),r===i&&(r=null),Cn()!==i)if(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i){for(o=[],a=Sn();a!==i;)o.push(a),a=Sn();(a=kn())===i&&(a=null),Xr=e,e={type:"Literal",value:parseFloat(on())}}else Kr=e,e=i;else Kr=e,e=i;return e}function Cn(){var e,r,n,o;if(48===t.charCodeAt(Kr)?(e="0",Kr++):(e=i,0===nn&&hn(ie)),e===i)if(e=Kr,r=function(){var e;return ct.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(se)),e}(),r!==i){for(n=[],o=Sn();o!==i;)n.push(o),o=Sn();e=r=[r,n]}else Kr=e,e=i;return e}function Sn(){var e;return ut.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ae)),e}function kn(){var e,r,n;return e=Kr,r=function(){var e;return"e"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ue)),e}(),r!==i&&(n=xn())!==i?e=r=[r,n]:(Kr=e,e=i),e}function xn(){var e,r,n,o;if(e=Kr,st.test(t.charAt(Kr))?(r=t.charAt(Kr),Kr++):(r=i,0===nn&&hn(oe)),r===i&&(r=null),n=[],(o=Sn())!==i)for(;o!==i;)n.push(o),o=Sn();else n=i;return n!==i?e=r=[r,n]:(Kr=e,e=i),e}function On(){var e;return lt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(le)),e}function Dn(){var e,r,n,o;if(nn++,e=Kr,34===t.charCodeAt(Kr)?(r=m,Kr++):(r=i,0===nn&&hn(he)),r!==i){for(n=[],o=Fn();o!==i;)n.push(o),o=Fn();34===t.charCodeAt(Kr)?(o=m,Kr++):(o=i,0===nn&&hn(he)),o!==i?(Xr=e,e={type:"Literal",value:n.join("")}):(Kr=e,e=i)}else Kr=e,e=i;if(e===i)if(e=Kr,39===t.charCodeAt(Kr)?(r=y,Kr++):(r=i,0===nn&&hn(pe)),r!==i){for(n=[],o=Tn();o!==i;)n.push(o),o=Tn();39===t.charCodeAt(Kr)?(o=y,Kr++):(o=i,0===nn&&hn(pe)),o!==i?(Xr=e,e={type:"Literal",value:n.join("")}):(Kr=e,e=i)}else Kr=e,e=i;return nn--,e===i&&(r=i,0===nn&&hn(fe)),e}function Fn(){var e,r,n;return e=Kr,r=Kr,nn++,34===t.charCodeAt(Kr)?(n=m,Kr++):(n=i,0===nn&&hn(he)),n===i&&(92===t.charCodeAt(Kr)?(n=p,Kr++):(n=i,0===nn&&hn(Xt)),n===i&&(n=yn())),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=dn())!==i?(Xr=e,e=on()):(Kr=e,e=i),e===i&&(e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=Pn())!==i?(Xr=e,e=n):(Kr=e,e=i),e===i&&(e=jn())),e}function Tn(){var e,r,n;return e=Kr,r=Kr,nn++,39===t.charCodeAt(Kr)?(n=y,Kr++):(n=i,0===nn&&hn(pe)),n===i&&(92===t.charCodeAt(Kr)?(n=p,Kr++):(n=i,0===nn&&hn(Xt)),n===i&&(n=yn())),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=dn())!==i?(Xr=e,e=on()):(Kr=e,e=i),e===i&&(e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=Pn())!==i?(Xr=e,e=n):(Kr=e,e=i),e===i&&(e=jn())),e}function jn(){var e,r;return e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&gn()!==i?(Xr=e,e=""):(Kr=e,e=i),e}function Pn(){var e,r,n,o;return e=function(){var e;return(e=Rn())===i&&(e=function(){var e,r,n;return e=Kr,r=Kr,nn++,n=function(){var e;return(e=Rn())===i&&(e=Sn())===i&&(120===t.charCodeAt(Kr)?(e="x",Kr++):(e=i,0===nn&&hn(we)),e===i&&(117===t.charCodeAt(Kr)?(e="u",Kr++):(e=i,0===nn&&hn(Ae)))),e}(),n===i&&(n=yn()),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=dn())!==i?(Xr=e,e=on()):(Kr=e,e=i),e}()),e}(),e===i&&(e=Kr,48===t.charCodeAt(Kr)?(r="0",Kr++):(r=i,0===nn&&hn(ie)),r!==i?(n=Kr,nn++,o=Sn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="\0"):(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=function(){var e,r,n,o,a,s,u;return e=Kr,120===t.charCodeAt(Kr)?(r="x",Kr++):(r=i,0===nn&&hn(we)),r!==i?(n=Kr,o=Kr,(a=On())!==i&&(s=On())!==i?o=a=[a,s]:(Kr=o,o=i),(n=o!==i?t.substring(n,Kr):o)!==i?(Xr=e,u=n,e=String.fromCharCode(parseInt(u,16))):(Kr=e,e=i)):(Kr=e,e=i),e}(),e===i&&(e=Bn()))),e}function Rn(){var e,r;return 39===t.charCodeAt(Kr)?(e=y,Kr++):(e=i,0===nn&&hn(pe)),e===i&&(34===t.charCodeAt(Kr)?(e=m,Kr++):(e=i,0===nn&&hn(he)),e===i&&(92===t.charCodeAt(Kr)?(e=p,Kr++):(e=i,0===nn&&hn(Xt)),e===i&&(e=Kr,98===t.charCodeAt(Kr)?(r="b",Kr++):(r=i,0===nn&&hn(de)),r!==i&&(Xr=e,r="\b"),(e=r)===i&&(e=Kr,102===t.charCodeAt(Kr)?(r="f",Kr++):(r=i,0===nn&&hn(me)),r!==i&&(Xr=e,r="\f"),(e=r)===i&&(e=Kr,110===t.charCodeAt(Kr)?(r="n",Kr++):(r=i,0===nn&&hn(ye)),r!==i&&(Xr=e,r="\n"),(e=r)===i&&(e=Kr,114===t.charCodeAt(Kr)?(r="r",Kr++):(r=i,0===nn&&hn(ge)),r!==i&&(Xr=e,r="\r"),(e=r)===i&&(e=Kr,116===t.charCodeAt(Kr)?(r="t",Kr++):(r=i,0===nn&&hn(ve)),r!==i&&(Xr=e,r="\t"),(e=r)===i&&(e=Kr,118===t.charCodeAt(Kr)?(r="v",Kr++):(r=i,0===nn&&hn(be)),r!==i&&(Xr=e,r="\v"),e=r)))))))),e}function Bn(){var e,r,n,o,a,s,u,c,l;return e=Kr,117===t.charCodeAt(Kr)?(r="u",Kr++):(r=i,0===nn&&hn(Ae)),r!==i?(n=Kr,o=Kr,(a=On())!==i&&(s=On())!==i&&(u=On())!==i&&(c=On())!==i?o=a=[a,s,u,c]:(Kr=o,o=i),(n=o!==i?t.substring(n,Kr):o)!==i?(Xr=e,l=n,e=String.fromCharCode(parseInt(l,16))):(Kr=e,e=i)):(Kr=e,e=i),e}function In(){var e,r,n;return e=Kr,r=Kr,nn++,ht.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(Ce)),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e===i&&(e=Nn())===i&&(e=Ln()),e}function Nn(){var e,r,n;return e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e}function $n(){var t,e,r;return t=Kr,e=Kr,nn++,r=yn(),nn--,r===i?e=void 0:(Kr=e,e=i),e!==i&&(r=dn())!==i?t=e=[e,r]:(Kr=t,t=i),t}function Ln(){var e,r,n,o;if(e=Kr,91===t.charCodeAt(Kr)?(r=v,Kr++):(r=i,0===nn&&hn(Se)),r!==i){for(n=[],o=Un();o!==i;)n.push(o),o=Un();93===t.charCodeAt(Kr)?(o=b,Kr++):(o=i,0===nn&&hn(ke)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)}else Kr=e,e=i;return e}function Un(){var e,r,n;return e=Kr,r=Kr,nn++,pt.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(xe)),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e===i&&(e=Nn()),e}function qn(){var e,r,n,o;return e=Kr,t.substr(Kr,6)===M?(r=M,Kr+=6):(r=i,0===nn&&hn(qe)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}function zn(){var t,e;for(t=[],(e=mn())===i&&(e=gn())===i&&(e=vn());e!==i;)t.push(e),(e=mn())===i&&(e=gn())===i&&(e=vn());return t}function Vn(){var t,e;for(t=[],(e=mn())===i&&(e=bn());e!==i;)t.push(e),(e=mn())===i&&(e=bn());return t}function Hn(){var e;return Ct.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(We)),e===i&&(St.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ze))),e}function Gn(){var e;return ut.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ae)),e}function Wn(){var e;return(e=Gn())===i&&("a"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Qe)),e===i&&("b"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ye)),e===i&&("c"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ke)),e===i&&("d"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Xe)),e===i&&("e"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(tr)),e===i&&("f"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(er)))))))),e}function Zn(){var e,r,n,o,a;return e=Kr,r=Kr,37===t.charCodeAt(Kr)?(n="%",Kr++):(n=i,0===nn&&hn(rr)),n!==i&&(o=Wn())!==i&&(a=Wn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r!==i?t.substring(e,Kr):r}function Jn(){var e;return 33===t.charCodeAt(Kr)?(e="!",Kr++):(e=i,0===nn&&hn(sr)),e===i&&(36===t.charCodeAt(Kr)?(e="$",Kr++):(e=i,0===nn&&hn(Yt)),e===i&&(38===t.charCodeAt(Kr)?(e="&",Kr++):(e=i,0===nn&&hn(ur)),e===i&&(39===t.charCodeAt(Kr)?(e=y,Kr++):(e=i,0===nn&&hn(pe)),e===i&&(40===t.charCodeAt(Kr)?(e="(",Kr++):(e=i,0===nn&&hn(cr)),e===i&&(41===t.charCodeAt(Kr)?(e=")",Kr++):(e=i,0===nn&&hn(lr)),e===i&&(42===t.charCodeAt(Kr)?(e="*",Kr++):(e=i,0===nn&&hn(fr)),e===i&&(43===t.charCodeAt(Kr)?(e=O,Kr++):(e=i,0===nn&&hn(hr)),e===i&&(44===t.charCodeAt(Kr)?(e=D,Kr++):(e=i,0===nn&&hn(pr)),e===i&&(59===t.charCodeAt(Kr)?(e=";",Kr++):(e=i,0===nn&&hn(He)),e===i&&(61===t.charCodeAt(Kr)?(e=F,Kr++):(e=i,0===nn&&hn(dr)))))))))))),e}function Qn(){var e;return(e=Hn())===i&&(e=Gn())===i&&(45===t.charCodeAt(Kr)?(e=T,Kr++):(e=i,0===nn&&hn(mr)),e===i&&(46===t.charCodeAt(Kr)?(e=d,Kr++):(e=i,0===nn&&hn(ne)),e===i&&(95===t.charCodeAt(Kr)?(e="_",Kr++):(e=i,0===nn&&hn(Kt)),e===i&&(126===t.charCodeAt(Kr)?(e="~",Kr++):(e=i,0===nn&&hn(yr)))))),e}function Yn(){var e,r,n,o;return e=Kr,(r=Xn())!==i?(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)),n!==i&&(o=Xn())!==i?e=r=[r,n,o]:(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=to()),e}function Kn(){var e,r,n;return e=Kr,(r=Xn())!==i?(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}function Xn(){var e,r,n,o,a,s,u,c;return e=Kr,r=Kr,(n=Wn())!==i?(o=Kr,(a=Wn())!==i?(s=Kr,(u=Wn())!==i?((c=Wn())===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),r=n=[n,o]):(Kr=r,r=i),r!==i?t.substring(e,Kr):r}function to(){var e,r,n,o,a,s,u,c,l;return e=Kr,r=Kr,(n=eo())!==i?(46===t.charCodeAt(Kr)?(o=d,Kr++):(o=i,0===nn&&hn(ne)),o!==i&&(a=eo())!==i?(46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i&&(u=eo())!==i?(46===t.charCodeAt(Kr)?(c=d,Kr++):(c=i,0===nn&&hn(ne)),c!==i&&(l=eo())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i)):(Kr=r,r=i)):(Kr=r,r=i)):(Kr=r,r=i),r!==i?t.substring(e,Kr):r}function eo(){var e,r,n,o,a;return e=Kr,r=Kr,"25"===t.substr(Kr,2)?(n="25",Kr+=2):(n=i,0===nn&&hn(vr)),n!==i?(kt.test(t.charAt(Kr))?(o=t.charAt(Kr),Kr++):(o=i,0===nn&&hn(br)),o!==i?r=n=[n,o]:(Kr=r,r=i)):(Kr=r,r=i),r===i&&(r=Kr,50===t.charCodeAt(Kr)?(n="2",Kr++):(n=i,0===nn&&hn(wr)),n!==i?(xt.test(t.charAt(Kr))?(o=t.charAt(Kr),Kr++):(o=i,0===nn&&hn(Ar)),o!==i&&(a=Gn())!==i?r=n=[n,o,a]:(Kr=r,r=i)):(Kr=r,r=i),r===i&&(r=Kr,49===t.charCodeAt(Kr)?(n="1",Kr++):(n=i,0===nn&&hn(Je)),n!==i&&(o=Gn())!==i&&(a=Gn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r===i&&(r=Kr,ct.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(se)),n!==i&&(o=Gn())!==i?r=n=[n,o]:(Kr=r,r=i),r===i&&(r=Gn())))),r!==i?t.substring(e,Kr):r}function ro(){var t;return(t=Qn())===i&&(t=Zn()),t}function no(){var e,r,n,o;for(e=Kr,r=[],n=Kr,47===t.charCodeAt(Kr)?(o=g,Kr++):(o=i,0===nn&&hn(Ee)),o!==i?n=o=[o,oo()]:(Kr=n,n=i);n!==i;)r.push(n),n=Kr,47===t.charCodeAt(Kr)?(o=g,Kr++):(o=i,0===nn&&hn(Ee)),o!==i?n=o=[o,oo()]:(Kr=n,n=i);return t.substring(e,Kr)}function oo(){var e,r,n;for(e=Kr,r=[],n=ao();n!==i;)r.push(n),n=ao();return t.substring(e,Kr)}function io(){var e,r,n;if(e=Kr,r=[],(n=ao())!==i)for(;n!==i;)r.push(n),n=ao();else r=i;return r!==i?t.substring(e,Kr):r}function ao(){var e;return(e=Qn())===i&&(e=Zn())===i&&(e=Jn())===i&&(58===t.charCodeAt(Kr)?(e=S,Kr++):(e=i,0===nn&&hn(nr)),e===i&&(64===t.charCodeAt(Kr)?(e=x,Kr++):(e=i,0===nn&&hn(ar)))),e}function so(){var e,r,n;for(e=Kr,r=[],(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));n!==i;)r.push(n),(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));return t.substring(e,Kr)}function uo(){var e,r,n;for(e=Kr,r=[],(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));n!==i;)r.push(n),(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));return t.substring(e,Kr)}function co(){var e,r,n,a,s,u;return e=Kr,r=function(){var e,r,n,o,a,s,u,c,l;return e=Kr,r=Kr,(r=(n=po())!==i?t.substring(r,Kr):n)!==i?(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i?(o=Kr,(o=(a=po())!==i?t.substring(o,Kr):a)!==i?(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)),a!==i?(s=Kr,(s=(u=po())!==i?t.substring(s,Kr):u)!==i?(Xr=e,c=o,l=s,e={major:parseInt(r,10),minor:parseInt(c,10),patch:parseInt(l,10)}):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(n=Kr,45===t.charCodeAt(Kr)?(a=T,Kr++):(a=i,0===nn&&hn(mr)),a!==i?(s=function(){var e,r,n,a,s,u,c;if(e=Kr,r=Kr,(r=(n=lo())!==i?t.substring(r,Kr):n)!==i){for(n=[],a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=lo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);a!==i;)n.push(a),a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=lo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);Xr=e,e=[r].concat(o(n))}else Kr=e,e=i;return e}(),s!==i?n=s:(Kr=n,n=i)):(Kr=n,n=i),n===i&&(n=null),a=Kr,43===t.charCodeAt(Kr)?(s=O,Kr++):(s=i,0===nn&&hn(hr)),s!==i?(u=function(){var e,r,n,a,s,u,c;if(e=Kr,r=Kr,(r=(n=fo())!==i?t.substring(r,Kr):n)!==i){for(n=[],a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=fo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);a!==i;)n.push(a),a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=fo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);Xr=e,e=[r].concat(o(n))}else Kr=e,e=i;return e}(),u!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i),a===i&&(a=null),Xr=e,e={versionCore:r,pre:n,build:a}):(Kr=e,e=i),e}function lo(){var t;return(t=ho())===i&&(t=po()),t}function fo(){var t,e;if((t=ho())===i)if(t=[],(e=yo())!==i)for(;e!==i;)t.push(e),e=yo();else t=i;return t}function ho(){var e,r,n,o,a;for(e=Kr,r=[],n=yo();n!==i;)r.push(n),n=yo();if(n=function(){var e;return Dt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Er)),e}(),n!==i){for(o=[],a=mo();a!==i;)o.push(a),a=mo();e=r=[r,n,o]}else Kr=e,e=i;return e}function po(){var e,r,n,o;if(48===t.charCodeAt(Kr)?(e="0",Kr++):(e=i,0===nn&&hn(ie)),e===i)if(e=Kr,r=function(){var e;return ct.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(se)),e}(),r!==i){for(n=[],o=yo();o!==i;)n.push(o),o=yo();e=r=[r,n]}else Kr=e,e=i;return e}function mo(){var e;return Ot.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Mr)),e}function yo(){var e;return ut.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ae)),e}function go(){var e,r,n,o;return e=Kr,t.substr(Kr,8)===I?(r=I,Kr+=8):(r=i,0===nn&&hn(kr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}function vo(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===V?(r=V,Kr+=7):(r=i,0===nn&&hn(Pr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Integer"):(Kr=e,e=i)):(Kr=e,e=i),e}function bo(){var e,r,n,o;return e=Kr,t.substr(Kr,6)===H?(r=H,Kr+=6):(r=i,0===nn&&hn(Rr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Double"):(Kr=e,e=i)):(Kr=e,e=i),e}function wo(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===G?(r=G,Kr+=4):(r=i,0===nn&&hn(Br)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Long"):(Kr=e,e=i)):(Kr=e,e=i),e}function Ao(){var e,r,n,o;return e=Kr,t.substr(Kr,6)===W?(r=W,Kr+=6):(r=i,0===nn&&hn(Ir)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="String"):(Kr=e,e=i)):(Kr=e,e=i),e}function Mo(){var e,r,n,o;return e=Kr,t.substr(Kr,8)===Z?(r=Z,Kr+=8):(r=i,0===nn&&hn(Nr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="DateTime"):(Kr=e,e=i)):(Kr=e,e=i),e}function Eo(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===J?(r=J,Kr+=7):(r=i,0===nn&&hn($r)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Boolean"):(Kr=e,e=i)):(Kr=e,e=i),e}function _o(){var e;return(e=function(){var e,r,n;return e=Kr,t.substr(Kr,13)===Q?(r=Q,Kr+=13):(r=i,0===nn&&hn(Lr)),r!==i?(zn(),(n=wn())!==i?(Xr=e,e={$class:"concerto.metamodel@1.0.0.IdentifiedBy",name:n.name}):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,r;return e=Kr,t.substr(Kr,10)===Y?(r=Y,Kr+=10):(r=i,0===nn&&hn(Ur)),r!==i&&(Xr=e,r={$class:"concerto.metamodel@1.0.0.Identified"}),r}()),e}function Co(){var e;return(e=function(){var t,e;return t=Kr,(e=Dn())!==i&&(Xr=t,e=r({$class:"concerto.metamodel@1.0.0.DecoratorString",value:e.value},zo(an()))),e}())===i&&(e=function(){var e,n,o;return e=Kr,n=Kr,(n=(o=En())!==i?t.substring(n,Kr):o)!==i&&(Xr=e,n=r({$class:"concerto.metamodel@1.0.0.DecoratorBoolean",value:"true"==n},zo(an()))),n}())===i&&(e=function(){var e,n;return e=Kr,n=function(){var e,r,n,o;return e=Kr,r=Kr,45===t.charCodeAt(Kr)?(n=T,Kr++):(n=i,0===nn&&hn(mr)),n===i&&(n=null),r=t.substring(r,Kr),n=Kr,(n=(o=function(){var e,r,n,o;return nn++,e=Kr,r=function(){var e,r,n,o,a;if(e=Kr,"0x"===t.substr(Kr,2).toLowerCase()?(r=t.substr(Kr,2),Kr+=2):(r=i,0===nn&&hn(ce)),r!==i){if(n=Kr,o=[],(a=On())!==i)for(;a!==i;)o.push(a),a=On();else o=i;(n=o!==i?t.substring(n,Kr):o)!==i?(Xr=e,e={type:"Literal",value:parseInt(n,16)}):(Kr=e,e=i)}else Kr=e,e=i;return e}(),r!==i?(n=Kr,nn++,(o=An())===i&&(o=Sn()),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e=r):(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=Kr,r=function(){var e,r,n,o,a;if(e=Kr,(r=Cn())!==i)if(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i){for(o=[],a=Sn();a!==i;)o.push(a),a=Sn();(a=kn())===i&&(a=null),Xr=e,e={type:"Literal",value:parseFloat(on())}}else Kr=e,e=i;else Kr=e,e=i;if(e===i){if(e=Kr,46===t.charCodeAt(Kr)?(r=d,Kr++):(r=i,0===nn&&hn(ne)),r!==i){if(n=[],(o=Sn())!==i)for(;o!==i;)n.push(o),o=Sn();else n=i;n!==i?((o=kn())===i&&(o=null),Xr=e,e={type:"Literal",value:parseFloat(on())}):(Kr=e,e=i)}else Kr=e,e=i;e===i&&(e=Kr,(r=Cn())!==i?((n=kn())===i&&(n=null),Xr=e,e={type:"Literal",value:parseFloat(on())}):(Kr=e,e=i))}return e}(),r!==i?(n=Kr,nn++,(o=An())===i&&(o=Sn()),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e=r):(Kr=e,e=i)):(Kr=e,e=i)),nn--,e===i&&(r=i,0===nn&&hn(re)),e}())!==i?t.substring(n,Kr):o)!==i?(Xr=e,e=r+n):(Kr=e,e=i),e}(),n!==i&&(Xr=e,n=r({$class:"concerto.metamodel@1.0.0.DecoratorNumber",value:+n},zo(an()))),n}())===i&&(e=function(){var e,n,o;return e=Kr,(n=wn())!==i?(zn(),t.substr(Kr,2)===K?(o=K,Kr+=2):(o=i,0===nn&&hn(qr)),o===i&&(o=null),Xr=e,e=r({$class:"concerto.metamodel@1.0.0.DecoratorTypeReference",type:n,isArray:!!o},zo(an()))):(Kr=e,e=i),e}()),e}function So(){var e,n,o,a,s,u;return e=Kr,64===t.charCodeAt(Kr)?(n=x,Kr++):(n=i,0===nn&&hn(ar)),n!==i?(o=Kr,(o=(a=wn())!==i?t.substring(o,Kr):a)!==i?(a=function(){var e,r,n,o,a,s,u,c;if(e=Kr,40===t.charCodeAt(Kr)?(r="(",Kr++):(r=i,0===nn&&hn(cr)),r!==i){for(zn(),n=[],o=Kr,(a=Co())!==i?(s=zn(),44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(zn(),Xr=o,o=a):(Kr=o,o=i)):(Kr=o,o=i);o!==i;)n.push(o),o=Kr,(a=Co())!==i?(s=zn(),44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(zn(),Xr=o,o=a):(Kr=o,o=i)):(Kr=o,o=i);(o=Co())===i&&(o=null),a=zn(),41===t.charCodeAt(Kr)?(s=")",Kr++):(s=i,0===nn&&hn(lr)),s!==i?(Xr=e,e=(c=o)?n.concat(c):[]):(Kr=e,e=i)}else Kr=e,e=i;return e}(),a===i&&(a=null),Xr=e,s=a,u=r({$class:"concerto.metamodel@1.0.0.Decorator",name:o},zo(an())),s&&(u.arguments=s),e=u):(Kr=e,e=i)):(Kr=e,e=i),e}function ko(){var t,e,r;for(t=[],e=Kr,(r=So())!==i?(zn(),Xr=e,e=r):(Kr=e,e=i);e!==i;)t.push(e),e=Kr,(r=So())!==i?(zn(),Xr=e,e=r):(Kr=e,e=i);return t}function xo(){var e,r,n;return e=Kr,t.substr(Kr,7)===X?(r=X,Kr+=7):(r=i,0===nn&&hn(zr)),r!==i?(zn(),(n=wn())!==i?(Xr=e,e={$class:"concerto.metamodel@1.0.0.TypeIdentifier",name:n.name}):(Kr=e,e=i)):(Kr=e,e=i),e}function Oo(){var e,r;return e=Kr,t.substr(Kr,8)===et?(r=et,Kr+=8):(r=i,0===nn&&hn(Hr)),r!==i&&(Xr=e,r={type:"Optional"}),r}function Do(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),(o=Dn())!==i?(Xr=e,e=o.value):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}function Fo(){var e,r,n,o,a;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),o=Kr,(o=(a=xn())!==i?t.substring(o,Kr):a)!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}function To(){var e;return(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),Ao()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Do())===i&&(u=null),zn(),c=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===ot?(r=ot,Kr+=5):(r=i,0===nn&&hn(Zr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),(o=function(){var e,r,n,o,a;return nn++,e=Kr,47===t.charCodeAt(Kr)?(r=g,Kr++):(r=i,0===nn&&hn(Ee)),r!==i?(n=Kr,o=function(){var e,r,n,o;if(e=Kr,r=function(){var e,r,n;return e=Kr,r=Kr,nn++,ft.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(_e)),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e===i&&(e=Nn())===i&&(e=Ln()),e}(),r!==i){for(n=[],o=In();o!==i;)n.push(o),o=In();e=r=[r,n]}else Kr=e,e=i;return e}(),(n=o!==i?t.substring(n,Kr):o)!==i?(47===t.charCodeAt(Kr)?(o=g,Kr++):(o=i,0===nn&&hn(Ee)),o!==i?(a=Kr,function(){var t,e;for(t=[],e=Mn();e!==i;)t.push(e),e=Mn()}(),a=t.substring(a,Kr),Xr=e,e={$class:"concerto.metamodel@1.0.0.StringRegexValidator",pattern:n,flags:a}):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),nn--,e===i&&(r=i,0===nn&&hn(Me)),e}())!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.StringProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=p),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),bo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),u=function(){var e,r,n,o,a;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),o=Kr,(o=(a=_n())!==i?t.substring(o,Kr):a)!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),u===i&&(u=null),zn(),c=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,t.substr(Kr,5)===it?(r=it,Kr+=5):(r=i,0===nn&&hn(Jr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),91===t.charCodeAt(Kr)?(o=v,Kr++):(o=i,0===nn&&hn(Se)),o!==i?(zn(),a=Kr,_n(),a=t.substring(a,Kr),zn(),44===t.charCodeAt(Kr)?(s=D,Kr++):(s=i,0===nn&&hn(pr)),s!==i?(zn(),u=Kr,_n(),u=t.substring(u,Kr),zn(),93===t.charCodeAt(Kr)?(c=b,Kr++):(c=i,0===nn&&hn(ke)),c!==i?(Xr=e,f=u,h={$class:"concerto.metamodel@1.0.0.DoubleDomainValidator"},(l=a)&&(h.lower=parseFloat(l)),f&&(h.upper=parseFloat(f)),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.DoubleProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=parseFloat(p)),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),Eo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),u=function(){var e,r,n,o,a;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),o=Kr,(o=(a=En())!==i?t.substring(o,Kr):a)!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),u===i&&(u=null),zn(),(c=Oo())===i&&(c=null),zn(),Xr=e,l=n,f=a,h=u,p=c,d=r({$class:"concerto.metamodel@1.0.0.BooleanProperty",name:s.name,isArray:qo(f),isOptional:qo(p)},zo(an())),h&&(d.defaultValue="true"===h),l.length>0&&(d.decorators=l),e=d):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),Mo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Do())===i&&(u=null),zn(),(c=Oo())===i&&(c=null),zn(),Xr=e,l=n,f=a,h=u,p=c,d=r({$class:"concerto.metamodel@1.0.0.DateTimeProperty",name:s.name,isArray:qo(f),isOptional:qo(p)},zo(an())),h&&(d.defaultValue=h),l.length>0&&(d.decorators=l),e=d):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d;return e=Kr,n=ko(),zn(),"--\x3e"===t.substr(Kr,3)?(o="--\x3e",Kr+=3):(o=i,0===nn&&hn(Qr)),o!==i?(zn(),(a=wn())!==i?(zn(),t.substr(Kr,2)===K?(s=K,Kr+=2):(s=i,0===nn&&hn(qr)),s===i&&(s=null),zn(),(u=wn())!==i?(zn(),(c=Oo())===i&&(c=null),zn(),Xr=e,l=n,f=a,h=s,p=c,d=r({$class:"concerto.metamodel@1.0.0.RelationshipProperty",name:u.name,type:f,isArray:qo(h),isOptional:qo(p)},zo(an())),l.length>0&&(d.decorators=l),e=d):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),a=function(){var t,e,r,n,o;return t=Kr,e=Kr,nn++,r=function(){var t;return(t=Ao())===i&&(t=function(){var t;return(t=vo())===i&&(t=bo())===i&&(t=wo()),t}())===i&&(t=Mo())===i&&(t=Eo()),t}(),nn--,r===i?e=void 0:(Kr=e,e=i),e!==i&&(r=wn())!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=t,t={$class:"concerto.metamodel@1.0.0.TypeIdentifier",name:r.name}):(Kr=t,t=i)):(Kr=t,t=i),t}(),a!==i?(zn(),t.substr(Kr,2)===K?(s=K,Kr+=2):(s=i,0===nn&&hn(qr)),s===i&&(s=null),zn(),(u=wn())!==i?(zn(),(c=Do())===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=s,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.ObjectProperty",name:u.name,type:h,isArray:qo(p),isOptional:qo(m)},zo(an())),d&&(y.defaultValue=d),f.length>0&&(y.decorators=f),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),vo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Fo())===i&&(u=null),zn(),c=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,t.substr(Kr,5)===it?(r=it,Kr+=5):(r=i,0===nn&&hn(Jr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),91===t.charCodeAt(Kr)?(o=v,Kr++):(o=i,0===nn&&hn(Se)),o!==i?(zn(),a=Kr,xn(),a=t.substring(a,Kr),zn(),44===t.charCodeAt(Kr)?(s=D,Kr++):(s=i,0===nn&&hn(pr)),s!==i?(zn(),u=Kr,xn(),u=t.substring(u,Kr),zn(),93===t.charCodeAt(Kr)?(c=b,Kr++):(c=i,0===nn&&hn(ke)),c!==i?(Xr=e,f=u,h={$class:"concerto.metamodel@1.0.0.IntegerDomainValidator"},(l=a)&&(h.lower=parseInt(l)),f&&(h.upper=parseInt(f)),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.IntegerProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=parseInt(p)),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),wo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Fo())===i&&(u=null),zn(),c=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,t.substr(Kr,5)===it?(r=it,Kr+=5):(r=i,0===nn&&hn(Jr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),91===t.charCodeAt(Kr)?(o=v,Kr++):(o=i,0===nn&&hn(Se)),o!==i?(zn(),a=Kr,xn(),a=t.substring(a,Kr),zn(),44===t.charCodeAt(Kr)?(s=D,Kr++):(s=i,0===nn&&hn(pr)),s!==i?(zn(),u=Kr,xn(),u=t.substring(u,Kr),zn(),93===t.charCodeAt(Kr)?(c=b,Kr++):(c=i,0===nn&&hn(ke)),c!==i?(Xr=e,f=u,h={$class:"concerto.metamodel@1.0.0.LongDomainValidator"},(l=a)&&(h.lower=parseInt(l)),f&&(h.upper=parseInt(f)),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.LongProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=parseInt(p)),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}()),e}function jo(){var t,e,n;for(t=Kr,e=[],n=To();n!==i;)e.push(n),n=To();return Xr=t,r({type:"ClassDeclarationBody",declarations:Uo(e)},zo(an()))}function Po(){var e,n,o,a,s,u;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),(a=wn())!==i?(zn(),Xr=e,s=n,u=r({$class:"concerto.metamodel@1.0.0.EnumProperty",name:a.name},zo(an())),s.length>0&&(u.decorators=s),e=u):(Kr=e,e=i)):(Kr=e,e=i),e}function Ro(){var e,r,n,o,a,s,u,c;if(e=Kr,r=Kr,(r=(n=wn())!==i?t.substring(r,Kr):n)!==i){for(n=Kr,o=[],a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i&&(u=wn())!==i?a=s=[s,u]:(Kr=a,a=i);a!==i;)o.push(a),a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i&&(u=wn())!==i?a=s=[s,u]:(Kr=a,a=i);n=t.substring(n,Kr),Xr=e,c=n,e=r.concat(JSON.stringify(c).replace(/['"]+/g,""))}else Kr=e,e=i;return e}function Bo(){var e;return(e=function(){var e,r,n,o,a,s;return e=Kr,(r=Ro())!==i?(64===t.charCodeAt(Kr)?(n=x,Kr++):(n=i,0===nn&&hn(ar)),n!==i?(o=Kr,(o=(a=co())!==i?t.substring(o,Kr):a)!==i?(Xr=e,s=o,e="".concat(r,"@").concat(s)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=Ro()),e}function Io(){var e,r,n,o;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===z?(r=z,Kr+=4):(r=i,0===nn&&hn(jr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(zn(),n=Kr,(n=(o=function(){var e,r,n,o,a,s,u;return e=Kr,(r=function(){var e,r,n,o,a;if(e=Kr,r=Kr,(n=Hn())!==i){for(o=[],(a=Hn())===i&&(a=Gn())===i&&(43===t.charCodeAt(Kr)?(a=O,Kr++):(a=i,0===nn&&hn(hr)),a===i&&(45===t.charCodeAt(Kr)?(a=T,Kr++):(a=i,0===nn&&hn(mr)),a===i&&(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)))));a!==i;)o.push(a),(a=Hn())===i&&(a=Gn())===i&&(43===t.charCodeAt(Kr)?(a=O,Kr++):(a=i,0===nn&&hn(hr)),a===i&&(45===t.charCodeAt(Kr)?(a=T,Kr++):(a=i,0===nn&&hn(mr)),a===i&&(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)))));r=n=[n,o]}else Kr=r,r=i;return r!==i?t.substring(e,Kr):r}())!==i?(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)),n!==i&&(o=function(){var e,r,n;return e=Kr,t.substr(Kr,2)===h?(r=h,Kr+=2):(r=i,0===nn&&hn(Jt)),r!==i&&(n=function(){var e,r,n,o,a,s;return e=Kr,r=Kr,n=function(){var e,r,n;for(e=Kr,r=[],(n=Qn())===i&&(n=Zn())===i&&(n=Jn())===i&&(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)));n!==i;)r.push(n),(n=Qn())===i&&(n=Zn())===i&&(n=Jn())===i&&(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)));return t.substring(e,Kr)}(),64===t.charCodeAt(Kr)?(o=x,Kr++):(o=i,0===nn&&hn(ar)),o!==i?r=n=[n,o]:(Kr=r,r=i),r===i&&(r=null),n=function(){var e,r,n,o;return e=Kr,r=function(){var e,r,n,o;return e=Kr,91===t.charCodeAt(Kr)?(r=v,Kr++):(r=i,0===nn&&hn(Se)),r!==i?(n=function(){var e,r,n,o,a,s,u,c,l,f,h,p,d,m;return e=Kr,r=Kr,(n=Kn())!==i&&(o=Kn())!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Kn())!==i&&(l=Yn())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i),r===i&&(r=Kr,t.substr(Kr,2)===j?(n=j,Kr+=2):(n=i,0===nn&&hn(gr)),n!==i&&(o=Kn())!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Kn())!==i&&(l=Yn())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i),r===i&&(r=Kr,(n=Xn())===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Kn())!==i&&(l=Yn())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,(o=Kn())===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Yn())!==i?r=n=[n,o,a,s,u,c]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?((s=Kn())===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Yn())!==i?r=n=[n,o,a,s,u]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?((c=Kn())===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Yn())!==i?r=n=[n,o,a,s]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?(c=Kr,(l=Kn())!==i?((f=Kn())===i&&(f=null),c=l=[l,f]):(Kr=c,c=i),c===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Yn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?(c=Kr,(l=Kn())!==i?(f=Kr,(h=Kn())!==i?((p=Kn())===i&&(p=null),f=h=[h,p]):(Kr=f,f=i),f===i&&(f=null),c=l=[l,f]):(Kr=c,c=i),c===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Xn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?(c=Kr,(l=Kn())!==i?(f=Kr,(h=Kn())!==i?(p=Kr,(d=Kn())!==i?((m=Kn())===i&&(m=null),p=d=[d,m]):(Kr=p,p=i),p===i&&(p=null),f=h=[h,p]):(Kr=f,f=i),f===i&&(f=null),c=l=[l,f]):(Kr=c,c=i),c===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i?r=n=[n,o]:(Kr=r,r=i))))))))),r!==i?t.substring(e,Kr):r}(),n===i&&(n=function(){var e,r,n,o,a,s,u;if(e=Kr,118===t.charCodeAt(Kr)?(r="v",Kr++):(r=i,0===nn&&hn(be)),r!==i){if(n=Kr,o=[],(a=Wn())!==i)for(;a!==i;)o.push(a),a=Wn();else o=i;if((n=o!==i?t.substring(n,Kr):o)!==i)if(46===t.charCodeAt(Kr)?(o=d,Kr++):(o=i,0===nn&&hn(ne)),o!==i){if(a=Kr,s=[],(u=Qn())===i&&(58===t.charCodeAt(Kr)?(u=S,Kr++):(u=i,0===nn&&hn(nr))),u!==i)for(;u!==i;)s.push(u),(u=Qn())===i&&(58===t.charCodeAt(Kr)?(u=S,Kr++):(u=i,0===nn&&hn(nr)));else s=i;(a=s!==i?t.substring(a,Kr):s)!==i?e=r=[r,n,o,a]:(Kr=e,e=i)}else Kr=e,e=i;else Kr=e,e=i}else Kr=e,e=i;return e}()),n!==i?(93===t.charCodeAt(Kr)?(o=b,Kr++):(o=i,0===nn&&hn(ke)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(n=Kr,nn++,o=ro(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=Kr,(r=to())!==i?(n=Kr,nn++,o=ro(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=function(){var e,r,n;for(e=Kr,r=[],n=ro();n!==i;)r.push(n),n=ro();return t.substring(e,Kr)}())),e}(),n!==i?(o=Kr,58===t.charCodeAt(Kr)?(a=S,Kr++):(a=i,0===nn&&hn(nr)),a!==i?(s=function(){var e,r,n;for(e=Kr,r=[],n=Gn();n!==i;)r.push(n),n=Gn();return t.substring(e,Kr)}(),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),e=r=[r,n,o]):(Kr=e,e=i),e}())!==i?e=r=[r,n,no()]:(Kr=e,e=i),e===i&&(e=function(){var e,r,n,o,a,s,u,c;if(e=Kr,r=Kr,47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n!==i){if(o=Kr,(a=io())!==i){for(s=[],u=Kr,47===t.charCodeAt(Kr)?(c=g,Kr++):(c=i,0===nn&&hn(Ee)),c!==i?u=c=[c,oo()]:(Kr=u,u=i);u!==i;)s.push(u),u=Kr,47===t.charCodeAt(Kr)?(c=g,Kr++):(c=i,0===nn&&hn(Ee)),c!==i?u=c=[c,oo()]:(Kr=u,u=i);o=a=[a,s]}else Kr=o,o=i;o===i&&(o=null),r=n=[n,o]}else Kr=r,r=i;return r!==i?t.substring(e,Kr):r}())===i&&(e=function(){var e,r,n,o,a,s;if(e=Kr,r=Kr,(n=io())!==i){for(o=[],a=Kr,47===t.charCodeAt(Kr)?(s=g,Kr++):(s=i,0===nn&&hn(Ee)),s!==i?a=s=[s,oo()]:(Kr=a,a=i);a!==i;)o.push(a),a=Kr,47===t.charCodeAt(Kr)?(s=g,Kr++):(s=i,0===nn&&hn(Ee)),s!==i?a=s=[s,oo()]:(Kr=a,a=i);r=n=[n,o]}else Kr=r,r=i;return r!==i?t.substring(e,Kr):r}(),e===i&&(e="")),e}())!==i?(a=Kr,63===t.charCodeAt(Kr)?(s=k,Kr++):(s=i,0===nn&&hn(or)),s!==i?a=s=[s,u=so()]:(Kr=a,a=i),a===i&&(a=null),s=Kr,35===t.charCodeAt(Kr)?(u="#",Kr++):(u=i,0===nn&&hn(ir)),u!==i?s=u=[u,uo()]:(Kr=s,s=i),s===i&&(s=null),e=r=[r,n,o,a,s]):(Kr=e,e=i)):(Kr=e,e=i),e}())!==i?t.substring(n,Kr):o)!==i?(o=zn(),Xr=e,e=n):(Kr=e,e=i)):(Kr=e,e=i),e}function No(){var e;return(e=function(){var e,r,n,a,s,u,c,l;return e=Kr,qn()!==i?(zn(),(r=Bo())!==i?(".{"===t.substr(Kr,2)?(n=".{",Kr+=2):(n=i,0===nn&&hn(Yr)),n!==i?(Vn(),a=function(){var e,r,n,a,s,u,c,l;if(e=Kr,r=Kr,(r=(n=wn())!==i?t.substring(r,Kr):n)!==i){for(n=Vn(),a=[],s=Kr,44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(Vn(),c=Kr,(c=(l=wn())!==i?t.substring(c,Kr):l)!==i?(l=Vn(),s=c):(Kr=s,s=i)):(Kr=s,s=i);s!==i;)a.push(s),s=Kr,44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(Vn(),c=Kr,(c=(l=wn())!==i?t.substring(c,Kr):l)!==i?(l=Vn(),s=c):(Kr=s,s=i)):(Kr=s,s=i);Xr=e,e=[r].concat(o(a))}else Kr=e,e=i;return e}(),a!==i?(Vn(),125===t.charCodeAt(Kr)?(s=C,Kr++):(s=i,0===nn&&hn(Ge)),s!==i?(zn(),(u=Io())===i&&(u=null),Xr=e,l={$class:"concerto.metamodel@1.0.0.ImportTypes",namespace:r,types:a},(c=u)&&(l.uri=c),e=l):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,r,n,o,a,s,u;return e=Kr,qn()!==i?(zn(),(r=Bo())!==i?(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i?(o=function(){var e,r,n,o;return e=Kr,42===t.charCodeAt(Kr)?(r="*",Kr++):(r=i,0===nn&&hn(fr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),o!==i?(zn(),(a=Io())===i&&(a=null),Xr=e,u={$class:"concerto.metamodel@1.0.0.ImportAll",namespace:r},(s=a)&&(u.uri=s),e=u):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,r,n,o,a,s,u;return e=Kr,qn()!==i?(zn(),(r=function(){var e;return(e=function(){var e,r,n,o,a,s,u,c,l;return e=Kr,(r=Ro())!==i?(64===t.charCodeAt(Kr)?(n=x,Kr++):(n=i,0===nn&&hn(ar)),n!==i?(o=Kr,(o=(a=co())!==i?t.substring(o,Kr):a)!==i?(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)),a!==i?(s=Kr,(s=(u=wn())!==i?t.substring(s,Kr):u)!==i?(Xr=e,c=o,l=s,e="".concat(r,"@").concat(c,".").concat(l)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=Ro()),e}())!==i?(zn(),(n=Io())===i&&(n=null),Xr=e,o=n,u={$class:"concerto.metamodel@1.0.0.ImportType",name:(s={name:(a=r.split(".")).pop(),namespace:a.join(".")}).name,namespace:s.namespace},o&&(u.uri=o),e=u):(Kr=e,e=i)):(Kr=e,e=i),e}()),e}function $o(){var e;return(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===$?(r=$,Kr+=5):(r=i,0===nn&&hn(Or)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.AssetDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,11)===L?(r=L,Kr+=11):(r=i,0===nn&&hn(Dr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.TransactionDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===U?(r=U,Kr+=5):(r=i,0===nn&&hn(Fr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.EventDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,11)===q?(r=q,Kr+=11):(r=i,0===nn&&hn(Tr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.ParticipantDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h;return e=Kr,n=ko(),zn(),o=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===w?(r=w,Kr+=4):(r=i,0===nn&&hn(Le)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),o!==i?(zn(),(a=wn())!==i?(zn(),123===t.charCodeAt(Kr)?(s=tt,Kr++):(s=i,0===nn&&hn(Vr)),s!==i?(zn(),u=function(){var t,e,r;for(t=Kr,e=[],r=Po();r!==i;)e.push(r),r=Po();return Xr=t,{type:"EnumDeclarationBody",declarations:Uo(e)}}(),zn(),125===t.charCodeAt(Kr)?(c=C,Kr++):(c=i,0===nn&&hn(Ge)),c!==i?(Xr=e,l=n,f=u,h=r({$class:"concerto.metamodel@1.0.0.EnumDeclaration",name:a.name,properties:f.declarations},zo(an())),l.length>0&&(h.decorators=l),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===N?(r=N,Kr+=7):(r=i,0===nn&&hn(xr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.ConceptDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}()),e}function Lo(t,e,r){return[t].concat(function(t,e){var r,n=new Array(t.length);for(r=0;r<t.length;r++)n[r]=t[r][e];return n}(e,r))}function Uo(t){return null!==t?t:[]}function qo(t){return!!t}function zo(t){var r;if(null===(r=e)||void 0===r||!r.skipLocationNodes){var n=t.start,o=t.end;n.$class="concerto.metamodel@1.0.0.Position",o.$class="concerto.metamodel@1.0.0.Position";var i={$class:"concerto.metamodel@1.0.0.Range",start:n,end:o};return t.source&&t.source[0]&&(i.source=t.source[0]),{location:i}}}if((n=c())!==i&&Kr===t.length)return n;throw n!==i&&Kr<t.length&&hn({type:"end"}),function(t,e,r){return new a(a.buildMessage(t,e),t,e,r)}(rn,en<t.length?t.charAt(en):null,en<t.length?fn(en,en+1):fn(en,en))}}},449:function(t,e,r){"use strict";var n=r(76).MetaModelNamespace,o=r(353),i=r(358);t.exports={parse:function(t,e,r){try{return o.parse(t,r)}catch(t){throw t.location&&t.location.start?new i(t.message,t.location,e):t}},parseModels:function(t,e){var r={$class:"".concat(n,".Models"),models:[]};return t.forEach((function(t){var n=o.parse(t,e);r.models.push(n)})),r}}},805:function(t,e,r){"use strict";var n=r(76).MetaModelNamespace;function o(t){var e="";switch(t.$class){case"".concat(n,".DecoratorTypeReference"):e+="".concat(t.type.name).concat(t.isArray?"[]":"");break;case"".concat(n,".DecoratorString"):e+='"'.concat(t.value,'"');break;default:e+="".concat(t.value)}return e}function i(t){var e="";return e+="@".concat(t.name),t.arguments&&(e+="(",e+=t.arguments.map(o).join(","),e+=")"),e}function a(t,e){var r="";return(r+=t.map(i).join("\n".concat(e)))+"\n".concat(e)}t.exports={toCTO:function(t){var e="";return t.concertoVersion&&(e+='concerto version "'.concat(t.concertoVersion,'"'),e+="\n",e+="\n"),t.decorators&&t.decorators.length>0&&(e+=a(t.decorators,"")),e+="namespace ".concat(t.namespace),t.imports&&t.imports.length>0&&(e+="\n",t.imports.forEach((function(t){switch(t.$class){case"".concat(n,".ImportType"):case"".concat(n,".ImportTypeFrom"):e+="\nimport ".concat(t.namespace,".").concat(t.name);break;case"".concat(n,".ImportAll"):case"".concat(n,".ImportAllFrom"):e+="\nimport ".concat(t.namespace,".*");break;case"".concat(n,".ImportTypes"):e+="\nimport ".concat(t.namespace,".{").concat(t.types.join(","),"}");break;default:throw new Error("Unrecognized import")}t.uri&&(e+=" from ".concat(t.uri))}))),t.declarations&&t.declarations.length>0&&t.declarations.forEach((function(t){e+="\n\n".concat(function(t){var e="";switch(t.decorators&&(e+=a(t.decorators,"")),t.isAbstract&&(e+="abstract "),t.$class){case"".concat(n,".AssetDeclaration"):e+="asset ".concat(t.name," ");break;case"".concat(n,".ConceptDeclaration"):e+="concept ".concat(t.name," ");break;case"".concat(n,".EventDeclaration"):e+="event ".concat(t.name," ");break;case"".concat(n,".ParticipantDeclaration"):e+="participant ".concat(t.name," ");break;case"".concat(n,".TransactionDeclaration"):e+="transaction ".concat(t.name," ");break;case"".concat(n,".EnumDeclaration"):e+="enum ".concat(t.name," ")}return t.identified&&(t.identified.$class==="".concat(n,".IdentifiedBy")?e+="identified by ".concat(t.identified.name," "):e+="identified "),t.superType&&(e+="extends ".concat(t.superType.name," ")),e+="{",t.properties.forEach((function(t){e+="\n ".concat(function(t){var e="",r="",o="";switch(t.decorators&&(e+=a(t.decorators," ")),t.$class==="".concat(n,".RelationshipProperty")?e+="--\x3e":e+="o",t.$class){case"".concat(n,".EnumProperty"):break;case"".concat(n,".BooleanProperty"):e+=" Boolean",!0!==t.defaultValue&&!1!==t.defaultValue||(t.defaultValue?r+=" default=true":r+=" default=false");break;case"".concat(n,".DateTimeProperty"):e+=" DateTime";break;case"".concat(n,".DoubleProperty"):if(e+=" Double",t.defaultValue){var i=t.defaultValue.toFixed(Math.max(1,(t.defaultValue.toString().split(".")[1]||[]).length));r+=" default=".concat(i)}if(t.validator){var s=t.validator.lower?t.validator.lower:"",u=t.validator.upper?t.validator.upper:"";o+=" range=[".concat(s,",").concat(u,"]")}break;case"".concat(n,".IntegerProperty"):if(e+=" Integer",t.defaultValue&&(r+=" default=".concat(t.defaultValue.toString())),t.validator){var c=t.validator.lower?t.validator.lower:"",l=t.validator.upper?t.validator.upper:"";o+=" range=[".concat(c,",").concat(l,"]")}break;case"".concat(n,".LongProperty"):if(e+=" Long",t.defaultValue&&(r+=" default=".concat(t.defaultValue.toString())),t.validator){var f=t.validator.lower?t.validator.lower:"",h=t.validator.upper?t.validator.upper:"";o+=" range=[".concat(f,",").concat(h,"]")}break;case"".concat(n,".StringProperty"):e+=" String",t.defaultValue&&(r+=' default="'.concat(t.defaultValue,'"')),t.validator&&(o+=" regex=/".concat(t.validator.pattern,"/").concat(t.validator.flags));break;case"".concat(n,".ObjectProperty"):e+=" ".concat(t.type.name),t.defaultValue&&(r+=' default="'.concat(t.defaultValue,'"'));break;case"".concat(n,".RelationshipProperty"):e+=" ".concat(t.type.name)}return t.isArray&&(e+="[]"),e+=" ".concat(t.name),e+=r,e+=o,t.isOptional&&(e+=" optional"),e}(t))})),e+="\n}"}(t))})),e}}},881:function(t){var e=1e3,r=60*e,n=60*r,o=24*n;function i(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var s,u,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===c&&isFinite(t))return a.long?(s=t,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=e?i(s,u,e,"second"):s+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},130:function(t,e,r){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==i&&"env"in i&&(t={NODE_ENV:"production"}.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,a.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=a.debug||a.log||(()=>{}),t.exports=r(123)(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},123:function(t,e,r){t.exports=function(t){function e(t){let r,o=null;function i(...t){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=n,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?e.enabled(t):o,set:t=>{o=t}}),"function"==typeof e.init&&e.init(i),i}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(881),e.destroy=function(){a.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},23:function(t){"use strict";function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var t,n="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var s;a>=0?s=arguments[a]:(void 0===t&&(t=i.cwd()),s=t),e(s),0!==s.length&&(n=s+"/"+n,o=47===s.charCodeAt(0))}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r<arguments.length;++r){var o=arguments[r];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return"";if((t=n.resolve(t))===(r=n.resolve(r)))return"";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,c=a<u?a:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===r.charCodeAt(s+f))return r.slice(s+f+1);if(0===f)return r.slice(s+f)}else a>c&&(47===t.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var h=t.charCodeAt(o+f);if(h!==r.charCodeAt(s+f))break;47===h&&(l=f)}var p="";for(f=o+l+1;f<=i;++f)f!==i&&47!==t.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(s+l):(s+=l,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var s=r.length-1,u=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(c===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(47!==u)-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,c=!0,l=t.length-1,f=0;l>=n;--l)if(47!==(o=t.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===f||1===f&&a===u-1&&a===s+1?-1!==u&&(r.base=r.name=0===s&&i?t.slice(1,u):t.slice(s,u)):(0===s&&i?(r.name=t.slice(1,a),r.base=t.slice(1,u)):(r.name=t.slice(s,a),r.base=t.slice(s,u)),r.ext=t.slice(a,u)),s>0?r.dir=t.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n},10:function(t,e,r){"use strict";const n=r(358),o=r(449),i=r(805),a=r(165);t.exports={ParseException:n,Parser:o,Printer:i,External:a}},76:function(t,e,r){"use strict";const n=r(58);t.exports={MetaModelUtil:n,MetaModelNamespace:"concerto.metamodel@1.0.0"}},58:function(t,e,r){"use strict";const n=r(334),o="concerto.metamodel@1.0.0",i=`@DotNetNamespace("AccordProject.Concerto.Metamodel")\nnamespace ${o}\n\nconcept Position {\n o Integer line\n o Integer column\n o Integer offset\n}\nconcept Range {\n o Position start\n o Position end\n o String source optional\n}\n\nconcept TypeIdentifier {\n o String name\n o String namespace optional\n}\n\nabstract concept DecoratorLiteral {\n o Range location optional\n}\n\nconcept DecoratorString extends DecoratorLiteral {\n o String value\n}\n\nconcept DecoratorNumber extends DecoratorLiteral {\n o Double value\n}\n\nconcept DecoratorBoolean extends DecoratorLiteral {\n o Boolean value\n}\n\nconcept DecoratorTypeReference extends DecoratorLiteral {\n o TypeIdentifier type\n o Boolean isArray default=false\n}\n\nconcept Decorator {\n o String name\n o DecoratorLiteral[] arguments optional\n o Range location optional\n}\n\nconcept Identified {\n}\n\nconcept IdentifiedBy extends Identified {\n o String name\n}\n\nabstract concept Declaration {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept EnumDeclaration extends Declaration {\n o EnumProperty[] properties\n}\n\nconcept EnumProperty {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept ConceptDeclaration extends Declaration {\n o Boolean isAbstract default=false\n o Identified identified optional\n o TypeIdentifier superType optional\n o Property[] properties\n}\n\nconcept AssetDeclaration extends ConceptDeclaration {\n}\n\nconcept ParticipantDeclaration extends ConceptDeclaration {\n}\n\nconcept TransactionDeclaration extends ConceptDeclaration {\n}\n\nconcept EventDeclaration extends ConceptDeclaration {\n}\n\nabstract concept Property {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Boolean isArray default=false\n o Boolean isOptional default=false\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept RelationshipProperty extends Property {\n o TypeIdentifier type\n}\n\nconcept ObjectProperty extends Property {\n o String defaultValue optional\n o TypeIdentifier type\n}\n\nconcept BooleanProperty extends Property {\n o Boolean defaultValue optional\n}\n\nconcept DateTimeProperty extends Property {\n}\n\nconcept StringProperty extends Property {\n o String defaultValue optional\n o StringRegexValidator validator optional\n}\n\nconcept StringRegexValidator {\n o String pattern\n o String flags\n}\n\nconcept DoubleProperty extends Property {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept DoubleDomainValidator {\n o Double lower optional\n o Double upper optional\n}\n\nconcept IntegerProperty extends Property {\n o Integer defaultValue optional\n o IntegerDomainValidator validator optional\n}\n\nconcept IntegerDomainValidator {\n o Integer lower optional\n o Integer upper optional\n}\n\nconcept LongProperty extends Property {\n o Long defaultValue optional\n o LongDomainValidator validator optional\n}\n\nconcept LongDomainValidator {\n o Long lower optional\n o Long upper optional\n}\n\nabstract concept Import {\n o String namespace\n o String uri optional\n}\n\nconcept ImportAll extends Import {\n}\n\nconcept ImportType extends Import {\n o String name\n}\n\nconcept ImportTypes extends Import {\n o String[] types\n}\n\nconcept Model {\n o String namespace\n o String sourceUri optional\n o String concertoVersion optional\n o Import[] imports optional\n o Declaration[] declarations optional\n o Decorator[] decorators optional\n}\n\nconcept Models {\n o Model[] models\n}\n`;function a(t,e){if(!e[t])throw new Error(`Name ${t} not found`);return e[t]}function s(t,e){switch(t.$class){case`${o}.Model`:t.declarations&&t.declarations.forEach((t=>{s(t,e)}));break;case`${o}.AssetDeclaration`:case`${o}.ConceptDeclaration`:case`${o}.EventDeclaration`:case`${o}.TransactionDeclaration`:case`${o}.ParticipantDeclaration`:if(t.superType){const r=t.superType.name;t.superType.namespace=a(r,e)}t.properties.forEach((t=>{s(t,e)})),t.decorators&&t.decorators.forEach((t=>{s(t,e)}));break;case`${o}.EnumDeclaration`:t.decorators&&t.decorators.forEach((t=>{s(t,e)}));break;case`${o}.EnumProperty`:case`${o}.ObjectProperty`:case`${o}.RelationshipProperty`:{const r=t.type.name;t.type.namespace=a(r,e),t.decorators&&t.decorators.forEach((t=>{s(t,e)}))}break;case`${o}.Decorator`:t.arguments&&t.arguments.forEach((t=>{s(t,e)}));break;case`${o}.DecoratorTypeReference`:{const r=t.type.name;t.type.namespace=a(r,e)}}return t}function u(t,e){const r=JSON.parse(JSON.stringify(e)),n=function(t,e){const r="concerto@1.0.0",n={Concept:r,Asset:r,Participant:r,"Transaction ":r,Event:r};return e.imports.forEach((e=>{const r=e.namespace,i=function(t,e){return t.models.find((t=>t.namespace===e))}(t,r);if(e.$class===`${o}.ImportType`){if(a=i,s=e.name,!a.declarations.find((t=>t.name===s)))throw new Error(`Declaration ${e.name} in namespace ${r} not found`);n[e.name]=r}else i.declarations.forEach((t=>{n[t.name]=r}));var a,s})),e.declarations&&e.declarations.forEach((t=>{n[t.name]=e.namespace})),n}(t,e);return s(r,n),r}function c(t){const e=[];switch(t.$class){case`${o}.ImportAll`:e.push(`${t.namespace}.*`);break;case`${o}.ImportType`:e.push(`${t.namespace}.${t.name}`);break;case`${o}.ImportTypes`:t.types.forEach((r=>{e.push(`${t.namespace}.${r}`)}));break;default:throw new Error(`Unrecognized imports ${t.$class}`)}return e}t.exports={metaModelAst:n,metaModelCto:i,resolveLocalNames:u,resolveLocalNamesForAll:function(t){const e={$class:`${o}.Models`,models:[]};return t.models.forEach((r=>{const n=u(t,r);e.models.push(n)})),e},importFullyQualifiedNames:c,getExternalImports:function(t){const e={};return t.imports&&t.imports.forEach((t=>{const r=c(t);t.uri&&(e[r[0]]=t.uri)})),e}}},133:function(t){self,t.exports=function(){var t={1036:function(t,e,r){"use strict";const n=r(4572);t.exports=n.PromisePool},9789:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolError=void 0;class r extends Error{constructor(t,e){super(),this.item=e,this.name=this.constructor.name,this.message=this.messageFrom(t),Error.captureStackTrace(this,this.constructor)}static createFrom(t,e){return new this(t,e)}messageFrom(t){return t instanceof Error||"object"==typeof t?t.message:"string"==typeof t||"number"==typeof t?t.toString():""}}e.PromisePoolError=r},6205:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolExecutor=void 0;const n=r(9789);e.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}for(t){return this.items=t,this}withHandler(t){return this.handler=t,this}handleError(t){return this.errorHandler=t,this}hasReachedConcurrencyLimit(){return this.activeCount()>=this.concurrency}activeCount(){return this.tasks.length}async start(){return this.validateInputs(),await this.process()}validateInputs(){if("function"!=typeof this.handler)throw new Error("The first parameter for the .process(fn) method must be a function");if(!("number"==typeof this.concurrency&&this.concurrency>=1))throw new TypeError(`"concurrency" must be a number, 1 or up. Received "${this.concurrency}" (${typeof this.concurrency})`);if(!Array.isArray(this.items))throw new TypeError('"items" must be an array. Received '+typeof this.items);if(this.errorHandler&&"function"!=typeof this.errorHandler)throw new Error("The error handler must be a function. Received "+typeof this.errorHandler)}async process(){for(const t of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(t);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(t){const e=this.createTaskFor(t).then((t=>{this.results.push(t),this.tasks.splice(this.tasks.indexOf(e),1)})).catch((r=>{if(this.tasks.splice(this.tasks.indexOf(e),1),this.errorHandler)return this.errorHandler(r,t);this.errors.push(n.PromisePoolError.createFrom(r,t))}));this.tasks.push(e)}async createTaskFor(t){return this.handler(t)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},4572:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePool=void 0;const n=r(6205);class o{constructor(t){this.concurrency=10,this.items=null!=t?t:[],this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}static withConcurrency(t){return(new this).withConcurrency(t)}for(t){return new o(t).withConcurrency(this.concurrency)}static for(t){return(new this).for(t)}handleError(t){return this.errorHandler=t,this}async process(t){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(t).handleError(this.errorHandler).for(this.items).start()}}e.PromisePool=o},9640:function(t,e,r){"use strict";t=r.nmd(t);const n=r(841),o=(t,e)=>function(){return`[${t.apply(n,arguments)+e}m`},i=(t,e)=>function(){const r=t.apply(n,arguments);return`[${38+e};5;${r}m`},a=(t,e)=>function(){const r=t.apply(n,arguments);return`[${38+e};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(const r of Object.keys(e)){const n=e[r];for(const r of Object.keys(n)){const o=n[r];e[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=e[r],t.set(o[0],o[1])}Object.defineProperty(e,r,{value:n,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}const r=t=>t,s=(t,e,r)=>[t,e,r];e.color.close="",e.bgColor.close="",e.color.ansi={ansi:o(r,0)},e.color.ansi256={ansi256:i(r,0)},e.color.ansi16m={rgb:a(s,0)},e.bgColor.ansi={ansi:o(r,10)},e.bgColor.ansi256={ansi256:i(r,10)},e.bgColor.ansi16m={rgb:a(s,10)};for(let t of Object.keys(n)){if("object"!=typeof n[t])continue;const r=n[t];"ansi16"===t&&(t="ansi"),"ansi16"in r&&(e.color.ansi[t]=o(r.ansi16,0),e.bgColor.ansi[t]=o(r.ansi16,10)),"ansi256"in r&&(e.color.ansi256[t]=i(r.ansi256,0),e.bgColor.ansi256[t]=i(r.ansi256,10)),"rgb"in r&&(e.color.ansi16m[t]=a(r.rgb,0),e.bgColor.ansi16m[t]=a(r.rgb,10))}return e}})},1696:function(t,e,r){"use strict";var n=r(4406),o=r(3716);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a,s,u=r(7515).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,d=r(4082),m=r(3335).inspect,y=r(3335).types,g=y.isPromise,v=y.isRegExp,b=Object.assign?Object.assign:r(4956).assign,w=Object.is?Object.is:r(4679);function A(){var t=r(6796);a=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var M=!1,E=t.exports=k,_={};function C(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function S(t,e,r,n){if(!r){var o=!1;if(0===e)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw i.generatedMessage=o,i}}function k(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[k,e.length].concat(e))}E.fail=function t(e,r,i,a,s){var u,c=arguments.length;if(0===c?u="Failed":1===c?(i=e,e=void 0):(!1===M&&(M=!0,(n.emitWarning?n.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(a="!=")),i instanceof Error)throw i;var l={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==i&&(l.message=i);var f=new d(l);throw u&&(f.message=u,f.generatedMessage=!0),f},E.AssertionError=d,E.ok=k,E.equal=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e!=r&&C({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},E.notEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e==r&&C({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},E.deepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)||C({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},E.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},E.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)||C({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},E.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},E.strictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)||C({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},E.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)&&C({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var x=function t(e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&v(e[t])&&e[t].test(n[t])?o[t]=n[t]:o[t]=e[t])}))};function O(t,e,r,n,o,i){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new x(t,o),u=new x(e,o,t),c=new d({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=t,c.expected=e,c.operator=i.name,c}C({actual:t,expected:e,message:n,operator:i.name,stackStartFn:i})}}function D(t,e,r,n){if("function"!=typeof e){if(v(e))return e.test(t);if(2===arguments.length)throw new l("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var o=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var s=Object.keys(e);if(e instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",e,"may not be an empty object");return void 0===a&&A(),s.forEach((function(o){"string"==typeof t[o]&&v(e[o])&&e[o].test(t[o])||O(t,e,o,r,s,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function F(t){if("function"!=typeof t)throw new l("fn","Function",t);try{t()}catch(t){return t}return _}function T(t){return g(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!T(e=t()))throw new h("instance of Promise","promiseFn",e)}else{if(!T(t))throw new l("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return _})).catch((function(t){return t}))}))}function P(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(e===_){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";C({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:t})}if(r&&!D(e,r,n,t))throw e}function R(t,e,r,n){if(e!==_){if("string"==typeof r&&(n=r,r=void 0),!r||D(e,r)){var o=n?": ".concat(n):".",i="doesNotReject"===t.name?"rejection":"exception";C({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function B(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[B,e.length].concat(e))}E.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];P.apply(void 0,[t,F(e)].concat(n))},E.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return P.apply(void 0,[t,e].concat(n))}))},E.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];R.apply(void 0,[t,F(e)].concat(n))},E.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return R.apply(void 0,[t,e].concat(n))}))},E.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=m(e);var n=new d({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},E.strict=b(B,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},4082:function(t,e,r){"use strict";var n=r(4406);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},s(t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return c=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},c.apply(null,arguments)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var p=r(3335).inspect,d=r(7515).codes.ERR_INVALID_ARG_TYPE;function m(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var y="",g="",v="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function M(t){return p(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==h(t)||null===t)throw new d("options","Object",t);var o=t.message,s=t.operator,u=t.stackStartFn,c=t.actual,l=t.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=i(this,f(e).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",g="",b="",v=""):(y="",g="",b="",v="")),"object"===h(c)&&null!==c&&"object"===h(l)&&null!==l&&"stack"in c&&c instanceof Error&&"stack"in l&&l instanceof Error&&(c=A(c),l=A(l)),"deepStrictEqual"===s||"strictEqual"===s)r=i(this,f(e).call(this,function(t,e,r){var o="",i="",a=0,s="",u=!1,c=M(t),l=c.split("\n"),f=M(e).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var A=l[0].length+f[0].length;if(A<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&A<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var E=l[l.length-1],_=f[f.length-1];E===_&&(p++<2?s="\n ".concat(E).concat(s):o=E,l.pop(),f.pop(),0!==l.length&&0!==f.length);)E=l[l.length-1],_=f[f.length-1];var C=Math.max(l.length,f.length);if(0===C){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(y,"...").concat(b);S.length>27;)S.pop();return"".concat(w.notIdentical,"\n\n").concat(S.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(b).concat(s),u=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var k=0,x=w[r]+"\n".concat(g,"+ actual").concat(b," ").concat(v,"- expected").concat(b),O=" ".concat(y,"...").concat(b," Lines skipped");for(p=0;p<C;p++){var D=p-a;if(l.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(f[p-2]),k++),i+="\n ".concat(f[p-1]),k++),a=p,o+="\n".concat(v,"-").concat(b," ").concat(f[p]),k++;else if(f.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(l[p]),k++;else{var F=f[p],T=l[p],j=T!==F&&(!m(T,",")||T.slice(0,-1)!==F);j&&m(F,",")&&F.slice(0,-1)===T&&(j=!1,T+=","),j?(D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(T),o+="\n".concat(v,"-").concat(b," ").concat(F),k+=2):(i+=o,o="",1!==D&&0!==p||(i+="\n ".concat(T),k++))}if(k>20&&p<C-2)return"".concat(x).concat(O,"\n").concat(i,"\n").concat(y,"...").concat(b).concat(o,"\n")+"".concat(y,"...").concat(b)}return"".concat(x).concat(u?O:"","\n").concat(i).concat(o).concat(s).concat(d)}(c,l,s)));else if("notDeepStrictEqual"===s||"notStrictEqual"===s){var E=w[s],_=M(c).split("\n");if("notStrictEqual"===s&&"object"===h(c)&&null!==c&&(E=w.notStrictEqualObject),_.length>30)for(_[26]="".concat(y,"...").concat(b);_.length>27;)_.pop();r=1===_.length?i(this,f(e).call(this,"".concat(E," ").concat(_[0]))):i(this,f(e).call(this,"".concat(E,"\n\n").concat(_.join("\n"),"\n")))}else{var C=M(c),S="",k=w[s];"notDeepEqual"===s||"notEqual"===s?(C="".concat(w[s],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(S="".concat(M(l)),C.length>512&&(C="".concat(C.slice(0,509),"...")),S.length>512&&(S="".concat(S.slice(0,509),"...")),"deepEqual"===s||"equal"===s?C="".concat(k,"\n\n").concat(C,"\n\nshould equal\n\n"):S=" ".concat(s," ").concat(S)),r=i(this,f(e).call(this,"".concat(C).concat(S)))}return Error.stackTraceLimit=p,r.generatedMessage=!o,Object.defineProperty(a(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=l,r.operator=s,Error.captureStackTrace&&Error.captureStackTrace(a(r),u),r.stack,r.name="AssertionError",i(r)}var r,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),r=e,s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(t,e){return p(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],s&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,s),e}(s(Error));t.exports=E},7515:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}var a,s,u={};function c(t,e,r){r||(r=Error);var a=function(r){function a(r,i,s){var u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),u=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,o(a).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,i,s))),u.code=t,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(a,r),a}(r);u[t]=a}function l(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(t,e,o){var i,s,u,c,f;if(void 0===a&&(a=r(1696)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(i," ").concat(l(e,"type"));else{var h=("number"!=typeof f&&(f=0),f+".".length>(c=t).length||-1===c.indexOf(".",f)?"argument":"property");u='The "'.concat(t,'" ').concat(h," ").concat(i," ").concat(l(e,"type"))}return u+". Received type ".concat(n(o))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(3335));var o=s.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=r(1696)),a(e.length>0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),t.exports.codes=u},6796:function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var i=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},s=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},u=Object.is?Object.is:r(4679),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4782);function f(t){return t.call.bind(t)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(3335).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,v=m.isDate,b=m.isMap,w=m.isRegExp,A=m.isSet,M=m.isNativeError,E=m.isBoxedPrimitive,_=m.isNumberObject,C=m.isStringObject,S=m.isBooleanObject,k=m.isBigIntObject,x=m.isSymbolObject,O=m.isFloat32Array,D=m.isFloat64Array;function F(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function T(t){return Object.keys(t).filter(F).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function j(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0}function P(t,e,r,n){if(t===e)return 0!==t||!r||u(t,e);if(r){if("object"!==o(t))return"number"==typeof t&&l(t)&&l(e);if("object"!==o(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==o(t))return(null===e||"object"!==o(e))&&t==e;if(null===e||"object"!==o(e))return!1}var a,s,c,f,h=d(t);if(h!==d(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var p=T(t),m=T(e);return p.length===m.length&&B(t,e,r,n,1,p)}if("[object Object]"===h&&(!b(t)&&b(e)||!A(t)&&A(e)))return!1;if(v(t)){if(!v(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||(c=t,f=e,!(i?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(M(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(g(t)){if(r||!O(t)&&!D(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===j(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var F=T(t),P=T(e);return F.length===P.length&&B(t,e,r,n,0,F)}if(A(t))return!(!A(e)||t.size!==e.size)&&B(t,e,r,n,2);if(b(t))return!(!b(e)||t.size!==e.size)&&B(t,e,r,n,3);if(y(t)){if(s=e,(a=t).byteLength!==s.byteLength||0!==j(new Uint8Array(a),new Uint8Array(s)))return!1}else if(E(t)&&!function(t,e){return _(t)?_(e)&&u(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):C(t)?C(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):S(t)?S(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):k(t)?k(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):x(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return B(t,e,r,n,0)}function R(t,e){return e.filter((function(e){return p(t,e)}))}function B(t,e,r,n,o,i){if(5===arguments.length){i=Object.keys(t);var a=Object.keys(e);if(i.length!==a.length)return!1}for(var s=0;s<i.length;s++)if(!h(e,i[s]))return!1;if(r&&5===arguments.length){var u=c(t);if(0!==u.length){var l=0;for(s=0;s<u.length;s++){var f=u[s];if(p(t,f)){if(!p(e,f))return!1;i.push(f),l++}else if(p(e,f))return!1}var d=c(e);if(u.length!==d.length&&R(e,d).length!==l)return!1}else{var m=c(e);if(0!==m.length&&0!==R(e,m).length)return!1}}if(0===i.length&&(0===o||1===o&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(t);if(void 0!==y){var g=n.val2.get(e);if(void 0!==g)return y===g}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var v=q(t,e,r,i,n,o);return n.val1.delete(t),n.val2.delete(e),v}function I(t,e,r,n){for(var o=a(t),i=0;i<o.length;i++){var s=o[i];if(P(e,s,r,n))return t.delete(s),!0}return!1}function N(t){switch(o(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function $(t,e,r){var n=N(r);return null!=n?n:e.has(n)&&!t.has(n)}function L(t,e,r,n,o){var i=N(r);if(null!=i)return i;var a=e.get(i);return!(void 0===a&&!e.has(i)||!P(n,a,!1,o))&&!t.has(i)&&P(n,a,!1,o)}function U(t,e,r,n,o,i){for(var s=a(t),u=0;u<s.length;u++){var c=s[u];if(P(r,c,o,i)&&P(n,e.get(c),o,i))return t.delete(c),!0}return!1}function q(t,e,r,i,u,c){var l=0;if(2===c){if(!function(t,e,r,n){for(var i=null,s=a(t),u=0;u<s.length;u++){var c=s[u];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!e.has(c)){if(r)return!1;if(!$(t,e,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var l=a(e),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!I(i,h,r,n))return!1}else if(!r&&!t.has(h)&&!I(i,h,r,n))return!1}return 0===i.size}return!0}(t,e,r,u))return!1}else if(3===c){if(!function(t,e,r,i){for(var a=null,u=s(t),c=0;c<u.length;c++){var l=n(u[c],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=e.get(f);if(void 0===p&&!e.has(f)||!P(h,p,r,i)){if(r)return!1;if(!L(t,e,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var d=s(e),m=0;m<d.length;m++){var y=n(d[m],2),g=(f=y[0],y[1]);if("object"===o(f)&&null!==f){if(!U(a,t,f,g,r,i))return!1}else if(!(r||t.has(f)&&P(t.get(f),g,!1,i)||U(a,t,f,g,!1,i)))return!1}return 0===a.size}return!0}(t,e,r,u))return!1}else if(1===c)for(;l<t.length;l++){if(!h(t,l)){if(h(e,l))return!1;for(var f=Object.keys(t);l<f.length;l++){var p=f[l];if(!h(e,p)||!P(t[p],e[p],r,u))return!1}return f.length===Object.keys(e).length}if(!h(e,l)||!P(t[l],e[l],r,u))return!1}for(l=0;l<i.length;l++){var d=i[l];if(!P(t[d],e[d],r,u))return!1}return!0}t.exports={isDeepEqual:function(t,e){return P(t,e,!1)},isDeepStrictEqual:function(t,e){return P(t,e,!0)}}},9644:function(t,e,r){t.exports=r(5644)},353:function(t,e,r){"use strict";var n=r(3044),o=r(6955),i=r(2233),a=r(8030),s=r(7948),u=r(1875),c=r(842),l=r(8618),f=r(1439),h=r(6714);t.exports=function(t){return new Promise((function(e,r){var p,d=t.data,m=t.headers,y=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}n.isFormData(d)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var A=s(t.baseURL,t.url);function M(){if(v){var n="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:t,request:v};o((function(t){e(t),g()}),(function(t){r(t),g()}),i),v=null}}if(v.open(t.method.toUpperCase(),a(A,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=M:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(M)},v.onabort=function(){v&&(r(l("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){r(l("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var E=(t.withCredentials||c(A))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;E&&(m[t.xsrfHeaderName]=E)}"setRequestHeader"in v&&n.forEach(m,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete m[e]:v.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),y&&"json"!==y&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){v&&(r(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),d||(d=null),v.send(d)}))}},5644:function(t,e,r){"use strict";var n=r(3044),o=r(3644),i=r(2215),a=r(2937),s=function t(e){var r=new i(e),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return t(a(e,r))},s}(r(1439));s.Axios=i,s.Cancel=r(6714),s.CancelToken=r(4089),s.isCancel=r(8041),s.VERSION=r(9241).version,s.all=function(t){return Promise.all(t)},s.spread=r(783),s.isAxiosError=r(5587),t.exports=s,t.exports.default=s},6714:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4089:function(t,e,r){"use strict";var n=r(6714);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},8041:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},2215:function(t,e,r){"use strict";var n=r(3044),o=r(8030),i=r(946),a=r(6895),s=r(2937),u=r(7525),c=u.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;r.length;){var h=r.shift(),p=r.shift();try{f=h(f)}catch(t){p(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=l},946:function(t,e,r){"use strict";var n=r(3044);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},7948:function(t,e,r){"use strict";var n=r(9192),o=r(8762);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},8618:function(t,e,r){"use strict";var n=r(1935);t.exports=function(t,e,r,o,i){var a=new Error(t);return n(a,e,r,o,i)}},6895:function(t,e,r){"use strict";var n=r(3044),o=r(8556),i=r(8041),a=r(1439),s=r(6714);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},1935:function(t){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},2937:function(t,e,r){"use strict";var n=r(3044);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function i(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function a(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function s(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function u(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||i,o=e(t);n.isUndefined(o)&&e!==u||(r[t]=o)})),r}},6955:function(t,e,r){"use strict";var n=r(8618);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8556:function(t,e,r){"use strict";var n=r(3044),o=r(1439);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,(function(r){t=r.call(i,t,e)})),t}},1439:function(t,e,r){"use strict";var n=r(4406),o=r(3044),i=r(8868),a=r(1935),s={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(c=r(353)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)||e&&"application/json"===e["Content-Type"]?(u(e,"application/json"),function(t,e,r){if(o.isString(t))try{return(0,JSON.parse)(t),o.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||l.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){l.headers[t]=o.merge(s)})),t.exports=l},9241:function(t){t.exports={version:"0.23.0"}},3644:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},8030:function(t,e,r){"use strict";var n=r(3044);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(n.isURLSearchParams(e))i=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},8762:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},2233:function(t,e,r){"use strict";var n=r(3044);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},5587:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},842:function(t,e,r){"use strict";var n=r(3044);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},8868:function(t,e,r){"use strict";var n=r(3044);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},1875:function(t,e,r){"use strict";var n=r(3044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,a={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},783:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},7525:function(t,e,r){"use strict";var n=r(3716),o=r(9241).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var a={};i.transitional=function(t,e,r){function i(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,s){if(!1===t)throw new Error(i(o," has been removed"+(e?" in "+e:"")));return e&&!a[o]&&(a[o]=!0,n.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,s)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var s=t[i],u=void 0===s||a(s,i,t);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:i}},3044:function(t,e,r){"use strict";var n=r(3644),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):i(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return e},extend:function(t,e,r){return l(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},6777:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)},a(t)}function s(t,e,r){return s=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&c(o,r.prototype),o},s.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=r(4147),h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,r,n=(e=a,r=u(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o(this,t)});function a(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(r=n.call(this,t)).component=e||f.name,r.name=r.constructor.name,r.message=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i(r),r.constructor),r}return a}(a(Error));t.exports=h},7445:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e,r,n,o){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(i=s.call(this,r||t,o)).fileLocation=e,i.shortMessage=t,i.fileName=n,i}return(e=[{key:"getFileLocation",value:function(){return this.fileLocation}},{key:"getShortMessage",value:function(){return this.shortMessage}},{key:"getFileName",value:function(){return this.fileName}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(r(6777));t.exports=s},5106:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=r(5130)("concerto:FileDownloader"),u=r(1036),c=function(t){var e;return(e=[]).concat.apply(e,function(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t))},l=function(t){return t.filter(Boolean)},f=function(){var t=i(regeneratorRuntime.mark((function t(e,r){var n,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.response&&e.response.status&&200!==e.response.status,o=e.code&&"ENOTFOUND"===e.code,!n&&!o){t.next=6;break}throw(i=new Error("Unable to download external model dependency '".concat(r.url,"'"))).code="MISSING_DEPENDENCY",i;case 6:throw new Error("Failed to load model file. Job: "+r.url+" Details: "+e);case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),h=function(){function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;n(this,t),this.fileLoader=e,this.concurrency=o,this.getExternalImports=r}var e;return e=[{key:"downloadExternalDependencies",value:function(t,e){var r=this;s("downloadExternalDependencies");var n=new Set;e||(e={});var o=c(t.map((function(t){var o=r.getExternalImports(t);return Object.keys(o).map((function(t){return{downloadedUris:n,url:o[t],options:e}}))})));return u.withConcurrency(this.concurrency).for(o).handleError(f).process((function(t){return r.runJob(t,r.fileLoader)})).then((function(t){var e=t.results;return l(c(e))}))}},{key:"runJob",value:function(t,e){var r=this,n=t.downloadedUris,o=t.options,a=t.url;return n.add(a),s("runJob","Loading",a),e.load(a,o).then(function(){var t=i(regeneratorRuntime.mark((function t(i){var h,p,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s("runJob","Loaded",a),h=r.getExternalImports(i),p=Array.from(new Set(Object.keys(h).map((function(t){return h[t]})))),s("runJob","importedUris",p),t.next=6,u.withConcurrency(r.concurrency).for(p).handleError(f).process((function(t){if(!n.has(t))return r.runJob({options:o,url:t,downloadedUris:n},e)})).then((function(t){var e=t.results;return l(c(e))}));case 6:return d=t.sent,t.abrupt("return",d.concat([i]));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=h},4468:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(2203),l=r(5783),f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(f,t);var e,r,n,i=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=i.call(this)).outputDirectory=t,e.relativeDir=null,e.fileName=null,c.mkdirSync(t,{recursive:!0}),e}return(e=[{key:"openFile",value:function(t){this.fileName=t,this.relativeDir=null}},{key:"openRelativeFile",value:function(t,e){this.relativeDir=t,this.fileName=e}},{key:"writeLine",value:function(t,e){if(!this.fileName)throw Error("File has not been opened!");o(u(f.prototype),"writeLine",this).call(this,t,e)}},{key:"writeBeforeLine",value:function(t,e){if(!this.fileName)throw Error("File has not been opened!");o(u(f.prototype),"writeBeforeLine",this).call(this,t,e)}},{key:"closeFile",value:function(){if(!this.fileName)throw new Error("No file open");var t=this.outputDirectory;this.relativeDir&&(t=l.resolve(t,this.relativeDir)),t=l.resolve(t,this.fileName),c.mkdirSync(l.dirname(t),{recursive:!0}),c.writeFileSync(t,this.getBuffer()),this.fileName=null,this.relativeDir=null,this.clearBuffer()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(f.prototype,e),f}(r(9101));t.exports=f},644:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this)).fileName="",t.data=new Map,t}return(e=[{key:"openFile",value:function(t){this.fileName=t}},{key:"closeFile",value:function(){this.data.set(this.fileName,this.getBuffer()),this.clearBuffer()}},{key:"getFilesInMemory",value:function(){return this.data}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(r(9101));t.exports=s},8098:function(t){"use strict";t.exports={labelToSentence:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([a-z])/g," $1$2").replace(/ +/g," ").replace(/^./,(function(t){return t.toUpperCase()})).trim()},sentenceToLabel:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/[^A-Za-z0-9_-]+/);return t.forEach((function(e,r){t[r]=t[r].replace(/^./,(function(t){return t.toUpperCase()}))})),t.join("").replace(/^./,(function(t){return t.toLowerCase()}))}}},4135:function(t){"use strict";var e=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.fileLoaders=[]}var e;return(e=[{key:"addFileLoader",value:function(t){this.fileLoaders.push(t)}},{key:"getFileLoaders",value:function(){return this.fileLoaders}},{key:"clearFileLoaders",value:function(){this.fileLoaders=[]}},{key:"accepts",value:function(t){for(var e=0;e<this.fileLoaders.length;e++)if(this.fileLoaders[e].accepts(t))return!0;return!1}},{key:"load",value:function(t,e){for(var r=0;r<this.fileLoaders.length;r++){var n=this.fileLoaders[r];if(n.accepts(t))return n.load(t,e)}throw new Error("Failed to find a model file loader that can handle: "+t)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=e},9462:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(4135),u=r(7913),c=r(2850),l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),e=n.call(this);var r=new u(t),o=new c(t);return e.addFileLoader(o),e.addFileLoader(r),e}return s}(s);t.exports=l},2850:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(c,t);var e,r,n,i=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return(e=[{key:"accepts",value:function(t){return t.startsWith("github://")}},{key:"load",value:function(t,e){var r="https://raw.githubusercontent.com/"+t.substring(9);return o(u(c.prototype),"load",this).call(this,r,e)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(r(7913));t.exports=c},7913:function(t,e,r){"use strict";var n=r(9644),o=r(883),i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.processFile=e}var e;return e=[{key:"accepts",value:function(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"load",value:function(t,e){var r=this;e||(e={});var i=JSON.parse(JSON.stringify(e));return i.url=t,i.method="get",i.responseType="text",n(i).then((function(e){var n=o.parse(t),i="@"+(n.host+n.pathname).replace(/\//g,".");return r.processFile(i,e.data)}))}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=i},6178:function(t,e,r){"use strict";var n=r(3716);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s=r(3384),u=r(6190),c={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},l={error:"red",warn:"yellow",info:"green",verbose:"cyan",debug:"blue",silly:"magenta"},f=function(){return(new Date).toLocaleTimeString()},h=function(t){return s[l[t]](t.toUpperCase())},p=function(t){return"object"===a(t)||function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}}(t)?u(t,{pretty:!0,colors:s}):t},d=function(t){for(var e=t,r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];var u=i,l=u.shift();if(l&&"object"===a(l)&&l.level&&l.message){var d=l.padding&&l.padding[l.level];"error"===l.level&&l.stack?(e="error",l="".concat(l.message,"\n").concat(l.stack)):Object.keys(c).includes(l.level)&&(e=l.level,l=l.message),l=d?"".concat(d," ").concat(l):l}u.unshift(l),(["error","warn"].includes(e)?n.error:n.log).apply(void 0,["".concat(f()," - ").concat(h(e),":")].concat(o(u.map((function(t){return t instanceof Error?"".concat(t.message,"\n").concat(t.stack):t})).map(p))))},m={};Object.keys(c).forEach((function(t){m[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return d.apply(void 0,[t].concat(r))}}));var y=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return e=[{key:"dispatch",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];c[t]>c[this.level]||this.transports.forEach((function(e){e[t]&&e[t].apply(e,r)}))}},{key:"add",value:function(t){this.transports.push(t)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["error"].concat(e))}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["warn"].concat(e))}},{key:"info",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["info"].concat(e))}},{key:"log",value:function(){return this.info.apply(this,arguments)}},{key:"http",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["http"].concat(e))}},{key:"verbose",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["verbose"].concat(e))}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["debug"].concat(e))}},{key:"silly",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["silly"].concat(e))}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t,e),t}();y.level="info",y.transports=[m],t.exports=y},9198:function(t,e,r){"use strict";var n=r(2203),o=r(5783),i=r(4716);t.exports={writeModelsToFileSystem:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("`path` is a required parameter of writeModelsToFileSystem");var a=Object.assign({includeExternalModels:!0},r);t.forEach((function(t){if(!t.external||a.includeExternalModels){var r=i(t.fileName).split("/").pop();n.writeFileSync(e+o.sep+r,t.definitions)}}))}}},6746:function(t){"use strict";var e=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.stack=[],this.push(e)}var e;return(e=[{key:"push",value:function(t,e){if(e&&!(t instanceof e))throw new Error("Did not find expected type "+e.constructor.name+" as argument to push. Found: "+t.toString());this.stack.push(t)}},{key:"pop",value:function(t){return this.peek(t),this.stack.pop()}},{key:"peek",value:function(t){if(this.stack.length<1)throw new Error("Stack is empty!");var e=this.stack[this.stack.length-1];if(t&&!(e instanceof t))throw new Error("Did not find expected type "+t+" on head of stack. Found: "+e);return e}},{key:"clear",value:function(){this.stack=[]}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=e},9101:function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.beforeBuffer="",this.buffer="",this.linesWritten=0}var r;return(r=[{key:"writeBeforeLine",value:function(t,e){for(var r=0;r<t;r++)this.beforeBuffer+=" ";this.beforeBuffer+=e,this.beforeBuffer+="\n",this.linesWritten++}},{key:"writeLine",value:function(t,e){for(var r=0;r<t;r++)this.write(" ");this.write(e),this.write("\n"),this.linesWritten++}},{key:"getLineCount",value:function(){return this.linesWritten}},{key:"writeIndented",value:function(t,e){for(var r=0;r<t;r++)this.write(" ");this.write(e)}},{key:"write",value:function(t){if("string"!=typeof t)throw new Error("Can only append strings. Argument "+t+" has type "+e(t));this.buffer+=t,this.linesWritten+=t.split(/\r\n|\r|\n/).length}},{key:"getBuffer",value:function(){return this.beforeBuffer+this.buffer}},{key:"clearBuffer",value:function(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,r),t}();t.exports=r},2680:function(t,e,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},9429:function(t,e,r){"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);return u&&c&&u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var f=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},5618:function(t,e,r){"use strict";var n=r(4406);const o=r(8102),i=r(9640),a=r(8334).stdout,s=r(5625),u="win32"===n.platform&&!({NODE_ENV:"production"}.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],l=new Set(["gray"]),f=Object.create(null);function h(t,e){e=e||{};const r=a?a.level:0;t.level=void 0===e.level?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function p(t){if(!this||!(this instanceof p)||this.template){const e={};return h(e,t),e.template=function(){const t=[].slice.call(arguments);return g.apply(null,[e.template].concat(t))},Object.setPrototypeOf(e,p.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=p,e.template}h(this,t)}u&&(i.blue.open="");for(const t of Object.keys(i))i[t].closeRe=new RegExp(o(i[t].close),"g"),f[t]={get(){const e=i[t];return m.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};f.visible={get(){return m.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(o(i.color.close),"g");for(const t of Object.keys(i.color.ansi))l.has(t)||(f[t]={get(){const e=this.level;return function(){const r={open:i.color[c[e]][t].apply(null,arguments),close:i.color.close,closeRe:i.color.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}});i.bgColor.closeRe=new RegExp(o(i.bgColor.close),"g");for(const t of Object.keys(i.bgColor.ansi))l.has(t)||(f["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const e=this.level;return function(){const r={open:i.bgColor[c[e]][t].apply(null,arguments),close:i.bgColor.close,closeRe:i.bgColor.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}});const d=Object.defineProperties((()=>{}),f);function m(t,e,r){const n=function(){return y.apply(n,arguments)};n._styles=t,n._empty=e;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(t){o.level=t}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(t){o.enabled=t}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=d,n}function y(){const t=arguments,e=t.length;let r=String(arguments[0]);if(0===e)return"";if(e>1)for(let n=1;n<e;n++)r+=" "+t[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=i.dim.open;u&&this.hasGrey&&(i.dim.open="");for(const t of this._styles.slice().reverse())r=t.open+r.replace(t.closeRe,t.open)+t.close,r=r.replace(/\r?\n/g,`${t.close}$&${t.open}`);return i.dim.open=n,r}function g(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[e.raw[0]];for(let t=1;t<e.length;t++)n.push(String(r[t-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[t]));return s(t,n.join(""))}Object.defineProperties(p.prototype,f),t.exports=p(),t.exports.supportsColor=a,t.exports.default=t.exports},5625:function(t){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(t){return"u"===t[0]&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):i.get(t)||t}function s(t,e){const r=[],i=e.trim().split(/\s*,\s*/g);let s;for(const e of i)if(isNaN(e)){if(!(s=e.match(n)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(s[2].replace(o,((t,e,r)=>e?a(e):r)))}else r.push(Number(e));return r}function u(t){r.lastIndex=0;const e=[];let n;for(;null!==(n=r.exec(t));){const t=n[1];if(n[2]){const r=s(t,n[2]);e.push([t].concat(r))}else e.push([t])}return e}function c(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const t of Object.keys(r))if(Array.isArray(r[t])){if(!(t in n))throw new Error(`Unknown Chalk style: ${t}`);n=r[t].length>0?n[t].apply(n,r[t]):n[t]}return n}t.exports=(t,r)=>{const n=[],o=[];let i=[];if(r.replace(e,((e,r,s,l,f,h)=>{if(r)i.push(a(r));else if(l){const e=i.join("");i=[],o.push(0===n.length?e:c(t,n)(e)),n.push({inverse:s,styles:u(l)})}else if(f){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(c(t,n)(i.join(""))),i=[],n.pop()}else i.push(h)})),o.push(i.join("")),n.length>0){const t=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(t)}return o.join("")}},4959:function(t,e,r){var n=r(1103),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(t){var e,r,n=t[0]/255,o=t[1]/255,i=t[2]/255,a=Math.min(n,o,i),s=Math.max(n,o,i),u=s-a;return s===a?e=0:n===s?e=(o-i)/u:o===s?e=2+(i-n)/u:i===s&&(e=4+(n-o)/u),(e=Math.min(60*e,360))<0&&(e+=360),r=(a+s)/2,[e,100*(s===a?0:r<=.5?u/(s+a):u/(2-s-a)),100*r]},a.rgb.hsv=function(t){var e,r,n,o,i,a=t[0]/255,s=t[1]/255,u=t[2]/255,c=Math.max(a,s,u),l=c-Math.min(a,s,u),f=function(t){return(c-t)/6/l+.5};return 0===l?o=i=0:(i=l/c,e=f(a),r=f(s),n=f(u),a===c?o=n-r:s===c?o=1/3+e-n:u===c&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2];return[a.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(r,n))*100,100*(n=1-1/255*Math.max(e,Math.max(r,n)))]},a.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,i,a,s=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=(i=t,a=n[u],Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c<s&&(s=c,r=u)}return r},a.keyword.rgb=function(t){return n[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),r=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(t){var e,r,n,o,i,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[i=255*u,i,i];e=2*u-(r=u<.5?u*(1+s):u+s-u*s),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,o[c]=255*i;return o},a.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),(n+r)/2*100]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),a=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(t){var e,r,n,o=t[0],i=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return n=(2-i)*a,r=i*s,[o,100*(r=(r/=(e=(2-i)*s)<=1?e:2-e)||0),100*(n/=2)]},a.hwb.rgb=function(t){var e,r,n,o,i,a,s,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(n=1-n),o=c+n*((r=1-l)-c),e){default:case 6:case 0:i=r,a=o,s=c;break;case 1:i=o,a=r,s=c;break;case 2:i=c,a=r,s=o;break;case 3:i=c,a=o,s=r;break;case 4:i=o,a=c,s=r;break;case 5:i=r,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(t){var e,r,n,o=t[0]/100,i=t[1]/100,a=t[2]/100;return r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,e=(e=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(t){var e,r,n,o=t[0];e=t[1]/500+(r=(o+16)/116),n=r-t[2]/200;var i=Math.pow(r,3),a=Math.pow(e,3),s=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},a.lab.lch=function(t){var e,r=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+o*o),e]},a.lch.lab=function(t){var e,r=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[r,n*Math.cos(e),n*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(r,n),o),a=Math.min(Math.min(r,n),o),s=i-a;return e=s<=0?0:i===r?(n-o)/s%6:i===n?2+(o-r)/s:4+(r-n)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e,r=t[1]/100,n=t[2]/100,o=0;return(e=n<.5?2*r*n:2*r*(1-n))<1&&(o=(n-.5*e)/(1-e)),[t[0],100*e,100*o]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},a.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},841:function(t,e,r){var n=r(4959),o=r(9325),i={};Object.keys(n).forEach((function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});var e=o(t);Object.keys(e).forEach((function(r){var n=e[r];i[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},9325:function(t,e,r){var n=r(4959);function o(t,e){return function(r){return e(t(r))}}function i(t,e){for(var r=[e[t].parent,t],i=n[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),i=o(n[e[a].parent][a],i),a=e[a].parent;return i.conversion=r,i}t.exports=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,o=0;o<r;o++)t[e[o]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),a=i.length,s=0;s<a;s++){var u=i[s],c=e[u];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,r.unshift(u))}return e}(t),r={},o=Object.keys(e),a=o.length,s=0;s<a;s++){var u=o[s];null!==e[u].parent&&(r[u]=i(u,e))}return r}},1103:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138:function(t,e,r){var n=r(3716),o={};t.exports=o,o.themes={};var i=r(3335),a=o.styles=r(9951),s=Object.defineProperties,u=new RegExp(/[\r\n]+/g);o.supportsColor=r(3613).supportsColor,void 0===o.enabled&&(o.enabled=!1!==o.supportsColor()),o.enable=function(){o.enabled=!0},o.disable=function(){o.enabled=!1},o.stripColors=o.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")},o.stylize=function(t,e){if(!o.enabled)return t+"";var r=a[e];return!r&&e in o?o[e](t):r.open+t+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function l(t){var e=function t(){return d.apply(t,arguments)};return e._styles=t,e.__proto__=p,e}var f,h=(f={},a.grey=a.gray,Object.keys(a).forEach((function(t){a[t].closeRe=new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(c,"\\$&")}(a[t].close),"g"),f[t]={get:function(){return l(this._styles.concat(t))}}})),f),p=s((function(){}),h);function d(){var t=Array.prototype.slice.call(arguments).map((function(t){return null!=t&&t.constructor===String?t:i.inspect(t)})).join(" ");if(!o.enabled||!t)return t;for(var e=-1!=t.indexOf("\n"),r=this._styles,n=r.length;n--;){var s=a[r[n]];t=s.open+t.replace(s.closeRe,s.open)+s.close,e&&(t=t.replace(u,(function(t){return s.close+t+s.open})))}return t}o.setTheme=function(t){if("string"!=typeof t)for(var e in t)!function(e){o[e]=function(r){if("object"==typeof t[e]){var n=r;for(var i in t[e])n=o[t[e][i]](n);return n}return o[t[e]](r)}}(e);else n.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var m=function(t,e){var r=e.split("");return(r=r.map(t)).join("")};for(var y in o.trap=r(2571),o.zalgo=r(561),o.maps={},o.maps.america=r(6393)(o),o.maps.zebra=r(4035)(o),o.maps.rainbow=r(1374)(o),o.maps.random=r(2987)(o),o.maps)!function(t){o[t]=function(e){return m(o.maps[t],e)}}(y);s(o,function(){var t={};return Object.keys(h).forEach((function(e){t[e]={get:function(){return l([e])}}})),t}())},2571:function(t){t.exports=function(t,e){var r="";t=(t=t||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return t.forEach((function(t){t=t.toLowerCase();var e=n[t]||[" "],o=Math.floor(Math.random()*e.length);r+=void 0!==n[t]?n[t][o]:t})),r}},561:function(t){t.exports=function(t,e){t=t||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function o(t){return Math.floor(Math.random()*t)}function i(t){var e=!1;return n.filter((function(r){e=r===t})),e}return function(t,e){var n,a,s="";for(a in(e=e||{}).up=void 0===e.up||e.up,e.mid=void 0===e.mid||e.mid,e.down=void 0===e.down||e.down,e.size=void 0!==e.size?e.size:"maxi",t=t.split(""))if(!i(a)){switch(s+=t[a],n={up:0,down:0,mid:0},e.size){case"mini":n.up=o(8),n.mid=o(2),n.down=o(8);break;case"maxi":n.up=o(16)+3,n.mid=o(4)+1,n.down=o(64)+3;break;default:n.up=o(8)+1,n.mid=o(6)/2,n.down=o(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],f=0;f<=n[l];f++)e[l]&&(s+=r[l][o(r[l].length)])}return s}(t,e)}},6393:function(t){t.exports=function(t){return function(e,r,n){if(" "===e)return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}},1374:function(t){t.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,o){return" "===r?r:t[e[n++%e.length]](r)}}},2987:function(t){t.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,o){return" "===r?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}},4035:function(t){t.exports=function(t){return function(e,r,n){return r%2==0?e:t.inverse(e)}}},9951:function(t){var e={};t.exports=e;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(t){var n=r[t],o=e[t]=[];o.open="["+n[0]+"m",o.close="["+n[1]+"m"}))},7946:function(t,e,r){"use strict";var n=r(4406);t.exports=function(t,e){var r=(e=e||n.argv).indexOf("--"),o=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(o+t);return-1!==i&&(-1===r||i<r)}},3613:function(t,e,r){"use strict";var n=r(4406),o=r(4055),i=r(7946),a={NODE_ENV:"production"},s=void 0;function u(t){var e=function(t){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(t&&!t.isTTY&&!0!==s)return 0;var e=s?1:0;if("win32"===n.platform){var r=o.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(t){return t in a}))||"codeship"===a.CI_NAME?1:e;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var u=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:e}(t);return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(e)}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),t.exports={supportsColor:u,stdout:u(n.stdout),stderr:u(n.stderr)}},3384:function(t,e,r){var n=r(138);t.exports=n},3716:function(t,e,r){var n=r(3335),o=r(1696);function i(){return(new Date).getTime()}var a,s=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){u[t]=i()},"time"],[function(t){var e=u[t];if(!e)throw new Error("No such label: "+t);delete u[t];var r=i()-e;a.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);o.ok(!1,n.format.apply(null,e))}},"assert"]],l=0;l<c.length;l++){var f=c[l],h=f[0],p=f[1];a[p]||(a[p]=h)}t.exports=a},5881:function(t){var e=1e3,r=60*e,n=60*r,o=24*n;function i(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var s,u,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===c&&isFinite(t))return a.long?(s=t,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=e?i(s,u,e,"second"):s+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},5130:function(t,e,r){var n=r(3716),o=r(4406);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==o&&"env"in o&&(t={NODE_ENV:"production"}.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=n.debug||n.log||(()=>{}),t.exports=r(7123)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},7123:function(t,e,r){var n=r(3716);t.exports=function(t){function e(t){let r,n=null;function i(...t){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=o,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===n?e.enabled(t):n,set:t=>{n=t}}),"function"==typeof e.init&&e.init(i),i}function o(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(i),...e.skips.map(i).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(5881),e.destroy=function(){n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},4926:function(t,e,r){"use strict";var n=r(3464),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=r(1181)(),c=s&&u,l=function(t,e,r,n){var o;(!(e in t)||"function"==typeof(o=n)&&"[object Function]"===i.call(o)&&n())&&(c?s(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)l(t,i[s],e[i[s]],r[i[s]])};f.supportsDescriptors=!!c,t.exports=f},4956:function(t){"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(o,u);void 0!==c&&c.enumerable&&(r[u]=o[u])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},8102:function(t){"use strict";var e=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}},3243:function(t,e,r){"use strict";var n=r(9680),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},u=function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===o.call(t)?a(t,e,i):"string"==typeof t?s(t,e,i):u(t,e,i)}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(r.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var h=function(){};h.prototype=i.prototype,a.prototype=new h,h.prototype=null}return a}},4090:function(t,e,r){"use strict";var n=r(7795);t.exports=Function.prototype.bind||n},7286:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=r(2636)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=h(o.prototype))}return m[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),w=v.call(Function.call,Array.prototype.concat),A=v.call(Function.apply,Array.prototype.splice),M=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),_=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,k=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return M(t,C,(function(t,e,r,o){n[n.length]=r?M(o,S,"$1"):e||t})),n},x=function(t,e){var r,n=t;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(m,n)){var i=m[n];if(i===p&&(i=y(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(t),n=r.length>0?r[0]:"",i=x("%"+n+"%",e),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],A(r,w([0,1],f)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],y=E(d,0,1),g=E(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&p||(l=!0),b(m,s="%"+(n+="."+d)+"%"))c=m[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var v=u(c,d);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else p=b(c,d),c=c[d];p&&!l&&(m[s]=c)}}return c}},1181:function(t,e,r){"use strict";var n=r(7286)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},2636:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7226:function(t,e,r){"use strict";var n=r(6679);t.exports=function(){return n()&&!!Symbol.toStringTag}},3198:function(t,e,r){"use strict";var n=r(4090);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2635:function(t,e,r){"use strict";var n=r(7226)(),o=r(2680)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=s?i:a},9680:function(t){"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(t){if((l||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},3138:function(t,e,r){"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(7226)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(i.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},7053:function(t){"use strict";t.exports=function(t){return t!=t}},4782:function(t,e,r){"use strict";var n=r(9429),o=r(4926),i=r(7053),a=r(755),s=r(5346),u=n(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},755:function(t,e,r){"use strict";var n=r(7053);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},5346:function(t,e,r){"use strict";var n=r(4926),o=r(755);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},198:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},f=i("String.prototype.slice"),h={},p=r(9765),d=Object.getPrototypeOf;s&&p&&d&&n(c,(function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=p(r,Symbol.toStringTag);if(!n){var o=d(r);n=p(o,Symbol.toStringTag)}h[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=f(a(t),8,-1);return l(c,e)>-1}return!!p&&function(t){var e=!1;return n(h,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},9095:function(t,e,r){const n=r(5618),o=r(7485),i={BRACE:"gray",BRACKET:"gray",COLON:"gray",COMMA:"gray",STRING_KEY:"magenta",STRING_LITERAL:"yellow",NUMBER_LITERAL:"green",BOOLEAN_LITERAL:"cyan",NULL_LITERAL:"white"};e.colorize=function(t,e={}){const r=e.colors||{};return t.reduce(((t,e)=>{const a=r[e.type]||i[e.type],s=a&&"#"===a[0]?n.hex(a):o(n,a);return t+(s?s(e.value):e.value)}),"")}},6190:function(t,e,r){const n=r(1024),o=r(9095);t.exports=function(t,e){return o.colorize(n.getTokens(t,e),e)}},1024:function(t,e){const r=[{regex:/^\s+/,tokenType:"WHITESPACE"},{regex:/^[{}]/,tokenType:"BRACE"},{regex:/^[[\]]/,tokenType:"BRACKET"},{regex:/^:/,tokenType:"COLON"},{regex:/^,/,tokenType:"COMMA"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"NUMBER_LITERAL"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"STRING_KEY"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"STRING_LITERAL"},{regex:/^true|^false/,tokenType:"BOOLEAN_LITERAL"},{regex:/^null/,tokenType:"NULL_LITERAL"}];function n(t,e){return(t||{}).length>0&&e}e.getTokens=function(t,e={}){let o;if(e.pretty){const e="string"==typeof t?JSON.parse(t):t;o=JSON.stringify(e,null,2)}else o="string"==typeof t?t:JSON.stringify(t);let i,a=[];do{i=!1;for(let t=0;t<r.length;t++){const e=r[t].regex.exec(o);if(e){a.push({type:r[t].tokenType,value:e[0]}),o=o.substring(e[0].length),i=!0;break}}}while(n(o,i));return a}},7485:function(t,e,r){var n,o="__lodash_hash_undefined__",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,s=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")(),d=Array.prototype,m=Function.prototype,y=Object.prototype,g=p["__core-js_shared__"],v=(n=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",b=m.toString,w=y.hasOwnProperty,A=y.toString,M=RegExp("^"+b.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=p.Symbol,_=d.splice,C=P(p,"Map"),S=P(Object,"create"),k=E?E.prototype:void 0,x=k?k.toString:void 0;function O(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function D(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function T(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function j(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function P(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){if(!$(t)||v&&v in t)return!1;var e=function(t){var e=$(t)?A.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?M:l;return e.test(function(t){if(null!=t){try{return b.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}O.prototype.clear=function(){this.__data__=S?S(null):{}},O.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},O.prototype.get=function(t){var e=this.__data__;if(S){var r=e[t];return r===o?void 0:r}return w.call(e,t)?e[t]:void 0},O.prototype.has=function(t){var e=this.__data__;return S?void 0!==e[t]:w.call(e,t)},O.prototype.set=function(t,e){return this.__data__[t]=S&&void 0===e?o:e,this},D.prototype.clear=function(){this.__data__=[]},D.prototype.delete=function(t){var e=this.__data__,r=T(e,t);return!(r<0||(r==e.length-1?e.pop():_.call(e,r,1),0))},D.prototype.get=function(t){var e=this.__data__,r=T(e,t);return r<0?void 0:e[r][1]},D.prototype.has=function(t){return T(this.__data__,t)>-1},D.prototype.set=function(t,e){var r=this.__data__,n=T(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},F.prototype.clear=function(){this.__data__={hash:new O,map:new(C||D),string:new O}},F.prototype.delete=function(t){return j(this,t).delete(t)},F.prototype.get=function(t){return j(this,t).get(t)},F.prototype.has=function(t){return j(this,t).has(t)},F.prototype.set=function(t,e){return j(this,t).set(t,e),this};var R=I((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(L(t))return x?x.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(u,(function(t,e,n,o){r.push(n?o.replace(c,"$1"):e||t)})),r}));function B(t){if("string"==typeof t||L(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function I(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(I.Cache||F),r}I.Cache=F;var N=Array.isArray;function $(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function L(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==A.call(t)}t.exports=function(t,e,r){var n=null==t?void 0:function(t,e){var r;e=function(t,e){if(N(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!L(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:N(r=e)?r:R(r);for(var n=0,o=e.length;null!=t&&n<o;)t=t[B(e[n++])];return n&&n==o?t:void 0}(t,e);return void 0===n?r:n}},8169:function(t){"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},4679:function(t,e,r){"use strict";var n=r(4926),o=r(9429),i=r(8169),a=r(8070),s=r(191),u=o(a(),Object);n(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},8070:function(t,e,r){"use strict";var n=r(8169);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},191:function(t,e,r){"use strict";var n=r(8070),o=r(4926);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5691:function(t,e,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(801),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=a(t),s=e&&"[object String]"===i.call(t),h=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&t.length>0&&!o.call(t,0))for(var m=0;m<t.length;++m)h.push(String(m));if(n&&t.length>0)for(var y=0;y<t.length;++y)h.push(String(y));else for(var g in t)d&&"prototype"===g||!o.call(t,g)||h.push(String(g));if(u)for(var v=function(t){if("undefined"==typeof window||!p)return f(t);try{return f(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)v&&"constructor"===l[b]||!o.call(t,l[b])||h.push(l[b]);return h}}t.exports=n},3464:function(t,e,r){"use strict";var n=Array.prototype.slice,o=r(801),i=Object.keys,a=i?function(t){return i(t)}:r(5691),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},801:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},4406:function(t){var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=a(f);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l<e;)s&&s[l].run();l=-1,e=u.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},2808:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,f,h,p,d=t[c].replace(a,"%20"),m=d.indexOf(n);m>=0?(l=d.substr(0,m),f=d.substr(m+1)):(l=d,f=""),h=decodeURIComponent(l),p=decodeURIComponent(f),e(i,h)?Array.isArray(i[h])?i[h].push(p):i[h]=[i[h],p]:i[h]=p}return i}},1368:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,o){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(o){var i=encodeURIComponent(e(o))+n;return Array.isArray(t[o])?t[o].map((function(t){return i+encodeURIComponent(e(t))})).join(r):i+encodeURIComponent(e(t[o]))})).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""}},6642:function(t,e,r){"use strict";e.decode=e.parse=r(2808),e.encode=e.stringify=r(1368)},4716:function(t){"use strict";t.exports=t=>{const e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}},8334:function(t){"use strict";t.exports={stdout:!1,stderr:!1}},9639:function(t,e,r){var n;t=r.nmd(t),function(o){e&&e.nodeType,t&&t.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,h={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,d=String.fromCharCode;function m(t){throw RangeError(h[t])}function y(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function g(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+y((t=t.replace(f,".")).split("."),e).join(".")}function v(t){for(var e,r,n=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function b(t){return y(t,(function(t){var e="";return t>65535&&(e+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+d(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=u)t=p(t/35);return p(n+36*t/(t+38))}function M(t){var e,r,n,o,i,a,c,l,f,h,d,y=[],g=t.length,v=0,w=128,M=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&m("not-basic"),y.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,c=u;o>=g&&m("invalid-input"),((l=(d=t.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||l>p((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=M?1:c>=M+26?26:c-M));c+=u)a>p(s/(h=u-f))&&m("overflow"),a*=h;M=A(v-i,e=y.length+1,0==i),p(v/e)>s-w&&m("overflow"),w+=p(v/e),v%=e,y.splice(v++,0,w)}return b(y)}function E(t){var e,r,n,o,i,a,c,l,f,h,y,g,b,M,E,_=[];for(g=(t=v(t)).length,e=128,r=0,i=72,a=0;a<g;++a)(y=t[a])<128&&_.push(d(y));for(n=o=_.length,o&&_.push("-");n<g;){for(c=s,a=0;a<g;++a)(y=t[a])>=e&&y<c&&(c=y);for(c-e>p((s-r)/(b=n+1))&&m("overflow"),r+=(c-e)*b,e=c,a=0;a<g;++a)if((y=t[a])<e&&++r>s&&m("overflow"),y==e){for(l=r,f=u;!(l<(h=f<=i?1:f>=i+26?26:f-i));f+=u)E=l-h,M=u-h,_.push(d(w(h+E%M,0))),l=p(E/M);_.push(d(w(l,0))),i=A(r,b,n==o),r=0,++n}++r,++e}return _.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:M,encode:E,toASCII:function(t){return g(t,(function(t){return l.test(t)?"xn--"+E(t):t}))},toUnicode:function(t){return g(t,(function(t){return c.test(t)?M(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},883:function(t,e,r){"use strict";var n=r(9639),o=r(5225);function i(){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}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return o.isString(t)&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(6642);function b(t,e,r){if(t&&o.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),s=-1!==i&&i<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var b=t=c.join(s);if(b=b.trim(),!r&&1===t.split("#").length){var w=u.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?v.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var A=a.exec(b);if(A){var M=(A=A[0]).toLowerCase();this.protocol=M,b=b.substr(A.length)}if(r||A||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===b.substr(0,2);!E||A&&y[A]||(b=b.substr(2),this.slashes=!0)}if(!y[A]&&(E||A&&!g[A])){for(var _,C,S=-1,k=0;k<h.length;k++)-1!==(x=b.indexOf(h[k]))&&(-1===S||x<S)&&(S=x);for(-1!==(C=-1===S?b.lastIndexOf("@"):b.lastIndexOf("@",S))&&(_=b.slice(0,C),b=b.slice(C+1),this.auth=decodeURIComponent(_)),S=-1,k=0;k<f.length;k++){var x;-1!==(x=b.indexOf(f[k]))&&(-1===S||x<S)&&(S=x)}-1===S&&(S=b.length),this.host=b.slice(0,S),b=b.slice(S),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var D=this.hostname.split(/\./),F=(k=0,D.length);k<F;k++){var T=D[k];if(T&&!T.match(p)){for(var j="",P=0,R=T.length;P<R;P++)T.charCodeAt(P)>127?j+="x":j+=T[P];if(!j.match(p)){var B=D.slice(0,k),I=D.slice(k+1),N=T.match(d);N&&(B.push(N[1]),I.unshift(N[2])),I.length&&(b="/"+I.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var $=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+$,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[M])for(k=0,F=l.length;k<F;k++){var U=l[k];if(-1!==b.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),b=b.split(U).join(q)}}var z=b.indexOf("#");-1!==z&&(this.hash=b.substr(z),b=b.slice(0,z));var V=b.indexOf("?");if(-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),e&&(this.query=v.parse(this.query)),b=b.slice(0,V)):e&&(this.search="",this.query={}),b&&(this.pathname=b),g[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){$=this.pathname||"";var H=this.search||"";this.path=$+H}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(o.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=t[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var p=f[h];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),A=w||b||r.host&&t.pathname,M=A,E=r.pathname&&r.pathname.split("/")||[],_=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),A=A&&(""===d[0]||""===E[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search))return _&&(r.hostname=r.host=E.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=E.slice(-1)[0],S=(r.host||t.host||E.length>1)&&("."===C||".."===C)||""===C,k=0,x=E.length;x>=0;x--)"."===(C=E[x])?E.splice(x,1):".."===C?(E.splice(x,1),k++):k&&(E.splice(x,1),k--);if(!A&&!M)for(;k--;k)E.unshift("..");!A||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var O,D=""===E[0]||E[0]&&"/"===E[0].charAt(0);return _&&(r.hostname=r.host=D?"":E.length?E.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),(A=A||r.host&&E.length)&&!D&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},5225:function(t){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},82:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},4895:function(t,e,r){"use strict";var n=r(2635),o=r(3138),i=r(2094),a=r(198);function s(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function g(t){return"[object Map]"===l(t)}function v(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function A(t){return"[object ArrayBuffer]"===l(t)}function M(t){return"undefined"!=typeof ArrayBuffer&&(A.working?A(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===l(t)}function _(t){return"undefined"!=typeof DataView&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||_(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},g.working="undefined"!=typeof Map&&g(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(g.working?g(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),e.isArrayBuffer=M,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===l(t)}function k(t){return void 0!==C&&(void 0===S.working&&(S.working=S(new C)),S.working?S(t):t instanceof C)}function x(t){return y(t,f)}function O(t){return y(t,h)}function D(t){return y(t,p)}function F(t){return u&&y(t,d)}function T(t){return c&&y(t,m)}e.isSharedArrayBuffer=k,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=x,e.isStringObject=O,e.isBooleanObject=D,e.isBigIntObject=F,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return x(t)||O(t)||D(t)||F(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(M(t)||k(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},3335:function(t,e,r){var n=r(4406),o=r(3716),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(l(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(t).replace(a,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])v(s)||!E(s)?i+=" "+s:i+=" "+l(s);return i},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),i=!0}return t.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production"}.NODE_DEBUG){var c={NODE_ENV:"production"}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}function l(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),A(n.showHidden)&&(n.showHidden=!1),A(n.depth)&&(n.depth=2),A(n.colors)&&(n.colors=!1),A(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),p(n,t,n.depth)}function f(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return w(o)||(o=p(t,o,n)),o}var i=function(t,e){if(A(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return b(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),C(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(M(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(C(r))return d(r)}var c,l="",f=!1,h=["{","}"];return y(r)&&(f=!0,h=["[","]"]),S(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),_(r)&&(l=" "+Date.prototype.toUTCString.call(r)),C(r)&&(l=" "+d(r)),0!==a.length||f&&0!=r.length?n<0?M(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=f?function(t,e,r,n,o){for(var i=[],a=0,s=e.length;a<s;++a)F(e,String(a))?i.push(m(t,e,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(m(t,e,r,n,o,!0))})),i}(t,r,n,s,a):a.map((function(e){return m(t,r,n,s,e,f)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,l,h)):h[0]+l+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function m(t,e,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),F(n,o)||(a="["+o+"]"),s||(t.seen.indexOf(u.value)<0?(s=v(r)?p(t,u.value,null):p(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),A(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function v(t){return null===t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function A(t){return void 0===t}function M(t){return E(t)&&"[object RegExp]"===k(t)}function E(t){return"object"==typeof t&&null!==t}function _(t){return E(t)&&"[object Date]"===k(t)}function C(t){return E(t)&&("[object Error]"===k(t)||t instanceof Error)}function S(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(u.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);o.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(4895),e.isArray=y,e.isBoolean=g,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=A,e.isRegExp=M,e.types.isRegExp=M,e.isObject=E,e.isDate=_,e.types.isDate=_,e.isError=C,e.types.isNativeError=C,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(82);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),O[t.getMonth()],e].join(" ")}function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){o.log("%s - %s",D(),e.format.apply(e,arguments))},e.inherits=r(1285),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=T,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var o=e.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(j.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},2094:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("String.prototype.slice"),f={},h=r(9765),p=Object.getPrototypeOf;s&&h&&p&&n(c,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=p(e),n=h(r,Symbol.toStringTag);if(!n){var o=p(r);n=h(o,Symbol.toStringTag)}f[t]=n.get}}}));var d=r(198);t.exports=function(t){return!!d(t)&&(s&&Symbol.toStringTag in t?function(t){var e=!1;return n(f,(function(r,n){if(!e)try{var o=r.call(t);o===n&&(e=o)}catch(t){}})),e}(t):l(a(t),8,-1))}},6010:function(t,e,r){"use strict";const n=r(6777),o=r(7445),i=r(5106),a=r(4135),s=r(9462),u=r(2850),c=r(7913),l=r(9101),f=r(4468),h=r(9198),p=r(644),d=r(6178),m=r(6746),y=r(8098);t.exports={BaseException:n,BaseFileException:o,FileDownloader:i,CompositeFileLoader:a,DefaultFileLoader:s,GitHubFileLoader:u,HTTPFileLoader:c,Writer:l,FileWriter:f,InMemoryWriter:p,ModelWriter:h,Logger:d,TypedStack:m,Label:y}},4055:function(){},2203:function(){},5783:function(){},2191:function(t,e,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof o[n[e]]&&(t[t.length]=n[e]);return t}},9765:function(t,e,r){"use strict";var n=r(7286)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},4147:function(t){"use strict";t.exports=JSON.parse('{"name":"@accordproject/concerto-util","version":"3.0.0","description":"Utilities for Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","browser":"dist/concerto-util.js","typings":"types/index.d.ts","scripts":{"prepublishOnly":"webpack --config webpack.config.js --mode production","pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-util"},"keywords":["blockchain","hyperledger","solutions"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","eslint":"8.2.0","jsdoc":"^3.6.7","license-check-and-add":"2.3.6","mocha":"10.0.0","moxios":"0.4.0","node-polyfill-webpack-plugin":"2.0.1","nyc":"15.1.0","tmp-promise":"3.0.2","typescript":"4.6.3"},"dependencies":{"@supercharge/promise-pool":"1.7.0","axios":"0.23.0","colors":"1.4.0","debug":"4.3.1","json-colorizer":"2.2.2","slash":"3.0.0"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","LICENSE","node_modules",".nyc-output","out",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"all":true,"check-coverage":true,"statements":99,"branches":93,"functions":98,"lines":99}}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r(6010)}()},334:function(t){"use strict";t.exports=JSON.parse('{"$class":"concerto.metamodel@1.0.0.Model","decorators":[{"$class":"concerto.metamodel@1.0.0.Decorator","name":"DotNetNamespace","arguments":[{"$class":"concerto.metamodel@1.0.0.DecoratorString","value":"AccordProject.Concerto.Metamodel"}]}],"namespace":"concerto.metamodel@1.0.0","imports":[],"declarations":[{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Position","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"line","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"column","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"offset","isArray":false,"isOptional":false}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Range","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"start","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"end","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"source","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"TypeIdentifier","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorLiteral","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorString","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorNumber","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorBoolean","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorTypeReference","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"defaultValue":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Decorator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"arguments","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Identified","isAbstract":false,"properties":[]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IdentifiedBy","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Identified"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Declaration","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EnumDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"EnumProperty"},"isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EnumProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ConceptDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isAbstract","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"identified","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Identified"},"isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"superType","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"},"isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"AssetDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ParticipantDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"TransactionDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EventDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Property","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isOptional","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"RelationshipProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ObjectProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"BooleanProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"defaultValue","isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DateTimeProperty","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"StringProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"StringRegexValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"StringRegexValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"pattern","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"flags","isArray":false,"isOptional":false}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DoubleProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DoubleDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DoubleDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IntegerProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"IntegerDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IntegerDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"LongProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"LongDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"LongDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Import","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"uri","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportAll","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportType","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportTypes","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"types","isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Model","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"sourceUri","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"concertoVersion","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"imports","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"declarations","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Models","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"models","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Model"},"isArray":true,"isOptional":false}]}]}')}},o={},function t(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={exports:{}};return n[e](i,i.exports,t),i.exports}(10))},5076:function(t,e,r){"use strict";const n=r(9058);t.exports={MetaModelUtil:n,MetaModelNamespace:"concerto.metamodel@1.0.0"}},9058:function(t,e,r){"use strict";const n=r(5334),o="concerto.metamodel@1.0.0",i=`@DotNetNamespace("AccordProject.Concerto.Metamodel")\nnamespace ${o}\n\nconcept Position {\n o Integer line\n o Integer column\n o Integer offset\n}\nconcept Range {\n o Position start\n o Position end\n o String source optional\n}\n\nconcept TypeIdentifier {\n o String name\n o String namespace optional\n}\n\nabstract concept DecoratorLiteral {\n o Range location optional\n}\n\nconcept DecoratorString extends DecoratorLiteral {\n o String value\n}\n\nconcept DecoratorNumber extends DecoratorLiteral {\n o Double value\n}\n\nconcept DecoratorBoolean extends DecoratorLiteral {\n o Boolean value\n}\n\nconcept DecoratorTypeReference extends DecoratorLiteral {\n o TypeIdentifier type\n o Boolean isArray default=false\n}\n\nconcept Decorator {\n o String name\n o DecoratorLiteral[] arguments optional\n o Range location optional\n}\n\nconcept Identified {\n}\n\nconcept IdentifiedBy extends Identified {\n o String name\n}\n\nabstract concept Declaration {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept EnumDeclaration extends Declaration {\n o EnumProperty[] properties\n}\n\nconcept EnumProperty {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept ConceptDeclaration extends Declaration {\n o Boolean isAbstract default=false\n o Identified identified optional\n o TypeIdentifier superType optional\n o Property[] properties\n}\n\nconcept AssetDeclaration extends ConceptDeclaration {\n}\n\nconcept ParticipantDeclaration extends ConceptDeclaration {\n}\n\nconcept TransactionDeclaration extends ConceptDeclaration {\n}\n\nconcept EventDeclaration extends ConceptDeclaration {\n}\n\nabstract concept Property {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Boolean isArray default=false\n o Boolean isOptional default=false\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept RelationshipProperty extends Property {\n o TypeIdentifier type\n}\n\nconcept ObjectProperty extends Property {\n o String defaultValue optional\n o TypeIdentifier type\n}\n\nconcept BooleanProperty extends Property {\n o Boolean defaultValue optional\n}\n\nconcept DateTimeProperty extends Property {\n}\n\nconcept StringProperty extends Property {\n o String defaultValue optional\n o StringRegexValidator validator optional\n}\n\nconcept StringRegexValidator {\n o String pattern\n o String flags\n}\n\nconcept DoubleProperty extends Property {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept DoubleDomainValidator {\n o Double lower optional\n o Double upper optional\n}\n\nconcept IntegerProperty extends Property {\n o Integer defaultValue optional\n o IntegerDomainValidator validator optional\n}\n\nconcept IntegerDomainValidator {\n o Integer lower optional\n o Integer upper optional\n}\n\nconcept LongProperty extends Property {\n o Long defaultValue optional\n o LongDomainValidator validator optional\n}\n\nconcept LongDomainValidator {\n o Long lower optional\n o Long upper optional\n}\n\nabstract concept Import {\n o String namespace\n o String uri optional\n}\n\nconcept ImportAll extends Import {\n}\n\nconcept ImportType extends Import {\n o String name\n}\n\nconcept ImportTypes extends Import {\n o String[] types\n}\n\nconcept Model {\n o String namespace\n o String sourceUri optional\n o String concertoVersion optional\n o Import[] imports optional\n o Declaration[] declarations optional\n o Decorator[] decorators optional\n}\n\nconcept Models {\n o Model[] models\n}\n`;function a(t,e){if(!e[t])throw new Error(`Name ${t} not found`);return e[t]}function s(t,e){switch(t.$class){case`${o}.Model`:t.declarations&&t.declarations.forEach((t=>{s(t,e)}));break;case`${o}.AssetDeclaration`:case`${o}.ConceptDeclaration`:case`${o}.EventDeclaration`:case`${o}.TransactionDeclaration`:case`${o}.ParticipantDeclaration`:if(t.superType){const r=t.superType.name;t.superType.namespace=a(r,e)}t.properties.forEach((t=>{s(t,e)})),t.decorators&&t.decorators.forEach((t=>{s(t,e)}));break;case`${o}.EnumDeclaration`:t.decorators&&t.decorators.forEach((t=>{s(t,e)}));break;case`${o}.EnumProperty`:case`${o}.ObjectProperty`:case`${o}.RelationshipProperty`:{const r=t.type.name;t.type.namespace=a(r,e),t.decorators&&t.decorators.forEach((t=>{s(t,e)}))}break;case`${o}.Decorator`:t.arguments&&t.arguments.forEach((t=>{s(t,e)}));break;case`${o}.DecoratorTypeReference`:{const r=t.type.name;t.type.namespace=a(r,e)}}return t}function u(t,e){const r=JSON.parse(JSON.stringify(e)),n=function(t,e){const r="concerto@1.0.0",n={Concept:r,Asset:r,Participant:r,"Transaction ":r,Event:r};return e.imports.forEach((e=>{const r=e.namespace,i=function(t,e){return t.models.find((t=>t.namespace===e))}(t,r);if(e.$class===`${o}.ImportType`){if(a=i,s=e.name,!a.declarations.find((t=>t.name===s)))throw new Error(`Declaration ${e.name} in namespace ${r} not found`);n[e.name]=r}else i.declarations.forEach((t=>{n[t.name]=r}));var a,s})),e.declarations&&e.declarations.forEach((t=>{n[t.name]=e.namespace})),n}(t,e);return s(r,n),r}function c(t){const e=[];switch(t.$class){case`${o}.ImportAll`:e.push(`${t.namespace}.*`);break;case`${o}.ImportType`:e.push(`${t.namespace}.${t.name}`);break;case`${o}.ImportTypes`:t.types.forEach((r=>{e.push(`${t.namespace}.${r}`)}));break;default:throw new Error(`Unrecognized imports ${t.$class}`)}return e}t.exports={metaModelAst:n,metaModelCto:i,resolveLocalNames:u,resolveLocalNamesForAll:function(t){const e={$class:`${o}.Models`,models:[]};return t.models.forEach((r=>{const n=u(t,r);e.models.push(n)})),e},importFullyQualifiedNames:c,getExternalImports:function(t){const e={};return t.imports&&t.imports.forEach((t=>{const r=c(t);t.uri&&(e[r[0]]=t.uri)})),e}}},3133:function(t){self,t.exports=function(){var t={1036:function(t,e,r){"use strict";const n=r(4572);t.exports=n.PromisePool},9789:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolError=void 0;class r extends Error{constructor(t,e){super(),this.item=e,this.name=this.constructor.name,this.message=this.messageFrom(t),Error.captureStackTrace(this,this.constructor)}static createFrom(t,e){return new this(t,e)}messageFrom(t){return t instanceof Error||"object"==typeof t?t.message:"string"==typeof t||"number"==typeof t?t.toString():""}}e.PromisePoolError=r},6205:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolExecutor=void 0;const n=r(9789);e.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}for(t){return this.items=t,this}withHandler(t){return this.handler=t,this}handleError(t){return this.errorHandler=t,this}hasReachedConcurrencyLimit(){return this.activeCount()>=this.concurrency}activeCount(){return this.tasks.length}async start(){return this.validateInputs(),await this.process()}validateInputs(){if("function"!=typeof this.handler)throw new Error("The first parameter for the .process(fn) method must be a function");if(!("number"==typeof this.concurrency&&this.concurrency>=1))throw new TypeError(`"concurrency" must be a number, 1 or up. Received "${this.concurrency}" (${typeof this.concurrency})`);if(!Array.isArray(this.items))throw new TypeError('"items" must be an array. Received '+typeof this.items);if(this.errorHandler&&"function"!=typeof this.errorHandler)throw new Error("The error handler must be a function. Received "+typeof this.errorHandler)}async process(){for(const t of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(t);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(t){const e=this.createTaskFor(t).then((t=>{this.results.push(t),this.tasks.splice(this.tasks.indexOf(e),1)})).catch((r=>{if(this.tasks.splice(this.tasks.indexOf(e),1),this.errorHandler)return this.errorHandler(r,t);this.errors.push(n.PromisePoolError.createFrom(r,t))}));this.tasks.push(e)}async createTaskFor(t){return this.handler(t)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},4572:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePool=void 0;const n=r(6205);class o{constructor(t){this.concurrency=10,this.items=null!=t?t:[],this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}static withConcurrency(t){return(new this).withConcurrency(t)}for(t){return new o(t).withConcurrency(this.concurrency)}static for(t){return(new this).for(t)}handleError(t){return this.errorHandler=t,this}async process(t){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(t).handleError(this.errorHandler).for(this.items).start()}}e.PromisePool=o},9640:function(t,e,r){"use strict";t=r.nmd(t);const n=r(841),o=(t,e)=>function(){return`[${t.apply(n,arguments)+e}m`},i=(t,e)=>function(){const r=t.apply(n,arguments);return`[${38+e};5;${r}m`},a=(t,e)=>function(){const r=t.apply(n,arguments);return`[${38+e};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(const r of Object.keys(e)){const n=e[r];for(const r of Object.keys(n)){const o=n[r];e[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=e[r],t.set(o[0],o[1])}Object.defineProperty(e,r,{value:n,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}const r=t=>t,s=(t,e,r)=>[t,e,r];e.color.close="",e.bgColor.close="",e.color.ansi={ansi:o(r,0)},e.color.ansi256={ansi256:i(r,0)},e.color.ansi16m={rgb:a(s,0)},e.bgColor.ansi={ansi:o(r,10)},e.bgColor.ansi256={ansi256:i(r,10)},e.bgColor.ansi16m={rgb:a(s,10)};for(let t of Object.keys(n)){if("object"!=typeof n[t])continue;const r=n[t];"ansi16"===t&&(t="ansi"),"ansi16"in r&&(e.color.ansi[t]=o(r.ansi16,0),e.bgColor.ansi[t]=o(r.ansi16,10)),"ansi256"in r&&(e.color.ansi256[t]=i(r.ansi256,0),e.bgColor.ansi256[t]=i(r.ansi256,10)),"rgb"in r&&(e.color.ansi16m[t]=a(r.rgb,0),e.bgColor.ansi16m[t]=a(r.rgb,10))}return e}})},1696:function(t,e,r){"use strict";var n=r(4406),o=r(3716);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a,s,u=r(7515).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,d=r(4082),m=r(3335).inspect,y=r(3335).types,g=y.isPromise,v=y.isRegExp,b=Object.assign?Object.assign:r(4956).assign,w=Object.is?Object.is:r(4679);function A(){var t=r(6796);a=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var M=!1,E=t.exports=k,_={};function C(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function S(t,e,r,n){if(!r){var o=!1;if(0===e)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw i.generatedMessage=o,i}}function k(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[k,e.length].concat(e))}E.fail=function t(e,r,i,a,s){var u,c=arguments.length;if(0===c?u="Failed":1===c?(i=e,e=void 0):(!1===M&&(M=!0,(n.emitWarning?n.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(a="!=")),i instanceof Error)throw i;var l={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==i&&(l.message=i);var f=new d(l);throw u&&(f.message=u,f.generatedMessage=!0),f},E.AssertionError=d,E.ok=k,E.equal=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e!=r&&C({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},E.notEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e==r&&C({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},E.deepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)||C({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},E.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},E.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)||C({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},E.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},E.strictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)||C({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},E.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)&&C({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var x=function t(e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&v(e[t])&&e[t].test(n[t])?o[t]=n[t]:o[t]=e[t])}))};function O(t,e,r,n,o,i){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new x(t,o),u=new x(e,o,t),c=new d({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=t,c.expected=e,c.operator=i.name,c}C({actual:t,expected:e,message:n,operator:i.name,stackStartFn:i})}}function D(t,e,r,n){if("function"!=typeof e){if(v(e))return e.test(t);if(2===arguments.length)throw new l("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var o=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var s=Object.keys(e);if(e instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",e,"may not be an empty object");return void 0===a&&A(),s.forEach((function(o){"string"==typeof t[o]&&v(e[o])&&e[o].test(t[o])||O(t,e,o,r,s,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function F(t){if("function"!=typeof t)throw new l("fn","Function",t);try{t()}catch(t){return t}return _}function T(t){return g(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!T(e=t()))throw new h("instance of Promise","promiseFn",e)}else{if(!T(t))throw new l("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return _})).catch((function(t){return t}))}))}function P(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(e===_){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";C({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:t})}if(r&&!D(e,r,n,t))throw e}function R(t,e,r,n){if(e!==_){if("string"==typeof r&&(n=r,r=void 0),!r||D(e,r)){var o=n?": ".concat(n):".",i="doesNotReject"===t.name?"rejection":"exception";C({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function B(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[B,e.length].concat(e))}E.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];P.apply(void 0,[t,F(e)].concat(n))},E.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return P.apply(void 0,[t,e].concat(n))}))},E.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];R.apply(void 0,[t,F(e)].concat(n))},E.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return R.apply(void 0,[t,e].concat(n))}))},E.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=m(e);var n=new d({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},E.strict=b(B,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},4082:function(t,e,r){"use strict";var n=r(4406);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},s(t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return c=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},c.apply(null,arguments)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var p=r(3335).inspect,d=r(7515).codes.ERR_INVALID_ARG_TYPE;function m(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var y="",g="",v="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function M(t){return p(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==h(t)||null===t)throw new d("options","Object",t);var o=t.message,s=t.operator,u=t.stackStartFn,c=t.actual,l=t.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=i(this,f(e).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",g="",b="",v=""):(y="",g="",b="",v="")),"object"===h(c)&&null!==c&&"object"===h(l)&&null!==l&&"stack"in c&&c instanceof Error&&"stack"in l&&l instanceof Error&&(c=A(c),l=A(l)),"deepStrictEqual"===s||"strictEqual"===s)r=i(this,f(e).call(this,function(t,e,r){var o="",i="",a=0,s="",u=!1,c=M(t),l=c.split("\n"),f=M(e).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var A=l[0].length+f[0].length;if(A<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&A<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var E=l[l.length-1],_=f[f.length-1];E===_&&(p++<2?s="\n ".concat(E).concat(s):o=E,l.pop(),f.pop(),0!==l.length&&0!==f.length);)E=l[l.length-1],_=f[f.length-1];var C=Math.max(l.length,f.length);if(0===C){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(y,"...").concat(b);S.length>27;)S.pop();return"".concat(w.notIdentical,"\n\n").concat(S.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(b).concat(s),u=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var k=0,x=w[r]+"\n".concat(g,"+ actual").concat(b," ").concat(v,"- expected").concat(b),O=" ".concat(y,"...").concat(b," Lines skipped");for(p=0;p<C;p++){var D=p-a;if(l.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(f[p-2]),k++),i+="\n ".concat(f[p-1]),k++),a=p,o+="\n".concat(v,"-").concat(b," ").concat(f[p]),k++;else if(f.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(l[p]),k++;else{var F=f[p],T=l[p],j=T!==F&&(!m(T,",")||T.slice(0,-1)!==F);j&&m(F,",")&&F.slice(0,-1)===T&&(j=!1,T+=","),j?(D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(T),o+="\n".concat(v,"-").concat(b," ").concat(F),k+=2):(i+=o,o="",1!==D&&0!==p||(i+="\n ".concat(T),k++))}if(k>20&&p<C-2)return"".concat(x).concat(O,"\n").concat(i,"\n").concat(y,"...").concat(b).concat(o,"\n")+"".concat(y,"...").concat(b)}return"".concat(x).concat(u?O:"","\n").concat(i).concat(o).concat(s).concat(d)}(c,l,s)));else if("notDeepStrictEqual"===s||"notStrictEqual"===s){var E=w[s],_=M(c).split("\n");if("notStrictEqual"===s&&"object"===h(c)&&null!==c&&(E=w.notStrictEqualObject),_.length>30)for(_[26]="".concat(y,"...").concat(b);_.length>27;)_.pop();r=1===_.length?i(this,f(e).call(this,"".concat(E," ").concat(_[0]))):i(this,f(e).call(this,"".concat(E,"\n\n").concat(_.join("\n"),"\n")))}else{var C=M(c),S="",k=w[s];"notDeepEqual"===s||"notEqual"===s?(C="".concat(w[s],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(S="".concat(M(l)),C.length>512&&(C="".concat(C.slice(0,509),"...")),S.length>512&&(S="".concat(S.slice(0,509),"...")),"deepEqual"===s||"equal"===s?C="".concat(k,"\n\n").concat(C,"\n\nshould equal\n\n"):S=" ".concat(s," ").concat(S)),r=i(this,f(e).call(this,"".concat(C).concat(S)))}return Error.stackTraceLimit=p,r.generatedMessage=!o,Object.defineProperty(a(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=l,r.operator=s,Error.captureStackTrace&&Error.captureStackTrace(a(r),u),r.stack,r.name="AssertionError",i(r)}var r,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),r=e,s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(t,e){return p(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],s&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,s),e}(s(Error));t.exports=E},7515:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}var a,s,u={};function c(t,e,r){r||(r=Error);var a=function(r){function a(r,i,s){var u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),u=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,o(a).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,i,s))),u.code=t,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(a,r),a}(r);u[t]=a}function l(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(t,e,o){var i,s,u,c,f;if(void 0===a&&(a=r(1696)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(i," ").concat(l(e,"type"));else{var h=("number"!=typeof f&&(f=0),f+".".length>(c=t).length||-1===c.indexOf(".",f)?"argument":"property");u='The "'.concat(t,'" ').concat(h," ").concat(i," ").concat(l(e,"type"))}return u+". Received type ".concat(n(o))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(3335));var o=s.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=r(1696)),a(e.length>0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),t.exports.codes=u},6796:function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var i=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},s=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},u=Object.is?Object.is:r(4679),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4782);function f(t){return t.call.bind(t)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(3335).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,v=m.isDate,b=m.isMap,w=m.isRegExp,A=m.isSet,M=m.isNativeError,E=m.isBoxedPrimitive,_=m.isNumberObject,C=m.isStringObject,S=m.isBooleanObject,k=m.isBigIntObject,x=m.isSymbolObject,O=m.isFloat32Array,D=m.isFloat64Array;function F(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function T(t){return Object.keys(t).filter(F).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function j(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0}function P(t,e,r,n){if(t===e)return 0!==t||!r||u(t,e);if(r){if("object"!==o(t))return"number"==typeof t&&l(t)&&l(e);if("object"!==o(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==o(t))return(null===e||"object"!==o(e))&&t==e;if(null===e||"object"!==o(e))return!1}var a,s,c,f,h=d(t);if(h!==d(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var p=T(t),m=T(e);return p.length===m.length&&B(t,e,r,n,1,p)}if("[object Object]"===h&&(!b(t)&&b(e)||!A(t)&&A(e)))return!1;if(v(t)){if(!v(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||(c=t,f=e,!(i?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(M(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(g(t)){if(r||!O(t)&&!D(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===j(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var F=T(t),P=T(e);return F.length===P.length&&B(t,e,r,n,0,F)}if(A(t))return!(!A(e)||t.size!==e.size)&&B(t,e,r,n,2);if(b(t))return!(!b(e)||t.size!==e.size)&&B(t,e,r,n,3);if(y(t)){if(s=e,(a=t).byteLength!==s.byteLength||0!==j(new Uint8Array(a),new Uint8Array(s)))return!1}else if(E(t)&&!function(t,e){return _(t)?_(e)&&u(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):C(t)?C(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):S(t)?S(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):k(t)?k(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):x(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return B(t,e,r,n,0)}function R(t,e){return e.filter((function(e){return p(t,e)}))}function B(t,e,r,n,o,i){if(5===arguments.length){i=Object.keys(t);var a=Object.keys(e);if(i.length!==a.length)return!1}for(var s=0;s<i.length;s++)if(!h(e,i[s]))return!1;if(r&&5===arguments.length){var u=c(t);if(0!==u.length){var l=0;for(s=0;s<u.length;s++){var f=u[s];if(p(t,f)){if(!p(e,f))return!1;i.push(f),l++}else if(p(e,f))return!1}var d=c(e);if(u.length!==d.length&&R(e,d).length!==l)return!1}else{var m=c(e);if(0!==m.length&&0!==R(e,m).length)return!1}}if(0===i.length&&(0===o||1===o&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(t);if(void 0!==y){var g=n.val2.get(e);if(void 0!==g)return y===g}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var v=q(t,e,r,i,n,o);return n.val1.delete(t),n.val2.delete(e),v}function I(t,e,r,n){for(var o=a(t),i=0;i<o.length;i++){var s=o[i];if(P(e,s,r,n))return t.delete(s),!0}return!1}function N(t){switch(o(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function $(t,e,r){var n=N(r);return null!=n?n:e.has(n)&&!t.has(n)}function L(t,e,r,n,o){var i=N(r);if(null!=i)return i;var a=e.get(i);return!(void 0===a&&!e.has(i)||!P(n,a,!1,o))&&!t.has(i)&&P(n,a,!1,o)}function U(t,e,r,n,o,i){for(var s=a(t),u=0;u<s.length;u++){var c=s[u];if(P(r,c,o,i)&&P(n,e.get(c),o,i))return t.delete(c),!0}return!1}function q(t,e,r,i,u,c){var l=0;if(2===c){if(!function(t,e,r,n){for(var i=null,s=a(t),u=0;u<s.length;u++){var c=s[u];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!e.has(c)){if(r)return!1;if(!$(t,e,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var l=a(e),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!I(i,h,r,n))return!1}else if(!r&&!t.has(h)&&!I(i,h,r,n))return!1}return 0===i.size}return!0}(t,e,r,u))return!1}else if(3===c){if(!function(t,e,r,i){for(var a=null,u=s(t),c=0;c<u.length;c++){var l=n(u[c],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=e.get(f);if(void 0===p&&!e.has(f)||!P(h,p,r,i)){if(r)return!1;if(!L(t,e,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var d=s(e),m=0;m<d.length;m++){var y=n(d[m],2),g=(f=y[0],y[1]);if("object"===o(f)&&null!==f){if(!U(a,t,f,g,r,i))return!1}else if(!(r||t.has(f)&&P(t.get(f),g,!1,i)||U(a,t,f,g,!1,i)))return!1}return 0===a.size}return!0}(t,e,r,u))return!1}else if(1===c)for(;l<t.length;l++){if(!h(t,l)){if(h(e,l))return!1;for(var f=Object.keys(t);l<f.length;l++){var p=f[l];if(!h(e,p)||!P(t[p],e[p],r,u))return!1}return f.length===Object.keys(e).length}if(!h(e,l)||!P(t[l],e[l],r,u))return!1}for(l=0;l<i.length;l++){var d=i[l];if(!P(t[d],e[d],r,u))return!1}return!0}t.exports={isDeepEqual:function(t,e){return P(t,e,!1)},isDeepStrictEqual:function(t,e){return P(t,e,!0)}}},9644:function(t,e,r){t.exports=r(5644)},353:function(t,e,r){"use strict";var n=r(3044),o=r(6955),i=r(2233),a=r(8030),s=r(7948),u=r(1875),c=r(842),l=r(8618),f=r(1439),h=r(6714);t.exports=function(t){return new Promise((function(e,r){var p,d=t.data,m=t.headers,y=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}n.isFormData(d)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var A=s(t.baseURL,t.url);function M(){if(v){var n="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:t,request:v};o((function(t){e(t),g()}),(function(t){r(t),g()}),i),v=null}}if(v.open(t.method.toUpperCase(),a(A,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=M:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(M)},v.onabort=function(){v&&(r(l("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){r(l("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var E=(t.withCredentials||c(A))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;E&&(m[t.xsrfHeaderName]=E)}"setRequestHeader"in v&&n.forEach(m,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete m[e]:v.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),y&&"json"!==y&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){v&&(r(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),d||(d=null),v.send(d)}))}},5644:function(t,e,r){"use strict";var n=r(3044),o=r(3644),i=r(2215),a=r(2937),s=function t(e){var r=new i(e),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return t(a(e,r))},s}(r(1439));s.Axios=i,s.Cancel=r(6714),s.CancelToken=r(4089),s.isCancel=r(8041),s.VERSION=r(9241).version,s.all=function(t){return Promise.all(t)},s.spread=r(783),s.isAxiosError=r(5587),t.exports=s,t.exports.default=s},6714:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4089:function(t,e,r){"use strict";var n=r(6714);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},8041:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},2215:function(t,e,r){"use strict";var n=r(3044),o=r(8030),i=r(946),a=r(6895),s=r(2937),u=r(7525),c=u.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;r.length;){var h=r.shift(),p=r.shift();try{f=h(f)}catch(t){p(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=l},946:function(t,e,r){"use strict";var n=r(3044);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},7948:function(t,e,r){"use strict";var n=r(9192),o=r(8762);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},8618:function(t,e,r){"use strict";var n=r(1935);t.exports=function(t,e,r,o,i){var a=new Error(t);return n(a,e,r,o,i)}},6895:function(t,e,r){"use strict";var n=r(3044),o=r(8556),i=r(8041),a=r(1439),s=r(6714);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},1935:function(t){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},2937:function(t,e,r){"use strict";var n=r(3044);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function i(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function a(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function s(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function u(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||i,o=e(t);n.isUndefined(o)&&e!==u||(r[t]=o)})),r}},6955:function(t,e,r){"use strict";var n=r(8618);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8556:function(t,e,r){"use strict";var n=r(3044),o=r(1439);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,(function(r){t=r.call(i,t,e)})),t}},1439:function(t,e,r){"use strict";var n=r(4406),o=r(3044),i=r(8868),a=r(1935),s={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(c=r(353)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)||e&&"application/json"===e["Content-Type"]?(u(e,"application/json"),function(t,e,r){if(o.isString(t))try{return(0,JSON.parse)(t),o.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||l.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){l.headers[t]=o.merge(s)})),t.exports=l},9241:function(t){t.exports={version:"0.23.0"}},3644:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},8030:function(t,e,r){"use strict";var n=r(3044);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(n.isURLSearchParams(e))i=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},8762:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},2233:function(t,e,r){"use strict";var n=r(3044);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},5587:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},842:function(t,e,r){"use strict";var n=r(3044);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},8868:function(t,e,r){"use strict";var n=r(3044);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},1875:function(t,e,r){"use strict";var n=r(3044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,a={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},783:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},7525:function(t,e,r){"use strict";var n=r(3716),o=r(9241).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var a={};i.transitional=function(t,e,r){function i(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,s){if(!1===t)throw new Error(i(o," has been removed"+(e?" in "+e:"")));return e&&!a[o]&&(a[o]=!0,n.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,s)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var s=t[i],u=void 0===s||a(s,i,t);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:i}},3044:function(t,e,r){"use strict";var n=r(3644),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):i(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return e},extend:function(t,e,r){return l(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},6777:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)},a(t)}function s(t,e,r){return s=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&c(o,r.prototype),o},s.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=r(4147),h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,r,n=(e=a,r=u(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o(this,t)});function a(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(r=n.call(this,t)).component=e||f.name,r.name=r.constructor.name,r.message=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i(r),r.constructor),r}return a}(a(Error));t.exports=h},7445:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e,r,n,o){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(i=s.call(this,r||t,o)).fileLocation=e,i.shortMessage=t,i.fileName=n,i}return(e=[{key:"getFileLocation",value:function(){return this.fileLocation}},{key:"getShortMessage",value:function(){return this.shortMessage}},{key:"getFileName",value:function(){return this.fileName}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(r(6777));t.exports=s},5106:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=r(5130)("concerto:FileDownloader"),u=r(1036),c=function(t){var e;return(e=[]).concat.apply(e,function(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t))},l=function(t){return t.filter(Boolean)},f=function(){var t=i(regeneratorRuntime.mark((function t(e,r){var n,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.response&&e.response.status&&200!==e.response.status,o=e.code&&"ENOTFOUND"===e.code,!n&&!o){t.next=6;break}throw(i=new Error("Unable to download external model dependency '".concat(r.url,"'"))).code="MISSING_DEPENDENCY",i;case 6:throw new Error("Failed to load model file. Job: "+r.url+" Details: "+e);case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),h=function(){function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;n(this,t),this.fileLoader=e,this.concurrency=o,this.getExternalImports=r}var e;return e=[{key:"downloadExternalDependencies",value:function(t,e){var r=this;s("downloadExternalDependencies");var n=new Set;e||(e={});var o=c(t.map((function(t){var o=r.getExternalImports(t);return Object.keys(o).map((function(t){return{downloadedUris:n,url:o[t],options:e}}))})));return u.withConcurrency(this.concurrency).for(o).handleError(f).process((function(t){return r.runJob(t,r.fileLoader)})).then((function(t){var e=t.results;return l(c(e))}))}},{key:"runJob",value:function(t,e){var r=this,n=t.downloadedUris,o=t.options,a=t.url;return n.add(a),s("runJob","Loading",a),e.load(a,o).then(function(){var t=i(regeneratorRuntime.mark((function t(i){var h,p,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s("runJob","Loaded",a),h=r.getExternalImports(i),p=Array.from(new Set(Object.keys(h).map((function(t){return h[t]})))),s("runJob","importedUris",p),t.next=6,u.withConcurrency(r.concurrency).for(p).handleError(f).process((function(t){if(!n.has(t))return r.runJob({options:o,url:t,downloadedUris:n},e)})).then((function(t){var e=t.results;return l(c(e))}));case 6:return d=t.sent,t.abrupt("return",d.concat([i]));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=h},4468:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(2203),l=r(5783),f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(f,t);var e,r,n,i=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=i.call(this)).outputDirectory=t,e.relativeDir=null,e.fileName=null,c.mkdirSync(t,{recursive:!0}),e}return(e=[{key:"openFile",value:function(t){this.fileName=t,this.relativeDir=null}},{key:"openRelativeFile",value:function(t,e){this.relativeDir=t,this.fileName=e}},{key:"writeLine",value:function(t,e){if(!this.fileName)throw Error("File has not been opened!");o(u(f.prototype),"writeLine",this).call(this,t,e)}},{key:"writeBeforeLine",value:function(t,e){if(!this.fileName)throw Error("File has not been opened!");o(u(f.prototype),"writeBeforeLine",this).call(this,t,e)}},{key:"closeFile",value:function(){if(!this.fileName)throw new Error("No file open");var t=this.outputDirectory;this.relativeDir&&(t=l.resolve(t,this.relativeDir)),t=l.resolve(t,this.fileName),c.mkdirSync(l.dirname(t),{recursive:!0}),c.writeFileSync(t,this.getBuffer()),this.fileName=null,this.relativeDir=null,this.clearBuffer()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(f.prototype,e),f}(r(9101));t.exports=f},644:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this)).fileName="",t.data=new Map,t}return(e=[{key:"openFile",value:function(t){this.fileName=t}},{key:"closeFile",value:function(){this.data.set(this.fileName,this.getBuffer()),this.clearBuffer()}},{key:"getFilesInMemory",value:function(){return this.data}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(r(9101));t.exports=s},8098:function(t){"use strict";t.exports={labelToSentence:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([a-z])/g," $1$2").replace(/ +/g," ").replace(/^./,(function(t){return t.toUpperCase()})).trim()},sentenceToLabel:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/[^A-Za-z0-9_-]+/);return t.forEach((function(e,r){t[r]=t[r].replace(/^./,(function(t){return t.toUpperCase()}))})),t.join("").replace(/^./,(function(t){return t.toLowerCase()}))}}},4135:function(t){"use strict";var e=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.fileLoaders=[]}var e;return(e=[{key:"addFileLoader",value:function(t){this.fileLoaders.push(t)}},{key:"getFileLoaders",value:function(){return this.fileLoaders}},{key:"clearFileLoaders",value:function(){this.fileLoaders=[]}},{key:"accepts",value:function(t){for(var e=0;e<this.fileLoaders.length;e++)if(this.fileLoaders[e].accepts(t))return!0;return!1}},{key:"load",value:function(t,e){for(var r=0;r<this.fileLoaders.length;r++){var n=this.fileLoaders[r];if(n.accepts(t))return n.load(t,e)}throw new Error("Failed to find a model file loader that can handle: "+t)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=e},9462:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(4135),u=r(7913),c=r(2850),l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),e=n.call(this);var r=new u(t),o=new c(t);return e.addFileLoader(o),e.addFileLoader(r),e}return s}(s);t.exports=l},2850:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(c,t);var e,r,n,i=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return(e=[{key:"accepts",value:function(t){return t.startsWith("github://")}},{key:"load",value:function(t,e){var r="https://raw.githubusercontent.com/"+t.substring(9);return o(u(c.prototype),"load",this).call(this,r,e)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(r(7913));t.exports=c},7913:function(t,e,r){"use strict";var n=r(9644),o=r(883),i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.processFile=e}var e;return e=[{key:"accepts",value:function(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"load",value:function(t,e){var r=this;e||(e={});var i=JSON.parse(JSON.stringify(e));return i.url=t,i.method="get",i.responseType="text",n(i).then((function(e){var n=o.parse(t),i="@"+(n.host+n.pathname).replace(/\//g,".");return r.processFile(i,e.data)}))}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=i},6178:function(t,e,r){"use strict";var n=r(3716);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s=r(3384),u=r(6190),c={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},l={error:"red",warn:"yellow",info:"green",verbose:"cyan",debug:"blue",silly:"magenta"},f=function(){return(new Date).toLocaleTimeString()},h=function(t){return s[l[t]](t.toUpperCase())},p=function(t){return"object"===a(t)||function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}}(t)?u(t,{pretty:!0,colors:s}):t},d=function(t){for(var e=t,r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];var u=i,l=u.shift();if(l&&"object"===a(l)&&l.level&&l.message){var d=l.padding&&l.padding[l.level];"error"===l.level&&l.stack?(e="error",l="".concat(l.message,"\n").concat(l.stack)):Object.keys(c).includes(l.level)&&(e=l.level,l=l.message),l=d?"".concat(d," ").concat(l):l}u.unshift(l),(["error","warn"].includes(e)?n.error:n.log).apply(void 0,["".concat(f()," - ").concat(h(e),":")].concat(o(u.map((function(t){return t instanceof Error?"".concat(t.message,"\n").concat(t.stack):t})).map(p))))},m={};Object.keys(c).forEach((function(t){m[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return d.apply(void 0,[t].concat(r))}}));var y=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return e=[{key:"dispatch",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];c[t]>c[this.level]||this.transports.forEach((function(e){e[t]&&e[t].apply(e,r)}))}},{key:"add",value:function(t){this.transports.push(t)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["error"].concat(e))}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["warn"].concat(e))}},{key:"info",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["info"].concat(e))}},{key:"log",value:function(){return this.info.apply(this,arguments)}},{key:"http",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["http"].concat(e))}},{key:"verbose",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["verbose"].concat(e))}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["debug"].concat(e))}},{key:"silly",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["silly"].concat(e))}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t,e),t}();y.level="info",y.transports=[m],t.exports=y},9198:function(t,e,r){"use strict";var n=r(2203),o=r(5783),i=r(4716);t.exports={writeModelsToFileSystem:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("`path` is a required parameter of writeModelsToFileSystem");var a=Object.assign({includeExternalModels:!0},r);t.forEach((function(t){if(!t.external||a.includeExternalModels){var r=i(t.fileName).split("/").pop();n.writeFileSync(e+o.sep+r,t.definitions)}}))}}},6746:function(t){"use strict";var e=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.stack=[],this.push(e)}var e;return(e=[{key:"push",value:function(t,e){if(e&&!(t instanceof e))throw new Error("Did not find expected type "+e.constructor.name+" as argument to push. Found: "+t.toString());this.stack.push(t)}},{key:"pop",value:function(t){return this.peek(t),this.stack.pop()}},{key:"peek",value:function(t){if(this.stack.length<1)throw new Error("Stack is empty!");var e=this.stack[this.stack.length-1];if(t&&!(e instanceof t))throw new Error("Did not find expected type "+t+" on head of stack. Found: "+e);return e}},{key:"clear",value:function(){this.stack=[]}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=e},9101:function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.beforeBuffer="",this.buffer="",this.linesWritten=0}var r;return(r=[{key:"writeBeforeLine",value:function(t,e){for(var r=0;r<t;r++)this.beforeBuffer+=" ";this.beforeBuffer+=e,this.beforeBuffer+="\n",this.linesWritten++}},{key:"writeLine",value:function(t,e){for(var r=0;r<t;r++)this.write(" ");this.write(e),this.write("\n"),this.linesWritten++}},{key:"getLineCount",value:function(){return this.linesWritten}},{key:"writeIndented",value:function(t,e){for(var r=0;r<t;r++)this.write(" ");this.write(e)}},{key:"write",value:function(t){if("string"!=typeof t)throw new Error("Can only append strings. Argument "+t+" has type "+e(t));this.buffer+=t,this.linesWritten+=t.split(/\r\n|\r|\n/).length}},{key:"getBuffer",value:function(){return this.beforeBuffer+this.buffer}},{key:"clearBuffer",value:function(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,r),t}();t.exports=r},2680:function(t,e,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},9429:function(t,e,r){"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);return u&&c&&u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var f=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},5618:function(t,e,r){"use strict";var n=r(4406);const o=r(8102),i=r(9640),a=r(8334).stdout,s=r(5625),u="win32"===n.platform&&!({NODE_ENV:"production"}.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],l=new Set(["gray"]),f=Object.create(null);function h(t,e){e=e||{};const r=a?a.level:0;t.level=void 0===e.level?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function p(t){if(!this||!(this instanceof p)||this.template){const e={};return h(e,t),e.template=function(){const t=[].slice.call(arguments);return g.apply(null,[e.template].concat(t))},Object.setPrototypeOf(e,p.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=p,e.template}h(this,t)}u&&(i.blue.open="");for(const t of Object.keys(i))i[t].closeRe=new RegExp(o(i[t].close),"g"),f[t]={get(){const e=i[t];return m.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};f.visible={get(){return m.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(o(i.color.close),"g");for(const t of Object.keys(i.color.ansi))l.has(t)||(f[t]={get(){const e=this.level;return function(){const r={open:i.color[c[e]][t].apply(null,arguments),close:i.color.close,closeRe:i.color.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}});i.bgColor.closeRe=new RegExp(o(i.bgColor.close),"g");for(const t of Object.keys(i.bgColor.ansi))l.has(t)||(f["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const e=this.level;return function(){const r={open:i.bgColor[c[e]][t].apply(null,arguments),close:i.bgColor.close,closeRe:i.bgColor.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}});const d=Object.defineProperties((()=>{}),f);function m(t,e,r){const n=function(){return y.apply(n,arguments)};n._styles=t,n._empty=e;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(t){o.level=t}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(t){o.enabled=t}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=d,n}function y(){const t=arguments,e=t.length;let r=String(arguments[0]);if(0===e)return"";if(e>1)for(let n=1;n<e;n++)r+=" "+t[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=i.dim.open;u&&this.hasGrey&&(i.dim.open="");for(const t of this._styles.slice().reverse())r=t.open+r.replace(t.closeRe,t.open)+t.close,r=r.replace(/\r?\n/g,`${t.close}$&${t.open}`);return i.dim.open=n,r}function g(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[e.raw[0]];for(let t=1;t<e.length;t++)n.push(String(r[t-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[t]));return s(t,n.join(""))}Object.defineProperties(p.prototype,f),t.exports=p(),t.exports.supportsColor=a,t.exports.default=t.exports},5625:function(t){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(t){return"u"===t[0]&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):i.get(t)||t}function s(t,e){const r=[],i=e.trim().split(/\s*,\s*/g);let s;for(const e of i)if(isNaN(e)){if(!(s=e.match(n)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(s[2].replace(o,((t,e,r)=>e?a(e):r)))}else r.push(Number(e));return r}function u(t){r.lastIndex=0;const e=[];let n;for(;null!==(n=r.exec(t));){const t=n[1];if(n[2]){const r=s(t,n[2]);e.push([t].concat(r))}else e.push([t])}return e}function c(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const t of Object.keys(r))if(Array.isArray(r[t])){if(!(t in n))throw new Error(`Unknown Chalk style: ${t}`);n=r[t].length>0?n[t].apply(n,r[t]):n[t]}return n}t.exports=(t,r)=>{const n=[],o=[];let i=[];if(r.replace(e,((e,r,s,l,f,h)=>{if(r)i.push(a(r));else if(l){const e=i.join("");i=[],o.push(0===n.length?e:c(t,n)(e)),n.push({inverse:s,styles:u(l)})}else if(f){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(c(t,n)(i.join(""))),i=[],n.pop()}else i.push(h)})),o.push(i.join("")),n.length>0){const t=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(t)}return o.join("")}},4959:function(t,e,r){var n=r(1103),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(t){var e,r,n=t[0]/255,o=t[1]/255,i=t[2]/255,a=Math.min(n,o,i),s=Math.max(n,o,i),u=s-a;return s===a?e=0:n===s?e=(o-i)/u:o===s?e=2+(i-n)/u:i===s&&(e=4+(n-o)/u),(e=Math.min(60*e,360))<0&&(e+=360),r=(a+s)/2,[e,100*(s===a?0:r<=.5?u/(s+a):u/(2-s-a)),100*r]},a.rgb.hsv=function(t){var e,r,n,o,i,a=t[0]/255,s=t[1]/255,u=t[2]/255,c=Math.max(a,s,u),l=c-Math.min(a,s,u),f=function(t){return(c-t)/6/l+.5};return 0===l?o=i=0:(i=l/c,e=f(a),r=f(s),n=f(u),a===c?o=n-r:s===c?o=1/3+e-n:u===c&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2];return[a.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(r,n))*100,100*(n=1-1/255*Math.max(e,Math.max(r,n)))]},a.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,i,a,s=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=(i=t,a=n[u],Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c<s&&(s=c,r=u)}return r},a.keyword.rgb=function(t){return n[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),r=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(t){var e,r,n,o,i,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[i=255*u,i,i];e=2*u-(r=u<.5?u*(1+s):u+s-u*s),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,o[c]=255*i;return o},a.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),(n+r)/2*100]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),a=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(t){var e,r,n,o=t[0],i=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return n=(2-i)*a,r=i*s,[o,100*(r=(r/=(e=(2-i)*s)<=1?e:2-e)||0),100*(n/=2)]},a.hwb.rgb=function(t){var e,r,n,o,i,a,s,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(n=1-n),o=c+n*((r=1-l)-c),e){default:case 6:case 0:i=r,a=o,s=c;break;case 1:i=o,a=r,s=c;break;case 2:i=c,a=r,s=o;break;case 3:i=c,a=o,s=r;break;case 4:i=o,a=c,s=r;break;case 5:i=r,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(t){var e,r,n,o=t[0]/100,i=t[1]/100,a=t[2]/100;return r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,e=(e=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(t){var e,r,n,o=t[0];e=t[1]/500+(r=(o+16)/116),n=r-t[2]/200;var i=Math.pow(r,3),a=Math.pow(e,3),s=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},a.lab.lch=function(t){var e,r=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+o*o),e]},a.lch.lab=function(t){var e,r=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[r,n*Math.cos(e),n*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(r,n),o),a=Math.min(Math.min(r,n),o),s=i-a;return e=s<=0?0:i===r?(n-o)/s%6:i===n?2+(o-r)/s:4+(r-n)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e,r=t[1]/100,n=t[2]/100,o=0;return(e=n<.5?2*r*n:2*r*(1-n))<1&&(o=(n-.5*e)/(1-e)),[t[0],100*e,100*o]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},a.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},841:function(t,e,r){var n=r(4959),o=r(9325),i={};Object.keys(n).forEach((function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});var e=o(t);Object.keys(e).forEach((function(r){var n=e[r];i[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},9325:function(t,e,r){var n=r(4959);function o(t,e){return function(r){return e(t(r))}}function i(t,e){for(var r=[e[t].parent,t],i=n[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),i=o(n[e[a].parent][a],i),a=e[a].parent;return i.conversion=r,i}t.exports=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,o=0;o<r;o++)t[e[o]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),a=i.length,s=0;s<a;s++){var u=i[s],c=e[u];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,r.unshift(u))}return e}(t),r={},o=Object.keys(e),a=o.length,s=0;s<a;s++){var u=o[s];null!==e[u].parent&&(r[u]=i(u,e))}return r}},1103:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138:function(t,e,r){var n=r(3716),o={};t.exports=o,o.themes={};var i=r(3335),a=o.styles=r(9951),s=Object.defineProperties,u=new RegExp(/[\r\n]+/g);o.supportsColor=r(3613).supportsColor,void 0===o.enabled&&(o.enabled=!1!==o.supportsColor()),o.enable=function(){o.enabled=!0},o.disable=function(){o.enabled=!1},o.stripColors=o.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")},o.stylize=function(t,e){if(!o.enabled)return t+"";var r=a[e];return!r&&e in o?o[e](t):r.open+t+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function l(t){var e=function t(){return d.apply(t,arguments)};return e._styles=t,e.__proto__=p,e}var f,h=(f={},a.grey=a.gray,Object.keys(a).forEach((function(t){a[t].closeRe=new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(c,"\\$&")}(a[t].close),"g"),f[t]={get:function(){return l(this._styles.concat(t))}}})),f),p=s((function(){}),h);function d(){var t=Array.prototype.slice.call(arguments).map((function(t){return null!=t&&t.constructor===String?t:i.inspect(t)})).join(" ");if(!o.enabled||!t)return t;for(var e=-1!=t.indexOf("\n"),r=this._styles,n=r.length;n--;){var s=a[r[n]];t=s.open+t.replace(s.closeRe,s.open)+s.close,e&&(t=t.replace(u,(function(t){return s.close+t+s.open})))}return t}o.setTheme=function(t){if("string"!=typeof t)for(var e in t)!function(e){o[e]=function(r){if("object"==typeof t[e]){var n=r;for(var i in t[e])n=o[t[e][i]](n);return n}return o[t[e]](r)}}(e);else n.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var m=function(t,e){var r=e.split("");return(r=r.map(t)).join("")};for(var y in o.trap=r(2571),o.zalgo=r(561),o.maps={},o.maps.america=r(6393)(o),o.maps.zebra=r(4035)(o),o.maps.rainbow=r(1374)(o),o.maps.random=r(2987)(o),o.maps)!function(t){o[t]=function(e){return m(o.maps[t],e)}}(y);s(o,function(){var t={};return Object.keys(h).forEach((function(e){t[e]={get:function(){return l([e])}}})),t}())},2571:function(t){t.exports=function(t,e){var r="";t=(t=t||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return t.forEach((function(t){t=t.toLowerCase();var e=n[t]||[" "],o=Math.floor(Math.random()*e.length);r+=void 0!==n[t]?n[t][o]:t})),r}},561:function(t){t.exports=function(t,e){t=t||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function o(t){return Math.floor(Math.random()*t)}function i(t){var e=!1;return n.filter((function(r){e=r===t})),e}return function(t,e){var n,a,s="";for(a in(e=e||{}).up=void 0===e.up||e.up,e.mid=void 0===e.mid||e.mid,e.down=void 0===e.down||e.down,e.size=void 0!==e.size?e.size:"maxi",t=t.split(""))if(!i(a)){switch(s+=t[a],n={up:0,down:0,mid:0},e.size){case"mini":n.up=o(8),n.mid=o(2),n.down=o(8);break;case"maxi":n.up=o(16)+3,n.mid=o(4)+1,n.down=o(64)+3;break;default:n.up=o(8)+1,n.mid=o(6)/2,n.down=o(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],f=0;f<=n[l];f++)e[l]&&(s+=r[l][o(r[l].length)])}return s}(t,e)}},6393:function(t){t.exports=function(t){return function(e,r,n){if(" "===e)return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}},1374:function(t){t.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,o){return" "===r?r:t[e[n++%e.length]](r)}}},2987:function(t){t.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,o){return" "===r?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}},4035:function(t){t.exports=function(t){return function(e,r,n){return r%2==0?e:t.inverse(e)}}},9951:function(t){var e={};t.exports=e;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(t){var n=r[t],o=e[t]=[];o.open="["+n[0]+"m",o.close="["+n[1]+"m"}))},7946:function(t,e,r){"use strict";var n=r(4406);t.exports=function(t,e){var r=(e=e||n.argv).indexOf("--"),o=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(o+t);return-1!==i&&(-1===r||i<r)}},3613:function(t,e,r){"use strict";var n=r(4406),o=r(4055),i=r(7946),a={NODE_ENV:"production"},s=void 0;function u(t){var e=function(t){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(t&&!t.isTTY&&!0!==s)return 0;var e=s?1:0;if("win32"===n.platform){var r=o.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(t){return t in a}))||"codeship"===a.CI_NAME?1:e;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var u=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:e}(t);return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(e)}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),t.exports={supportsColor:u,stdout:u(n.stdout),stderr:u(n.stderr)}},3384:function(t,e,r){var n=r(138);t.exports=n},3716:function(t,e,r){var n=r(3335),o=r(1696);function i(){return(new Date).getTime()}var a,s=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){u[t]=i()},"time"],[function(t){var e=u[t];if(!e)throw new Error("No such label: "+t);delete u[t];var r=i()-e;a.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);o.ok(!1,n.format.apply(null,e))}},"assert"]],l=0;l<c.length;l++){var f=c[l],h=f[0],p=f[1];a[p]||(a[p]=h)}t.exports=a},5881:function(t){var e=1e3,r=60*e,n=60*r,o=24*n;function i(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var s,u,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===c&&isFinite(t))return a.long?(s=t,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=e?i(s,u,e,"second"):s+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},5130:function(t,e,r){var n=r(3716),o=r(4406);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==o&&"env"in o&&(t={NODE_ENV:"production"}.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=n.debug||n.log||(()=>{}),t.exports=r(7123)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},7123:function(t,e,r){var n=r(3716);t.exports=function(t){function e(t){let r,n=null;function i(...t){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=o,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===n?e.enabled(t):n,set:t=>{n=t}}),"function"==typeof e.init&&e.init(i),i}function o(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(i),...e.skips.map(i).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(5881),e.destroy=function(){n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},4926:function(t,e,r){"use strict";var n=r(3464),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=r(1181)(),c=s&&u,l=function(t,e,r,n){var o;(!(e in t)||"function"==typeof(o=n)&&"[object Function]"===i.call(o)&&n())&&(c?s(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)l(t,i[s],e[i[s]],r[i[s]])};f.supportsDescriptors=!!c,t.exports=f},4956:function(t){"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(o,u);void 0!==c&&c.enumerable&&(r[u]=o[u])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},8102:function(t){"use strict";var e=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}},3243:function(t,e,r){"use strict";var n=r(9680),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},u=function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===o.call(t)?a(t,e,i):"string"==typeof t?s(t,e,i):u(t,e,i)}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(r.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var h=function(){};h.prototype=i.prototype,a.prototype=new h,h.prototype=null}return a}},4090:function(t,e,r){"use strict";var n=r(7795);t.exports=Function.prototype.bind||n},7286:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=r(2636)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=h(o.prototype))}return m[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),w=v.call(Function.call,Array.prototype.concat),A=v.call(Function.apply,Array.prototype.splice),M=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),_=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,k=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return M(t,C,(function(t,e,r,o){n[n.length]=r?M(o,S,"$1"):e||t})),n},x=function(t,e){var r,n=t;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(m,n)){var i=m[n];if(i===p&&(i=y(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(t),n=r.length>0?r[0]:"",i=x("%"+n+"%",e),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],A(r,w([0,1],f)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],y=E(d,0,1),g=E(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&p||(l=!0),b(m,s="%"+(n+="."+d)+"%"))c=m[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var v=u(c,d);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else p=b(c,d),c=c[d];p&&!l&&(m[s]=c)}}return c}},1181:function(t,e,r){"use strict";var n=r(7286)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},2636:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7226:function(t,e,r){"use strict";var n=r(6679);t.exports=function(){return n()&&!!Symbol.toStringTag}},3198:function(t,e,r){"use strict";var n=r(4090);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2635:function(t,e,r){"use strict";var n=r(7226)(),o=r(2680)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=s?i:a},9680:function(t){"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(t){if((l||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},3138:function(t,e,r){"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(7226)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(i.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},7053:function(t){"use strict";t.exports=function(t){return t!=t}},4782:function(t,e,r){"use strict";var n=r(9429),o=r(4926),i=r(7053),a=r(755),s=r(5346),u=n(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},755:function(t,e,r){"use strict";var n=r(7053);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},5346:function(t,e,r){"use strict";var n=r(4926),o=r(755);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},198:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},f=i("String.prototype.slice"),h={},p=r(9765),d=Object.getPrototypeOf;s&&p&&d&&n(c,(function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=p(r,Symbol.toStringTag);if(!n){var o=d(r);n=p(o,Symbol.toStringTag)}h[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=f(a(t),8,-1);return l(c,e)>-1}return!!p&&function(t){var e=!1;return n(h,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},9095:function(t,e,r){const n=r(5618),o=r(7485),i={BRACE:"gray",BRACKET:"gray",COLON:"gray",COMMA:"gray",STRING_KEY:"magenta",STRING_LITERAL:"yellow",NUMBER_LITERAL:"green",BOOLEAN_LITERAL:"cyan",NULL_LITERAL:"white"};e.colorize=function(t,e={}){const r=e.colors||{};return t.reduce(((t,e)=>{const a=r[e.type]||i[e.type],s=a&&"#"===a[0]?n.hex(a):o(n,a);return t+(s?s(e.value):e.value)}),"")}},6190:function(t,e,r){const n=r(1024),o=r(9095);t.exports=function(t,e){return o.colorize(n.getTokens(t,e),e)}},1024:function(t,e){const r=[{regex:/^\s+/,tokenType:"WHITESPACE"},{regex:/^[{}]/,tokenType:"BRACE"},{regex:/^[[\]]/,tokenType:"BRACKET"},{regex:/^:/,tokenType:"COLON"},{regex:/^,/,tokenType:"COMMA"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"NUMBER_LITERAL"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"STRING_KEY"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"STRING_LITERAL"},{regex:/^true|^false/,tokenType:"BOOLEAN_LITERAL"},{regex:/^null/,tokenType:"NULL_LITERAL"}];function n(t,e){return(t||{}).length>0&&e}e.getTokens=function(t,e={}){let o;if(e.pretty){const e="string"==typeof t?JSON.parse(t):t;o=JSON.stringify(e,null,2)}else o="string"==typeof t?t:JSON.stringify(t);let i,a=[];do{i=!1;for(let t=0;t<r.length;t++){const e=r[t].regex.exec(o);if(e){a.push({type:r[t].tokenType,value:e[0]}),o=o.substring(e[0].length),i=!0;break}}}while(n(o,i));return a}},7485:function(t,e,r){var n,o="__lodash_hash_undefined__",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,s=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")(),d=Array.prototype,m=Function.prototype,y=Object.prototype,g=p["__core-js_shared__"],v=(n=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",b=m.toString,w=y.hasOwnProperty,A=y.toString,M=RegExp("^"+b.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=p.Symbol,_=d.splice,C=P(p,"Map"),S=P(Object,"create"),k=E?E.prototype:void 0,x=k?k.toString:void 0;function O(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function D(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function T(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function j(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function P(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){if(!$(t)||v&&v in t)return!1;var e=function(t){var e=$(t)?A.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?M:l;return e.test(function(t){if(null!=t){try{return b.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}O.prototype.clear=function(){this.__data__=S?S(null):{}},O.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},O.prototype.get=function(t){var e=this.__data__;if(S){var r=e[t];return r===o?void 0:r}return w.call(e,t)?e[t]:void 0},O.prototype.has=function(t){var e=this.__data__;return S?void 0!==e[t]:w.call(e,t)},O.prototype.set=function(t,e){return this.__data__[t]=S&&void 0===e?o:e,this},D.prototype.clear=function(){this.__data__=[]},D.prototype.delete=function(t){var e=this.__data__,r=T(e,t);return!(r<0||(r==e.length-1?e.pop():_.call(e,r,1),0))},D.prototype.get=function(t){var e=this.__data__,r=T(e,t);return r<0?void 0:e[r][1]},D.prototype.has=function(t){return T(this.__data__,t)>-1},D.prototype.set=function(t,e){var r=this.__data__,n=T(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},F.prototype.clear=function(){this.__data__={hash:new O,map:new(C||D),string:new O}},F.prototype.delete=function(t){return j(this,t).delete(t)},F.prototype.get=function(t){return j(this,t).get(t)},F.prototype.has=function(t){return j(this,t).has(t)},F.prototype.set=function(t,e){return j(this,t).set(t,e),this};var R=I((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(L(t))return x?x.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(u,(function(t,e,n,o){r.push(n?o.replace(c,"$1"):e||t)})),r}));function B(t){if("string"==typeof t||L(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function I(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(I.Cache||F),r}I.Cache=F;var N=Array.isArray;function $(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function L(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==A.call(t)}t.exports=function(t,e,r){var n=null==t?void 0:function(t,e){var r;e=function(t,e){if(N(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!L(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:N(r=e)?r:R(r);for(var n=0,o=e.length;null!=t&&n<o;)t=t[B(e[n++])];return n&&n==o?t:void 0}(t,e);return void 0===n?r:n}},8169:function(t){"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},4679:function(t,e,r){"use strict";var n=r(4926),o=r(9429),i=r(8169),a=r(8070),s=r(191),u=o(a(),Object);n(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},8070:function(t,e,r){"use strict";var n=r(8169);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},191:function(t,e,r){"use strict";var n=r(8070),o=r(4926);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5691:function(t,e,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(801),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=a(t),s=e&&"[object String]"===i.call(t),h=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&t.length>0&&!o.call(t,0))for(var m=0;m<t.length;++m)h.push(String(m));if(n&&t.length>0)for(var y=0;y<t.length;++y)h.push(String(y));else for(var g in t)d&&"prototype"===g||!o.call(t,g)||h.push(String(g));if(u)for(var v=function(t){if("undefined"==typeof window||!p)return f(t);try{return f(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)v&&"constructor"===l[b]||!o.call(t,l[b])||h.push(l[b]);return h}}t.exports=n},3464:function(t,e,r){"use strict";var n=Array.prototype.slice,o=r(801),i=Object.keys,a=i?function(t){return i(t)}:r(5691),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},801:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},4406:function(t){var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=a(f);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l<e;)s&&s[l].run();l=-1,e=u.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},2808:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,f,h,p,d=t[c].replace(a,"%20"),m=d.indexOf(n);m>=0?(l=d.substr(0,m),f=d.substr(m+1)):(l=d,f=""),h=decodeURIComponent(l),p=decodeURIComponent(f),e(i,h)?Array.isArray(i[h])?i[h].push(p):i[h]=[i[h],p]:i[h]=p}return i}},1368:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,o){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(o){var i=encodeURIComponent(e(o))+n;return Array.isArray(t[o])?t[o].map((function(t){return i+encodeURIComponent(e(t))})).join(r):i+encodeURIComponent(e(t[o]))})).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""}},6642:function(t,e,r){"use strict";e.decode=e.parse=r(2808),e.encode=e.stringify=r(1368)},4716:function(t){"use strict";t.exports=t=>{const e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}},8334:function(t){"use strict";t.exports={stdout:!1,stderr:!1}},9639:function(t,e,r){var n;t=r.nmd(t),function(o){e&&e.nodeType,t&&t.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,h={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,d=String.fromCharCode;function m(t){throw RangeError(h[t])}function y(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function g(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+y((t=t.replace(f,".")).split("."),e).join(".")}function v(t){for(var e,r,n=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function b(t){return y(t,(function(t){var e="";return t>65535&&(e+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+d(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=u)t=p(t/35);return p(n+36*t/(t+38))}function M(t){var e,r,n,o,i,a,c,l,f,h,d,y=[],g=t.length,v=0,w=128,M=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&m("not-basic"),y.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,c=u;o>=g&&m("invalid-input"),((l=(d=t.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||l>p((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=M?1:c>=M+26?26:c-M));c+=u)a>p(s/(h=u-f))&&m("overflow"),a*=h;M=A(v-i,e=y.length+1,0==i),p(v/e)>s-w&&m("overflow"),w+=p(v/e),v%=e,y.splice(v++,0,w)}return b(y)}function E(t){var e,r,n,o,i,a,c,l,f,h,y,g,b,M,E,_=[];for(g=(t=v(t)).length,e=128,r=0,i=72,a=0;a<g;++a)(y=t[a])<128&&_.push(d(y));for(n=o=_.length,o&&_.push("-");n<g;){for(c=s,a=0;a<g;++a)(y=t[a])>=e&&y<c&&(c=y);for(c-e>p((s-r)/(b=n+1))&&m("overflow"),r+=(c-e)*b,e=c,a=0;a<g;++a)if((y=t[a])<e&&++r>s&&m("overflow"),y==e){for(l=r,f=u;!(l<(h=f<=i?1:f>=i+26?26:f-i));f+=u)E=l-h,M=u-h,_.push(d(w(h+E%M,0))),l=p(E/M);_.push(d(w(l,0))),i=A(r,b,n==o),r=0,++n}++r,++e}return _.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:M,encode:E,toASCII:function(t){return g(t,(function(t){return l.test(t)?"xn--"+E(t):t}))},toUnicode:function(t){return g(t,(function(t){return c.test(t)?M(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},883:function(t,e,r){"use strict";var n=r(9639),o=r(5225);function i(){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}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return o.isString(t)&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(6642);function b(t,e,r){if(t&&o.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),s=-1!==i&&i<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var b=t=c.join(s);if(b=b.trim(),!r&&1===t.split("#").length){var w=u.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?v.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var A=a.exec(b);if(A){var M=(A=A[0]).toLowerCase();this.protocol=M,b=b.substr(A.length)}if(r||A||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===b.substr(0,2);!E||A&&y[A]||(b=b.substr(2),this.slashes=!0)}if(!y[A]&&(E||A&&!g[A])){for(var _,C,S=-1,k=0;k<h.length;k++)-1!==(x=b.indexOf(h[k]))&&(-1===S||x<S)&&(S=x);for(-1!==(C=-1===S?b.lastIndexOf("@"):b.lastIndexOf("@",S))&&(_=b.slice(0,C),b=b.slice(C+1),this.auth=decodeURIComponent(_)),S=-1,k=0;k<f.length;k++){var x;-1!==(x=b.indexOf(f[k]))&&(-1===S||x<S)&&(S=x)}-1===S&&(S=b.length),this.host=b.slice(0,S),b=b.slice(S),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var D=this.hostname.split(/\./),F=(k=0,D.length);k<F;k++){var T=D[k];if(T&&!T.match(p)){for(var j="",P=0,R=T.length;P<R;P++)T.charCodeAt(P)>127?j+="x":j+=T[P];if(!j.match(p)){var B=D.slice(0,k),I=D.slice(k+1),N=T.match(d);N&&(B.push(N[1]),I.unshift(N[2])),I.length&&(b="/"+I.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var $=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+$,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[M])for(k=0,F=l.length;k<F;k++){var U=l[k];if(-1!==b.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),b=b.split(U).join(q)}}var z=b.indexOf("#");-1!==z&&(this.hash=b.substr(z),b=b.slice(0,z));var V=b.indexOf("?");if(-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),e&&(this.query=v.parse(this.query)),b=b.slice(0,V)):e&&(this.search="",this.query={}),b&&(this.pathname=b),g[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){$=this.pathname||"";var H=this.search||"";this.path=$+H}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(o.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=t[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var p=f[h];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),A=w||b||r.host&&t.pathname,M=A,E=r.pathname&&r.pathname.split("/")||[],_=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),A=A&&(""===d[0]||""===E[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search))return _&&(r.hostname=r.host=E.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=E.slice(-1)[0],S=(r.host||t.host||E.length>1)&&("."===C||".."===C)||""===C,k=0,x=E.length;x>=0;x--)"."===(C=E[x])?E.splice(x,1):".."===C?(E.splice(x,1),k++):k&&(E.splice(x,1),k--);if(!A&&!M)for(;k--;k)E.unshift("..");!A||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var O,D=""===E[0]||E[0]&&"/"===E[0].charAt(0);return _&&(r.hostname=r.host=D?"":E.length?E.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),(A=A||r.host&&E.length)&&!D&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},5225:function(t){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},82:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},4895:function(t,e,r){"use strict";var n=r(2635),o=r(3138),i=r(2094),a=r(198);function s(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function g(t){return"[object Map]"===l(t)}function v(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function A(t){return"[object ArrayBuffer]"===l(t)}function M(t){return"undefined"!=typeof ArrayBuffer&&(A.working?A(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===l(t)}function _(t){return"undefined"!=typeof DataView&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||_(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},g.working="undefined"!=typeof Map&&g(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(g.working?g(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),e.isArrayBuffer=M,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===l(t)}function k(t){return void 0!==C&&(void 0===S.working&&(S.working=S(new C)),S.working?S(t):t instanceof C)}function x(t){return y(t,f)}function O(t){return y(t,h)}function D(t){return y(t,p)}function F(t){return u&&y(t,d)}function T(t){return c&&y(t,m)}e.isSharedArrayBuffer=k,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=x,e.isStringObject=O,e.isBooleanObject=D,e.isBigIntObject=F,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return x(t)||O(t)||D(t)||F(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(M(t)||k(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},3335:function(t,e,r){var n=r(4406),o=r(3716),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(l(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(t).replace(a,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])v(s)||!E(s)?i+=" "+s:i+=" "+l(s);return i},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),i=!0}return t.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production"}.NODE_DEBUG){var c={NODE_ENV:"production"}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}function l(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),A(n.showHidden)&&(n.showHidden=!1),A(n.depth)&&(n.depth=2),A(n.colors)&&(n.colors=!1),A(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),p(n,t,n.depth)}function f(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return w(o)||(o=p(t,o,n)),o}var i=function(t,e){if(A(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return b(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),C(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(M(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(C(r))return d(r)}var c,l="",f=!1,h=["{","}"];return y(r)&&(f=!0,h=["[","]"]),S(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),_(r)&&(l=" "+Date.prototype.toUTCString.call(r)),C(r)&&(l=" "+d(r)),0!==a.length||f&&0!=r.length?n<0?M(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=f?function(t,e,r,n,o){for(var i=[],a=0,s=e.length;a<s;++a)F(e,String(a))?i.push(m(t,e,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(m(t,e,r,n,o,!0))})),i}(t,r,n,s,a):a.map((function(e){return m(t,r,n,s,e,f)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,l,h)):h[0]+l+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function m(t,e,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),F(n,o)||(a="["+o+"]"),s||(t.seen.indexOf(u.value)<0?(s=v(r)?p(t,u.value,null):p(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),A(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function v(t){return null===t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function A(t){return void 0===t}function M(t){return E(t)&&"[object RegExp]"===k(t)}function E(t){return"object"==typeof t&&null!==t}function _(t){return E(t)&&"[object Date]"===k(t)}function C(t){return E(t)&&("[object Error]"===k(t)||t instanceof Error)}function S(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(u.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);o.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(4895),e.isArray=y,e.isBoolean=g,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=A,e.isRegExp=M,e.types.isRegExp=M,e.isObject=E,e.isDate=_,e.types.isDate=_,e.isError=C,e.types.isNativeError=C,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(82);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),O[t.getMonth()],e].join(" ")}function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){o.log("%s - %s",D(),e.format.apply(e,arguments))},e.inherits=r(1285),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=T,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var o=e.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(j.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},2094:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("String.prototype.slice"),f={},h=r(9765),p=Object.getPrototypeOf;s&&h&&p&&n(c,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=p(e),n=h(r,Symbol.toStringTag);if(!n){var o=p(r);n=h(o,Symbol.toStringTag)}f[t]=n.get}}}));var d=r(198);t.exports=function(t){return!!d(t)&&(s&&Symbol.toStringTag in t?function(t){var e=!1;return n(f,(function(r,n){if(!e)try{var o=r.call(t);o===n&&(e=o)}catch(t){}})),e}(t):l(a(t),8,-1))}},6010:function(t,e,r){"use strict";const n=r(6777),o=r(7445),i=r(5106),a=r(4135),s=r(9462),u=r(2850),c=r(7913),l=r(9101),f=r(4468),h=r(9198),p=r(644),d=r(6178),m=r(6746),y=r(8098);t.exports={BaseException:n,BaseFileException:o,FileDownloader:i,CompositeFileLoader:a,DefaultFileLoader:s,GitHubFileLoader:u,HTTPFileLoader:c,Writer:l,FileWriter:f,InMemoryWriter:p,ModelWriter:h,Logger:d,TypedStack:m,Label:y}},4055:function(){},2203:function(){},5783:function(){},2191:function(t,e,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof o[n[e]]&&(t[t.length]=n[e]);return t}},9765:function(t,e,r){"use strict";var n=r(7286)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},4147:function(t){"use strict";t.exports=JSON.parse('{"name":"@accordproject/concerto-util","version":"3.0.0","description":"Utilities for Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","browser":"dist/concerto-util.js","typings":"types/index.d.ts","scripts":{"prepublishOnly":"webpack --config webpack.config.js --mode production","pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-util"},"keywords":["blockchain","hyperledger","solutions"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","eslint":"8.2.0","jsdoc":"^3.6.7","license-check-and-add":"2.3.6","mocha":"10.0.0","moxios":"0.4.0","node-polyfill-webpack-plugin":"2.0.1","nyc":"15.1.0","tmp-promise":"3.0.2","typescript":"4.6.3"},"dependencies":{"@supercharge/promise-pool":"1.7.0","axios":"0.23.0","colors":"1.4.0","debug":"4.3.1","json-colorizer":"2.2.2","slash":"3.0.0"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","LICENSE","node_modules",".nyc-output","out",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"all":true,"check-coverage":true,"statements":99,"branches":93,"functions":98,"lines":99}}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r(6010)}()},2203:function(){},5783:function(){},2191:function(t,e,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof o[n[e]]&&(t[t.length]=n[e]);return t}},9765:function(t,e,r){"use strict";var n=r(7286)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},4376:function(t){"use strict";t.exports=JSON.parse('{"$class":"concerto.metamodel@1.0.0.Model","decorators":[{"$class":"concerto.metamodel@1.0.0.Decorator","name":"DotNetNamespace","arguments":[{"$class":"concerto.metamodel@1.0.0.DecoratorString","value":"AccordProject.Concerto"}]}],"namespace":"concerto@1.0.0","imports":[],"declarations":[{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Concept","isAbstract":true,"properties":[]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Asset","isAbstract":true,"properties":[],"identified":{"$class":"concerto.metamodel@1.0.0.Identified"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Participant","isAbstract":true,"properties":[],"identified":{"$class":"concerto.metamodel@1.0.0.Identified"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Transaction","isAbstract":true,"properties":[]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Event","isAbstract":true,"properties":[]}]}')},6077:function(t){"use strict";t.exports=JSON.parse('{"en":{"like":["{0, plural, offset:1"," =0 {Be the first to like this}"," =1 {You liked this}"," one {You and someone else liked this}"," other {You and # others liked this}","}"],"test-hello-array":"Hello, {0} {1} {2}","test-hello-object":"Hello, {first} {middle} {last}","test-repeat-array":"{0} {0} {0}","test-repeat-object":"{value} {value} {value}","classdeclaration-constructor-modelastreq":"\\"ModelFile\\" and \\"AST\\" are required to create a \\"ClassDecl\\".","classdeclaration-process-unrecmodelelem":"Unrecognised model element \\"{type}\\".","classdeclaration-getfield-notfindsupertype":"Could not find supertype \\"{type}\\".","classdeclaration-validate-identifiernotproperty":"Class \\"{class}\\" is identified by field \\"{idField}\\", but does not contain this property.","classdeclaration-validate-identifiernotstring":"Class \\"{class}\\" is identified by field \\"{idField}\\", but the type of the field is not \\"String\\".","classdeclaration-validate-duplicatefieldname":"Class \\"{class}\\" has more than one field named \\"{fieldName}\\".","classdeclaration-validate-missingidentifier":"Class \\"{class}\\" is not declared as \\"abstract\\". It must define an identifying field.","modelfile-constructor-unrecmodelelem":"Unrecognised model element \\"{type}\\".","modelfile-resolvetype-undecltype":"Undeclared type \\"{type}\\" in \\"{context}\\".","modelfile-resolveimport-failfindimp":"Failed to find \\"{type}\\" in list of imports \\"[{imports}]\\" for namespace \\"{namespace}\\".","transactiondeclaration-getidentifierfieldname-noidentifyingfield":"Transactions do not have an identifying field.","composer-connect-noconopts":"\\"connectOptions\\" not specified.","composer-connect-nokeyvalstore":"\\"connectOptions.keyValStore\\" not specified.","composer-connect-nomembersrvcurl":"\\"connectOptions.membershipServicesURL\\" not specified.","composer-connect-nopeerurl":"\\"connectOptions.peerURL\\" not specified.","composer-connect-noeventhuburl":"\\"connectOptions.eventHubURL\\" not specified.","composer-connect-notconnected":"Connection needs to be connected. Call \\"connect(..)\\".","composer-login-noenrollmentid":"\\"enrollmentID\\" not specified.","composer-login-noenrollmentsecret":"\\"enrollmentSecret\\" not specified.","composer-deploy-nosecuritycontext":"\\"securityContext\\" not specified.","factory-newinstance-missingidentifier":"Missing identifier for Type \\"{type}\\" in namespace \\"{namespace}\\".","factory-newinstance-invalididentifier":"Invalid or missing identifier for Type \\"{type}\\" in namespace \\"{namespace}\\".","factory-newinstance-abstracttype":"Cannot instantiate the abstract type \\"{type}\\" in the \\"{namespace}\\" namespace.","factory-newrelationship-notregisteredwithmm":"Cannot create relationship as namespace \\"{namespace}\\" is not known.","factory-newinstance-typenotdeclaredinns":"Cannot instantiate Type \\"{type}\\" in namespace \\"{namespace}\\".","instancegenerator-newinstance-noconcreteclass":"No concrete extending type for \\"{type}\\".","modelmanager-resolvetype-nonsfortype":"No registered namespace for type \\"{type}\\" in \\"{context}\\".","modelmanager-resolvetype-notypeinnsforcontext":"No type \\"{type}\\" in namespace \\"{namespace}\\" for \\"{context}\\".","modelmanager-gettype-noregisteredns":"Namespace is not defined for type \\"{type}\\".","modelmanager-gettype-duplicatensimport":"Importing types from different versions (\\"{version1}\\", \\"{version2}\\") of the same namespace \\"{namespace}\\" is not permitted.","modelmanager-gettype-notypeinns":"Type \\"{type}\\" is not defined in namespace \\"{namespace}\\".","serializer-constructor-factorynull":"\\"Factory\\" cannot be \\"null\\".","serializer-constructor-modelmanagernull":"\\"ModelManager\\" cannot be \\"null\\".","serializer-tojson-notcobject":"\\"Serializer.toJSON\\" only accepts \\"Concept\\", \\"Event\\", \\"Asset\\", \\"Participant\\" or \\"Transaction\\".","util-securitycheck-novalidcontext":"A valid \\"SecurityContext\\" must be specified.","modelutil-getnamespace-nofnq":"FQN is invalid.","resourcevalidator-notresourceorconcept":"Model violation in the \\"{resourceId}\\" instance. Class \\"{classFQN}\\" has the value of \\"{invalidValue}\\". Expected a \\"Resource\\" or a \\"Concept\\".","resourcevalidator-notrelationship":"Model violation in the \\"{resourceId}\\" instance. Class \\"{classFQN}\\" has a value of \\"{invalidValue}\\". Expected a \\"Relationship\\".","resourcevalidator-fieldtypeviolation":"Model violation in the \\"{resourceId}\\" instance. The field \\"{propertyName}\\" has a value of \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type of value: \\"{fieldType}\\".","resourcevalidator-missingrequiredproperty":"The instance \\"{resourceId}\\" is missing the required field \\"{fieldName}\\".","resourcevalidator-invalidenumvalue":"Model violation in the \\"{resourceId}\\" instance. Invalid enum value of \\"{value}\\" for the field \\"{fieldName}\\".","resourcevalidator-abstractclass":"The class \\"{className}\\" is abstract and should not contain an instance.","resourcevalidator-undeclaredfield":"Instance \\"{resourceId}\\" has a property named \\"{propertyName}\\", which is not declared in \\"{fullyQualifiedTypeName}\\".","resourcevalidator-invalidfieldassignment":"Instance \\"{resourceId}\\" has a property \\"{propertyName}\\" with type \\"{objectType}\\" that is not derived from \\"{fieldType}\\".","resourcevalidator-emptyidentifier":"Instance \\"{resourceId}\\" has an empty identifier.","typenotfounderror-defaultmessage":"Type \\"{typeName}\\" not found.","whereastvalidator-propertytypeviolation":"Property \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"{fieldType}\\".","whereastvalidator-enum-propertytypeviolation":"Enum property \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"String\\".","whereastvalidator-relationship-propertytypeviolation":"Relationship \\"{propertyName}\\" cannot be compared with \\"{value}\\" (type of value: \\"{typeOfValue}\\"). Expected type: \\"String\\".","whereastvalidator-unsupportedtype":"Property \\"{propertyName}\\" of type \\"{fieldType}\\" cannot be compared with a literal value.","whereastvalidator-invalidoperator":"Property \\"{propertyName}\\" cannot be compared using the \\"{operator}\\" operator."}}')},4147:function(t){"use strict";t.exports=JSON.parse('{"name":"@accordproject/concerto-core","version":"3.0.0","description":"Core Implementation for the Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","browser":"dist/concerto-core.js","typings":"types/index.d.ts","scripts":{"prepublishOnly":"webpack --config webpack.config.js --mode production","pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"node ./scripts/api-changelog.js && nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-cto"},"keywords":["schema","data model","verification"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"@babel/preset-env":"7.16.11","acorn":"8.5.0","acorn-walk":"8.2.0","babel-loader":"8.2.3","chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","commander":"2.20.0","doctrine":"3.0.0","eslint":"8.2.0","fs-extra":"9.1.0","jsdoc":"^3.6.7","klaw":"3.0.0","license-check-and-add":"2.3.6","mocha":"10.0.0","mockery":"2.1.0","moxios":"0.4.0","node-polyfill-webpack-plugin":"2.0.1","nyc":"15.1.0","process":"0.11.10","sinon":"12.0.0","sinon-chai":"3.7.0","tmp-promise":"3.0.2","typescript":"4.6.3","webpack":"5.64.2","webpack-cli":"4.9.1","xregexp":"5.1.1","yargs":"17.3.1"},"dependencies":{"@accordproject/concerto-cto":"3.0.0","@accordproject/concerto-metamodel":"3.0.0","@accordproject/concerto-util":"3.0.0","dayjs":"1.10.8","debug":"4.3.1","lorem-ipsum":"2.0.3","randexp":"0.5.3","semver":"7.3.5","slash":"3.0.0","urijs":"1.19.11","uuid":"8.3.2"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","index.d.ts","./system","LICENSE","node_modules",".nyc-output","out","dist",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"exclude":[],"all":true,"check-coverage":true,"statements":99,"branches":98,"functions":98,"lines":99}}')},5334:function(t){"use strict";t.exports=JSON.parse('{"$class":"concerto.metamodel@1.0.0.Model","decorators":[{"$class":"concerto.metamodel@1.0.0.Decorator","name":"DotNetNamespace","arguments":[{"$class":"concerto.metamodel@1.0.0.DecoratorString","value":"AccordProject.Concerto.Metamodel"}]}],"namespace":"concerto.metamodel@1.0.0","imports":[],"declarations":[{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Position","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"line","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"column","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"offset","isArray":false,"isOptional":false}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Range","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"start","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"end","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"source","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"TypeIdentifier","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorLiteral","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorString","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorNumber","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorBoolean","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorTypeReference","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"defaultValue":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Decorator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"arguments","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Identified","isAbstract":false,"properties":[]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IdentifiedBy","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Identified"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Declaration","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EnumDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"EnumProperty"},"isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EnumProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ConceptDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isAbstract","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"identified","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Identified"},"isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"superType","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"},"isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"AssetDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ParticipantDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"TransactionDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EventDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Property","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isOptional","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"RelationshipProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ObjectProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"BooleanProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"defaultValue","isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DateTimeProperty","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"StringProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"StringRegexValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"StringRegexValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"pattern","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"flags","isArray":false,"isOptional":false}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DoubleProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DoubleDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DoubleDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IntegerProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"IntegerDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IntegerDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"LongProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"LongDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"LongDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Import","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"uri","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportAll","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportType","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportTypes","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"types","isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Model","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"sourceUri","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"concertoVersion","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"imports","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"declarations","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Models","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"models","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Model"},"isArray":true,"isOptional":false}]}]}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r(6010)}()},970:t=>{var e,r;self,t.exports=(e={165:function(t,e,r){"use strict";function n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}}var i=r(23),a=r(133),s=a.DefaultFileLoader,u=a.FileDownloader,c=r(130)("concerto:ModelManager"),l=r(353),f=r(76),h=f.MetaModelUtil,p=f.MetaModelNamespace;function d(t,e){var r={$class:"".concat(p,".Models"),models:[]},n=e.namespace,o=t.models,i=!1;return o.forEach((function(t,o){t.namespace===n?(r.models.push(e),i=!0):r.models.push(t)})),i||r.models.push(e),r}function m(){return(m=o(regeneratorRuntime.mark((function t(e,r,n){var o,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c("updateExternalModels","updateExternalModels",r),n||(n=new u(new s((function(t,e){if(".cto"===i.extname(t))return l.parse(e);throw new Error("External model file references are expected to have a .cto extension")})),h.getExternalImports)),t.next=5,n.downloadExternalDependencies(e.models,r);case 5:return o=t.sent,a=e,o.forEach((function(t){a=d(a,t)})),t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}t.exports={resolveExternal:function(t,e,r){return m.apply(this,arguments)}}},358:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t,e,r,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var a=t,u="";return r&&(u+=" File "+r),e&&(e.end&&e.start&&e.end.offset&&e.start.offset&&e.end.offset-e.start.offset==1&&(e.end.column=e.start.column,e.end.offset=e.start.offset),u+=u?" line "+e.start.line+" column "+e.start.column:" Line "+e.start.line+" column "+e.start.column),a+=u,n.call(this,t,e,o||a,r,i)}return s}(r(133).BaseFileException);t.exports=s},353:function(t){"use strict";function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e,r,n){var o=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(o,a.prototype),o.expected=e,o.found=r,o.location=n,o.name="SyntaxError",o}function s(t,e,r){return r=r||" ",t.length>e?t:(e-=t.length,t+(r+=r.repeat(e)).slice(0,e))}!function(t,e){function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r}(a,Error),a.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<t.length;r++)if(t[r].source===this.location.source){n=t[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source+":"+o.line+":"+o.column;if(n){var a=this.location.end,u=s("",o.line.toString().length," "),c=n[o.line-1],l=(o.line===a.line?a.column:c.length+1)-o.column||1;e+="\n --\x3e "+i+"\n"+u+" |\n"+o.line+" | "+c+"\n"+u+" | "+s("",o.column-1," ")+s("",l,"^")}else e+="\n at "+i}return e},a.buildMessage=function(t,e){var r={literal:function(t){return'"'+o(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?i(t[0])+"-"+i(t[1]):i(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function o(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+n(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+n(t)}))}function a(t){return r[t.type](t)}return"Expected "+function(t){var e,r,n=t.map(a);if(n.sort(),n.length>0){for(e=1,r=1;e<n.length;e++)n[e-1]!==n[e]&&(n[r]=n[e],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."},t.exports={SyntaxError:a,parse:function(t,e){var n,i={},s=(e=void 0!==e?e:{}).grammarSource,u={Start:pn},c=pn,l="/*",f="*/",h="//",p="\\",d=".",m='"',y="'",g="/",v="[",b="]",w="enum",A="false",M="import",E="null",_="true",C="}",S=":",k="?",x="@",O="+",D=",",F="=",T="-",j="::",P="concerto",R="version",B="namespace",I="abstract",N="concept",$="asset",L="transaction",U="event",q="participant",z="from",V="Integer",H="Double",G="Long",W="String",Z="DateTime",J="Boolean",Q="identified by",Y="identified",K="[]",X="extends",tt="{",et="optional",rt="default",nt="o",ot="regex",it="range",at=/^[\n\r\u2028\u2029]/,st=/^[+\-]/,ut=/^[0-9]/,ct=/^[1-9]/,lt=/^[0-9a-f]/i,ft=/^[*\\\/[]/,ht=/^[\\\/[]/,pt=/^[\]\\]/,dt=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,mt=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,yt=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,gt=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,vt=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,bt=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,wt=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,At=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,Mt=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,Et=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,_t=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ct=/^[A-Z]/,St=/^[a-z]/,kt=/^[0-5]/,xt=/^[0-4]/,Ot=/^[a-z0-9\-]/i,Dt=/^[a-z\-]/i,Ft={type:"any"},Tt=cn("whitespace"),jt=sn("\t",!1),Pt=sn("\v",!1),Rt=sn("\f",!1),Bt=sn(" ",!1),It=sn(" ",!1),Nt=sn("\ufeff",!1),$t=un(["\n","\r","\u2028","\u2029"],!1,!1),Lt=cn("end of line"),Ut=sn("\n",!1),qt=sn("\r\n",!1),zt=sn("\r",!1),Vt=sn("\u2028",!1),Ht=sn("\u2029",!1),Gt=cn("comment"),Wt=sn("/*",!1),Zt=sn("*/",!1),Jt=sn("//",!1),Qt=cn("identifier"),Yt=sn("$",!1),Kt=sn("_",!1),Xt=sn("\\",!1),te=sn("‌",!1),ee=sn("‍",!1),re=cn("number"),ne=sn(".",!1),oe=un(["+","-"],!1,!1),ie=sn("0",!1),ae=un([["0","9"]],!1,!1),se=un([["1","9"]],!1,!1),ue=sn("e",!0),ce=sn("0x",!0),le=un([["0","9"],["a","f"]],!1,!0),fe=cn("string"),he=sn('"',!1),pe=sn("'",!1),de=sn("b",!1),me=sn("f",!1),ye=sn("n",!1),ge=sn("r",!1),ve=sn("t",!1),be=sn("v",!1),we=sn("x",!1),Ae=sn("u",!1),Me=cn("regular expression"),Ee=sn("/",!1),_e=un(["*","\\","/","["],!1,!1),Ce=un(["\\","/","["],!1,!1),Se=sn("[",!1),ke=sn("]",!1),xe=un(["]","\\"],!1,!1),Oe=un([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),De=un([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),Fe=un(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Te=un(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),je=un([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Pe=un(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Re=un([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Be=un([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Ie=un([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Ne=un(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),$e=un([" "," "," ",[" "," "]," "," "," "],!1,!1),Le=sn("enum",!1),Ue=sn("false",!1),qe=sn("import",!1),ze=sn("null",!1),Ve=sn("true",!1),He=sn(";",!1),Ge=sn("}",!1),We=un([["A","Z"]],!1,!1),Ze=un([["a","z"]],!1,!1),Je=sn("1",!1),Qe=(un([["",""]],!1,!1),un([["\0",""]],!1,!1),sn("",!1),un(['"'],!1,!1),sn("A",!0)),Ye=sn("B",!0),Ke=sn("C",!0),Xe=sn("D",!0),tr=sn("E",!0),er=sn("F",!0),rr=(un([["\0","ÿ"]],!1,!1),un([["!","~"]],!1,!1),sn("%",!1)),nr=sn(":",!1),or=sn("?",!1),ir=sn("#",!1),ar=sn("@",!1),sr=sn("!",!1),ur=sn("&",!1),cr=sn("(",!1),lr=sn(")",!1),fr=sn("*",!1),hr=sn("+",!1),pr=sn(",",!1),dr=sn("=",!1),mr=sn("-",!1),yr=sn("~",!1),gr=sn("::",!1),vr=sn("25",!1),br=un([["0","5"]],!1,!1),wr=sn("2",!1),Ar=un([["0","4"]],!1,!1),Mr=un([["a","z"],["0","9"],"-"],!1,!0),Er=un([["a","z"],"-"],!1,!0),_r=sn("concerto",!1),Cr=sn("version",!1),Sr=sn("namespace",!1),kr=sn("abstract",!1),xr=sn("concept",!1),Or=sn("asset",!1),Dr=sn("transaction",!1),Fr=sn("event",!1),Tr=sn("participant",!1),jr=sn("from",!1),Pr=sn("Integer",!1),Rr=sn("Double",!1),Br=sn("Long",!1),Ir=sn("String",!1),Nr=sn("DateTime",!1),$r=sn("Boolean",!1),Lr=sn("identified by",!1),Ur=sn("identified",!1),qr=sn("[]",!1),zr=sn("extends",!1),Vr=sn("{",!1),Hr=sn("optional",!1),Gr=sn("default",!1),Wr=sn("o",!1),Zr=sn("regex",!1),Jr=sn("range",!1),Qr=sn("--\x3e",!1),Yr=sn(".{",!1),Kr=0,Xr=0,tn=[{line:1,column:1}],en=0,rn=[],nn=0;if("startRule"in e){if(!(e.startRule in u))throw new Error("Can't start parsing from rule \""+e.startRule+'".');c=u[e.startRule]}function on(){return t.substring(Xr,Kr)}function an(){return fn(Xr,Kr)}function sn(t,e){return{type:"literal",text:t,ignoreCase:e}}function un(t,e,r){return{type:"class",parts:t,inverted:e,ignoreCase:r}}function cn(t){return{type:"other",description:t}}function ln(e){var r,n=tn[e];if(n)return n;for(r=e-1;!tn[r];)r--;for(n={line:(n=tn[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return tn[e]=n,n}function fn(t,e){var r=ln(t),n=ln(e);return{source:s,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:n.line,column:n.column}}}function hn(t){Kr<en||(Kr>en&&(en=Kr,rn=[]),rn.push(t))}function pn(){var e,r;return e=Kr,zn(),r=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,r=function(){var e,r,n,o;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,8)===P?(r=P,Kr+=8):(r=i,0===nn&&hn(_r)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(zn(),n=function(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===R?(r=R,Kr+=7):(r=i,0===nn&&hn(Cr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),n!==i?(zn(),(o=Dn())!==i?(zn(),Xr=e,e=o.value):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),r===i&&(r=null),n=ko(),o=function(){var e,r,n;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,9)===B?(r=B,Kr+=9):(r=i,0===nn&&hn(Sr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(zn(),(n=Bo())!==i?(zn(),Xr=e,e=n):(Kr=e,e=i)):(Kr=e,e=i),e}(),o!==i?(a=function(){var t,e,r,n,o,a;if(t=Kr,(e=No())!==i){for(r=[],n=Kr,o=zn(),(a=No())!==i?n=o=[o,a]:(Kr=n,n=i);n!==i;)r.push(n),n=Kr,o=zn(),(a=No())!==i?n=o=[o,a]:(Kr=n,n=i);Xr=t,t=Lo(e,r,1)}else Kr=t,t=i;return t}(),a===i&&(a=null),s=function(){var t,e,r,n,o,a;if(t=Kr,(e=$o())!==i){for(r=[],n=Kr,o=zn(),(a=$o())!==i?n=o=[o,a]:(Kr=n,n=i);n!==i;)r.push(n),n=Kr,o=zn(),(a=$o())!==i?n=o=[o,a]:(Kr=n,n=i);Xr=t,t=Lo(e,r,1)}else Kr=t,t=i;return t}(),s===i&&(s=null),Xr=e,u=r,c=o,l=a,f=s,h={$class:"concerto.metamodel@1.0.0.Model",decorators:Uo(n),namespace:c,imports:Uo(l),declarations:Uo(f)},u&&(h.concertoVersion=u),e=h):(Kr=e,e=i),e}(),r!==i?(zn(),Xr=e,e=r):(Kr=e,e=i),e}function dn(){var e;return t.length>Kr?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ft)),e}function mn(){var e;return nn++,9===t.charCodeAt(Kr)?(e="\t",Kr++):(e=i,0===nn&&hn(jt)),e===i&&(11===t.charCodeAt(Kr)?(e="\v",Kr++):(e=i,0===nn&&hn(Pt)),e===i&&(12===t.charCodeAt(Kr)?(e="\f",Kr++):(e=i,0===nn&&hn(Rt)),e===i&&(32===t.charCodeAt(Kr)?(e=" ",Kr++):(e=i,0===nn&&hn(Bt)),e===i&&(160===t.charCodeAt(Kr)?(e=" ",Kr++):(e=i,0===nn&&hn(It)),e===i&&(65279===t.charCodeAt(Kr)?(e="\ufeff",Kr++):(e=i,0===nn&&hn(Nt)),e===i&&(e=function(){var e;return _t.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn($e)),e}())))))),nn--,e===i&&0===nn&&hn(Tt),e}function yn(){var e;return at.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn($t)),e}function gn(){var e;return nn++,10===t.charCodeAt(Kr)?(e="\n",Kr++):(e=i,0===nn&&hn(Ut)),e===i&&("\r\n"===t.substr(Kr,2)?(e="\r\n",Kr+=2):(e=i,0===nn&&hn(qt)),e===i&&(13===t.charCodeAt(Kr)?(e="\r",Kr++):(e=i,0===nn&&hn(zt)),e===i&&(8232===t.charCodeAt(Kr)?(e="\u2028",Kr++):(e=i,0===nn&&hn(Vt)),e===i&&(8233===t.charCodeAt(Kr)?(e="\u2029",Kr++):(e=i,0===nn&&hn(Ht)))))),nn--,e===i&&0===nn&&hn(Lt),e}function vn(){var e;return nn++,(e=function(){var e,r,n,o,a,s;if(e=Kr,t.substr(Kr,2)===l?(r=l,Kr+=2):(r=i,0===nn&&hn(Wt)),r!==i){for(n=[],o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);o!==i;)n.push(o),o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);t.substr(Kr,2)===f?(o=f,Kr+=2):(o=i,0===nn&&hn(Zt)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)}else Kr=e,e=i;return e}())===i&&(e=function(){var e,r,n,o,a,s;if(e=Kr,t.substr(Kr,2)===h?(r=h,Kr+=2):(r=i,0===nn&&hn(Jt)),r!==i){for(n=[],o=Kr,a=Kr,nn++,s=yn(),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);o!==i;)n.push(o),o=Kr,a=Kr,nn++,s=yn(),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);e=r=[r,n]}else Kr=e,e=i;return e}()),nn--,e===i&&0===nn&&hn(Gt),e}function bn(){var e,r,n,o,a,s;if(e=Kr,t.substr(Kr,2)===l?(r=l,Kr+=2):(r=i,0===nn&&hn(Wt)),r!==i){for(n=[],o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),s===i&&(s=yn()),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);o!==i;)n.push(o),o=Kr,a=Kr,nn++,t.substr(Kr,2)===f?(s=f,Kr+=2):(s=i,0===nn&&hn(Zt)),s===i&&(s=yn()),nn--,s===i?a=void 0:(Kr=a,a=i),a!==i&&(s=dn())!==i?o=a=[a,s]:(Kr=o,o=i);t.substr(Kr,2)===f?(o=f,Kr+=2):(o=i,0===nn&&hn(Zt)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)}else Kr=e,e=i;return e}function wn(){var e,r,n;return e=Kr,r=Kr,nn++,n=function(){var e;return(e=function(){var e,r;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===E?(r=E,Kr+=4):(r=i,0===nn&&hn(ze)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i&&(Xr=e,r={type:"Literal",value:null}),r}())===i&&(e=En()),e}(),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i?(n=function(){var t,e,r,n;if(nn++,t=Kr,(e=An())!==i){for(r=[],n=Mn();n!==i;)r.push(n),n=Mn();Xr=t,t={$class:"concerto.metamodel@1.0.0.TypeIdentifier",name:e+r.join("")}}else Kr=t,t=i;return nn--,t===i&&(e=i,0===nn&&hn(Qt)),t}(),n!==i?(Xr=e,e=n):(Kr=e,e=i)):(Kr=e,e=i),e}function An(){var e,r,n;return(e=function(){var e;return(e=function(){var e;return vt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(je)),e}())===i&&(e=function(){var e;return dt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Oe)),e}())===i&&(e=function(){var e;return gt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Te)),e}())===i&&(e=function(){var e;return mt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(De)),e}())===i&&(e=function(){var e;return yt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Fe)),e}())===i&&(e=function(){var e;return Mt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ie)),e}()),e}())===i&&(36===t.charCodeAt(Kr)?(e="$",Kr++):(e=i,0===nn&&hn(Yt)),e===i&&(95===t.charCodeAt(Kr)?(e="_",Kr++):(e=i,0===nn&&hn(Kt)),e===i&&(e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=Bn())!==i?(Xr=e,e=n):(Kr=e,e=i)))),e}function Mn(){var e;return(e=An())===i&&(e=function(){var e;return(e=function(){var e;return wt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Re)),e}())===i&&(e=function(){var e;return bt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Pe)),e}()),e}())===i&&(e=function(){var e;return At.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Be)),e}())===i&&(e=function(){var e;return Et.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ne)),e}())===i&&(8204===t.charCodeAt(Kr)?(e="‌",Kr++):(e=i,0===nn&&hn(te)),e===i&&(8205===t.charCodeAt(Kr)?(e="‍",Kr++):(e=i,0===nn&&hn(ee)))),e}function En(){var e,r;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===_?(r=_,Kr+=4):(r=i,0===nn&&hn(Ve)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i&&(Xr=e,r={type:"Literal",value:!0}),(e=r)===i&&(e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===A?(r=A,Kr+=5):(r=i,0===nn&&hn(Ue)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i&&(Xr=e,r={type:"Literal",value:!1}),e=r),e}function _n(){var e,r,n,o,a;if(e=Kr,st.test(t.charAt(Kr))?(r=t.charAt(Kr),Kr++):(r=i,0===nn&&hn(oe)),r===i&&(r=null),Cn()!==i)if(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i){for(o=[],a=Sn();a!==i;)o.push(a),a=Sn();(a=kn())===i&&(a=null),Xr=e,e={type:"Literal",value:parseFloat(on())}}else Kr=e,e=i;else Kr=e,e=i;return e}function Cn(){var e,r,n,o;if(48===t.charCodeAt(Kr)?(e="0",Kr++):(e=i,0===nn&&hn(ie)),e===i)if(e=Kr,r=function(){var e;return ct.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(se)),e}(),r!==i){for(n=[],o=Sn();o!==i;)n.push(o),o=Sn();e=r=[r,n]}else Kr=e,e=i;return e}function Sn(){var e;return ut.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ae)),e}function kn(){var e,r,n;return e=Kr,r=function(){var e;return"e"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ue)),e}(),r!==i&&(n=xn())!==i?e=r=[r,n]:(Kr=e,e=i),e}function xn(){var e,r,n,o;if(e=Kr,st.test(t.charAt(Kr))?(r=t.charAt(Kr),Kr++):(r=i,0===nn&&hn(oe)),r===i&&(r=null),n=[],(o=Sn())!==i)for(;o!==i;)n.push(o),o=Sn();else n=i;return n!==i?e=r=[r,n]:(Kr=e,e=i),e}function On(){var e;return lt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(le)),e}function Dn(){var e,r,n,o;if(nn++,e=Kr,34===t.charCodeAt(Kr)?(r=m,Kr++):(r=i,0===nn&&hn(he)),r!==i){for(n=[],o=Fn();o!==i;)n.push(o),o=Fn();34===t.charCodeAt(Kr)?(o=m,Kr++):(o=i,0===nn&&hn(he)),o!==i?(Xr=e,e={type:"Literal",value:n.join("")}):(Kr=e,e=i)}else Kr=e,e=i;if(e===i)if(e=Kr,39===t.charCodeAt(Kr)?(r=y,Kr++):(r=i,0===nn&&hn(pe)),r!==i){for(n=[],o=Tn();o!==i;)n.push(o),o=Tn();39===t.charCodeAt(Kr)?(o=y,Kr++):(o=i,0===nn&&hn(pe)),o!==i?(Xr=e,e={type:"Literal",value:n.join("")}):(Kr=e,e=i)}else Kr=e,e=i;return nn--,e===i&&(r=i,0===nn&&hn(fe)),e}function Fn(){var e,r,n;return e=Kr,r=Kr,nn++,34===t.charCodeAt(Kr)?(n=m,Kr++):(n=i,0===nn&&hn(he)),n===i&&(92===t.charCodeAt(Kr)?(n=p,Kr++):(n=i,0===nn&&hn(Xt)),n===i&&(n=yn())),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=dn())!==i?(Xr=e,e=on()):(Kr=e,e=i),e===i&&(e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=Pn())!==i?(Xr=e,e=n):(Kr=e,e=i),e===i&&(e=jn())),e}function Tn(){var e,r,n;return e=Kr,r=Kr,nn++,39===t.charCodeAt(Kr)?(n=y,Kr++):(n=i,0===nn&&hn(pe)),n===i&&(92===t.charCodeAt(Kr)?(n=p,Kr++):(n=i,0===nn&&hn(Xt)),n===i&&(n=yn())),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=dn())!==i?(Xr=e,e=on()):(Kr=e,e=i),e===i&&(e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=Pn())!==i?(Xr=e,e=n):(Kr=e,e=i),e===i&&(e=jn())),e}function jn(){var e,r;return e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&gn()!==i?(Xr=e,e=""):(Kr=e,e=i),e}function Pn(){var e,r,n,o;return e=function(){var e;return(e=Rn())===i&&(e=function(){var e,r,n;return e=Kr,r=Kr,nn++,n=function(){var e;return(e=Rn())===i&&(e=Sn())===i&&(120===t.charCodeAt(Kr)?(e="x",Kr++):(e=i,0===nn&&hn(we)),e===i&&(117===t.charCodeAt(Kr)?(e="u",Kr++):(e=i,0===nn&&hn(Ae)))),e}(),n===i&&(n=yn()),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=dn())!==i?(Xr=e,e=on()):(Kr=e,e=i),e}()),e}(),e===i&&(e=Kr,48===t.charCodeAt(Kr)?(r="0",Kr++):(r=i,0===nn&&hn(ie)),r!==i?(n=Kr,nn++,o=Sn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="\0"):(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=function(){var e,r,n,o,a,s,u;return e=Kr,120===t.charCodeAt(Kr)?(r="x",Kr++):(r=i,0===nn&&hn(we)),r!==i?(n=Kr,o=Kr,(a=On())!==i&&(s=On())!==i?o=a=[a,s]:(Kr=o,o=i),(n=o!==i?t.substring(n,Kr):o)!==i?(Xr=e,u=n,e=String.fromCharCode(parseInt(u,16))):(Kr=e,e=i)):(Kr=e,e=i),e}(),e===i&&(e=Bn()))),e}function Rn(){var e,r;return 39===t.charCodeAt(Kr)?(e=y,Kr++):(e=i,0===nn&&hn(pe)),e===i&&(34===t.charCodeAt(Kr)?(e=m,Kr++):(e=i,0===nn&&hn(he)),e===i&&(92===t.charCodeAt(Kr)?(e=p,Kr++):(e=i,0===nn&&hn(Xt)),e===i&&(e=Kr,98===t.charCodeAt(Kr)?(r="b",Kr++):(r=i,0===nn&&hn(de)),r!==i&&(Xr=e,r="\b"),(e=r)===i&&(e=Kr,102===t.charCodeAt(Kr)?(r="f",Kr++):(r=i,0===nn&&hn(me)),r!==i&&(Xr=e,r="\f"),(e=r)===i&&(e=Kr,110===t.charCodeAt(Kr)?(r="n",Kr++):(r=i,0===nn&&hn(ye)),r!==i&&(Xr=e,r="\n"),(e=r)===i&&(e=Kr,114===t.charCodeAt(Kr)?(r="r",Kr++):(r=i,0===nn&&hn(ge)),r!==i&&(Xr=e,r="\r"),(e=r)===i&&(e=Kr,116===t.charCodeAt(Kr)?(r="t",Kr++):(r=i,0===nn&&hn(ve)),r!==i&&(Xr=e,r="\t"),(e=r)===i&&(e=Kr,118===t.charCodeAt(Kr)?(r="v",Kr++):(r=i,0===nn&&hn(be)),r!==i&&(Xr=e,r="\v"),e=r)))))))),e}function Bn(){var e,r,n,o,a,s,u,c,l;return e=Kr,117===t.charCodeAt(Kr)?(r="u",Kr++):(r=i,0===nn&&hn(Ae)),r!==i?(n=Kr,o=Kr,(a=On())!==i&&(s=On())!==i&&(u=On())!==i&&(c=On())!==i?o=a=[a,s,u,c]:(Kr=o,o=i),(n=o!==i?t.substring(n,Kr):o)!==i?(Xr=e,l=n,e=String.fromCharCode(parseInt(l,16))):(Kr=e,e=i)):(Kr=e,e=i),e}function In(){var e,r,n;return e=Kr,r=Kr,nn++,ht.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(Ce)),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e===i&&(e=Nn())===i&&(e=Ln()),e}function Nn(){var e,r,n;return e=Kr,92===t.charCodeAt(Kr)?(r=p,Kr++):(r=i,0===nn&&hn(Xt)),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e}function $n(){var t,e,r;return t=Kr,e=Kr,nn++,r=yn(),nn--,r===i?e=void 0:(Kr=e,e=i),e!==i&&(r=dn())!==i?t=e=[e,r]:(Kr=t,t=i),t}function Ln(){var e,r,n,o;if(e=Kr,91===t.charCodeAt(Kr)?(r=v,Kr++):(r=i,0===nn&&hn(Se)),r!==i){for(n=[],o=Un();o!==i;)n.push(o),o=Un();93===t.charCodeAt(Kr)?(o=b,Kr++):(o=i,0===nn&&hn(ke)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)}else Kr=e,e=i;return e}function Un(){var e,r,n;return e=Kr,r=Kr,nn++,pt.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(xe)),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e===i&&(e=Nn()),e}function qn(){var e,r,n,o;return e=Kr,t.substr(Kr,6)===M?(r=M,Kr+=6):(r=i,0===nn&&hn(qe)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}function zn(){var t,e;for(t=[],(e=mn())===i&&(e=gn())===i&&(e=vn());e!==i;)t.push(e),(e=mn())===i&&(e=gn())===i&&(e=vn());return t}function Vn(){var t,e;for(t=[],(e=mn())===i&&(e=bn());e!==i;)t.push(e),(e=mn())===i&&(e=bn());return t}function Hn(){var e;return Ct.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(We)),e===i&&(St.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ze))),e}function Gn(){var e;return ut.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ae)),e}function Wn(){var e;return(e=Gn())===i&&("a"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Qe)),e===i&&("b"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ye)),e===i&&("c"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Ke)),e===i&&("d"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Xe)),e===i&&("e"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(tr)),e===i&&("f"===t.substr(Kr,1).toLowerCase()?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(er)))))))),e}function Zn(){var e,r,n,o,a;return e=Kr,r=Kr,37===t.charCodeAt(Kr)?(n="%",Kr++):(n=i,0===nn&&hn(rr)),n!==i&&(o=Wn())!==i&&(a=Wn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r!==i?t.substring(e,Kr):r}function Jn(){var e;return 33===t.charCodeAt(Kr)?(e="!",Kr++):(e=i,0===nn&&hn(sr)),e===i&&(36===t.charCodeAt(Kr)?(e="$",Kr++):(e=i,0===nn&&hn(Yt)),e===i&&(38===t.charCodeAt(Kr)?(e="&",Kr++):(e=i,0===nn&&hn(ur)),e===i&&(39===t.charCodeAt(Kr)?(e=y,Kr++):(e=i,0===nn&&hn(pe)),e===i&&(40===t.charCodeAt(Kr)?(e="(",Kr++):(e=i,0===nn&&hn(cr)),e===i&&(41===t.charCodeAt(Kr)?(e=")",Kr++):(e=i,0===nn&&hn(lr)),e===i&&(42===t.charCodeAt(Kr)?(e="*",Kr++):(e=i,0===nn&&hn(fr)),e===i&&(43===t.charCodeAt(Kr)?(e=O,Kr++):(e=i,0===nn&&hn(hr)),e===i&&(44===t.charCodeAt(Kr)?(e=D,Kr++):(e=i,0===nn&&hn(pr)),e===i&&(59===t.charCodeAt(Kr)?(e=";",Kr++):(e=i,0===nn&&hn(He)),e===i&&(61===t.charCodeAt(Kr)?(e=F,Kr++):(e=i,0===nn&&hn(dr)))))))))))),e}function Qn(){var e;return(e=Hn())===i&&(e=Gn())===i&&(45===t.charCodeAt(Kr)?(e=T,Kr++):(e=i,0===nn&&hn(mr)),e===i&&(46===t.charCodeAt(Kr)?(e=d,Kr++):(e=i,0===nn&&hn(ne)),e===i&&(95===t.charCodeAt(Kr)?(e="_",Kr++):(e=i,0===nn&&hn(Kt)),e===i&&(126===t.charCodeAt(Kr)?(e="~",Kr++):(e=i,0===nn&&hn(yr)))))),e}function Yn(){var e,r,n,o;return e=Kr,(r=Xn())!==i?(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)),n!==i&&(o=Xn())!==i?e=r=[r,n,o]:(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=to()),e}function Kn(){var e,r,n;return e=Kr,(r=Xn())!==i?(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}function Xn(){var e,r,n,o,a,s,u,c;return e=Kr,r=Kr,(n=Wn())!==i?(o=Kr,(a=Wn())!==i?(s=Kr,(u=Wn())!==i?((c=Wn())===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),r=n=[n,o]):(Kr=r,r=i),r!==i?t.substring(e,Kr):r}function to(){var e,r,n,o,a,s,u,c,l;return e=Kr,r=Kr,(n=eo())!==i?(46===t.charCodeAt(Kr)?(o=d,Kr++):(o=i,0===nn&&hn(ne)),o!==i&&(a=eo())!==i?(46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i&&(u=eo())!==i?(46===t.charCodeAt(Kr)?(c=d,Kr++):(c=i,0===nn&&hn(ne)),c!==i&&(l=eo())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i)):(Kr=r,r=i)):(Kr=r,r=i)):(Kr=r,r=i),r!==i?t.substring(e,Kr):r}function eo(){var e,r,n,o,a;return e=Kr,r=Kr,"25"===t.substr(Kr,2)?(n="25",Kr+=2):(n=i,0===nn&&hn(vr)),n!==i?(kt.test(t.charAt(Kr))?(o=t.charAt(Kr),Kr++):(o=i,0===nn&&hn(br)),o!==i?r=n=[n,o]:(Kr=r,r=i)):(Kr=r,r=i),r===i&&(r=Kr,50===t.charCodeAt(Kr)?(n="2",Kr++):(n=i,0===nn&&hn(wr)),n!==i?(xt.test(t.charAt(Kr))?(o=t.charAt(Kr),Kr++):(o=i,0===nn&&hn(Ar)),o!==i&&(a=Gn())!==i?r=n=[n,o,a]:(Kr=r,r=i)):(Kr=r,r=i),r===i&&(r=Kr,49===t.charCodeAt(Kr)?(n="1",Kr++):(n=i,0===nn&&hn(Je)),n!==i&&(o=Gn())!==i&&(a=Gn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r===i&&(r=Kr,ct.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(se)),n!==i&&(o=Gn())!==i?r=n=[n,o]:(Kr=r,r=i),r===i&&(r=Gn())))),r!==i?t.substring(e,Kr):r}function ro(){var t;return(t=Qn())===i&&(t=Zn()),t}function no(){var e,r,n,o;for(e=Kr,r=[],n=Kr,47===t.charCodeAt(Kr)?(o=g,Kr++):(o=i,0===nn&&hn(Ee)),o!==i?n=o=[o,oo()]:(Kr=n,n=i);n!==i;)r.push(n),n=Kr,47===t.charCodeAt(Kr)?(o=g,Kr++):(o=i,0===nn&&hn(Ee)),o!==i?n=o=[o,oo()]:(Kr=n,n=i);return t.substring(e,Kr)}function oo(){var e,r,n;for(e=Kr,r=[],n=ao();n!==i;)r.push(n),n=ao();return t.substring(e,Kr)}function io(){var e,r,n;if(e=Kr,r=[],(n=ao())!==i)for(;n!==i;)r.push(n),n=ao();else r=i;return r!==i?t.substring(e,Kr):r}function ao(){var e;return(e=Qn())===i&&(e=Zn())===i&&(e=Jn())===i&&(58===t.charCodeAt(Kr)?(e=S,Kr++):(e=i,0===nn&&hn(nr)),e===i&&(64===t.charCodeAt(Kr)?(e=x,Kr++):(e=i,0===nn&&hn(ar)))),e}function so(){var e,r,n;for(e=Kr,r=[],(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));n!==i;)r.push(n),(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));return t.substring(e,Kr)}function uo(){var e,r,n;for(e=Kr,r=[],(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));n!==i;)r.push(n),(n=ao())===i&&(47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n===i&&(63===t.charCodeAt(Kr)?(n=k,Kr++):(n=i,0===nn&&hn(or))));return t.substring(e,Kr)}function co(){var e,r,n,a,s,u;return e=Kr,r=function(){var e,r,n,o,a,s,u,c,l;return e=Kr,r=Kr,(r=(n=po())!==i?t.substring(r,Kr):n)!==i?(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i?(o=Kr,(o=(a=po())!==i?t.substring(o,Kr):a)!==i?(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)),a!==i?(s=Kr,(s=(u=po())!==i?t.substring(s,Kr):u)!==i?(Xr=e,c=o,l=s,e={major:parseInt(r,10),minor:parseInt(c,10),patch:parseInt(l,10)}):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(n=Kr,45===t.charCodeAt(Kr)?(a=T,Kr++):(a=i,0===nn&&hn(mr)),a!==i?(s=function(){var e,r,n,a,s,u,c;if(e=Kr,r=Kr,(r=(n=lo())!==i?t.substring(r,Kr):n)!==i){for(n=[],a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=lo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);a!==i;)n.push(a),a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=lo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);Xr=e,e=[r].concat(o(n))}else Kr=e,e=i;return e}(),s!==i?n=s:(Kr=n,n=i)):(Kr=n,n=i),n===i&&(n=null),a=Kr,43===t.charCodeAt(Kr)?(s=O,Kr++):(s=i,0===nn&&hn(hr)),s!==i?(u=function(){var e,r,n,a,s,u,c;if(e=Kr,r=Kr,(r=(n=fo())!==i?t.substring(r,Kr):n)!==i){for(n=[],a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=fo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);a!==i;)n.push(a),a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i?(u=Kr,(u=(c=fo())!==i?t.substring(u,Kr):c)!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i);Xr=e,e=[r].concat(o(n))}else Kr=e,e=i;return e}(),u!==i?a=u:(Kr=a,a=i)):(Kr=a,a=i),a===i&&(a=null),Xr=e,e={versionCore:r,pre:n,build:a}):(Kr=e,e=i),e}function lo(){var t;return(t=ho())===i&&(t=po()),t}function fo(){var t,e;if((t=ho())===i)if(t=[],(e=yo())!==i)for(;e!==i;)t.push(e),e=yo();else t=i;return t}function ho(){var e,r,n,o,a;for(e=Kr,r=[],n=yo();n!==i;)r.push(n),n=yo();if(n=function(){var e;return Dt.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Er)),e}(),n!==i){for(o=[],a=mo();a!==i;)o.push(a),a=mo();e=r=[r,n,o]}else Kr=e,e=i;return e}function po(){var e,r,n,o;if(48===t.charCodeAt(Kr)?(e="0",Kr++):(e=i,0===nn&&hn(ie)),e===i)if(e=Kr,r=function(){var e;return ct.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(se)),e}(),r!==i){for(n=[],o=yo();o!==i;)n.push(o),o=yo();e=r=[r,n]}else Kr=e,e=i;return e}function mo(){var e;return Ot.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(Mr)),e}function yo(){var e;return ut.test(t.charAt(Kr))?(e=t.charAt(Kr),Kr++):(e=i,0===nn&&hn(ae)),e}function go(){var e,r,n,o;return e=Kr,t.substr(Kr,8)===I?(r=I,Kr+=8):(r=i,0===nn&&hn(kr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}function vo(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===V?(r=V,Kr+=7):(r=i,0===nn&&hn(Pr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Integer"):(Kr=e,e=i)):(Kr=e,e=i),e}function bo(){var e,r,n,o;return e=Kr,t.substr(Kr,6)===H?(r=H,Kr+=6):(r=i,0===nn&&hn(Rr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Double"):(Kr=e,e=i)):(Kr=e,e=i),e}function wo(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===G?(r=G,Kr+=4):(r=i,0===nn&&hn(Br)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Long"):(Kr=e,e=i)):(Kr=e,e=i),e}function Ao(){var e,r,n,o;return e=Kr,t.substr(Kr,6)===W?(r=W,Kr+=6):(r=i,0===nn&&hn(Ir)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="String"):(Kr=e,e=i)):(Kr=e,e=i),e}function Mo(){var e,r,n,o;return e=Kr,t.substr(Kr,8)===Z?(r=Z,Kr+=8):(r=i,0===nn&&hn(Nr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="DateTime"):(Kr=e,e=i)):(Kr=e,e=i),e}function Eo(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===J?(r=J,Kr+=7):(r=i,0===nn&&hn($r)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e="Boolean"):(Kr=e,e=i)):(Kr=e,e=i),e}function _o(){var e;return(e=function(){var e,r,n;return e=Kr,t.substr(Kr,13)===Q?(r=Q,Kr+=13):(r=i,0===nn&&hn(Lr)),r!==i?(zn(),(n=wn())!==i?(Xr=e,e={$class:"concerto.metamodel@1.0.0.IdentifiedBy",name:n.name}):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,r;return e=Kr,t.substr(Kr,10)===Y?(r=Y,Kr+=10):(r=i,0===nn&&hn(Ur)),r!==i&&(Xr=e,r={$class:"concerto.metamodel@1.0.0.Identified"}),r}()),e}function Co(){var e;return(e=function(){var t,e;return t=Kr,(e=Dn())!==i&&(Xr=t,e=r({$class:"concerto.metamodel@1.0.0.DecoratorString",value:e.value},zo(an()))),e}())===i&&(e=function(){var e,n,o;return e=Kr,n=Kr,(n=(o=En())!==i?t.substring(n,Kr):o)!==i&&(Xr=e,n=r({$class:"concerto.metamodel@1.0.0.DecoratorBoolean",value:"true"==n},zo(an()))),n}())===i&&(e=function(){var e,n;return e=Kr,n=function(){var e,r,n,o;return e=Kr,r=Kr,45===t.charCodeAt(Kr)?(n=T,Kr++):(n=i,0===nn&&hn(mr)),n===i&&(n=null),r=t.substring(r,Kr),n=Kr,(n=(o=function(){var e,r,n,o;return nn++,e=Kr,r=function(){var e,r,n,o,a;if(e=Kr,"0x"===t.substr(Kr,2).toLowerCase()?(r=t.substr(Kr,2),Kr+=2):(r=i,0===nn&&hn(ce)),r!==i){if(n=Kr,o=[],(a=On())!==i)for(;a!==i;)o.push(a),a=On();else o=i;(n=o!==i?t.substring(n,Kr):o)!==i?(Xr=e,e={type:"Literal",value:parseInt(n,16)}):(Kr=e,e=i)}else Kr=e,e=i;return e}(),r!==i?(n=Kr,nn++,(o=An())===i&&(o=Sn()),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e=r):(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=Kr,r=function(){var e,r,n,o,a;if(e=Kr,(r=Cn())!==i)if(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i){for(o=[],a=Sn();a!==i;)o.push(a),a=Sn();(a=kn())===i&&(a=null),Xr=e,e={type:"Literal",value:parseFloat(on())}}else Kr=e,e=i;else Kr=e,e=i;if(e===i){if(e=Kr,46===t.charCodeAt(Kr)?(r=d,Kr++):(r=i,0===nn&&hn(ne)),r!==i){if(n=[],(o=Sn())!==i)for(;o!==i;)n.push(o),o=Sn();else n=i;n!==i?((o=kn())===i&&(o=null),Xr=e,e={type:"Literal",value:parseFloat(on())}):(Kr=e,e=i)}else Kr=e,e=i;e===i&&(e=Kr,(r=Cn())!==i?((n=kn())===i&&(n=null),Xr=e,e={type:"Literal",value:parseFloat(on())}):(Kr=e,e=i))}return e}(),r!==i?(n=Kr,nn++,(o=An())===i&&(o=Sn()),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=e,e=r):(Kr=e,e=i)):(Kr=e,e=i)),nn--,e===i&&(r=i,0===nn&&hn(re)),e}())!==i?t.substring(n,Kr):o)!==i?(Xr=e,e=r+n):(Kr=e,e=i),e}(),n!==i&&(Xr=e,n=r({$class:"concerto.metamodel@1.0.0.DecoratorNumber",value:+n},zo(an()))),n}())===i&&(e=function(){var e,n,o;return e=Kr,(n=wn())!==i?(zn(),t.substr(Kr,2)===K?(o=K,Kr+=2):(o=i,0===nn&&hn(qr)),o===i&&(o=null),Xr=e,e=r({$class:"concerto.metamodel@1.0.0.DecoratorTypeReference",type:n,isArray:!!o},zo(an()))):(Kr=e,e=i),e}()),e}function So(){var e,n,o,a,s,u;return e=Kr,64===t.charCodeAt(Kr)?(n=x,Kr++):(n=i,0===nn&&hn(ar)),n!==i?(o=Kr,(o=(a=wn())!==i?t.substring(o,Kr):a)!==i?(a=function(){var e,r,n,o,a,s,u,c;if(e=Kr,40===t.charCodeAt(Kr)?(r="(",Kr++):(r=i,0===nn&&hn(cr)),r!==i){for(zn(),n=[],o=Kr,(a=Co())!==i?(s=zn(),44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(zn(),Xr=o,o=a):(Kr=o,o=i)):(Kr=o,o=i);o!==i;)n.push(o),o=Kr,(a=Co())!==i?(s=zn(),44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(zn(),Xr=o,o=a):(Kr=o,o=i)):(Kr=o,o=i);(o=Co())===i&&(o=null),a=zn(),41===t.charCodeAt(Kr)?(s=")",Kr++):(s=i,0===nn&&hn(lr)),s!==i?(Xr=e,e=(c=o)?n.concat(c):[]):(Kr=e,e=i)}else Kr=e,e=i;return e}(),a===i&&(a=null),Xr=e,s=a,u=r({$class:"concerto.metamodel@1.0.0.Decorator",name:o},zo(an())),s&&(u.arguments=s),e=u):(Kr=e,e=i)):(Kr=e,e=i),e}function ko(){var t,e,r;for(t=[],e=Kr,(r=So())!==i?(zn(),Xr=e,e=r):(Kr=e,e=i);e!==i;)t.push(e),e=Kr,(r=So())!==i?(zn(),Xr=e,e=r):(Kr=e,e=i);return t}function xo(){var e,r,n;return e=Kr,t.substr(Kr,7)===X?(r=X,Kr+=7):(r=i,0===nn&&hn(zr)),r!==i?(zn(),(n=wn())!==i?(Xr=e,e={$class:"concerto.metamodel@1.0.0.TypeIdentifier",name:n.name}):(Kr=e,e=i)):(Kr=e,e=i),e}function Oo(){var e,r;return e=Kr,t.substr(Kr,8)===et?(r=et,Kr+=8):(r=i,0===nn&&hn(Hr)),r!==i&&(Xr=e,r={type:"Optional"}),r}function Do(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),(o=Dn())!==i?(Xr=e,e=o.value):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}function Fo(){var e,r,n,o,a;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),o=Kr,(o=(a=xn())!==i?t.substring(o,Kr):a)!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}function To(){var e;return(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),Ao()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Do())===i&&(u=null),zn(),c=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===ot?(r=ot,Kr+=5):(r=i,0===nn&&hn(Zr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),(o=function(){var e,r,n,o,a;return nn++,e=Kr,47===t.charCodeAt(Kr)?(r=g,Kr++):(r=i,0===nn&&hn(Ee)),r!==i?(n=Kr,o=function(){var e,r,n,o;if(e=Kr,r=function(){var e,r,n;return e=Kr,r=Kr,nn++,ft.test(t.charAt(Kr))?(n=t.charAt(Kr),Kr++):(n=i,0===nn&&hn(_e)),nn--,n===i?r=void 0:(Kr=r,r=i),r!==i&&(n=$n())!==i?e=r=[r,n]:(Kr=e,e=i),e===i&&(e=Nn())===i&&(e=Ln()),e}(),r!==i){for(n=[],o=In();o!==i;)n.push(o),o=In();e=r=[r,n]}else Kr=e,e=i;return e}(),(n=o!==i?t.substring(n,Kr):o)!==i?(47===t.charCodeAt(Kr)?(o=g,Kr++):(o=i,0===nn&&hn(Ee)),o!==i?(a=Kr,function(){var t,e;for(t=[],e=Mn();e!==i;)t.push(e),e=Mn()}(),a=t.substring(a,Kr),Xr=e,e={$class:"concerto.metamodel@1.0.0.StringRegexValidator",pattern:n,flags:a}):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),nn--,e===i&&(r=i,0===nn&&hn(Me)),e}())!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.StringProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=p),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),bo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),u=function(){var e,r,n,o,a;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),o=Kr,(o=(a=_n())!==i?t.substring(o,Kr):a)!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),u===i&&(u=null),zn(),c=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,t.substr(Kr,5)===it?(r=it,Kr+=5):(r=i,0===nn&&hn(Jr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),91===t.charCodeAt(Kr)?(o=v,Kr++):(o=i,0===nn&&hn(Se)),o!==i?(zn(),a=Kr,_n(),a=t.substring(a,Kr),zn(),44===t.charCodeAt(Kr)?(s=D,Kr++):(s=i,0===nn&&hn(pr)),s!==i?(zn(),u=Kr,_n(),u=t.substring(u,Kr),zn(),93===t.charCodeAt(Kr)?(c=b,Kr++):(c=i,0===nn&&hn(ke)),c!==i?(Xr=e,f=u,h={$class:"concerto.metamodel@1.0.0.DoubleDomainValidator"},(l=a)&&(h.lower=parseFloat(l)),f&&(h.upper=parseFloat(f)),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.DoubleProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=parseFloat(p)),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),Eo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),u=function(){var e,r,n,o,a;return e=Kr,t.substr(Kr,7)===rt?(r=rt,Kr+=7):(r=i,0===nn&&hn(Gr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),o=Kr,(o=(a=En())!==i?t.substring(o,Kr):a)!==i?(Xr=e,e=o):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),u===i&&(u=null),zn(),(c=Oo())===i&&(c=null),zn(),Xr=e,l=n,f=a,h=u,p=c,d=r({$class:"concerto.metamodel@1.0.0.BooleanProperty",name:s.name,isArray:qo(f),isOptional:qo(p)},zo(an())),h&&(d.defaultValue="true"===h),l.length>0&&(d.decorators=l),e=d):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),Mo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Do())===i&&(u=null),zn(),(c=Oo())===i&&(c=null),zn(),Xr=e,l=n,f=a,h=u,p=c,d=r({$class:"concerto.metamodel@1.0.0.DateTimeProperty",name:s.name,isArray:qo(f),isOptional:qo(p)},zo(an())),h&&(d.defaultValue=h),l.length>0&&(d.decorators=l),e=d):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d;return e=Kr,n=ko(),zn(),"--\x3e"===t.substr(Kr,3)?(o="--\x3e",Kr+=3):(o=i,0===nn&&hn(Qr)),o!==i?(zn(),(a=wn())!==i?(zn(),t.substr(Kr,2)===K?(s=K,Kr+=2):(s=i,0===nn&&hn(qr)),s===i&&(s=null),zn(),(u=wn())!==i?(zn(),(c=Oo())===i&&(c=null),zn(),Xr=e,l=n,f=a,h=s,p=c,d=r({$class:"concerto.metamodel@1.0.0.RelationshipProperty",name:u.name,type:f,isArray:qo(h),isOptional:qo(p)},zo(an())),l.length>0&&(d.decorators=l),e=d):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),a=function(){var t,e,r,n,o;return t=Kr,e=Kr,nn++,r=function(){var t;return(t=Ao())===i&&(t=function(){var t;return(t=vo())===i&&(t=bo())===i&&(t=wo()),t}())===i&&(t=Mo())===i&&(t=Eo()),t}(),nn--,r===i?e=void 0:(Kr=e,e=i),e!==i&&(r=wn())!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?(Xr=t,t={$class:"concerto.metamodel@1.0.0.TypeIdentifier",name:r.name}):(Kr=t,t=i)):(Kr=t,t=i),t}(),a!==i?(zn(),t.substr(Kr,2)===K?(s=K,Kr+=2):(s=i,0===nn&&hn(qr)),s===i&&(s=null),zn(),(u=wn())!==i?(zn(),(c=Do())===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=s,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.ObjectProperty",name:u.name,type:h,isArray:qo(p),isOptional:qo(m)},zo(an())),d&&(y.defaultValue=d),f.length>0&&(y.decorators=f),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),vo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Fo())===i&&(u=null),zn(),c=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,t.substr(Kr,5)===it?(r=it,Kr+=5):(r=i,0===nn&&hn(Jr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),91===t.charCodeAt(Kr)?(o=v,Kr++):(o=i,0===nn&&hn(Se)),o!==i?(zn(),a=Kr,xn(),a=t.substring(a,Kr),zn(),44===t.charCodeAt(Kr)?(s=D,Kr++):(s=i,0===nn&&hn(pr)),s!==i?(zn(),u=Kr,xn(),u=t.substring(u,Kr),zn(),93===t.charCodeAt(Kr)?(c=b,Kr++):(c=i,0===nn&&hn(ke)),c!==i?(Xr=e,f=u,h={$class:"concerto.metamodel@1.0.0.IntegerDomainValidator"},(l=a)&&(h.lower=parseInt(l)),f&&(h.upper=parseInt(f)),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.IntegerProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=parseInt(p)),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),wo()!==i?(zn(),t.substr(Kr,2)===K?(a=K,Kr+=2):(a=i,0===nn&&hn(qr)),a===i&&(a=null),zn(),(s=wn())!==i?(zn(),(u=Fo())===i&&(u=null),zn(),c=function(){var e,r,n,o,a,s,u,c,l,f,h;return e=Kr,t.substr(Kr,5)===it?(r=it,Kr+=5):(r=i,0===nn&&hn(Jr)),r!==i?(zn(),61===t.charCodeAt(Kr)?(n=F,Kr++):(n=i,0===nn&&hn(dr)),n!==i?(zn(),91===t.charCodeAt(Kr)?(o=v,Kr++):(o=i,0===nn&&hn(Se)),o!==i?(zn(),a=Kr,xn(),a=t.substring(a,Kr),zn(),44===t.charCodeAt(Kr)?(s=D,Kr++):(s=i,0===nn&&hn(pr)),s!==i?(zn(),u=Kr,xn(),u=t.substring(u,Kr),zn(),93===t.charCodeAt(Kr)?(c=b,Kr++):(c=i,0===nn&&hn(ke)),c!==i?(Xr=e,f=u,h={$class:"concerto.metamodel@1.0.0.LongDomainValidator"},(l=a)&&(h.lower=parseInt(l)),f&&(h.upper=parseInt(f)),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),c===i&&(c=null),zn(),(l=Oo())===i&&(l=null),zn(),Xr=e,f=n,h=a,p=u,d=c,m=l,y=r({$class:"concerto.metamodel@1.0.0.LongProperty",name:s.name,isArray:qo(h),isOptional:qo(m)},zo(an())),p&&(y.defaultValue=parseInt(p)),f.length>0&&(y.decorators=f),d&&(y.validator=d),e=y):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}()),e}function jo(){var t,e,n;for(t=Kr,e=[],n=To();n!==i;)e.push(n),n=To();return Xr=t,r({type:"ClassDeclarationBody",declarations:Uo(e)},zo(an()))}function Po(){var e,n,o,a,s,u;return e=Kr,n=ko(),zn(),111===t.charCodeAt(Kr)?(o=nt,Kr++):(o=i,0===nn&&hn(Wr)),o!==i?(zn(),(a=wn())!==i?(zn(),Xr=e,s=n,u=r({$class:"concerto.metamodel@1.0.0.EnumProperty",name:a.name},zo(an())),s.length>0&&(u.decorators=s),e=u):(Kr=e,e=i)):(Kr=e,e=i),e}function Ro(){var e,r,n,o,a,s,u,c;if(e=Kr,r=Kr,(r=(n=wn())!==i?t.substring(r,Kr):n)!==i){for(n=Kr,o=[],a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i&&(u=wn())!==i?a=s=[s,u]:(Kr=a,a=i);a!==i;)o.push(a),a=Kr,46===t.charCodeAt(Kr)?(s=d,Kr++):(s=i,0===nn&&hn(ne)),s!==i&&(u=wn())!==i?a=s=[s,u]:(Kr=a,a=i);n=t.substring(n,Kr),Xr=e,c=n,e=r.concat(JSON.stringify(c).replace(/['"]+/g,""))}else Kr=e,e=i;return e}function Bo(){var e;return(e=function(){var e,r,n,o,a,s;return e=Kr,(r=Ro())!==i?(64===t.charCodeAt(Kr)?(n=x,Kr++):(n=i,0===nn&&hn(ar)),n!==i?(o=Kr,(o=(a=co())!==i?t.substring(o,Kr):a)!==i?(Xr=e,s=o,e="".concat(r,"@").concat(s)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=Ro()),e}function Io(){var e,r,n,o;return e=Kr,r=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===z?(r=z,Kr+=4):(r=i,0===nn&&hn(jr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(zn(),n=Kr,(n=(o=function(){var e,r,n,o,a,s,u;return e=Kr,(r=function(){var e,r,n,o,a;if(e=Kr,r=Kr,(n=Hn())!==i){for(o=[],(a=Hn())===i&&(a=Gn())===i&&(43===t.charCodeAt(Kr)?(a=O,Kr++):(a=i,0===nn&&hn(hr)),a===i&&(45===t.charCodeAt(Kr)?(a=T,Kr++):(a=i,0===nn&&hn(mr)),a===i&&(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)))));a!==i;)o.push(a),(a=Hn())===i&&(a=Gn())===i&&(43===t.charCodeAt(Kr)?(a=O,Kr++):(a=i,0===nn&&hn(hr)),a===i&&(45===t.charCodeAt(Kr)?(a=T,Kr++):(a=i,0===nn&&hn(mr)),a===i&&(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)))));r=n=[n,o]}else Kr=r,r=i;return r!==i?t.substring(e,Kr):r}())!==i?(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)),n!==i&&(o=function(){var e,r,n;return e=Kr,t.substr(Kr,2)===h?(r=h,Kr+=2):(r=i,0===nn&&hn(Jt)),r!==i&&(n=function(){var e,r,n,o,a,s;return e=Kr,r=Kr,n=function(){var e,r,n;for(e=Kr,r=[],(n=Qn())===i&&(n=Zn())===i&&(n=Jn())===i&&(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)));n!==i;)r.push(n),(n=Qn())===i&&(n=Zn())===i&&(n=Jn())===i&&(58===t.charCodeAt(Kr)?(n=S,Kr++):(n=i,0===nn&&hn(nr)));return t.substring(e,Kr)}(),64===t.charCodeAt(Kr)?(o=x,Kr++):(o=i,0===nn&&hn(ar)),o!==i?r=n=[n,o]:(Kr=r,r=i),r===i&&(r=null),n=function(){var e,r,n,o;return e=Kr,r=function(){var e,r,n,o;return e=Kr,91===t.charCodeAt(Kr)?(r=v,Kr++):(r=i,0===nn&&hn(Se)),r!==i?(n=function(){var e,r,n,o,a,s,u,c,l,f,h,p,d,m;return e=Kr,r=Kr,(n=Kn())!==i&&(o=Kn())!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Kn())!==i&&(l=Yn())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i),r===i&&(r=Kr,t.substr(Kr,2)===j?(n=j,Kr+=2):(n=i,0===nn&&hn(gr)),n!==i&&(o=Kn())!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Kn())!==i&&(l=Yn())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i),r===i&&(r=Kr,(n=Xn())===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Kn())!==i&&(l=Yn())!==i?r=n=[n,o,a,s,u,c,l]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,(o=Kn())===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Kn())!==i&&(c=Yn())!==i?r=n=[n,o,a,s,u,c]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?((s=Kn())===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Kn())!==i&&(u=Yn())!==i?r=n=[n,o,a,s,u]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?((c=Kn())===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Kn())!==i&&(s=Yn())!==i?r=n=[n,o,a,s]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?(c=Kr,(l=Kn())!==i?((f=Kn())===i&&(f=null),c=l=[l,f]):(Kr=c,c=i),c===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Yn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?(c=Kr,(l=Kn())!==i?(f=Kr,(h=Kn())!==i?((p=Kn())===i&&(p=null),f=h=[h,p]):(Kr=f,f=i),f===i&&(f=null),c=l=[l,f]):(Kr=c,c=i),c===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i&&(a=Xn())!==i?r=n=[n,o,a]:(Kr=r,r=i),r===i&&(r=Kr,n=Kr,o=Kr,(a=Kn())!==i?(s=Kr,(u=Kn())!==i?(c=Kr,(l=Kn())!==i?(f=Kr,(h=Kn())!==i?(p=Kr,(d=Kn())!==i?((m=Kn())===i&&(m=null),p=d=[d,m]):(Kr=p,p=i),p===i&&(p=null),f=h=[h,p]):(Kr=f,f=i),f===i&&(f=null),c=l=[l,f]):(Kr=c,c=i),c===i&&(c=null),s=u=[u,c]):(Kr=s,s=i),s===i&&(s=null),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),(a=Xn())!==i?n=o=[o,a]:(Kr=n,n=i),n===i&&(n=null),t.substr(Kr,2)===j?(o=j,Kr+=2):(o=i,0===nn&&hn(gr)),o!==i?r=n=[n,o]:(Kr=r,r=i))))))))),r!==i?t.substring(e,Kr):r}(),n===i&&(n=function(){var e,r,n,o,a,s,u;if(e=Kr,118===t.charCodeAt(Kr)?(r="v",Kr++):(r=i,0===nn&&hn(be)),r!==i){if(n=Kr,o=[],(a=Wn())!==i)for(;a!==i;)o.push(a),a=Wn();else o=i;if((n=o!==i?t.substring(n,Kr):o)!==i)if(46===t.charCodeAt(Kr)?(o=d,Kr++):(o=i,0===nn&&hn(ne)),o!==i){if(a=Kr,s=[],(u=Qn())===i&&(58===t.charCodeAt(Kr)?(u=S,Kr++):(u=i,0===nn&&hn(nr))),u!==i)for(;u!==i;)s.push(u),(u=Qn())===i&&(58===t.charCodeAt(Kr)?(u=S,Kr++):(u=i,0===nn&&hn(nr)));else s=i;(a=s!==i?t.substring(a,Kr):s)!==i?e=r=[r,n,o,a]:(Kr=e,e=i)}else Kr=e,e=i;else Kr=e,e=i}else Kr=e,e=i;return e}()),n!==i?(93===t.charCodeAt(Kr)?(o=b,Kr++):(o=i,0===nn&&hn(ke)),o!==i?e=r=[r,n,o]:(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}(),r!==i?(n=Kr,nn++,o=ro(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=Kr,(r=to())!==i?(n=Kr,nn++,o=ro(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e===i&&(e=function(){var e,r,n;for(e=Kr,r=[],n=ro();n!==i;)r.push(n),n=ro();return t.substring(e,Kr)}())),e}(),n!==i?(o=Kr,58===t.charCodeAt(Kr)?(a=S,Kr++):(a=i,0===nn&&hn(nr)),a!==i?(s=function(){var e,r,n;for(e=Kr,r=[],n=Gn();n!==i;)r.push(n),n=Gn();return t.substring(e,Kr)}(),o=a=[a,s]):(Kr=o,o=i),o===i&&(o=null),e=r=[r,n,o]):(Kr=e,e=i),e}())!==i?e=r=[r,n,no()]:(Kr=e,e=i),e===i&&(e=function(){var e,r,n,o,a,s,u,c;if(e=Kr,r=Kr,47===t.charCodeAt(Kr)?(n=g,Kr++):(n=i,0===nn&&hn(Ee)),n!==i){if(o=Kr,(a=io())!==i){for(s=[],u=Kr,47===t.charCodeAt(Kr)?(c=g,Kr++):(c=i,0===nn&&hn(Ee)),c!==i?u=c=[c,oo()]:(Kr=u,u=i);u!==i;)s.push(u),u=Kr,47===t.charCodeAt(Kr)?(c=g,Kr++):(c=i,0===nn&&hn(Ee)),c!==i?u=c=[c,oo()]:(Kr=u,u=i);o=a=[a,s]}else Kr=o,o=i;o===i&&(o=null),r=n=[n,o]}else Kr=r,r=i;return r!==i?t.substring(e,Kr):r}())===i&&(e=function(){var e,r,n,o,a,s;if(e=Kr,r=Kr,(n=io())!==i){for(o=[],a=Kr,47===t.charCodeAt(Kr)?(s=g,Kr++):(s=i,0===nn&&hn(Ee)),s!==i?a=s=[s,oo()]:(Kr=a,a=i);a!==i;)o.push(a),a=Kr,47===t.charCodeAt(Kr)?(s=g,Kr++):(s=i,0===nn&&hn(Ee)),s!==i?a=s=[s,oo()]:(Kr=a,a=i);r=n=[n,o]}else Kr=r,r=i;return r!==i?t.substring(e,Kr):r}(),e===i&&(e="")),e}())!==i?(a=Kr,63===t.charCodeAt(Kr)?(s=k,Kr++):(s=i,0===nn&&hn(or)),s!==i?a=s=[s,u=so()]:(Kr=a,a=i),a===i&&(a=null),s=Kr,35===t.charCodeAt(Kr)?(u="#",Kr++):(u=i,0===nn&&hn(ir)),u!==i?s=u=[u,uo()]:(Kr=s,s=i),s===i&&(s=null),e=r=[r,n,o,a,s]):(Kr=e,e=i)):(Kr=e,e=i),e}())!==i?t.substring(n,Kr):o)!==i?(o=zn(),Xr=e,e=n):(Kr=e,e=i)):(Kr=e,e=i),e}function No(){var e;return(e=function(){var e,r,n,a,s,u,c,l;return e=Kr,qn()!==i?(zn(),(r=Bo())!==i?(".{"===t.substr(Kr,2)?(n=".{",Kr+=2):(n=i,0===nn&&hn(Yr)),n!==i?(Vn(),a=function(){var e,r,n,a,s,u,c,l;if(e=Kr,r=Kr,(r=(n=wn())!==i?t.substring(r,Kr):n)!==i){for(n=Vn(),a=[],s=Kr,44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(Vn(),c=Kr,(c=(l=wn())!==i?t.substring(c,Kr):l)!==i?(l=Vn(),s=c):(Kr=s,s=i)):(Kr=s,s=i);s!==i;)a.push(s),s=Kr,44===t.charCodeAt(Kr)?(u=D,Kr++):(u=i,0===nn&&hn(pr)),u!==i?(Vn(),c=Kr,(c=(l=wn())!==i?t.substring(c,Kr):l)!==i?(l=Vn(),s=c):(Kr=s,s=i)):(Kr=s,s=i);Xr=e,e=[r].concat(o(a))}else Kr=e,e=i;return e}(),a!==i?(Vn(),125===t.charCodeAt(Kr)?(s=C,Kr++):(s=i,0===nn&&hn(Ge)),s!==i?(zn(),(u=Io())===i&&(u=null),Xr=e,l={$class:"concerto.metamodel@1.0.0.ImportTypes",namespace:r,types:a},(c=u)&&(l.uri=c),e=l):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,r,n,o,a,s,u;return e=Kr,qn()!==i?(zn(),(r=Bo())!==i?(46===t.charCodeAt(Kr)?(n=d,Kr++):(n=i,0===nn&&hn(ne)),n!==i?(o=function(){var e,r,n,o;return e=Kr,42===t.charCodeAt(Kr)?(r="*",Kr++):(r=i,0===nn&&hn(fr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),o!==i?(zn(),(a=Io())===i&&(a=null),Xr=e,u={$class:"concerto.metamodel@1.0.0.ImportAll",namespace:r},(s=a)&&(u.uri=s),e=u):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,r,n,o,a,s,u;return e=Kr,qn()!==i?(zn(),(r=function(){var e;return(e=function(){var e,r,n,o,a,s,u,c,l;return e=Kr,(r=Ro())!==i?(64===t.charCodeAt(Kr)?(n=x,Kr++):(n=i,0===nn&&hn(ar)),n!==i?(o=Kr,(o=(a=co())!==i?t.substring(o,Kr):a)!==i?(46===t.charCodeAt(Kr)?(a=d,Kr++):(a=i,0===nn&&hn(ne)),a!==i?(s=Kr,(s=(u=wn())!==i?t.substring(s,Kr):u)!==i?(Xr=e,c=o,l=s,e="".concat(r,"@").concat(c,".").concat(l)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=Ro()),e}())!==i?(zn(),(n=Io())===i&&(n=null),Xr=e,o=n,u={$class:"concerto.metamodel@1.0.0.ImportType",name:(s={name:(a=r.split(".")).pop(),namespace:a.join(".")}).name,namespace:s.namespace},o&&(u.uri=o),e=u):(Kr=e,e=i)):(Kr=e,e=i),e}()),e}function $o(){var e;return(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===$?(r=$,Kr+=5):(r=i,0===nn&&hn(Or)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.AssetDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,11)===L?(r=L,Kr+=11):(r=i,0===nn&&hn(Dr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.TransactionDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,5)===U?(r=U,Kr+=5):(r=i,0===nn&&hn(Fr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.EventDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,11)===q?(r=q,Kr+=11):(r=i,0===nn&&hn(Tr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.ParticipantDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h;return e=Kr,n=ko(),zn(),o=function(){var e,r,n,o;return e=Kr,t.substr(Kr,4)===w?(r=w,Kr+=4):(r=i,0===nn&&hn(Le)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),o!==i?(zn(),(a=wn())!==i?(zn(),123===t.charCodeAt(Kr)?(s=tt,Kr++):(s=i,0===nn&&hn(Vr)),s!==i?(zn(),u=function(){var t,e,r;for(t=Kr,e=[],r=Po();r!==i;)e.push(r),r=Po();return Xr=t,{type:"EnumDeclarationBody",declarations:Uo(e)}}(),zn(),125===t.charCodeAt(Kr)?(c=C,Kr++):(c=i,0===nn&&hn(Ge)),c!==i?(Xr=e,l=n,f=u,h=r({$class:"concerto.metamodel@1.0.0.EnumDeclaration",name:a.name,properties:f.declarations},zo(an())),l.length>0&&(h.decorators=l),e=h):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}())===i&&(e=function(){var e,n,o,a,s,u,c,l,f,h,p,d,m,y,g,v;return e=Kr,n=ko(),zn(),(o=go())===i&&(o=null),zn(),a=function(){var e,r,n,o;return e=Kr,t.substr(Kr,7)===N?(r=N,Kr+=7):(r=i,0===nn&&hn(xr)),r!==i?(n=Kr,nn++,o=Mn(),nn--,o===i?n=void 0:(Kr=n,n=i),n!==i?e=r=[r,n]:(Kr=e,e=i)):(Kr=e,e=i),e}(),a!==i?(zn(),(s=wn())!==i?(zn(),(u=_o())===i&&(u=null),zn(),(c=xo())===i&&(c=null),zn(),123===t.charCodeAt(Kr)?(l=tt,Kr++):(l=i,0===nn&&hn(Vr)),l!==i?(zn(),f=jo(),zn(),125===t.charCodeAt(Kr)?(h=C,Kr++):(h=i,0===nn&&hn(Ge)),h!==i?(Xr=e,p=n,d=o,m=u,y=c,g=f,v=r({$class:"concerto.metamodel@1.0.0.ConceptDeclaration",name:s.name,isAbstract:qo(d),properties:g.declarations},zo(an())),y&&(v.superType=y),m&&(v.identified=m),p.length>0&&(v.decorators=p),e=v):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i)):(Kr=e,e=i),e}()),e}function Lo(t,e,r){return[t].concat(function(t,e){var r,n=new Array(t.length);for(r=0;r<t.length;r++)n[r]=t[r][e];return n}(e,r))}function Uo(t){return null!==t?t:[]}function qo(t){return!!t}function zo(t){var r;if(null===(r=e)||void 0===r||!r.skipLocationNodes){var n=t.start,o=t.end;n.$class="concerto.metamodel@1.0.0.Position",o.$class="concerto.metamodel@1.0.0.Position";var i={$class:"concerto.metamodel@1.0.0.Range",start:n,end:o};return t.source&&t.source[0]&&(i.source=t.source[0]),{location:i}}}if((n=c())!==i&&Kr===t.length)return n;throw n!==i&&Kr<t.length&&hn({type:"end"}),function(t,e,r){return new a(a.buildMessage(t,e),t,e,r)}(rn,en<t.length?t.charAt(en):null,en<t.length?fn(en,en+1):fn(en,en))}}},449:function(t,e,r){"use strict";var n=r(76).MetaModelNamespace,o=r(353),i=r(358);t.exports={parse:function(t,e,r){try{return o.parse(t,r)}catch(t){throw t.location&&t.location.start?new i(t.message,t.location,e):t}},parseModels:function(t,e){var r={$class:"".concat(n,".Models"),models:[]};return t.forEach((function(t){var n=o.parse(t,e);r.models.push(n)})),r}}},805:function(t,e,r){"use strict";var n=r(76).MetaModelNamespace;function o(t){var e="";switch(t.$class){case"".concat(n,".DecoratorTypeReference"):e+="".concat(t.type.name).concat(t.isArray?"[]":"");break;case"".concat(n,".DecoratorString"):e+='"'.concat(t.value,'"');break;default:e+="".concat(t.value)}return e}function i(t){var e="";return e+="@".concat(t.name),t.arguments&&(e+="(",e+=t.arguments.map(o).join(","),e+=")"),e}function a(t,e){var r="";return(r+=t.map(i).join("\n".concat(e)))+"\n".concat(e)}t.exports={toCTO:function(t){var e="";return t.concertoVersion&&(e+='concerto version "'.concat(t.concertoVersion,'"'),e+="\n",e+="\n"),t.decorators&&t.decorators.length>0&&(e+=a(t.decorators,"")),e+="namespace ".concat(t.namespace),t.imports&&t.imports.length>0&&(e+="\n",t.imports.forEach((function(t){switch(t.$class){case"".concat(n,".ImportType"):case"".concat(n,".ImportTypeFrom"):e+="\nimport ".concat(t.namespace,".").concat(t.name);break;case"".concat(n,".ImportAll"):case"".concat(n,".ImportAllFrom"):e+="\nimport ".concat(t.namespace,".*");break;case"".concat(n,".ImportTypes"):e+="\nimport ".concat(t.namespace,".{").concat(t.types.join(","),"}");break;default:throw new Error("Unrecognized import")}t.uri&&(e+=" from ".concat(t.uri))}))),t.declarations&&t.declarations.length>0&&t.declarations.forEach((function(t){e+="\n\n".concat(function(t){var e="";switch(t.decorators&&(e+=a(t.decorators,"")),t.isAbstract&&(e+="abstract "),t.$class){case"".concat(n,".AssetDeclaration"):e+="asset ".concat(t.name," ");break;case"".concat(n,".ConceptDeclaration"):e+="concept ".concat(t.name," ");break;case"".concat(n,".EventDeclaration"):e+="event ".concat(t.name," ");break;case"".concat(n,".ParticipantDeclaration"):e+="participant ".concat(t.name," ");break;case"".concat(n,".TransactionDeclaration"):e+="transaction ".concat(t.name," ");break;case"".concat(n,".EnumDeclaration"):e+="enum ".concat(t.name," ")}return t.identified&&(t.identified.$class==="".concat(n,".IdentifiedBy")?e+="identified by ".concat(t.identified.name," "):e+="identified "),t.superType&&(e+="extends ".concat(t.superType.name," ")),e+="{",t.properties.forEach((function(t){e+="\n ".concat(function(t){var e="",r="",o="";switch(t.decorators&&(e+=a(t.decorators," ")),t.$class==="".concat(n,".RelationshipProperty")?e+="--\x3e":e+="o",t.$class){case"".concat(n,".EnumProperty"):break;case"".concat(n,".BooleanProperty"):e+=" Boolean",!0!==t.defaultValue&&!1!==t.defaultValue||(t.defaultValue?r+=" default=true":r+=" default=false");break;case"".concat(n,".DateTimeProperty"):e+=" DateTime";break;case"".concat(n,".DoubleProperty"):if(e+=" Double",t.defaultValue){var i=t.defaultValue.toFixed(Math.max(1,(t.defaultValue.toString().split(".")[1]||[]).length));r+=" default=".concat(i)}if(t.validator){var s=t.validator.lower?t.validator.lower:"",u=t.validator.upper?t.validator.upper:"";o+=" range=[".concat(s,",").concat(u,"]")}break;case"".concat(n,".IntegerProperty"):if(e+=" Integer",t.defaultValue&&(r+=" default=".concat(t.defaultValue.toString())),t.validator){var c=t.validator.lower?t.validator.lower:"",l=t.validator.upper?t.validator.upper:"";o+=" range=[".concat(c,",").concat(l,"]")}break;case"".concat(n,".LongProperty"):if(e+=" Long",t.defaultValue&&(r+=" default=".concat(t.defaultValue.toString())),t.validator){var f=t.validator.lower?t.validator.lower:"",h=t.validator.upper?t.validator.upper:"";o+=" range=[".concat(f,",").concat(h,"]")}break;case"".concat(n,".StringProperty"):e+=" String",t.defaultValue&&(r+=' default="'.concat(t.defaultValue,'"')),t.validator&&(o+=" regex=/".concat(t.validator.pattern,"/").concat(t.validator.flags));break;case"".concat(n,".ObjectProperty"):e+=" ".concat(t.type.name),t.defaultValue&&(r+=' default="'.concat(t.defaultValue,'"'));break;case"".concat(n,".RelationshipProperty"):e+=" ".concat(t.type.name)}return t.isArray&&(e+="[]"),e+=" ".concat(t.name),e+=r,e+=o,t.isOptional&&(e+=" optional"),e}(t))})),e+="\n}"}(t))})),e}}},881:function(t){var e=1e3,r=60*e,n=60*r,o=24*n;function i(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var s,u,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===c&&isFinite(t))return a.long?(s=t,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=e?i(s,u,e,"second"):s+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},130:function(t,e,r){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t={NODE_ENV:"production"}.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=r(123)(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},123:function(t,e,r){t.exports=function(t){function e(t){let r,o=null;function i(...t){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=n,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?e.enabled(t):o,set:t=>{o=t}}),"function"==typeof e.init&&e.init(i),i}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(o),...e.skips.map(o).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(881),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},23:function(t){"use strict";function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function r(t,e){for(var r,n="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i===s-1||1===a);else if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",o=0):o=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var t,n="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a;i>=0?a=arguments[i]:(void 0===t&&(t=process.cwd()),a=t),e(a),0!==a.length&&(n=a+"/"+n,o=47===a.charCodeAt(0))}return n=r(n,!o),o?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(t){if(e(t),0===t.length)return".";var n=47===t.charCodeAt(0),o=47===t.charCodeAt(t.length-1);return 0!==(t=r(t,!n)).length||n||(t="."),t.length>0&&o&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r<arguments.length;++r){var o=arguments[r];e(o),o.length>0&&(void 0===t?t=o:t+="/"+o)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return"";if((t=n.resolve(t))===(r=n.resolve(r)))return"";for(var o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var i=t.length,a=i-o,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var u=r.length-s,c=a<u?a:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===r.charCodeAt(s+f))return r.slice(s+f+1);if(0===f)return r.slice(s+f)}else a>c&&(47===t.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var h=t.charCodeAt(o+f);if(h!==r.charCodeAt(s+f))break;47===h&&(l=f)}var p="";for(f=o+l+1;f<=i;++f)f!==i&&47!==t.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(s+l):(s+=l,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var r=t.charCodeAt(0),n=47===r,o=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(r=t.charCodeAt(a))){if(!i){o=a;break}}else i=!1;return-1===o?n?"/":".":n&&1===o?"//":t.slice(0,o)},basename:function(t,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');e(t);var n,o=0,i=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var s=r.length-1,u=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(47===c){if(!a){o=n+1;break}}else-1===u&&(a=!1,u=n+1),s>=0&&(c===r.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=u))}return o===i?i=u:-1===i&&(i=t.length),t.slice(o,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!a){o=n+1;break}}else-1===i&&(a=!1,i=n+1);return-1===i?"":t.slice(o,i)},extname:function(t){e(t);for(var r=-1,n=0,o=-1,i=!0,a=0,s=t.length-1;s>=0;--s){var u=t.charCodeAt(s);if(47!==u)-1===o&&(i=!1,o=s+1),46===u?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!i){n=s+1;break}}return-1===r||-1===o||0===a||1===a&&r===o-1&&r===n+1?"":t.slice(r,o)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+"/"+n:n}(0,t)},parse:function(t){e(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return r;var n,o=t.charCodeAt(0),i=47===o;i?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,c=!0,l=t.length-1,f=0;l>=n;--l)if(47!==(o=t.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){s=l+1;break}return-1===a||-1===u||0===f||1===f&&a===u-1&&a===s+1?-1!==u&&(r.base=r.name=0===s&&i?t.slice(1,u):t.slice(s,u)):(0===s&&i?(r.name=t.slice(1,a),r.base=t.slice(1,u)):(r.name=t.slice(s,a),r.base=t.slice(s,u)),r.ext=t.slice(a,u)),s>0?r.dir=t.slice(0,s-1):i&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n},10:function(t,e,r){"use strict";const n=r(358),o=r(449),i=r(805),a=r(165);t.exports={ParseException:n,Parser:o,Printer:i,External:a}},76:function(t,e,r){"use strict";const n=r(58);t.exports={MetaModelUtil:n,MetaModelNamespace:"concerto.metamodel@1.0.0"}},58:function(t,e,r){"use strict";const n=r(334),o="concerto.metamodel@1.0.0",i=`@DotNetNamespace("AccordProject.Concerto.Metamodel")\nnamespace ${o}\n\nconcept Position {\n o Integer line\n o Integer column\n o Integer offset\n}\nconcept Range {\n o Position start\n o Position end\n o String source optional\n}\n\nconcept TypeIdentifier {\n o String name\n o String namespace optional\n}\n\nabstract concept DecoratorLiteral {\n o Range location optional\n}\n\nconcept DecoratorString extends DecoratorLiteral {\n o String value\n}\n\nconcept DecoratorNumber extends DecoratorLiteral {\n o Double value\n}\n\nconcept DecoratorBoolean extends DecoratorLiteral {\n o Boolean value\n}\n\nconcept DecoratorTypeReference extends DecoratorLiteral {\n o TypeIdentifier type\n o Boolean isArray default=false\n}\n\nconcept Decorator {\n o String name\n o DecoratorLiteral[] arguments optional\n o Range location optional\n}\n\nconcept Identified {\n}\n\nconcept IdentifiedBy extends Identified {\n o String name\n}\n\nabstract concept Declaration {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept EnumDeclaration extends Declaration {\n o EnumProperty[] properties\n}\n\nconcept EnumProperty {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept ConceptDeclaration extends Declaration {\n o Boolean isAbstract default=false\n o Identified identified optional\n o TypeIdentifier superType optional\n o Property[] properties\n}\n\nconcept AssetDeclaration extends ConceptDeclaration {\n}\n\nconcept ParticipantDeclaration extends ConceptDeclaration {\n}\n\nconcept TransactionDeclaration extends ConceptDeclaration {\n}\n\nconcept EventDeclaration extends ConceptDeclaration {\n}\n\nabstract concept Property {\n o String name regex=/^(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o Boolean isArray default=false\n o Boolean isOptional default=false\n o Decorator[] decorators optional\n o Range location optional\n}\n\nconcept RelationshipProperty extends Property {\n o TypeIdentifier type\n}\n\nconcept ObjectProperty extends Property {\n o String defaultValue optional\n o TypeIdentifier type\n}\n\nconcept BooleanProperty extends Property {\n o Boolean defaultValue optional\n}\n\nconcept DateTimeProperty extends Property {\n}\n\nconcept StringProperty extends Property {\n o String defaultValue optional\n o StringRegexValidator validator optional\n}\n\nconcept StringRegexValidator {\n o String pattern\n o String flags\n}\n\nconcept DoubleProperty extends Property {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept DoubleDomainValidator {\n o Double lower optional\n o Double upper optional\n}\n\nconcept IntegerProperty extends Property {\n o Integer defaultValue optional\n o IntegerDomainValidator validator optional\n}\n\nconcept IntegerDomainValidator {\n o Integer lower optional\n o Integer upper optional\n}\n\nconcept LongProperty extends Property {\n o Long defaultValue optional\n o LongDomainValidator validator optional\n}\n\nconcept LongDomainValidator {\n o Long lower optional\n o Long upper optional\n}\n\nabstract concept Import {\n o String namespace\n o String uri optional\n}\n\nconcept ImportAll extends Import {\n}\n\nconcept ImportType extends Import {\n o String name\n}\n\nconcept ImportTypes extends Import {\n o String[] types\n}\n\nconcept Model {\n o String namespace\n o String sourceUri optional\n o String concertoVersion optional\n o Import[] imports optional\n o Declaration[] declarations optional\n o Decorator[] decorators optional\n}\n\nconcept Models {\n o Model[] models\n}\n`;function a(t,e){if(!e[t])throw new Error(`Name ${t} not found`);return e[t]}function s(t,e){switch(t.$class){case`${o}.Model`:t.declarations&&t.declarations.forEach((t=>{s(t,e)}));break;case`${o}.AssetDeclaration`:case`${o}.ConceptDeclaration`:case`${o}.EventDeclaration`:case`${o}.TransactionDeclaration`:case`${o}.ParticipantDeclaration`:if(t.superType){const r=t.superType.name;t.superType.namespace=a(r,e)}t.properties.forEach((t=>{s(t,e)})),t.decorators&&t.decorators.forEach((t=>{s(t,e)}));break;case`${o}.EnumDeclaration`:t.decorators&&t.decorators.forEach((t=>{s(t,e)}));break;case`${o}.EnumProperty`:case`${o}.ObjectProperty`:case`${o}.RelationshipProperty`:{const r=t.type.name;t.type.namespace=a(r,e),t.decorators&&t.decorators.forEach((t=>{s(t,e)}))}break;case`${o}.Decorator`:t.arguments&&t.arguments.forEach((t=>{s(t,e)}));break;case`${o}.DecoratorTypeReference`:{const r=t.type.name;t.type.namespace=a(r,e)}}return t}function u(t,e){const r=JSON.parse(JSON.stringify(e)),n=function(t,e){const r="concerto@1.0.0",n={Concept:r,Asset:r,Participant:r,"Transaction ":r,Event:r};return e.imports.forEach((e=>{const r=e.namespace,i=function(t,e){return t.models.find((t=>t.namespace===e))}(t,r);if(e.$class===`${o}.ImportType`){if(a=i,s=e.name,!a.declarations.find((t=>t.name===s)))throw new Error(`Declaration ${e.name} in namespace ${r} not found`);n[e.name]=r}else i.declarations.forEach((t=>{n[t.name]=r}));var a,s})),e.declarations&&e.declarations.forEach((t=>{n[t.name]=e.namespace})),n}(t,e);return s(r,n),r}function c(t){const e=[];switch(t.$class){case`${o}.ImportAll`:e.push(`${t.namespace}.*`);break;case`${o}.ImportType`:e.push(`${t.namespace}.${t.name}`);break;case`${o}.ImportTypes`:t.types.forEach((r=>{e.push(`${t.namespace}.${r}`)}));break;default:throw new Error(`Unrecognized imports ${t.$class}`)}return e}t.exports={metaModelAst:n,metaModelCto:i,resolveLocalNames:u,resolveLocalNamesForAll:function(t){const e={$class:`${o}.Models`,models:[]};return t.models.forEach((r=>{const n=u(t,r);e.models.push(n)})),e},importFullyQualifiedNames:c,getExternalImports:function(t){const e={};return t.imports&&t.imports.forEach((t=>{const r=c(t);t.uri&&(e[r[0]]=t.uri)})),e}}},133:function(t){self,t.exports=function(){var t={1036:function(t,e,r){"use strict";const n=r(4572);t.exports=n.PromisePool},9789:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolError=void 0;class r extends Error{constructor(t,e){super(),this.item=e,this.name=this.constructor.name,this.message=this.messageFrom(t),Error.captureStackTrace(this,this.constructor)}static createFrom(t,e){return new this(t,e)}messageFrom(t){return t instanceof Error||"object"==typeof t?t.message:"string"==typeof t||"number"==typeof t?t.toString():""}}e.PromisePoolError=r},6205:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePoolExecutor=void 0;const n=r(9789);e.PromisePoolExecutor=class{constructor(){this.tasks=[],this.items=[],this.errors=[],this.results=[],this.concurrency=10,this.handler=()=>{},this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}for(t){return this.items=t,this}withHandler(t){return this.handler=t,this}handleError(t){return this.errorHandler=t,this}hasReachedConcurrencyLimit(){return this.activeCount()>=this.concurrency}activeCount(){return this.tasks.length}async start(){return this.validateInputs(),await this.process()}validateInputs(){if("function"!=typeof this.handler)throw new Error("The first parameter for the .process(fn) method must be a function");if(!("number"==typeof this.concurrency&&this.concurrency>=1))throw new TypeError(`"concurrency" must be a number, 1 or up. Received "${this.concurrency}" (${typeof this.concurrency})`);if(!Array.isArray(this.items))throw new TypeError('"items" must be an array. Received '+typeof this.items);if(this.errorHandler&&"function"!=typeof this.errorHandler)throw new Error("The error handler must be a function. Received "+typeof this.errorHandler)}async process(){for(const t of this.items)this.hasReachedConcurrencyLimit()&&await this.processingSlot(),this.startProcessing(t);return this.drained()}async processingSlot(){return this.waitForTaskToFinish()}async waitForTaskToFinish(){await Promise.race(this.tasks)}startProcessing(t){const e=this.createTaskFor(t).then((t=>{this.results.push(t),this.tasks.splice(this.tasks.indexOf(e),1)})).catch((r=>{if(this.tasks.splice(this.tasks.indexOf(e),1),this.errorHandler)return this.errorHandler(r,t);this.errors.push(n.PromisePoolError.createFrom(r,t))}));this.tasks.push(e)}async createTaskFor(t){return this.handler(t)}async drained(){return await this.drainActiveTasks(),{results:this.results,errors:this.errors}}async drainActiveTasks(){await Promise.all(this.tasks)}}},4572:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromisePool=void 0;const n=r(6205);class o{constructor(t){this.concurrency=10,this.items=null!=t?t:[],this.errorHandler=void 0}withConcurrency(t){return this.concurrency=t,this}static withConcurrency(t){return(new this).withConcurrency(t)}for(t){return new o(t).withConcurrency(this.concurrency)}static for(t){return(new this).for(t)}handleError(t){return this.errorHandler=t,this}async process(t){return(new n.PromisePoolExecutor).withConcurrency(this.concurrency).withHandler(t).handleError(this.errorHandler).for(this.items).start()}}e.PromisePool=o},9640:function(t,e,r){"use strict";t=r.nmd(t);const n=r(841),o=(t,e)=>function(){return`[${t.apply(n,arguments)+e}m`},i=(t,e)=>function(){const r=t.apply(n,arguments);return`[${38+e};5;${r}m`},a=(t,e)=>function(){const r=t.apply(n,arguments);return`[${38+e};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(const r of Object.keys(e)){const n=e[r];for(const r of Object.keys(n)){const o=n[r];e[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=e[r],t.set(o[0],o[1])}Object.defineProperty(e,r,{value:n,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}const r=t=>t,s=(t,e,r)=>[t,e,r];e.color.close="",e.bgColor.close="",e.color.ansi={ansi:o(r,0)},e.color.ansi256={ansi256:i(r,0)},e.color.ansi16m={rgb:a(s,0)},e.bgColor.ansi={ansi:o(r,10)},e.bgColor.ansi256={ansi256:i(r,10)},e.bgColor.ansi16m={rgb:a(s,10)};for(let t of Object.keys(n)){if("object"!=typeof n[t])continue;const r=n[t];"ansi16"===t&&(t="ansi"),"ansi16"in r&&(e.color.ansi[t]=o(r.ansi16,0),e.bgColor.ansi[t]=o(r.ansi16,10)),"ansi256"in r&&(e.color.ansi256[t]=i(r.ansi256,0),e.bgColor.ansi256[t]=i(r.ansi256,10)),"rgb"in r&&(e.color.ansi16m[t]=a(r.rgb,0),e.bgColor.ansi16m[t]=a(r.rgb,10))}return e}})},1696:function(t,e,r){"use strict";var n=r(4406),o=r(3716);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a,s,u=r(7515).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,h=u.ERR_INVALID_RETURN_VALUE,p=u.ERR_MISSING_ARGS,d=r(4082),m=r(3335).inspect,y=r(3335).types,g=y.isPromise,v=y.isRegExp,b=Object.assign?Object.assign:r(4956).assign,w=Object.is?Object.is:r(4679);function A(){var t=r(6796);a=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var M=!1,E=t.exports=k,_={};function C(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function S(t,e,r,n){if(!r){var o=!1;if(0===e)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw i.generatedMessage=o,i}}function k(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[k,e.length].concat(e))}E.fail=function t(e,r,i,a,s){var u,c=arguments.length;if(0===c?u="Failed":1===c?(i=e,e=void 0):(!1===M&&(M=!0,(n.emitWarning?n.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===c&&(a="!=")),i instanceof Error)throw i;var l={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==i&&(l.message=i);var f=new d(l);throw u&&(f.message=u,f.generatedMessage=!0),f},E.AssertionError=d,E.ok=k,E.equal=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e!=r&&C({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},E.notEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e==r&&C({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},E.deepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)||C({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},E.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),a(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},E.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)||C({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},E.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&A(),s(e,r)&&C({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},E.strictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)||C({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},E.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");w(e,r)&&C({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var x=function t(e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&v(e[t])&&e[t].test(n[t])?o[t]=n[t]:o[t]=e[t])}))};function O(t,e,r,n,o,i){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new x(t,o),u=new x(e,o,t),c=new d({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=t,c.expected=e,c.operator=i.name,c}C({actual:t,expected:e,message:n,operator:i.name,stackStartFn:i})}}function D(t,e,r,n){if("function"!=typeof e){if(v(e))return e.test(t);if(2===arguments.length)throw new l("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var o=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var s=Object.keys(e);if(e instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",e,"may not be an empty object");return void 0===a&&A(),s.forEach((function(o){"string"==typeof t[o]&&v(e[o])&&e[o].test(t[o])||O(t,e,o,r,s,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function F(t){if("function"!=typeof t)throw new l("fn","Function",t);try{t()}catch(t){return t}return _}function T(t){return g(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function j(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!T(e=t()))throw new h("instance of Promise","promiseFn",e)}else{if(!T(t))throw new l("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return _})).catch((function(t){return t}))}))}function P(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(e===_){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";C({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:t})}if(r&&!D(e,r,n,t))throw e}function R(t,e,r,n){if(e!==_){if("string"==typeof r&&(n=r,r=void 0),!r||D(e,r)){var o=n?": ".concat(n):".",i="doesNotReject"===t.name?"rejection":"exception";C({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function B(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];S.apply(void 0,[B,e.length].concat(e))}E.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];P.apply(void 0,[t,F(e)].concat(n))},E.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return P.apply(void 0,[t,e].concat(n))}))},E.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];R.apply(void 0,[t,F(e)].concat(n))},E.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(e).then((function(e){return R.apply(void 0,[t,e].concat(n))}))},E.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=m(e);var n=new d({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},E.strict=b(B,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},4082:function(t,e,r){"use strict";var n=r(4406);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t){var e="function"==typeof Map?new Map:void 0;return s=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},s(t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return c=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&l(o,r.prototype),o},c.apply(null,arguments)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var p=r(3335).inspect,d=r(7515).codes.ERR_INVALID_ARG_TYPE;function m(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var y="",g="",v="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function M(t){return p(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==h(t)||null===t)throw new d("options","Object",t);var o=t.message,s=t.operator,u=t.stackStartFn,c=t.actual,l=t.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=i(this,f(e).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",g="",b="",v=""):(y="",g="",b="",v="")),"object"===h(c)&&null!==c&&"object"===h(l)&&null!==l&&"stack"in c&&c instanceof Error&&"stack"in l&&l instanceof Error&&(c=A(c),l=A(l)),"deepStrictEqual"===s||"strictEqual"===s)r=i(this,f(e).call(this,function(t,e,r){var o="",i="",a=0,s="",u=!1,c=M(t),l=c.split("\n"),f=M(e).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var A=l[0].length+f[0].length;if(A<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&A<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var E=l[l.length-1],_=f[f.length-1];E===_&&(p++<2?s="\n ".concat(E).concat(s):o=E,l.pop(),f.pop(),0!==l.length&&0!==f.length);)E=l[l.length-1],_=f[f.length-1];var C=Math.max(l.length,f.length);if(0===C){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(y,"...").concat(b);S.length>27;)S.pop();return"".concat(w.notIdentical,"\n\n").concat(S.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(b).concat(s),u=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var k=0,x=w[r]+"\n".concat(g,"+ actual").concat(b," ").concat(v,"- expected").concat(b),O=" ".concat(y,"...").concat(b," Lines skipped");for(p=0;p<C;p++){var D=p-a;if(l.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(f[p-2]),k++),i+="\n ".concat(f[p-1]),k++),a=p,o+="\n".concat(v,"-").concat(b," ").concat(f[p]),k++;else if(f.length<p+1)D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(l[p]),k++;else{var F=f[p],T=l[p],j=T!==F&&(!m(T,",")||T.slice(0,-1)!==F);j&&m(F,",")&&F.slice(0,-1)===T&&(j=!1,T+=","),j?(D>1&&p>2&&(D>4?(i+="\n".concat(y,"...").concat(b),u=!0):D>3&&(i+="\n ".concat(l[p-2]),k++),i+="\n ".concat(l[p-1]),k++),a=p,i+="\n".concat(g,"+").concat(b," ").concat(T),o+="\n".concat(v,"-").concat(b," ").concat(F),k+=2):(i+=o,o="",1!==D&&0!==p||(i+="\n ".concat(T),k++))}if(k>20&&p<C-2)return"".concat(x).concat(O,"\n").concat(i,"\n").concat(y,"...").concat(b).concat(o,"\n")+"".concat(y,"...").concat(b)}return"".concat(x).concat(u?O:"","\n").concat(i).concat(o).concat(s).concat(d)}(c,l,s)));else if("notDeepStrictEqual"===s||"notStrictEqual"===s){var E=w[s],_=M(c).split("\n");if("notStrictEqual"===s&&"object"===h(c)&&null!==c&&(E=w.notStrictEqualObject),_.length>30)for(_[26]="".concat(y,"...").concat(b);_.length>27;)_.pop();r=1===_.length?i(this,f(e).call(this,"".concat(E," ").concat(_[0]))):i(this,f(e).call(this,"".concat(E,"\n\n").concat(_.join("\n"),"\n")))}else{var C=M(c),S="",k=w[s];"notDeepEqual"===s||"notEqual"===s?(C="".concat(w[s],"\n\n").concat(C)).length>1024&&(C="".concat(C.slice(0,1021),"...")):(S="".concat(M(l)),C.length>512&&(C="".concat(C.slice(0,509),"...")),S.length>512&&(S="".concat(S.slice(0,509),"...")),"deepEqual"===s||"equal"===s?C="".concat(k,"\n\n").concat(C,"\n\nshould equal\n\n"):S=" ".concat(s," ").concat(S)),r=i(this,f(e).call(this,"".concat(C).concat(S)))}return Error.stackTraceLimit=p,r.generatedMessage=!o,Object.defineProperty(a(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=l,r.operator=s,Error.captureStackTrace&&Error.captureStackTrace(a(r),u),r.stack,r.name="AssertionError",i(r)}var r,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),r=e,s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(t,e){return p(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){o(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],s&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,s),e}(s(Error));t.exports=E},7515:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}var a,s,u={};function c(t,e,r){r||(r=Error);var a=function(r){function a(r,i,s){var u;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),u=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,o(a).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,i,s))),u.code=t,u}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(a,r),a}(r);u[t]=a}function l(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(t,e,o){var i,s,u,c,f;if(void 0===a&&(a=r(1696)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,s.length)===s)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(i," ").concat(l(e,"type"));else{var h=("number"!=typeof f&&(f=0),f+".".length>(c=t).length||-1===c.indexOf(".",f)?"argument":"property");u='The "'.concat(t,'" ').concat(h," ").concat(i," ").concat(l(e,"type"))}return u+". Received type ".concat(n(o))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(3335));var o=s.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=r(1696)),a(e.length>0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),t.exports.codes=u},6796:function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var i=void 0!==/a/g.flags,a=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},s=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},u=Object.is?Object.is:r(4679),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4782);function f(t){return t.call.bind(t)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(3335).types,y=m.isAnyArrayBuffer,g=m.isArrayBufferView,v=m.isDate,b=m.isMap,w=m.isRegExp,A=m.isSet,M=m.isNativeError,E=m.isBoxedPrimitive,_=m.isNumberObject,C=m.isStringObject,S=m.isBooleanObject,k=m.isBigIntObject,x=m.isSymbolObject,O=m.isFloat32Array,D=m.isFloat64Array;function F(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function T(t){return Object.keys(t).filter(F).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function j(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0}function P(t,e,r,n){if(t===e)return 0!==t||!r||u(t,e);if(r){if("object"!==o(t))return"number"==typeof t&&l(t)&&l(e);if("object"!==o(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==o(t))return(null===e||"object"!==o(e))&&t==e;if(null===e||"object"!==o(e))return!1}var a,s,c,f,h=d(t);if(h!==d(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var p=T(t),m=T(e);return p.length===m.length&&B(t,e,r,n,1,p)}if("[object Object]"===h&&(!b(t)&&b(e)||!A(t)&&A(e)))return!1;if(v(t)){if(!v(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(w(t)){if(!w(e)||(c=t,f=e,!(i?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(M(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(g(t)){if(r||!O(t)&&!D(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===j(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var F=T(t),P=T(e);return F.length===P.length&&B(t,e,r,n,0,F)}if(A(t))return!(!A(e)||t.size!==e.size)&&B(t,e,r,n,2);if(b(t))return!(!b(e)||t.size!==e.size)&&B(t,e,r,n,3);if(y(t)){if(s=e,(a=t).byteLength!==s.byteLength||0!==j(new Uint8Array(a),new Uint8Array(s)))return!1}else if(E(t)&&!function(t,e){return _(t)?_(e)&&u(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):C(t)?C(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):S(t)?S(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):k(t)?k(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):x(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return B(t,e,r,n,0)}function R(t,e){return e.filter((function(e){return p(t,e)}))}function B(t,e,r,n,o,i){if(5===arguments.length){i=Object.keys(t);var a=Object.keys(e);if(i.length!==a.length)return!1}for(var s=0;s<i.length;s++)if(!h(e,i[s]))return!1;if(r&&5===arguments.length){var u=c(t);if(0!==u.length){var l=0;for(s=0;s<u.length;s++){var f=u[s];if(p(t,f)){if(!p(e,f))return!1;i.push(f),l++}else if(p(e,f))return!1}var d=c(e);if(u.length!==d.length&&R(e,d).length!==l)return!1}else{var m=c(e);if(0!==m.length&&0!==R(e,m).length)return!1}}if(0===i.length&&(0===o||1===o&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(t);if(void 0!==y){var g=n.val2.get(e);if(void 0!==g)return y===g}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var v=q(t,e,r,i,n,o);return n.val1.delete(t),n.val2.delete(e),v}function I(t,e,r,n){for(var o=a(t),i=0;i<o.length;i++){var s=o[i];if(P(e,s,r,n))return t.delete(s),!0}return!1}function N(t){switch(o(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function $(t,e,r){var n=N(r);return null!=n?n:e.has(n)&&!t.has(n)}function L(t,e,r,n,o){var i=N(r);if(null!=i)return i;var a=e.get(i);return!(void 0===a&&!e.has(i)||!P(n,a,!1,o))&&!t.has(i)&&P(n,a,!1,o)}function U(t,e,r,n,o,i){for(var s=a(t),u=0;u<s.length;u++){var c=s[u];if(P(r,c,o,i)&&P(n,e.get(c),o,i))return t.delete(c),!0}return!1}function q(t,e,r,i,u,c){var l=0;if(2===c){if(!function(t,e,r,n){for(var i=null,s=a(t),u=0;u<s.length;u++){var c=s[u];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!e.has(c)){if(r)return!1;if(!$(t,e,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var l=a(e),f=0;f<l.length;f++){var h=l[f];if("object"===o(h)&&null!==h){if(!I(i,h,r,n))return!1}else if(!r&&!t.has(h)&&!I(i,h,r,n))return!1}return 0===i.size}return!0}(t,e,r,u))return!1}else if(3===c){if(!function(t,e,r,i){for(var a=null,u=s(t),c=0;c<u.length;c++){var l=n(u[c],2),f=l[0],h=l[1];if("object"===o(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=e.get(f);if(void 0===p&&!e.has(f)||!P(h,p,r,i)){if(r)return!1;if(!L(t,e,f,h,i))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var d=s(e),m=0;m<d.length;m++){var y=n(d[m],2),g=(f=y[0],y[1]);if("object"===o(f)&&null!==f){if(!U(a,t,f,g,r,i))return!1}else if(!(r||t.has(f)&&P(t.get(f),g,!1,i)||U(a,t,f,g,!1,i)))return!1}return 0===a.size}return!0}(t,e,r,u))return!1}else if(1===c)for(;l<t.length;l++){if(!h(t,l)){if(h(e,l))return!1;for(var f=Object.keys(t);l<f.length;l++){var p=f[l];if(!h(e,p)||!P(t[p],e[p],r,u))return!1}return f.length===Object.keys(e).length}if(!h(e,l)||!P(t[l],e[l],r,u))return!1}for(l=0;l<i.length;l++){var d=i[l];if(!P(t[d],e[d],r,u))return!1}return!0}t.exports={isDeepEqual:function(t,e){return P(t,e,!1)},isDeepStrictEqual:function(t,e){return P(t,e,!0)}}},9644:function(t,e,r){t.exports=r(5644)},353:function(t,e,r){"use strict";var n=r(3044),o=r(6955),i=r(2233),a=r(8030),s=r(7948),u=r(1875),c=r(842),l=r(8618),f=r(1439),h=r(6714);t.exports=function(t){return new Promise((function(e,r){var p,d=t.data,m=t.headers,y=t.responseType;function g(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}n.isFormData(d)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var A=s(t.baseURL,t.url);function M(){if(v){var n="getAllResponseHeaders"in v?u(v.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:t,request:v};o((function(t){e(t),g()}),(function(t){r(t),g()}),i),v=null}}if(v.open(t.method.toUpperCase(),a(A,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=M:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(M)},v.onabort=function(){v&&(r(l("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){r(l("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(l(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var E=(t.withCredentials||c(A))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;E&&(m[t.xsrfHeaderName]=E)}"setRequestHeader"in v&&n.forEach(m,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete m[e]:v.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),y&&"json"!==y&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){v&&(r(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),d||(d=null),v.send(d)}))}},5644:function(t,e,r){"use strict";var n=r(3044),o=r(3644),i=r(2215),a=r(2937),s=function t(e){var r=new i(e),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return t(a(e,r))},s}(r(1439));s.Axios=i,s.Cancel=r(6714),s.CancelToken=r(4089),s.isCancel=r(8041),s.VERSION=r(9241).version,s.all=function(t){return Promise.all(t)},s.spread=r(783),s.isAxiosError=r(5587),t.exports=s,t.exports.default=s},6714:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},4089:function(t,e,r){"use strict";var n=r(6714);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e<n;e++)r._listeners[e](t);r._listeners=null}})),this.promise.then=function(t){var e,n=new Promise((function(t){r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},8041:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},2215:function(t,e,r){"use strict";var n=r(3044),o=r(8030),i=r(946),a=r(6895),s=r(2937),u=r(7525),c=u.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&u.assertOptions(e,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;r.length;){var h=r.shift(),p=r.shift();try{f=h(f)}catch(t){p(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,r){return this.request(s(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,r,n){return this.request(s(n||{},{method:t,url:e,data:r}))}})),t.exports=l},946:function(t,e,r){"use strict";var n=r(3044);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},7948:function(t,e,r){"use strict";var n=r(9192),o=r(8762);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},8618:function(t,e,r){"use strict";var n=r(1935);t.exports=function(t,e,r,o,i){var a=new Error(t);return n(a,e,r,o,i)}},6895:function(t,e,r){"use strict";var n=r(3044),o=r(8556),i=r(8041),a=r(1439),s=r(6714);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return u(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(u(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},1935:function(t){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},2937:function(t,e,r){"use strict";var n=r(3044);t.exports=function(t,e){e=e||{};var r={};function o(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function i(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(t[r],e[r])}function a(t){if(!n.isUndefined(e[t]))return o(void 0,e[t])}function s(r){return n.isUndefined(e[r])?n.isUndefined(t[r])?void 0:o(void 0,t[r]):o(void 0,e[r])}function u(r){return r in e?o(t[r],e[r]):r in t?o(void 0,t[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||i,o=e(t);n.isUndefined(o)&&e!==u||(r[t]=o)})),r}},6955:function(t,e,r){"use strict";var n=r(8618);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},8556:function(t,e,r){"use strict";var n=r(3044),o=r(1439);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,(function(r){t=r.call(i,t,e)})),t}},1439:function(t,e,r){"use strict";var n=r(4406),o=r(3044),i=r(8868),a=r(1935),s={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(c=r(353)),c),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)||e&&"application/json"===e["Content-Type"]?(u(e,"application/json"),function(t,e,r){if(o.isString(t))try{return(0,JSON.parse)(t),o.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||l.transitional,r=e&&e.silentJSONParsing,n=e&&e.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){l.headers[t]=o.merge(s)})),t.exports=l},9241:function(t){t.exports={version:"0.23.0"}},3644:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},8030:function(t,e,r){"use strict";var n=r(3044);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(n.isURLSearchParams(e))i=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},8762:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},2233:function(t,e,r){"use strict";var n=r(3044);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9192:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},5587:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},842:function(t,e,r){"use strict";var n=r(3044);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},8868:function(t,e,r){"use strict";var n=r(3044);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},1875:function(t,e,r){"use strict";var n=r(3044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,a={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},783:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},7525:function(t,e,r){"use strict";var n=r(3716),o=r(9241).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var a={};i.transitional=function(t,e,r){function i(t,e){return"[Axios v"+o+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,s){if(!1===t)throw new Error(i(o," has been removed"+(e?" in "+e:"")));return e&&!a[o]&&(a[o]=!0,n.warn(i(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,s)}},t.exports={assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],a=e[i];if(a){var s=t[i],u=void 0===s||a(s,i,t);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:i}},3044:function(t,e,r){"use strict";var n=r(3644),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):i(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return e},extend:function(t,e,r){return l(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},6777:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,t)},a(t)}function s(t,e,r){return s=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&c(o,r.prototype),o},s.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function c(t,e){return c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},c(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=r(4147),h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,r,n=(e=a,r=u(),function(){var t,n=l(e);if(r){var i=l(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o(this,t)});function a(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(r=n.call(this,t)).component=e||f.name,r.name=r.constructor.name,r.message=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i(r),r.constructor),r}return a}(a(Error));t.exports=h},7445:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(t,e,r,n,o){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(i=s.call(this,r||t,o)).fileLocation=e,i.shortMessage=t,i.fileName=n,i}return(e=[{key:"getFileLocation",value:function(){return this.fileLocation}},{key:"getShortMessage",value:function(){return this.shortMessage}},{key:"getFileName",value:function(){return this.fileName}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(r(6777));t.exports=s},5106:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,u,"next",t)}function u(t){o(a,n,i,s,u,"throw",t)}s(void 0)}))}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var s=r(5130)("concerto:FileDownloader"),u=r(1036),c=function(t){var e;return(e=[]).concat.apply(e,function(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t))},l=function(t){return t.filter(Boolean)},f=function(){var t=i(regeneratorRuntime.mark((function t(e,r){var n,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.response&&e.response.status&&200!==e.response.status,o=e.code&&"ENOTFOUND"===e.code,!n&&!o){t.next=6;break}throw(i=new Error("Unable to download external model dependency '".concat(r.url,"'"))).code="MISSING_DEPENDENCY",i;case 6:throw new Error("Failed to load model file. Job: "+r.url+" Details: "+e);case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),h=function(){function t(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;n(this,t),this.fileLoader=e,this.concurrency=o,this.getExternalImports=r}var e;return e=[{key:"downloadExternalDependencies",value:function(t,e){var r=this;s("downloadExternalDependencies");var n=new Set;e||(e={});var o=c(t.map((function(t){var o=r.getExternalImports(t);return Object.keys(o).map((function(t){return{downloadedUris:n,url:o[t],options:e}}))})));return u.withConcurrency(this.concurrency).for(o).handleError(f).process((function(t){return r.runJob(t,r.fileLoader)})).then((function(t){var e=t.results;return l(c(e))}))}},{key:"runJob",value:function(t,e){var r=this,n=t.downloadedUris,o=t.options,a=t.url;return n.add(a),s("runJob","Loading",a),e.load(a,o).then(function(){var t=i(regeneratorRuntime.mark((function t(i){var h,p,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s("runJob","Loaded",a),h=r.getExternalImports(i),p=Array.from(new Set(Object.keys(h).map((function(t){return h[t]})))),s("runJob","importedUris",p),t.next=6,u.withConcurrency(r.concurrency).for(p).handleError(f).process((function(t){if(!n.has(t))return r.runJob({options:o,url:t,downloadedUris:n},e)})).then((function(t){var e=t.results;return l(c(e))}));case 6:return d=t.sent,t.abrupt("return",d.concat([i]));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=h},4468:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=r(2203),l=r(5783),f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(f,t);var e,r,n,i=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=i.call(this)).outputDirectory=t,e.relativeDir=null,e.fileName=null,c.mkdirSync(t,{recursive:!0}),e}return(e=[{key:"openFile",value:function(t){this.fileName=t,this.relativeDir=null}},{key:"openRelativeFile",value:function(t,e){this.relativeDir=t,this.fileName=e}},{key:"writeLine",value:function(t,e){if(!this.fileName)throw Error("File has not been opened!");o(u(f.prototype),"writeLine",this).call(this,t,e)}},{key:"writeBeforeLine",value:function(t,e){if(!this.fileName)throw Error("File has not been opened!");o(u(f.prototype),"writeBeforeLine",this).call(this,t,e)}},{key:"closeFile",value:function(){if(!this.fileName)throw new Error("No file open");var t=this.outputDirectory;this.relativeDir&&(t=l.resolve(t,this.relativeDir)),t=l.resolve(t,this.fileName),c.mkdirSync(l.dirname(t),{recursive:!0}),c.writeFileSync(t,this.getBuffer()),this.fileName=null,this.relativeDir=null,this.clearBuffer()}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(f.prototype,e),f}(r(9101));t.exports=f},644:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(u,t);var e,r,n,s=(r=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(r);if(n){var o=a(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return i(this,t)});function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this)).fileName="",t.data=new Map,t}return(e=[{key:"openFile",value:function(t){this.fileName=t}},{key:"closeFile",value:function(){this.data.set(this.fileName,this.getBuffer()),this.clearBuffer()}},{key:"getFilesInMemory",value:function(){return this.data}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(r(9101));t.exports=s},8098:function(t){"use strict";t.exports={labelToSentence:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([a-z])/g," $1$2").replace(/ +/g," ").replace(/^./,(function(t){return t.toUpperCase()})).trim()},sentenceToLabel:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(/[^A-Za-z0-9_-]+/);return t.forEach((function(e,r){t[r]=t[r].replace(/^./,(function(t){return t.toUpperCase()}))})),t.join("").replace(/^./,(function(t){return t.toLowerCase()}))}}},4135:function(t){"use strict";var e=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.fileLoaders=[]}var e;return(e=[{key:"addFileLoader",value:function(t){this.fileLoaders.push(t)}},{key:"getFileLoaders",value:function(){return this.fileLoaders}},{key:"clearFileLoaders",value:function(){this.fileLoaders=[]}},{key:"accepts",value:function(t){for(var e=0;e<this.fileLoaders.length;e++)if(this.fileLoaders[e].accepts(t))return!0;return!1}},{key:"load",value:function(t,e){for(var r=0;r<this.fileLoaders.length;r++){var n=this.fileLoaders[r];if(n.accepts(t))return n.load(t,e)}throw new Error("Failed to find a model file loader that can handle: "+t)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=e},9462:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s=r(4135),u=r(7913),c=r(2850),l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,t);var e,r,n=(e=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=a(e);if(r){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return i(this,t)});function s(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),e=n.call(this);var r=new u(t),o=new c(t);return e.addFileLoader(o),e.addFileLoader(r),e}return s}(s);t.exports=l},2850:function(t,e,r){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=i(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}function i(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(c,t);var e,r,n,i=(r=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(n){var o=u(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return s(this,t)});function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return(e=[{key:"accepts",value:function(t){return t.startsWith("github://")}},{key:"load",value:function(t,e){var r="https://raw.githubusercontent.com/"+t.substring(9);return o(u(c.prototype),"load",this).call(this,r,e)}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(r(7913));t.exports=c},7913:function(t,e,r){"use strict";var n=r(9644),o=r(883),i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.processFile=e}var e;return e=[{key:"accepts",value:function(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"load",value:function(t,e){var r=this;e||(e={});var i=JSON.parse(JSON.stringify(e));return i.url=t,i.method="get",i.responseType="text",n(i).then((function(e){var n=o.parse(t),i="@"+(n.host+n.pathname).replace(/\//g,".");return r.processFile(i,e.data)}))}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=i},6178:function(t,e,r){"use strict";var n=r(3716);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var s=r(3384),u=r(6190),c={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},l={error:"red",warn:"yellow",info:"green",verbose:"cyan",debug:"blue",silly:"magenta"},f=function(){return(new Date).toLocaleTimeString()},h=function(t){return s[l[t]](t.toUpperCase())},p=function(t){return"object"===a(t)||function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}}(t)?u(t,{pretty:!0,colors:s}):t},d=function(t){for(var e=t,r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];var u=i,l=u.shift();if(l&&"object"===a(l)&&l.level&&l.message){var d=l.padding&&l.padding[l.level];"error"===l.level&&l.stack?(e="error",l="".concat(l.message,"\n").concat(l.stack)):Object.keys(c).includes(l.level)&&(e=l.level,l=l.message),l=d?"".concat(d," ").concat(l):l}u.unshift(l),(["error","warn"].includes(e)?n.error:n.log).apply(void 0,["".concat(f()," - ").concat(h(e),":")].concat(o(u.map((function(t){return t instanceof Error?"".concat(t.message,"\n").concat(t.stack):t})).map(p))))},m={};Object.keys(c).forEach((function(t){m[t]=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return d.apply(void 0,[t].concat(r))}}));var y=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e;return e=[{key:"dispatch",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];c[t]>c[this.level]||this.transports.forEach((function(e){e[t]&&e[t].apply(e,r)}))}},{key:"add",value:function(t){this.transports.push(t)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["error"].concat(e))}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["warn"].concat(e))}},{key:"info",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["info"].concat(e))}},{key:"log",value:function(){return this.info.apply(this,arguments)}},{key:"http",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["http"].concat(e))}},{key:"verbose",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["verbose"].concat(e))}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["debug"].concat(e))}},{key:"silly",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.dispatch.apply(this,["silly"].concat(e))}}],e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t,e),t}();y.level="info",y.transports=[m],t.exports=y},9198:function(t,e,r){"use strict";var n=r(2203),o=r(5783),i=r(4716);t.exports={writeModelsToFileSystem:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw new Error("`path` is a required parameter of writeModelsToFileSystem");var a=Object.assign({includeExternalModels:!0},r);t.forEach((function(t){if(!t.external||a.includeExternalModels){var r=i(t.fileName).split("/").pop();n.writeFileSync(e+o.sep+r,t.definitions)}}))}}},6746:function(t){"use strict";var e=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.stack=[],this.push(e)}var e;return(e=[{key:"push",value:function(t,e){if(e&&!(t instanceof e))throw new Error("Did not find expected type "+e.constructor.name+" as argument to push. Found: "+t.toString());this.stack.push(t)}},{key:"pop",value:function(t){return this.peek(t),this.stack.pop()}},{key:"peek",value:function(t){if(this.stack.length<1)throw new Error("Stack is empty!");var e=this.stack[this.stack.length-1];if(t&&!(e instanceof t))throw new Error("Did not find expected type "+t+" on head of stack. Found: "+e);return e}},{key:"clear",value:function(){this.stack=[]}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();t.exports=e},9101:function(t){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.beforeBuffer="",this.buffer="",this.linesWritten=0}var r;return(r=[{key:"writeBeforeLine",value:function(t,e){for(var r=0;r<t;r++)this.beforeBuffer+=" ";this.beforeBuffer+=e,this.beforeBuffer+="\n",this.linesWritten++}},{key:"writeLine",value:function(t,e){for(var r=0;r<t;r++)this.write(" ");this.write(e),this.write("\n"),this.linesWritten++}},{key:"getLineCount",value:function(){return this.linesWritten}},{key:"writeIndented",value:function(t,e){for(var r=0;r<t;r++)this.write(" ");this.write(e)}},{key:"write",value:function(t){if("string"!=typeof t)throw new Error("Can only append strings. Argument "+t+" has type "+e(t));this.buffer+=t,this.linesWritten+=t.split(/\r\n|\r|\n/).length}},{key:"getBuffer",value:function(){return this.beforeBuffer+this.buffer}},{key:"clearBuffer",value:function(){this.beforeBuffer="",this.buffer="",this.linesWritten=0}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,r),t}();t.exports=r},2680:function(t,e,r){"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},9429:function(t,e,r){"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);return u&&c&&u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var f=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},5618:function(t,e,r){"use strict";var n=r(4406);const o=r(8102),i=r(9640),a=r(8334).stdout,s=r(5625),u="win32"===n.platform&&!({NODE_ENV:"production"}.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],l=new Set(["gray"]),f=Object.create(null);function h(t,e){e=e||{};const r=a?a.level:0;t.level=void 0===e.level?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function p(t){if(!this||!(this instanceof p)||this.template){const e={};return h(e,t),e.template=function(){const t=[].slice.call(arguments);return g.apply(null,[e.template].concat(t))},Object.setPrototypeOf(e,p.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=p,e.template}h(this,t)}u&&(i.blue.open="");for(const t of Object.keys(i))i[t].closeRe=new RegExp(o(i[t].close),"g"),f[t]={get(){const e=i[t];return m.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};f.visible={get(){return m.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(o(i.color.close),"g");for(const t of Object.keys(i.color.ansi))l.has(t)||(f[t]={get(){const e=this.level;return function(){const r={open:i.color[c[e]][t].apply(null,arguments),close:i.color.close,closeRe:i.color.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}});i.bgColor.closeRe=new RegExp(o(i.bgColor.close),"g");for(const t of Object.keys(i.bgColor.ansi))l.has(t)||(f["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const e=this.level;return function(){const r={open:i.bgColor[c[e]][t].apply(null,arguments),close:i.bgColor.close,closeRe:i.bgColor.closeRe};return m.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}});const d=Object.defineProperties((()=>{}),f);function m(t,e,r){const n=function(){return y.apply(n,arguments)};n._styles=t,n._empty=e;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(t){o.level=t}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(t){o.enabled=t}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=d,n}function y(){const t=arguments,e=t.length;let r=String(arguments[0]);if(0===e)return"";if(e>1)for(let n=1;n<e;n++)r+=" "+t[n];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;const n=i.dim.open;u&&this.hasGrey&&(i.dim.open="");for(const t of this._styles.slice().reverse())r=t.open+r.replace(t.closeRe,t.open)+t.close,r=r.replace(/\r?\n/g,`${t.close}$&${t.open}`);return i.dim.open=n,r}function g(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");const r=[].slice.call(arguments,2),n=[e.raw[0]];for(let t=1;t<e.length;t++)n.push(String(r[t-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[t]));return s(t,n.join(""))}Object.defineProperties(p.prototype,f),t.exports=p(),t.exports.supportsColor=a,t.exports.default=t.exports},5625:function(t){"use strict";const e=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(t){return"u"===t[0]&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):i.get(t)||t}function s(t,e){const r=[],i=e.trim().split(/\s*,\s*/g);let s;for(const e of i)if(isNaN(e)){if(!(s=e.match(n)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(s[2].replace(o,((t,e,r)=>e?a(e):r)))}else r.push(Number(e));return r}function u(t){r.lastIndex=0;const e=[];let n;for(;null!==(n=r.exec(t));){const t=n[1];if(n[2]){const r=s(t,n[2]);e.push([t].concat(r))}else e.push([t])}return e}function c(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let n=t;for(const t of Object.keys(r))if(Array.isArray(r[t])){if(!(t in n))throw new Error(`Unknown Chalk style: ${t}`);n=r[t].length>0?n[t].apply(n,r[t]):n[t]}return n}t.exports=(t,r)=>{const n=[],o=[];let i=[];if(r.replace(e,((e,r,s,l,f,h)=>{if(r)i.push(a(r));else if(l){const e=i.join("");i=[],o.push(0===n.length?e:c(t,n)(e)),n.push({inverse:s,styles:u(l)})}else if(f){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");o.push(c(t,n)(i.join(""))),i=[],n.pop()}else i.push(h)})),o.push(i.join("")),n.length>0){const t=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(t)}return o.join("")}},4959:function(t,e,r){var n=r(1103),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(t){var e,r,n=t[0]/255,o=t[1]/255,i=t[2]/255,a=Math.min(n,o,i),s=Math.max(n,o,i),u=s-a;return s===a?e=0:n===s?e=(o-i)/u:o===s?e=2+(i-n)/u:i===s&&(e=4+(n-o)/u),(e=Math.min(60*e,360))<0&&(e+=360),r=(a+s)/2,[e,100*(s===a?0:r<=.5?u/(s+a):u/(2-s-a)),100*r]},a.rgb.hsv=function(t){var e,r,n,o,i,a=t[0]/255,s=t[1]/255,u=t[2]/255,c=Math.max(a,s,u),l=c-Math.min(a,s,u),f=function(t){return(c-t)/6/l+.5};return 0===l?o=i=0:(i=l/c,e=f(a),r=f(s),n=f(u),a===c?o=n-r:s===c?o=1/3+e-n:u===c&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2];return[a.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(r,n))*100,100*(n=1-1/255*Math.max(e,Math.max(r,n)))]},a.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,i,a,s=1/0;for(var u in n)if(n.hasOwnProperty(u)){var c=(i=t,a=n[u],Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));c<s&&(s=c,r=u)}return r},a.keyword.rgb=function(t){return n[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),r=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(t){var e,r,n,o,i,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[i=255*u,i,i];e=2*u-(r=u<.5?u*(1+s):u+s-u*s),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,o[c]=255*i;return o},a.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),(n+r)/2*100]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),a=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,u,a];case 1:return[s,n,a];case 2:return[a,n,u];case 3:return[a,s,n];case 4:return[u,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(t){var e,r,n,o=t[0],i=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return n=(2-i)*a,r=i*s,[o,100*(r=(r/=(e=(2-i)*s)<=1?e:2-e)||0),100*(n/=2)]},a.hwb.rgb=function(t){var e,r,n,o,i,a,s,u=t[0]/360,c=t[1]/100,l=t[2]/100,f=c+l;switch(f>1&&(c/=f,l/=f),n=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(n=1-n),o=c+n*((r=1-l)-c),e){default:case 6:case 0:i=r,a=o,s=c;break;case 1:i=o,a=r,s=c;break;case 2:i=c,a=r,s=o;break;case 3:i=c,a=o,s=r;break;case 4:i=o,a=c,s=r;break;case 5:i=r,a=c,s=o}return[255*i,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(t){var e,r,n,o=t[0]/100,i=t[1]/100,a=t[2]/100;return r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,e=(e=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(t){var e,r,n,o=t[0];e=t[1]/500+(r=(o+16)/116),n=r-t[2]/200;var i=Math.pow(r,3),a=Math.pow(e,3),s=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},a.lab.lch=function(t){var e,r=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+o*o),e]},a.lch.lab=function(t){var e,r=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[r,n*Math.cos(e),n*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(r,n),o),a=Math.min(Math.min(r,n),o),s=i-a;return e=s<=0?0:i===r?(n-o)/s%6:i===n?2+(o-r)/s:4+(r-n)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e,r=t[1]/100,n=t[2]/100,o=0;return(e=n<.5?2*r*n:2*r*(1-n))<1&&(o=(n-.5*e)/(1-e)),[t[0],100*e,100*o]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},a.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},841:function(t,e,r){var n=r(4959),o=r(9325),i={};Object.keys(n).forEach((function(t){i[t]={},Object.defineProperty(i[t],"channels",{value:n[t].channels}),Object.defineProperty(i[t],"labels",{value:n[t].labels});var e=o(t);Object.keys(e).forEach((function(r){var n=e[r];i[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"==typeof r)for(var n=r.length,o=0;o<n;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(n),i[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(n)}))})),t.exports=i},9325:function(t,e,r){var n=r(4959);function o(t,e){return function(r){return e(t(r))}}function i(t,e){for(var r=[e[t].parent,t],i=n[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),i=o(n[e[a].parent][a],i),a=e[a].parent;return i.conversion=r,i}t.exports=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,o=0;o<r;o++)t[e[o]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),a=i.length,s=0;s<a;s++){var u=i[s],c=e[u];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,r.unshift(u))}return e}(t),r={},o=Object.keys(e),a=o.length,s=0;s<a;s++){var u=o[s];null!==e[u].parent&&(r[u]=i(u,e))}return r}},1103:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138:function(t,e,r){var n=r(3716),o={};t.exports=o,o.themes={};var i=r(3335),a=o.styles=r(9951),s=Object.defineProperties,u=new RegExp(/[\r\n]+/g);o.supportsColor=r(3613).supportsColor,void 0===o.enabled&&(o.enabled=!1!==o.supportsColor()),o.enable=function(){o.enabled=!0},o.disable=function(){o.enabled=!1},o.stripColors=o.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")},o.stylize=function(t,e){if(!o.enabled)return t+"";var r=a[e];return!r&&e in o?o[e](t):r.open+t+r.close};var c=/[|\\{}()[\]^$+*?.]/g;function l(t){var e=function t(){return d.apply(t,arguments)};return e._styles=t,e.__proto__=p,e}var f,h=(f={},a.grey=a.gray,Object.keys(a).forEach((function(t){a[t].closeRe=new RegExp(function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(c,"\\$&")}(a[t].close),"g"),f[t]={get:function(){return l(this._styles.concat(t))}}})),f),p=s((function(){}),h);function d(){var t=Array.prototype.slice.call(arguments).map((function(t){return null!=t&&t.constructor===String?t:i.inspect(t)})).join(" ");if(!o.enabled||!t)return t;for(var e=-1!=t.indexOf("\n"),r=this._styles,n=r.length;n--;){var s=a[r[n]];t=s.open+t.replace(s.closeRe,s.open)+s.close,e&&(t=t.replace(u,(function(t){return s.close+t+s.open})))}return t}o.setTheme=function(t){if("string"!=typeof t)for(var e in t)!function(e){o[e]=function(r){if("object"==typeof t[e]){var n=r;for(var i in t[e])n=o[t[e][i]](n);return n}return o[t[e]](r)}}(e);else n.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var m=function(t,e){var r=e.split("");return(r=r.map(t)).join("")};for(var y in o.trap=r(2571),o.zalgo=r(561),o.maps={},o.maps.america=r(6393)(o),o.maps.zebra=r(4035)(o),o.maps.rainbow=r(1374)(o),o.maps.random=r(2987)(o),o.maps)!function(t){o[t]=function(e){return m(o.maps[t],e)}}(y);s(o,function(){var t={};return Object.keys(h).forEach((function(e){t[e]={get:function(){return l([e])}}})),t}())},2571:function(t){t.exports=function(t,e){var r="";t=(t=t||"Run the trap, drop the bass").split("");var n={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return t.forEach((function(t){t=t.toLowerCase();var e=n[t]||[" "],o=Math.floor(Math.random()*e.length);r+=void 0!==n[t]?n[t][o]:t})),r}},561:function(t){t.exports=function(t,e){t=t||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function o(t){return Math.floor(Math.random()*t)}function i(t){var e=!1;return n.filter((function(r){e=r===t})),e}return function(t,e){var n,a,s="";for(a in(e=e||{}).up=void 0===e.up||e.up,e.mid=void 0===e.mid||e.mid,e.down=void 0===e.down||e.down,e.size=void 0!==e.size?e.size:"maxi",t=t.split(""))if(!i(a)){switch(s+=t[a],n={up:0,down:0,mid:0},e.size){case"mini":n.up=o(8),n.mid=o(2),n.down=o(8);break;case"maxi":n.up=o(16)+3,n.mid=o(4)+1,n.down=o(64)+3;break;default:n.up=o(8)+1,n.mid=o(6)/2,n.down=o(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],f=0;f<=n[l];f++)e[l]&&(s+=r[l][o(r[l].length)])}return s}(t,e)}},6393:function(t){t.exports=function(t){return function(e,r,n){if(" "===e)return e;switch(r%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}},1374:function(t){t.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(r,n,o){return" "===r?r:t[e[n++%e.length]](r)}}},2987:function(t){t.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,o){return" "===r?r:t[e[Math.round(Math.random()*(e.length-2))]](r)}}},4035:function(t){t.exports=function(t){return function(e,r,n){return r%2==0?e:t.inverse(e)}}},9951:function(t){var e={};t.exports=e;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(t){var n=r[t],o=e[t]=[];o.open="["+n[0]+"m",o.close="["+n[1]+"m"}))},7946:function(t,e,r){"use strict";var n=r(4406);t.exports=function(t,e){var r=(e=e||n.argv).indexOf("--"),o=/^-{1,2}/.test(t)?"":"--",i=e.indexOf(o+t);return-1!==i&&(-1===r||i<r)}},3613:function(t,e,r){"use strict";var n=r(4406),o=r(4055),i=r(7946),a={NODE_ENV:"production"},s=void 0;function u(t){var e=function(t){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(t&&!t.isTTY&&!0!==s)return 0;var e=s?1:0;if("win32"===n.platform){var r=o.release().split(".");return Number(n.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(t){return t in a}))||"codeship"===a.CI_NAME?1:e;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in a){var u=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return u>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:e}(t);return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(e)}i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),t.exports={supportsColor:u,stdout:u(n.stdout),stderr:u(n.stderr)}},3384:function(t,e,r){var n=r(138);t.exports=n},3716:function(t,e,r){var n=r(3335),o=r(1696);function i(){return(new Date).getTime()}var a,s=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){u[t]=i()},"time"],[function(t){var e=u[t];if(!e)throw new Error("No such label: "+t);delete u[t];var r=i()-e;a.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);o.ok(!1,n.format.apply(null,e))}},"assert"]],l=0;l<c.length;l++){var f=c[l],h=f[0],p=f[1];a[p]||(a[p]=h)}t.exports=a},5881:function(t){var e=1e3,r=60*e,n=60*r,o=24*n;function i(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var s,u,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===c&&isFinite(t))return a.long?(s=t,(u=Math.abs(s))>=o?i(s,u,o,"day"):u>=n?i(s,u,n,"hour"):u>=r?i(s,u,r,"minute"):u>=e?i(s,u,e,"second"):s+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},5130:function(t,e,r){var n=r(3716),o=r(4406);e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))})),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&void 0!==o&&"env"in o&&(t={NODE_ENV:"production"}.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=n.debug||n.log||(()=>{}),t.exports=r(7123)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},7123:function(t,e,r){var n=r(3716);t.exports=function(t){function e(t){let r,n=null;function i(...t){if(!i.enabled)return;const n=i,o=Number(new Date),a=o-(r||o);n.diff=a,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r})),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return i.namespace=t,i.useColors=e.useColors(),i.color=e.selectColor(t),i.extend=o,i.destroy=e.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===n?e.enabled(t):n,set:t=>{n=t}}),"function"==typeof e.init&&e.init(i),i}function o(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names.map(i),...e.skips.map(i).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.names=[],e.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(5881),e.destroy=function(){n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},4926:function(t,e,r){"use strict";var n=r(3464),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=r(1181)(),c=s&&u,l=function(t,e,r,n){var o;(!(e in t)||"function"==typeof(o=n)&&"[object Function]"===i.call(o)&&n())&&(c?s(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var s=0;s<i.length;s+=1)l(t,i[s],e[i[s]],r[i[s]])};f.supportsDescriptors=!!c,t.exports=f},4956:function(t){"use strict";function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(o,u);void 0!==c&&c.enumerable&&(r[u]=o[u])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},8102:function(t){"use strict";var e=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(e,"\\$&")}},3243:function(t,e,r){"use strict";var n=r(9680),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},u=function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===o.call(t)?a(t,e,i):"string"==typeof t?s(t,e,i):u(t,e,i)}},7795:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(r.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var h=function(){};h.prototype=i.prototype,a.prototype=new h,h.prototype=null}return a}},4090:function(t,e,r){"use strict";var n=r(7795);t.exports=Function.prototype.bind||n},7286:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=r(2636)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=h(o.prototype))}return m[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),w=v.call(Function.call,Array.prototype.concat),A=v.call(Function.apply,Array.prototype.splice),M=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),_=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,k=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return M(t,C,(function(t,e,r,o){n[n.length]=r?M(o,S,"$1"):e||t})),n},x=function(t,e){var r,n=t;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(m,n)){var i=m[n];if(i===p&&(i=y(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(t),n=r.length>0?r[0]:"",i=x("%"+n+"%",e),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],A(r,w([0,1],f)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],y=E(d,0,1),g=E(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&p||(l=!0),b(m,s="%"+(n+="."+d)+"%"))c=m[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var v=u(c,d);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else p=b(c,d),c=c[d];p&&!l&&(m[s]=c)}}return c}},1181:function(t,e,r){"use strict";var n=r(7286)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},2636:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7226:function(t,e,r){"use strict";var n=r(6679);t.exports=function(){return n()&&!!Symbol.toStringTag}},3198:function(t,e,r){"use strict";var n=r(4090);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},1285:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2635:function(t,e,r){"use strict";var n=r(7226)(),o=r(2680)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=s?i:a},9680:function(t){"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(t){if((l||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},3138:function(t,e,r){"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(7226)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(i.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},7053:function(t){"use strict";t.exports=function(t){return t!=t}},4782:function(t,e,r){"use strict";var n=r(9429),o=r(4926),i=r(7053),a=r(755),s=r(5346),u=n(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},755:function(t,e,r){"use strict";var n=r(7053);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},5346:function(t,e,r){"use strict";var n=r(4926),o=r(755);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},198:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},f=i("String.prototype.slice"),h={},p=r(9765),d=Object.getPrototypeOf;s&&p&&d&&n(c,(function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=p(r,Symbol.toStringTag);if(!n){var o=d(r);n=p(o,Symbol.toStringTag)}h[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=f(a(t),8,-1);return l(c,e)>-1}return!!p&&function(t){var e=!1;return n(h,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},9095:function(t,e,r){const n=r(5618),o=r(7485),i={BRACE:"gray",BRACKET:"gray",COLON:"gray",COMMA:"gray",STRING_KEY:"magenta",STRING_LITERAL:"yellow",NUMBER_LITERAL:"green",BOOLEAN_LITERAL:"cyan",NULL_LITERAL:"white"};e.colorize=function(t,e={}){const r=e.colors||{};return t.reduce(((t,e)=>{const a=r[e.type]||i[e.type],s=a&&"#"===a[0]?n.hex(a):o(n,a);return t+(s?s(e.value):e.value)}),"")}},6190:function(t,e,r){const n=r(1024),o=r(9095);t.exports=function(t,e){return o.colorize(n.getTokens(t,e),e)}},1024:function(t,e){const r=[{regex:/^\s+/,tokenType:"WHITESPACE"},{regex:/^[{}]/,tokenType:"BRACE"},{regex:/^[[\]]/,tokenType:"BRACKET"},{regex:/^:/,tokenType:"COLON"},{regex:/^,/,tokenType:"COMMA"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"NUMBER_LITERAL"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"STRING_KEY"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"STRING_LITERAL"},{regex:/^true|^false/,tokenType:"BOOLEAN_LITERAL"},{regex:/^null/,tokenType:"NULL_LITERAL"}];function n(t,e){return(t||{}).length>0&&e}e.getTokens=function(t,e={}){let o;if(e.pretty){const e="string"==typeof t?JSON.parse(t):t;o=JSON.stringify(e,null,2)}else o="string"==typeof t?t:JSON.stringify(t);let i,a=[];do{i=!1;for(let t=0;t<r.length;t++){const e=r[t].regex.exec(o);if(e){a.push({type:r[t].tokenType,value:e[0]}),o=o.substring(e[0].length),i=!0;break}}}while(n(o,i));return a}},7485:function(t,e,r){var n,o="__lodash_hash_undefined__",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,s=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,l=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=f||h||Function("return this")(),d=Array.prototype,m=Function.prototype,y=Object.prototype,g=p["__core-js_shared__"],v=(n=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",b=m.toString,w=y.hasOwnProperty,A=y.toString,M=RegExp("^"+b.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=p.Symbol,_=d.splice,C=P(p,"Map"),S=P(Object,"create"),k=E?E.prototype:void 0,x=k?k.toString:void 0;function O(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function D(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function F(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function T(t,e){for(var r,n,o=t.length;o--;)if((r=t[o][0])===(n=e)||r!=r&&n!=n)return o;return-1}function j(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function P(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){if(!$(t)||v&&v in t)return!1;var e=function(t){var e=$(t)?A.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?M:l;return e.test(function(t){if(null!=t){try{return b.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}O.prototype.clear=function(){this.__data__=S?S(null):{}},O.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},O.prototype.get=function(t){var e=this.__data__;if(S){var r=e[t];return r===o?void 0:r}return w.call(e,t)?e[t]:void 0},O.prototype.has=function(t){var e=this.__data__;return S?void 0!==e[t]:w.call(e,t)},O.prototype.set=function(t,e){return this.__data__[t]=S&&void 0===e?o:e,this},D.prototype.clear=function(){this.__data__=[]},D.prototype.delete=function(t){var e=this.__data__,r=T(e,t);return!(r<0||(r==e.length-1?e.pop():_.call(e,r,1),0))},D.prototype.get=function(t){var e=this.__data__,r=T(e,t);return r<0?void 0:e[r][1]},D.prototype.has=function(t){return T(this.__data__,t)>-1},D.prototype.set=function(t,e){var r=this.__data__,n=T(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},F.prototype.clear=function(){this.__data__={hash:new O,map:new(C||D),string:new O}},F.prototype.delete=function(t){return j(this,t).delete(t)},F.prototype.get=function(t){return j(this,t).get(t)},F.prototype.has=function(t){return j(this,t).has(t)},F.prototype.set=function(t,e){return j(this,t).set(t,e),this};var R=I((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(L(t))return x?x.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return s.test(t)&&r.push(""),t.replace(u,(function(t,e,n,o){r.push(n?o.replace(c,"$1"):e||t)})),r}));function B(t){if("string"==typeof t||L(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function I(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(I.Cache||F),r}I.Cache=F;var N=Array.isArray;function $(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function L(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==A.call(t)}t.exports=function(t,e,r){var n=null==t?void 0:function(t,e){var r;e=function(t,e){if(N(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!L(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:N(r=e)?r:R(r);for(var n=0,o=e.length;null!=t&&n<o;)t=t[B(e[n++])];return n&&n==o?t:void 0}(t,e);return void 0===n?r:n}},8169:function(t){"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},4679:function(t,e,r){"use strict";var n=r(4926),o=r(9429),i=r(8169),a=r(8070),s=r(191),u=o(a(),Object);n(u,{getPolyfill:a,implementation:i,shim:s}),t.exports=u},8070:function(t,e,r){"use strict";var n=r(8169);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},191:function(t,e,r){"use strict";var n=r(8070),o=r(4926);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5691:function(t,e,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(801),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{f(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=a(t),s=e&&"[object String]"===i.call(t),h=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(s&&t.length>0&&!o.call(t,0))for(var m=0;m<t.length;++m)h.push(String(m));if(n&&t.length>0)for(var y=0;y<t.length;++y)h.push(String(y));else for(var g in t)d&&"prototype"===g||!o.call(t,g)||h.push(String(g));if(u)for(var v=function(t){if("undefined"==typeof window||!p)return f(t);try{return f(t)}catch(t){return!1}}(t),b=0;b<l.length;++b)v&&"constructor"===l[b]||!o.call(t,l[b])||h.push(l[b]);return h}}t.exports=n},3464:function(t,e,r){"use strict";var n=Array.prototype.slice,o=r(801),i=Object.keys,a=i?function(t){return i(t)}:r(5691),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},801:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},4406:function(t){var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=a(f);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l<e;)s&&s[l].run();l=-1,e=u.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||c||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},2808:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(r);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,f,h,p,d=t[c].replace(a,"%20"),m=d.indexOf(n);m>=0?(l=d.substr(0,m),f=d.substr(m+1)):(l=d,f=""),h=decodeURIComponent(l),p=decodeURIComponent(f),e(i,h)?Array.isArray(i[h])?i[h].push(p):i[h]=[i[h],p]:i[h]=p}return i}},1368:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,o){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(o){var i=encodeURIComponent(e(o))+n;return Array.isArray(t[o])?t[o].map((function(t){return i+encodeURIComponent(e(t))})).join(r):i+encodeURIComponent(e(t[o]))})).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""}},6642:function(t,e,r){"use strict";e.decode=e.parse=r(2808),e.encode=e.stringify=r(1368)},4716:function(t){"use strict";t.exports=t=>{const e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}},8334:function(t){"use strict";t.exports={stdout:!1,stderr:!1}},9639:function(t,e,r){var n;t=r.nmd(t),function(o){e&&e.nodeType,t&&t.nodeType;var i="object"==typeof r.g&&r.g;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,u=36,c=/^xn--/,l=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,h={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,d=String.fromCharCode;function m(t){throw RangeError(h[t])}function y(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function g(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+y((t=t.replace(f,".")).split("."),e).join(".")}function v(t){for(var e,r,n=[],o=0,i=t.length;o<i;)(e=t.charCodeAt(o++))>=55296&&e<=56319&&o<i?56320==(64512&(r=t.charCodeAt(o++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),o--):n.push(e);return n}function b(t){return y(t,(function(t){var e="";return t>65535&&(e+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+d(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,r){var n=0;for(t=r?p(t/700):t>>1,t+=p(t/e);t>455;n+=u)t=p(t/35);return p(n+36*t/(t+38))}function M(t){var e,r,n,o,i,a,c,l,f,h,d,y=[],g=t.length,v=0,w=128,M=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&m("not-basic"),y.push(t.charCodeAt(n));for(o=r>0?r+1:0;o<g;){for(i=v,a=1,c=u;o>=g&&m("invalid-input"),((l=(d=t.charCodeAt(o++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:u)>=u||l>p((s-v)/a))&&m("overflow"),v+=l*a,!(l<(f=c<=M?1:c>=M+26?26:c-M));c+=u)a>p(s/(h=u-f))&&m("overflow"),a*=h;M=A(v-i,e=y.length+1,0==i),p(v/e)>s-w&&m("overflow"),w+=p(v/e),v%=e,y.splice(v++,0,w)}return b(y)}function E(t){var e,r,n,o,i,a,c,l,f,h,y,g,b,M,E,_=[];for(g=(t=v(t)).length,e=128,r=0,i=72,a=0;a<g;++a)(y=t[a])<128&&_.push(d(y));for(n=o=_.length,o&&_.push("-");n<g;){for(c=s,a=0;a<g;++a)(y=t[a])>=e&&y<c&&(c=y);for(c-e>p((s-r)/(b=n+1))&&m("overflow"),r+=(c-e)*b,e=c,a=0;a<g;++a)if((y=t[a])<e&&++r>s&&m("overflow"),y==e){for(l=r,f=u;!(l<(h=f<=i?1:f>=i+26?26:f-i));f+=u)E=l-h,M=u-h,_.push(d(w(h+E%M,0))),l=p(E/M);_.push(d(w(l,0))),i=A(r,b,n==o),r=0,++n}++r,++e}return _.join("")}a={version:"1.3.2",ucs2:{decode:v,encode:b},decode:M,encode:E,toASCII:function(t){return g(t,(function(t){return l.test(t)?"xn--"+E(t):t}))},toUnicode:function(t){return g(t,(function(t){return c.test(t)?M(t.slice(4).toLowerCase()):t}))}},void 0===(n=function(){return a}.call(e,r,e,t))||(t.exports=n)}()},883:function(t,e,r){"use strict";var n=r(9639),o=r(5225);function i(){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}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return o.isString(t)&&(t=b(t)),t instanceof i?t.format():i.prototype.format.call(t)},e.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(6642);function b(t,e,r){if(t&&o.isObject(t)&&t instanceof i)return t;var n=new i;return n.parse(t,e,r),n}i.prototype.parse=function(t,e,r){if(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),s=-1!==i&&i<t.indexOf("#")?"?":"#",c=t.split(s);c[0]=c[0].replace(/\\/g,"/");var b=t=c.join(s);if(b=b.trim(),!r&&1===t.split("#").length){var w=u.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?v.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var A=a.exec(b);if(A){var M=(A=A[0]).toLowerCase();this.protocol=M,b=b.substr(A.length)}if(r||A||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===b.substr(0,2);!E||A&&y[A]||(b=b.substr(2),this.slashes=!0)}if(!y[A]&&(E||A&&!g[A])){for(var _,C,S=-1,k=0;k<h.length;k++)-1!==(x=b.indexOf(h[k]))&&(-1===S||x<S)&&(S=x);for(-1!==(C=-1===S?b.lastIndexOf("@"):b.lastIndexOf("@",S))&&(_=b.slice(0,C),b=b.slice(C+1),this.auth=decodeURIComponent(_)),S=-1,k=0;k<f.length;k++){var x;-1!==(x=b.indexOf(f[k]))&&(-1===S||x<S)&&(S=x)}-1===S&&(S=b.length),this.host=b.slice(0,S),b=b.slice(S),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var D=this.hostname.split(/\./),F=(k=0,D.length);k<F;k++){var T=D[k];if(T&&!T.match(p)){for(var j="",P=0,R=T.length;P<R;P++)T.charCodeAt(P)>127?j+="x":j+=T[P];if(!j.match(p)){var B=D.slice(0,k),I=D.slice(k+1),N=T.match(d);N&&(B.push(N[1]),I.unshift(N[2])),I.length&&(b="/"+I.join(".")+b),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var $=this.port?":"+this.port:"",L=this.hostname||"";this.host=L+$,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[M])for(k=0,F=l.length;k<F;k++){var U=l[k];if(-1!==b.indexOf(U)){var q=encodeURIComponent(U);q===U&&(q=escape(U)),b=b.split(U).join(q)}}var z=b.indexOf("#");-1!==z&&(this.hash=b.substr(z),b=b.slice(0,z));var V=b.indexOf("?");if(-1!==V?(this.search=b.substr(V),this.query=b.substr(V+1),e&&(this.query=v.parse(this.query)),b=b.slice(0,V)):e&&(this.search="",this.query={}),b&&(this.pathname=b),g[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){$=this.pathname||"";var H=this.search||"";this.path=$+H}return this.href=this.format(),this},i.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,a="";this.host?i=t+this.host:this.hostname&&(i=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),e+i+(r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},i.prototype.resolveObject=function(t){if(o.isString(t)){var e=new i;e.parse(t,!1,!0),t=e}for(var r=new i,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=t[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var p=f[h];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var m=r.pathname||"",v=r.search||"";r.path=m+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),A=w||b||r.host&&t.pathname,M=A,E=r.pathname&&r.pathname.split("/")||[],_=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(_&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),A=A&&(""===d[0]||""===E[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=t.search,r.query=t.query;else if(!o.isNullOrUndefined(t.search))return _&&(r.hostname=r.host=E.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),r.search=t.search,r.query=t.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=E.slice(-1)[0],S=(r.host||t.host||E.length>1)&&("."===C||".."===C)||""===C,k=0,x=E.length;x>=0;x--)"."===(C=E[x])?E.splice(x,1):".."===C?(E.splice(x,1),k++):k&&(E.splice(x,1),k--);if(!A&&!M)for(;k--;k)E.unshift("..");!A||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var O,D=""===E[0]||E[0]&&"/"===E[0].charAt(0);return _&&(r.hostname=r.host=D?"":E.length?E.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),(A=A||r.host&&E.length)&&!D&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},5225:function(t){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},82:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},4895:function(t,e,r){"use strict";var n=r(2635),o=r(3138),i=r(2094),a=r(198);function s(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function g(t){return"[object Map]"===l(t)}function v(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function A(t){return"[object ArrayBuffer]"===l(t)}function M(t){return"undefined"!=typeof ArrayBuffer&&(A.working?A(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===l(t)}function _(t){return"undefined"!=typeof DataView&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||_(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},g.working="undefined"!=typeof Map&&g(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(g.working?g(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),e.isArrayBuffer=M,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===l(t)}function k(t){return void 0!==C&&(void 0===S.working&&(S.working=S(new C)),S.working?S(t):t instanceof C)}function x(t){return y(t,f)}function O(t){return y(t,h)}function D(t){return y(t,p)}function F(t){return u&&y(t,d)}function T(t){return c&&y(t,m)}e.isSharedArrayBuffer=k,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=x,e.isStringObject=O,e.isBooleanObject=D,e.isBigIntObject=F,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return x(t)||O(t)||D(t)||F(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(M(t)||k(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},3335:function(t,e,r){var n=r(4406),o=r(3716),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(l(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(t).replace(a,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<o;s=n[++r])v(s)||!E(s)?i+=" "+s:i+=" "+l(s);return i},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),i=!0}return t.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production"}.NODE_DEBUG){var c={NODE_ENV:"production"}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+c+"$","i")}function l(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),A(n.showHidden)&&(n.showHidden=!1),A(n.depth)&&(n.depth=2),A(n.colors)&&(n.colors=!1),A(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),p(n,t,n.depth)}function f(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return w(o)||(o=p(t,o,n)),o}var i=function(t,e){if(A(e))return t.stylize("undefined","undefined");if(w(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return b(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),C(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(r);if(0===a.length){if(S(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(M(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(C(r))return d(r)}var c,l="",f=!1,h=["{","}"];return y(r)&&(f=!0,h=["[","]"]),S(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),_(r)&&(l=" "+Date.prototype.toUTCString.call(r)),C(r)&&(l=" "+d(r)),0!==a.length||f&&0!=r.length?n<0?M(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=f?function(t,e,r,n,o){for(var i=[],a=0,s=e.length;a<s;++a)F(e,String(a))?i.push(m(t,e,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(m(t,e,r,n,o,!0))})),i}(t,r,n,s,a):a.map((function(e){return m(t,r,n,s,e,f)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,l,h)):h[0]+l+h[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function m(t,e,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),F(n,o)||(a="["+o+"]"),s||(t.seen.indexOf(u.value)<0?(s=v(r)?p(t,u.value,null):p(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),A(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function v(t){return null===t}function b(t){return"number"==typeof t}function w(t){return"string"==typeof t}function A(t){return void 0===t}function M(t){return E(t)&&"[object RegExp]"===k(t)}function E(t){return"object"==typeof t&&null!==t}function _(t){return E(t)&&"[object Date]"===k(t)}function C(t){return E(t)&&("[object Error]"===k(t)||t instanceof Error)}function S(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(u.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);o.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(4895),e.isArray=y,e.isBoolean=g,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=A,e.isRegExp=M,e.types.isRegExp=M,e.isObject=E,e.isDate=_,e.types.isDate=_,e.isError=C,e.types.isNativeError=C,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(82);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var t=new Date,e=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":");return[t.getDate(),O[t.getMonth()],e].join(" ")}function F(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){o.log("%s - %s",D(),e.format.apply(e,arguments))},e.inherits=r(1285),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=T,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var o=e.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(j.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},2094:function(t,e,r){"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("String.prototype.slice"),f={},h=r(9765),p=Object.getPrototypeOf;s&&h&&p&&n(c,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=p(e),n=h(r,Symbol.toStringTag);if(!n){var o=p(r);n=h(o,Symbol.toStringTag)}f[t]=n.get}}}));var d=r(198);t.exports=function(t){return!!d(t)&&(s&&Symbol.toStringTag in t?function(t){var e=!1;return n(f,(function(r,n){if(!e)try{var o=r.call(t);o===n&&(e=o)}catch(t){}})),e}(t):l(a(t),8,-1))}},6010:function(t,e,r){"use strict";const n=r(6777),o=r(7445),i=r(5106),a=r(4135),s=r(9462),u=r(2850),c=r(7913),l=r(9101),f=r(4468),h=r(9198),p=r(644),d=r(6178),m=r(6746),y=r(8098);t.exports={BaseException:n,BaseFileException:o,FileDownloader:i,CompositeFileLoader:a,DefaultFileLoader:s,GitHubFileLoader:u,HTTPFileLoader:c,Writer:l,FileWriter:f,InMemoryWriter:p,ModelWriter:h,Logger:d,TypedStack:m,Label:y}},4055:function(){},2203:function(){},5783:function(){},2191:function(t,e,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof o[n[e]]&&(t[t.length]=n[e]);return t}},9765:function(t,e,r){"use strict";var n=r(7286)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},4147:function(t){"use strict";t.exports=JSON.parse('{"name":"@accordproject/concerto-util","version":"3.0.0","description":"Utilities for Concerto Modeling Language","homepage":"https://github.com/accordproject/concerto","engines":{"node":">=14","npm":">=6"},"main":"index.js","browser":"dist/concerto-util.js","typings":"types/index.d.ts","scripts":{"prepublishOnly":"webpack --config webpack.config.js --mode production","pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check-and-add","postlicchk":"npm run doc","doc":"jsdoc --pedantic --recurse -c jsdoc.json","postdoc":"npm run build:types","test":"nyc mocha --recursive -t 10000","test:watch":"nyc mocha --watch --recursive -t 10000","mocha":"mocha --recursive -t 10000","nyc":"nyc mocha --recursive -t 10000","build:types":"tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types"},"repository":{"type":"git","url":"https://github.com/accordproject/concerto.git","directory":"packages/concerto-util"},"keywords":["blockchain","hyperledger","solutions"],"author":"accordproject.org","license":"Apache-2.0","devDependencies":{"chai":"4.3.6","chai-as-promised":"7.1.1","chai-things":"0.2.0","eslint":"8.2.0","jsdoc":"^3.6.7","license-check-and-add":"2.3.6","mocha":"10.0.0","moxios":"0.4.0","node-polyfill-webpack-plugin":"2.0.1","nyc":"15.1.0","tmp-promise":"3.0.2","typescript":"4.6.3"},"dependencies":{"@supercharge/promise-pool":"1.7.0","axios":"0.23.0","colors":"1.4.0","debug":"4.3.1","json-colorizer":"2.2.2","slash":"3.0.0"},"browserslist":"> 0.25%, not dead","license-check-and-add-config":{"folder":"./lib","license":"HEADER","exact_paths_method":"EXCLUDE","exact_paths":["api.txt","composer-logs","coverage","LICENSE","node_modules",".nyc-output","out",".tern-project"],"file_type_method":"EXCLUDE","file_types":[".yml",".yaml",".zip",".tgz"],"insert_license":false,"license_formats":{"js|njk|pegjs|cto|acl|qry":{"prepend":"/*","append":" */","eachLine":{"prepend":" * "}},"npmrc|editorconfig|txt":{"eachLine":{"prepend":"# "}},"md":{"file":"HEADER.md"}}},"nyc":{"produce-source-map":"true","sourceMap":"inline","reporter":["lcov","text-summary","html","json"],"include":["lib/**/*.js"],"all":true,"check-coverage":true,"statements":99,"branches":93,"functions":98,"lines":99}}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r(6010)}()},334:function(t){"use strict";t.exports=JSON.parse('{"$class":"concerto.metamodel@1.0.0.Model","decorators":[{"$class":"concerto.metamodel@1.0.0.Decorator","name":"DotNetNamespace","arguments":[{"$class":"concerto.metamodel@1.0.0.DecoratorString","value":"AccordProject.Concerto.Metamodel"}]}],"namespace":"concerto.metamodel@1.0.0","imports":[],"declarations":[{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Position","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"line","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"column","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"offset","isArray":false,"isOptional":false}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Range","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"start","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"end","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Position"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"source","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"TypeIdentifier","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorLiteral","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorString","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorNumber","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorBoolean","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"value","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DecoratorTypeReference","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"defaultValue":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Decorator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"arguments","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DecoratorLiteral"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Identified","isAbstract":false,"properties":[]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IdentifiedBy","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Identified"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Declaration","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EnumDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"EnumProperty"},"isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EnumProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ConceptDeclaration","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isAbstract","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"identified","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Identified"},"isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"superType","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"properties","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"},"isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"AssetDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ParticipantDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"TransactionDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"EventDeclaration","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"ConceptDeclaration"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Property","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false,"validator":{"$class":"concerto.metamodel@1.0.0.StringRegexValidator","pattern":"^(\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4})(?:\\\\p{Lu}|\\\\p{Ll}|\\\\p{Lt}|\\\\p{Lm}|\\\\p{Lo}|\\\\p{Nl}|\\\\$|_|\\\\\\\\u[0-9A-Fa-f]{4}|\\\\p{Mn}|\\\\p{Mc}|\\\\p{Nd}|\\\\p{Pc}|\\\\u200C|\\\\u200D)*$","flags":"u"}},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isArray","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"isOptional","isArray":false,"isOptional":false,"defaultValue":false},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"location","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Range"},"isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"RelationshipProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ObjectProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"type","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"TypeIdentifier"},"isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"BooleanProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.BooleanProperty","name":"defaultValue","isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DateTimeProperty","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"StringProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"StringRegexValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"StringRegexValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"pattern","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"flags","isArray":false,"isOptional":false}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DoubleProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"DoubleDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"DoubleDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.DoubleProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IntegerProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"IntegerDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"IntegerDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.IntegerProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"LongProperty","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"defaultValue","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"validator","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"LongDomainValidator"},"isArray":false,"isOptional":true}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Property"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"LongDomainValidator","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"lower","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.LongProperty","name":"upper","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Import","isAbstract":true,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"uri","isArray":false,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportAll","isAbstract":false,"properties":[],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportType","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"name","isArray":false,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"ImportTypes","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"types","isArray":true,"isOptional":false}],"superType":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"}},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Model","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"namespace","isArray":false,"isOptional":false},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"sourceUri","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.StringProperty","name":"concertoVersion","isArray":false,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"imports","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Import"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"declarations","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Declaration"},"isArray":true,"isOptional":true},{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"decorators","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Decorator"},"isArray":true,"isOptional":true}]},{"$class":"concerto.metamodel@1.0.0.ConceptDeclaration","name":"Models","isAbstract":false,"properties":[{"$class":"concerto.metamodel@1.0.0.ObjectProperty","name":"models","type":{"$class":"concerto.metamodel@1.0.0.TypeIdentifier","name":"Model"},"isArray":true,"isOptional":false}]}]}')}},r={},function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n](i,i.exports,t),i.exports}(10))},8073:(t,e)=>{"use strict";function r(t,e){return void 0===e&&(e=Object),e&&"function"==typeof e.freeze?e.freeze(t):t}var n=r({HTML:"text/html",isHTML:function(t){return t===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.assign=function(t,e){if(null===t||"object"!=typeof t)throw new TypeError("target is not an object");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},e.freeze=r,e.MIME_TYPE=n,e.NAMESPACE=o},7218:(t,e,r)=>{var n=r(8073),o=r(4907),i=r(7650),a=r(5904),s=o.DOMImplementation,u=n.NAMESPACE,c=a.ParseError,l=a.XMLReader;function f(t){return t.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(t){this.options=t||{locator:{}}}function p(){this.cdata=!1}function d(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function m(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function y(t,e,r){return"string"==typeof t?t.substr(e,r):t.length>=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}h.prototype.parseFromString=function(t,e){var r=this.options,n=new l,o=r.domBuilder||new p,a=r.errorHandler,s=r.locator,c=r.xmlns||{},h=/\/x?html?$/.test(e),d=h?i.HTML_ENTITIES:i.XML_ENTITIES;s&&o.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof p)return e;t=e}var n={},o=t instanceof Function;function i(e){var i=t[e];!i&&o&&(i=2==t.length?function(r){t(e,r)}:t),n[e]=i&&function(t){i("[xmldom "+e+"]\t"+t+m(r))}||function(){}}return r=r||{},i("warning"),i("error"),i("fatalError"),n}(a,o,s),n.domBuilder=r.domBuilder||o,h&&(c[""]=u.HTML),c.xml=c.xml||u.XML;var y=r.normalizeLineEndings||f;return t&&"string"==typeof t?n.parse(y(t),c,d):n.errorHandler.error("invalid doc source"),o.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var o=this.doc,i=o.createElementNS(t,r||e),a=n.length;g(this,i),this.currentElement=i,this.locator&&d(this.locator,i);for(var s=0;s<a;s++){t=n.getURI(s);var u=n.getValue(s),c=(r=n.getQName(s),o.createAttributeNS(t,r));this.locator&&d(n.getLocator(s),c),c.value=c.nodeValue=u,i.setAttributeNode(c)}},endElement:function(t,e,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var r=this.doc.createProcessingInstruction(t,e);this.locator&&d(this.locator,r),g(this,r)},ignorableWhitespace:function(t,e,r){},characters:function(t,e,r){if(t=y.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(t);else n=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(t)&&this.doc.appendChild(n),this.locator&&d(this.locator,n)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,r){t=y.apply(this,arguments);var n=this.doc.createComment(t);this.locator&&d(this.locator,n),g(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var o=n.createDocumentType(t,e,r);this.locator&&d(this.locator,o),g(this,o),this.doc.doctype=o}},warning:function(t){console.warn("[xmldom warning]\t"+t,m(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,m(this.locator))},fatalError:function(t){throw new c(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(t){p.prototype[t]=function(){return null}})),e.DOMParser=h},4907:(t,e,r)=>{var n=r(8073).NAMESPACE;function o(t){return""!==t}function i(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function a(t){if(!t)return[];var e=function(t){return t?t.split(/[\t\n\f\r ]+/).filter(o):[]}(t);return Object.keys(e.reduce(i,{}))}function s(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function u(t,e){var r=t.prototype;if(!(r instanceof e)){function n(){}n.prototype=e.prototype,s(r,n=new n),t.prototype=r=n}r.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),r.constructor=t)}var c={},l=c.ELEMENT_NODE=1,f=c.ATTRIBUTE_NODE=2,h=c.TEXT_NODE=3,p=c.CDATA_SECTION_NODE=4,d=c.ENTITY_REFERENCE_NODE=5,m=c.ENTITY_NODE=6,y=c.PROCESSING_INSTRUCTION_NODE=7,g=c.COMMENT_NODE=8,v=c.DOCUMENT_NODE=9,b=c.DOCUMENT_TYPE_NODE=10,w=c.DOCUMENT_FRAGMENT_NODE=11,A=c.NOTATION_NODE=12,M={},E={},_=(M.INDEX_SIZE_ERR=(E[1]="Index size error",1),M.DOMSTRING_SIZE_ERR=(E[2]="DOMString size error",2),M.HIERARCHY_REQUEST_ERR=(E[3]="Hierarchy request error",3)),C=(M.WRONG_DOCUMENT_ERR=(E[4]="Wrong document",4),M.INVALID_CHARACTER_ERR=(E[5]="Invalid character",5),M.NO_DATA_ALLOWED_ERR=(E[6]="No data allowed",6),M.NO_MODIFICATION_ALLOWED_ERR=(E[7]="No modification allowed",7),M.NOT_FOUND_ERR=(E[8]="Not found",8)),S=(M.NOT_SUPPORTED_ERR=(E[9]="Not supported",9),M.INUSE_ATTRIBUTE_ERR=(E[10]="Attribute in use",10));function k(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,E[t]),this.message=E[t],Error.captureStackTrace&&Error.captureStackTrace(this,k);return r.code=t,e&&(this.message=this.message+": "+e),r}function x(){}function O(t,e){this._node=t,this._refresh=e,D(this)}function D(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var r=t._refresh(t._node);ct(t,"length",r.length),s(r,t),t._inc=e}}function F(){}function T(t,e){for(var r=t.length;r--;)if(t[r]===e)return r}function j(t,e,r,o){if(o?e[T(e,o)]=r:e[e.length++]=r,t){r.ownerElement=t;var i=t.ownerDocument;i&&(o&&L(i,t,o),function(t,e,r){t&&t._inc++,r.namespaceURI===n.XMLNS&&(e._nsMap[r.prefix?r.localName:""]=r.value)}(i,t,r))}}function P(t,e,r){var n=T(e,r);if(!(n>=0))throw k(C,new Error(t.tagName+"@"+r));for(var o=e.length-1;n<o;)e[n]=e[++n];if(e.length=o,t){var i=t.ownerDocument;i&&(L(i,t,r),r.ownerElement=null)}}function R(){}function B(){}function I(t){return("<"==t?"&lt;":">"==t&&"&gt;")||"&"==t&&"&amp;"||'"'==t&&"&quot;"||"&#"+t.charCodeAt()+";"}function N(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(N(t,e))return!0}while(t=t.nextSibling)}function $(){}function L(t,e,r,o){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function U(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var o=e.firstChild,i=0;o;)n[i++]=o,o=o.nextSibling;n.length=i,delete n[n.length]}}}function q(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,U(t.ownerDocument,t),e}function z(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var o=e.firstChild;if(null==o)return e;var i=e.lastChild}else o=i=e;var a=r?r.previousSibling:t.lastChild;o.previousSibling=a,i.nextSibling=r,a?a.nextSibling=o:t.firstChild=o,null==r?t.lastChild=i:r.previousSibling=i;do{o.parentNode=t}while(o!==i&&(o=o.nextSibling));return U(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function V(){this._nsMap={}}function H(){}function G(){}function W(){}function Z(){}function J(){}function Q(){}function Y(){}function K(){}function X(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,o=n.prefix,i=n.namespaceURI;if(i&&null==o&&null==(o=n.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return at(this,r,t,e,a),r.join("")}function ot(t,e,r){var o=t.prefix||"",i=t.namespaceURI;if(!i)return!1;if("xml"===o&&i===n.XML||i===n.XMLNS)return!1;for(var a=r.length;a--;){var s=r[a];if(s.prefix===o)return s.namespace!==i}return!0}function it(t,e,r){t.push(" ",e,'="',r.replace(/[<>&"\t\n\r]/g,I),'"')}function at(t,e,r,o,i){if(i||(i=[]),o){if(!(t=o(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case l:var a=t.attributes,s=a.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var A,M=0;M<a.length;M++)if("xmlns"===a.item(M).name){A=a.item(M).value;break}if(!A)for(var E=i.length-1;E>=0;E--)if(""===(_=i[E]).prefix&&_.namespace===t.namespaceURI){A=_.namespace;break}if(A!==t.namespaceURI)for(E=i.length-1;E>=0;E--){var _;if((_=i[E]).namespace===t.namespaceURI){_.prefix&&(m=_.prefix+":"+c);break}}}e.push("<",m);for(var C=0;C<s;C++)"xmlns"==(S=a.item(C)).prefix?i.push({prefix:S.localName,namespace:S.value}):"xmlns"==S.nodeName&&i.push({prefix:"",namespace:S.value});for(C=0;C<s;C++){var S,k,x;ot(S=a.item(C),0,i)&&(it(e,(k=S.prefix||"")?"xmlns:"+k:"xmlns",x=S.namespaceURI),i.push({prefix:k,namespace:x})),at(S,e,r,o,i)}if(c===m&&ot(t,0,i)&&(it(e,(k=t.prefix||"")?"xmlns:"+k:"xmlns",x=t.namespaceURI),i.push({prefix:k,namespace:x})),u||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(e.push(">"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):at(u,e,r,o,i.slice()),u=u.nextSibling;else for(;u;)at(u,e,r,o,i.slice()),u=u.nextSibling;e.push("</",m,">")}else e.push("/>");return;case v:case w:for(u=t.firstChild;u;)at(u,e,r,o,i.slice()),u=u.nextSibling;return;case f:return it(e,t.name,t.value);case h:return e.push(t.data.replace(/[<&>]/g,I));case p:return e.push("<![CDATA[",t.data,"]]>");case g:return e.push("\x3c!--",t.data,"--\x3e");case b:var O=t.publicId,D=t.systemId;if(e.push("<!DOCTYPE ",t.name),O)e.push(" PUBLIC ",O),D&&"."!=D&&e.push(" ",D),e.push(">");else if(D&&"."!=D)e.push(" SYSTEM ",D,">");else{var F=t.internalSubset;F&&e.push(" [",F,"]"),e.push(">")}return;case y:return e.push("<?",t.target," ",t.data,"?>");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case l:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case f:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var o=e.firstChild;o;)n.appendChild(st(t,o,r)),o=o.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=e[o];"object"!=typeof i&&i!=n[o]&&(n[o]=i)}switch(e.childNodes&&(n.childNodes=new x),n.ownerDocument=t,n.nodeType){case l:var a=e.attributes,s=n.attributes=new F,u=a.length;s._ownerElement=n;for(var c=0;c<u;c++)n.setAttributeNode(ut(t,a.item(c),!0));break;case f:r=!0}if(r)for(var h=e.firstChild;h;)n.appendChild(ut(t,h,r)),h=h.nextSibling;return n}function ct(t,e,r){t[e]=r}M.INVALID_STATE_ERR=(E[11]="Invalid state",11),M.SYNTAX_ERR=(E[12]="Syntax error",12),M.INVALID_MODIFICATION_ERR=(E[13]="Invalid modification",13),M.NAMESPACE_ERR=(E[14]="Invalid namespace",14),M.INVALID_ACCESS_ERR=(E[15]="Invalid access",15),k.prototype=Error.prototype,s(M,k),x.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var r=[],n=0;n<this.length;n++)at(this[n],r,t,e);return r.join("")}},O.prototype.item=function(t){return D(this),this[t]},u(O,x),F.prototype={length:0,item:x.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var r=this[e];if(r.nodeName==t)return r}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new k(S);var r=this.getNamedItem(t.nodeName);return j(this._ownerElement,this,t,r),r},setNamedItemNS:function(t){var e,r=t.ownerElement;if(r&&r!=this._ownerElement)throw new k(S);return e=this.getNamedItemNS(t.namespaceURI,t.localName),j(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return P(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var r=this.getNamedItemNS(t,e);return P(this._ownerElement,this,r),r},getNamedItemNS:function(t,e){for(var r=this.length;r--;){var n=this[r];if(n.localName==e&&n.namespaceURI==t)return n}return null}},R.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,r){var n=new $;if(n.implementation=this,n.childNodes=new x,n.doctype=r||null,r&&n.appendChild(r),e){var o=n.createElementNS(t,e);n.appendChild(o)}return n},createDocumentType:function(t,e,r){var n=new Q;return n.name=t,n.nodeName=t,n.publicId=e||"",n.systemId=r||"",n}},B.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return z(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return q(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return ut(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==h&&t.nodeType==h?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n;e=e.nodeType==f?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==f?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,B),s(c,B.prototype),$.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==l&&(this.documentElement=t),z(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),q(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return N(this.documentElement,(function(r){if(r.nodeType==l&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=a(t);return new O(this,(function(r){var n=[];return e.length>0&&N(r.documentElement,(function(o){if(o!==r&&o.nodeType===l){var i=o.getAttribute("class");if(i){var s=t===i;if(!s){var u=a(i);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(o)}}var c})),n}))},createElement:function(t){var e=new V;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new x,(e.attributes=new F)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new x,t},createTextNode:function(t){var e=new W;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Z;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new J;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new H;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new X;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new V,n=e.split(":"),o=r.attributes=new F;return r.childNodes=new x,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,o._ownerElement=r,r},createAttributeNS:function(t,e){var r=new H,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u($,B),V.prototype={nodeType:l,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,U(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new O(this,(function(e){var r=[];return N(e,(function(n){n===e||n.nodeType!=l||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new O(this,(function(r){var n=[];return N(r,(function(o){o===r||o.nodeType!==l||"*"!==t&&o.namespaceURI!==t||"*"!==e&&o.localName!=e||n.push(o)})),n}))}},$.prototype.getElementsByTagName=V.prototype.getElementsByTagName,$.prototype.getElementsByTagNameNS=V.prototype.getElementsByTagNameNS,u(V,B),H.prototype.nodeType=f,u(H,B),G.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(E[_])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(G,B),W.prototype={nodeName:"#text",nodeType:h,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(W,G),Z.prototype={nodeName:"#comment",nodeType:g},u(Z,G),J.prototype={nodeName:"#cdata-section",nodeType:p},u(J,G),Q.prototype.nodeType=b,u(Q,B),Y.prototype.nodeType=A,u(Y,B),K.prototype.nodeType=m,u(K,B),X.prototype.nodeType=d,u(X,B),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,B),et.prototype.nodeType=y,u(et,B),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},B.prototype.toString=nt;try{if(Object.defineProperty){function lt(t){switch(t.nodeType){case l:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(lt(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(O.prototype,"length",{get:function(){return D(this),this.$$length}}),Object.defineProperty(B.prototype,"textContent",{get:function(){return lt(this)},set:function(t){switch(this.nodeType){case l:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(ft){}e.DocumentType=Q,e.DOMException=k,e.DOMImplementation=R,e.Element=V,e.Node=B,e.NodeList=x,e.XMLSerializer=rt},7650:(t,e,r)=>{var n=r(8073).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),e.entityMap=e.HTML_ENTITIES},9291:(t,e,r)=>{var n=r(4907);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(7218).DOMParser},5904:(t,e,r)=>{var n=r(8073).NAMESPACE,o=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,i=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+o.source+i.source+"*(?::"+o.source+i.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function l(t,e,r,o,i,a){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&a.fatalError("Attribute "+t+" redefined"),r.addValue(t,e.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),n)}for(var u,c=++e,l=0;;){var f=t.charAt(c);switch(f){case"=":if(1===l)u=t.slice(e,c),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(a.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(f,e))>0))throw new Error("attribute value no end '"+f+"' match");s(u,h=t.slice(e,c),e-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');s(u,h=t.slice(e,c),e),a.warning('attribute "'+u+'" missed start quot('+f+")!!"),e=c+1,l=5}break;case"/":switch(l){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:l=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==l&&r.setTagName(t.slice(e,c)),c;case">":switch(l){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===l&&(h=u),4==l?(a.warning('attribute "'+h+'" missed quot(")!'),s(u,h,e)):(n.isHTML(o[""])&&h.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"€":f=" ";default:if(f<=" ")switch(l){case 0:r.setTagName(t.slice(e,c)),l=6;break;case 1:u=t.slice(e,c),l=2;break;case 4:var h=t.slice(e,c);a.warning('attribute "'+h+'" missed quot(")!!'),s(u,h,e);case 5:l=6}else switch(l){case 2:r.tagName,n.isHTML(o[""])&&u.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,l=1;break;case 5:a.warning('attribute space is required"'+u+'"!!');case 6:l=1,e=c;break;case 3:l=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function f(t,e,r){for(var o=t.tagName,i=null,a=t.length;a--;){var s=t[a],u=s.qName,c=s.value;if((p=u.indexOf(":"))>0)var l=s.prefix=u.slice(0,p),f=u.slice(p+1),h="xmlns"===l&&f;else f=u,l=null,h="xmlns"===u&&"";s.localName=f,!1!==h&&(null==i&&(i={},d(r,r={})),r[h]=i[h]=c,s.uri=n.XMLNS,e.startPrefixMapping(h,c))}for(a=t.length;a--;)(l=(s=t[a]).prefix)&&("xml"===l&&(s.uri=n.XML),"xmlns"!==l&&(s.uri=r[l||""]));var p;(p=o.indexOf(":"))>0?(l=t.prefix=o.slice(0,p),f=t.localName=o.slice(p+1)):(l=null,f=t.localName=o);var m=t.uri=r[l||""];if(e.startElement(m,f,o,t),!t.closed)return t.currentNSMap=r,t.localNSMap=i,!0;if(e.endElement(m,f,o),i)for(l in i)Object.prototype.hasOwnProperty.call(i,l)&&e.endPrefixMapping(l)}function h(t,e,r,n,o){if(/^(?:script|textarea)$/i.test(r)){var i=t.indexOf("</"+r+">",e),a=t.substring(e+1,i);if(/[&<]/.test(a))return/^script$/i.test(r)?(o.characters(a,0,a.length),i):(a=a.replace(/&#?\w+;/g,n),o.characters(a,0,a.length),i)}return e+1}function p(t,e,r,n){var o=n[r];return null==o&&((o=t.lastIndexOf("</"+r+">"))<e&&(o=t.lastIndexOf("</"+r)),n[r]=o),o<e}function d(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function m(t,e,r,n){if("-"===t.charAt(e+2))return"-"===t.charAt(e+3)?(o=t.indexOf("--\x3e",e+4))>e?(r.comment(t,e+4,o-e-4),o+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var o=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,o-e-9),r.endCDATA(),o+3}var i=function(t,e){var r,n=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(o.lastIndex=e,o.exec(t);r=o.exec(t);)if(n.push(r),r[1])return n}(t,e),a=i.length;if(a>1&&/!doctype/i.test(i[0][0])){var s=i[1][0],u=!1,c=!1;a>3&&(/^public$/i.test(i[2][0])?(u=i[3][0],c=a>4&&i[4][0]):/^system$/i.test(i[2][0])&&(c=i[3][0]));var l=i[a-1];return r.startDTD(s,u,c),r.endDTD(),l.index+l[0].length}return-1}function y(t,e,r){var n=t.indexOf("?>",e);if(n){var o=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return o?(o[0].length,r.processingInstruction(o[1],o[2]),n+2):-1}return-1}function g(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var o=this.domBuilder;o.startDocument(),d(e,e={}),function(t,e,r,o,i){function a(t){var e=t.slice(1,-1);return Object.hasOwnProperty.call(r,e)?r[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(i.error("entity not found:"+t),t)}function u(e){if(e>_){var r=t.substring(_,e).replace(/&#?\w+;/g,a);A&&d(_),o.characters(r,0,e-_),_=e}}function d(e,r){for(;e>=b&&(r=w.exec(t));)v=r.index,b=v+r[0].length,A.lineNumber++;A.columnNumber=e-v+1}for(var v=0,b=0,w=/.*(?:\r\n?|\n)|.*$/g,A=o.locator,M=[{currentNSMap:e}],E={},_=0;;){try{var C=t.indexOf("<",_);if(C<0){if(!t.substr(_).match(/^\s*$/)){var S=o.doc,k=S.createTextNode(t.substr(_));S.appendChild(k),o.currentElement=k}return}switch(C>_&&u(C),t.charAt(C+1)){case"/":var x=t.indexOf(">",C+3),O=t.substring(C+2,x).replace(/[ \t\n\r]+$/g,""),D=M.pop();x<0?(O=t.substring(C+2).replace(/[\s<].*/,""),i.error("end tag name: "+O+" is not complete:"+D.tagName),x=C+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),i.error("end tag name: "+O+" maybe not complete"),x=C+1+O.length);var F=D.localNSMap,T=D.tagName==O;if(T||D.tagName&&D.tagName.toLowerCase()==O.toLowerCase()){if(o.endElement(D.uri,D.localName,O),F)for(var j in F)Object.prototype.hasOwnProperty.call(F,j)&&o.endPrefixMapping(j);T||i.fatalError("end tag name: "+O+" is not match the current start tagName:"+D.tagName)}else M.push(D);x++;break;case"?":A&&d(C),x=y(t,C,o);break;case"!":A&&d(C),x=m(t,C,o,i);break;default:A&&d(C);var P=new g,R=M[M.length-1].currentNSMap,B=(x=l(t,C,P,R,a,i),P.length);if(!P.closed&&p(t,x,P.tagName,E)&&(P.closed=!0,r.nbsp||i.warning("unclosed xml attribute")),A&&B){for(var I=c(A,{}),N=0;N<B;N++){var $=P[N];d($.offset),$.locator=c(A,{})}o.locator=I,f(P,o,R)&&M.push(P),o.locator=A}else f(P,o,R)&&M.push(P);n.isHTML(P.uri)&&!P.closed?x=h(t,x,P.tagName,a,o):x++}}catch(t){if(t instanceof s)throw t;i.error("element parse error: "+t),x=-1}x>_?_=x:u(Math.max(C,_)+1)}}(t,e,r,o,this.errorHandler),o.endDocument()}},g.prototype={setTagName:function(t){if(!a.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!a.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},2812:(t,e,r)=>{"use strict";const n=e;n.bignum=r(735),n.define=r(5192).define,n.base=r(4798),n.constants=r(6906),n.decoders=r(8211),n.encoders=r(9116)},5192:(t,e,r)=>{"use strict";const n=r(9116),o=r(8211),i=r(1285);function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){const e=this.name;function r(t){this._initNamed(t,e)}return i(r,t),r.prototype._initNamed=function(e,r){t.call(this,e,r)},new r(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(o[t])),this.decoders[t]},a.prototype.decode=function(t,e,r){return this._getDecoder(e).decode(t,r)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n[t])),this.encoders[t]},a.prototype.encode=function(t,e,r){return this._getEncoder(e).encode(t,r)}},7362:(t,e,r)=>{"use strict";const n=r(1285),o=r(126).b,i=r(7654).Buffer;function a(t,e){o.call(this,e),i.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=i.byteLength(t);else{if(!i.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,o),e.C=a,a.isDecoderBuffer=function(t){return t instanceof a||"object"==typeof t&&i.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},a.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},a.prototype.restore=function(t){const e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.R=s,s.isEncoderBuffer=function(t){return t instanceof s||"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},s.prototype.join=function(t,e){return t||(t=i.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):i.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},4798:(t,e,r)=>{"use strict";const n=e;n.Reporter=r(126).b,n.DecoderBuffer=r(7362).C,n.EncoderBuffer=r(7362).R,n.Node=r(847)},847:(t,e,r)=>{"use strict";const n=r(126).b,o=r(7362).R,i=r(7362).C,a=r(9561),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(t,e,r){const n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const t=this._baseState,e={};l.forEach((function(r){e[r]=t[r]}));const r=new this.constructor(e.parent);return r._baseState=e,r},c.prototype._wrap=function(){const t=this._baseState;u.forEach((function(e){this[e]=function(){const r=new this.constructor(this);return t.children.push(r),r[e].apply(r,arguments)}}),this)},c.prototype._init=function(t){const e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){const e=this._baseState,r=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==r.length&&(a(null===e.children),e.children=r,r.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(r){r==(0|r)&&(r|=0);const n=t[r];e[n]=r})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){c.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){c.prototype[t]=function(){const e=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(r),this}})),c.prototype.use=function(t){a(t);const e=this._baseState;return a(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){const e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){const e=this._baseState;return a(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){const e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},c.prototype.contains=function(t){const e=this._baseState;return a(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){const r=this._baseState;if(null===r.parent)return t.wrapResult(r.children[0]._decode(t,e));let n,o=r.default,a=!0,s=null;if(null!==r.key&&(s=t.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(t,n,r.any),t.isError(a))return a}else{const n=t.save();try{null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(n)}}if(r.obj&&a&&(n=t.enterObject()),a){if(null!==r.explicit){const e=this._decodeTag(t,r.explicit);if(t.isError(e))return e;t=e}const n=t.offset;if(null===r.use&&null===r.choice){let e;r.any&&(e=t.save());const n=this._decodeTag(t,null!==r.implicit?r.implicit:r.tag,r.any);if(t.isError(n))return n;r.any?o=t.raw(e):t=n}if(e&&e.track&&null!==r.tag&&e.track(t.path(),n,t.length,"tagged"),e&&e.track&&null!==r.tag&&e.track(t.path(),t.offset,t.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,t,e):this._decodeChoice(t,e)),t.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(t,e)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new i(o);o=this._getUse(r.contains,t._reporterState.obj)._decode(n,e)}}return r.obj&&a&&(o=t.leaveObject(n)),null===r.key||null===o&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,r.key,o),o},c.prototype._decodeGeneric=function(t,e,r){const n=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,n.args[0],r):/str$/.test(t)?this._decodeStr(e,t,r):"objid"===t&&n.args?this._decodeObjid(e,n.args[0],n.args[1],r):"objid"===t?this._decodeObjid(e,null,null,r):"gentime"===t||"utctime"===t?this._decodeTime(e,t,r):"null_"===t?this._decodeNull(e,r):"bool"===t?this._decodeBool(e,r):"objDesc"===t?this._decodeStr(e,t,r):"int"===t||"enum"===t?this._decodeInt(e,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,e._reporterState.obj)._decode(e,r):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){const r=this._baseState;return r.useDecoder=this._use(t,e),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(t,e){const r=this._baseState;let n=null,o=!1;return Object.keys(r.choice).some((function(i){const a=t.save(),s=r.choice[i];try{const r=s._decode(t,e);if(t.isError(r))return!1;n={type:i,value:r},o=!0}catch(e){return t.restore(a),!1}return!0}),this),o?n:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},c.prototype._encode=function(t,e,r){const n=this._baseState;if(null!==n.default&&n.default===t)return;const o=this._encodeValue(t,e,r);return void 0===o||this._skipDefault(o,e,r)?void 0:o},c.prototype._encodeValue=function(t,e,r){const o=this._baseState;if(null===o.parent)return o.children[0]._encode(t,e||new n);let i=null;if(this.reporter=e,o.optional&&void 0===t){if(null===o.default)return;t=o.default}let a=null,s=!1;if(o.any)i=this._createEncoderBuffer(t);else if(o.choice)i=this._encodeChoice(t,e);else if(o.contains)a=this._getUse(o.contains,r)._encode(t,e),s=!0;else if(o.children)a=o.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,e,t);if(null===r._baseState.key)return e.error("Child should have a key");const n=e.enterKey(r._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const o=r._encode(t[r._baseState.key],e,t);return e.leaveKey(n),o}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return e.error("Too many args for : "+o.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(r){const n=this._baseState;return this._getUse(n.args[0],t)._encode(r,e)}),r))}else null!==o.use?i=this._getUse(o.use,r)._encode(t,e):(a=this._encodePrimitive(o.tag,t),s=!0);if(!o.any&&null===o.choice){const t=null!==o.implicit?o.implicit:o.tag,r=null===o.implicit?"universal":"context";null===t?null===o.use&&e.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(t,s,r,a))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},c.prototype._encodeChoice=function(t,e){const r=this._baseState,n=r.choice[t.type];return n||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){const r=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&r.args)return this._encodeObjid(e,r.reverseArgs[0],r.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,r.args&&r.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},126:(t,e,r)=>{"use strict";const n=r(1285);function o(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function i(t,e){this.path=t,this.rethrow(e)}e.b=o,o.prototype.isError=function(t){return t instanceof i},o.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},o.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},o.prototype.enterKey=function(t){return this._reporterState.path.push(t)},o.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},o.prototype.leaveKey=function(t,e,r){const n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},o.prototype.leaveObject=function(t){const e=this._reporterState,r=e.obj;return e.obj=t,r},o.prototype.error=function(t){let e;const r=this._reporterState,n=t instanceof i;if(e=n?t:new i(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},o.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(i,Error),i.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},4131:(t,e)=>{"use strict";function r(t){const e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);const n=t[r];e[n]=r})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r(e.tag)},6906:(t,e,r)=>{"use strict";const n=e;n._reverse=function(t){const e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);const n=t[r];e[n]=r})),e},n.der=r(4131)},1066:(t,e,r)=>{"use strict";const n=r(1285),o=r(735),i=r(7362).C,a=r(847),s=r(4131);function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){a.call(this,"der",t)}function l(t,e){let r=t.readUInt8(e);if(t.isError(r))return r;const n=s.tagClass[r>>6],o=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=t.readUInt8(e),t.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:o,tag:r,tagStr:s.tag[r]}}function f(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;const o=127&n;if(o>4)return t.error("length octect is too long");n=0;for(let e=0;e<o;e++){n<<=8;const e=t.readUInt8(r);if(t.isError(e))return e;n|=e}return n}t.exports=u,u.prototype.decode=function(t,e){return i.isDecoderBuffer(t)||(t=new i(t,e)),this.tree._decode(t,e)},n(c,a),c.prototype._peekTag=function(t,e,r){if(t.isEmpty())return!1;const n=t.save(),o=l(t,'Failed to peek tag: "'+e+'"');return t.isError(o)?o:(t.restore(n),o.tag===e||o.tagStr===e||o.tagStr+"of"===e||r)},c.prototype._decodeTag=function(t,e,r){const n=l(t,'Failed to decode tag of "'+e+'"');if(t.isError(n))return n;let o=f(t,n.primitive,'Failed to get length of "'+e+'"');if(t.isError(o))return o;if(!r&&n.tag!==e&&n.tagStr!==e&&n.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(n.primitive||null!==o)return t.skip(o,'Failed to match body of: "'+e+'"');const i=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(o=t.offset-i.offset,t.restore(i),t.skip(o,'Failed to match body of: "'+e+'"'))},c.prototype._skipUntilEnd=function(t,e){for(;;){const r=l(t,e);if(t.isError(r))return r;const n=f(t,r.primitive,e);if(t.isError(n))return n;let o;if(o=r.primitive||null!==n?t.skip(n):this._skipUntilEnd(t,e),t.isError(o))return o;if("end"===r.tagStr)break}},c.prototype._decodeList=function(t,e,r,n){const o=[];for(;!t.isEmpty();){const e=this._peekTag(t,"end");if(t.isError(e))return e;const i=r.decode(t,"der",n);if(t.isError(i)&&e)break;o.push(i)}return o},c.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");let r="";for(let t=0;t<e.length/2;t++)r+=String.fromCharCode(e.readUInt16BE(2*t));return r}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},c.prototype._decodeObjid=function(t,e,r){let n;const o=[];let i=0,a=0;for(;!t.isEmpty();)a=t.readUInt8(),i<<=7,i|=127&a,0==(128&a)&&(o.push(i),i=0);128&a&&o.push(i);const s=o[0]/40|0,u=o[0]%40;if(n=r?o:[s,u].concat(o.slice(1)),e){let t=e[n.join(" ")];void 0===t&&(t=e[n.join(".")]),void 0!==t&&(n=t)}return n},c.prototype._decodeTime=function(t,e){const r=t.raw().toString();let n,o,i,a,s,u;if("gentime"===e)n=0|r.slice(0,4),o=0|r.slice(4,6),i=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|r.slice(0,2),o=0|r.slice(2,4),i=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,o-1,i,a,s,u,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},c.prototype._decodeInt=function(t,e){const r=t.raw();let n=new o(r);return e&&(n=e[n.toString(10)]||n),n},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},8211:(t,e,r)=>{"use strict";const n=e;n.der=r(1066),n.pem=r(3956)},3956:(t,e,r)=>{"use strict";const n=r(1285),o=r(7654).Buffer,i=r(1066);function a(t){i.call(this,t),this.enc="pem"}n(a,i),t.exports=a,a.prototype.decode=function(t,e){const r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,u=-1;for(let t=0;t<r.length;t++){const e=r[t].match(a);if(null!==e&&e[2]===n){if(-1!==s){if("END"!==e[1])break;u=t;break}if("BEGIN"!==e[1])break;s=t}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);const c=r.slice(s+1,u).join("");c.replace(/[^a-z0-9+/=]+/gi,"");const l=o.from(c,"base64");return i.prototype.decode.call(this,l,e)}},5758:(t,e,r)=>{"use strict";const n=r(1285),o=r(7654).Buffer,i=r(847),a=r(4131);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){i.call(this,"der",t)}function c(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(u,i),u.prototype._encodeComposite=function(t,e,r,n){const i=function(t,e,r,n){let o;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))o=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);o=t}return o>=31?n.error("Multi-octet tag encoding unsupported"):(e||(o|=32),o|=a.tagClassByName[r||"universal"]<<6,o)}(t,e,r,this.reporter);if(n.length<128){const t=o.alloc(2);return t[0]=i,t[1]=n.length,this._createEncoderBuffer([t,n])}let s=1;for(let t=n.length;t>=256;t>>=8)s++;const u=o.alloc(2+s);u[0]=i,u[1]=128|s;for(let t=1+s,e=n.length;e>0;t--,e>>=8)u[t]=255&e;return this._createEncoderBuffer([u,n])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=o.alloc(2*t.length);for(let r=0;r<t.length;r++)e.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},u.prototype._encodeObjid=function(t,e,r){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!r){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let n=0;for(let e=0;e<t.length;e++){let r=t[e];for(n++;r>=128;r>>=7)n++}const i=o.alloc(n);let a=i.length-1;for(let e=t.length-1;e>=0;e--){let r=t[e];for(i[a--]=127&r;(r>>=7)>0;)i[a--]=128|127&r}return this._createEncoderBuffer(i)},u.prototype._encodeTime=function(t,e){let r;const n=new Date(t);return"gentime"===e?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!o.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=o.from(e)}if(o.isBuffer(t)){let e=t.length;0===t.length&&e++;const r=o.alloc(e);return t.copy(r),0===t.length&&(r[0]=0),this._createEncoderBuffer(r)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let r=1;for(let e=t;e>=256;e>>=8)r++;const n=new Array(r);for(let e=n.length-1;e>=0;e--)n[e]=255&t,t>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(o.from(n))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,r){const n=this._baseState;let o;if(null===n.default)return!1;const i=t.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,e,r).join()),i.length!==n.defaultBuffer.length)return!1;for(o=0;o<i.length;o++)if(i[o]!==n.defaultBuffer[o])return!1;return!0}},9116:(t,e,r)=>{"use strict";const n=e;n.der=r(5758),n.pem=r(9245)},9245:(t,e,r)=>{"use strict";const n=r(1285),o=r(5758);function i(t){o.call(this,t),this.enc="pem"}n(i,o),t.exports=i,i.prototype.encode=function(t,e){const r=o.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"];for(let t=0;t<r.length;t+=64)n.push(r.slice(t,t+64));return n.push("-----END "+e.label+"-----"),n.join("\n")}},735:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(3397).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,i=Math.min(t.length,r),a=e;a<i;a++){var s=t.charCodeAt(a)-48;o*=n,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<t.length&&(16===e?this._parseHex(t,o,r):(this._parseBase(t,e,o),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=e)n++;n--,o=o/e|0;for(var i=t.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var o=0|t.words[0],i=0|e.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;l+=(a=(o=0|t.words[d])*(i=0|e.words[p])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);r=0!=(i=s>>>24-o&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],p=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:l[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(i),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[i-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0,i=0;i<n.length;i++)e=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&e,o=e>>>26;for(;0!==o&&i<r.length;i++)e=(0|r.words[i])+o,this.words[i]=67108863&e,o=e>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)i=(e=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,o,i,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,p=0|a[1],d=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,A=b>>>13,M=0|a[4],E=8191&M,_=M>>>13,C=0|a[5],S=8191&C,k=C>>>13,x=0|a[6],O=8191&x,D=x>>>13,F=0|a[7],T=8191&F,j=F>>>13,P=0|a[8],R=8191&P,B=P>>>13,I=0|a[9],N=8191&I,$=I>>>13,L=0|s[0],U=8191&L,q=L>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Z=G>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,K=0|s[4],X=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,ot=0|s[6],it=8191&ot,at=ot>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,U))|0)+((8191&(o=(o=Math.imul(f,q))+Math.imul(h,U)|0))<<13)|0;c=((i=Math.imul(h,q))+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,U),o=(o=Math.imul(d,q))+Math.imul(m,U)|0,i=Math.imul(m,q);var gt=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(o=(o=o+Math.imul(f,H)|0)+Math.imul(h,V)|0))<<13)|0;c=((i=i+Math.imul(h,H)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),o=(o=Math.imul(g,q))+Math.imul(v,U)|0,i=Math.imul(v,q),n=n+Math.imul(d,V)|0,o=(o=o+Math.imul(d,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var vt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,W)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,q))+Math.imul(A,U)|0,i=Math.imul(A,q),n=n+Math.imul(g,V)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,H)|0,n=n+Math.imul(d,W)|0,o=(o=o+Math.imul(d,Z)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,Z)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,U),o=(o=Math.imul(E,q))+Math.imul(_,U)|0,i=Math.imul(_,q),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(g,W)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Z)|0,n=n+Math.imul(d,Q)|0,o=(o=o+Math.imul(d,Y)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Y)|0;var wt=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,tt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(S,U),o=(o=Math.imul(S,q))+Math.imul(k,U)|0,i=Math.imul(k,q),n=n+Math.imul(E,V)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(_,V)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(d,X)|0,o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var At=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((i=i+Math.imul(h,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,U),o=(o=Math.imul(O,q))+Math.imul(D,U)|0,i=Math.imul(D,q),n=n+Math.imul(S,V)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(g,X)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,i=i+Math.imul(m,nt)|0;var Mt=(c+(n=n+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,at)|0)+Math.imul(h,it)|0))<<13)|0;c=((i=i+Math.imul(h,at)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,U),o=(o=Math.imul(T,q))+Math.imul(j,U)|0,i=Math.imul(j,q),n=n+Math.imul(O,V)|0,o=(o=o+Math.imul(O,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,n=n+Math.imul(S,W)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,n=n+Math.imul(d,it)|0,o=(o=o+Math.imul(d,at)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(o=(o=o+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((i=i+Math.imul(h,ct)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,q))+Math.imul(B,U)|0,i=Math.imul(B,q),n=n+Math.imul(T,V)|0,o=(o=o+Math.imul(T,H)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Z)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,n=n+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,nt)|0)+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(g,it)|0,o=(o=o+Math.imul(g,at)|0)+Math.imul(v,it)|0,i=i+Math.imul(v,at)|0,n=n+Math.imul(d,ut)|0,o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ut)|0,i=i+Math.imul(m,ct)|0;var _t=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((i=i+Math.imul(h,ht)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,q))+Math.imul($,U)|0,i=Math.imul($,q),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,H)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,H)|0,n=n+Math.imul(T,W)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(j,W)|0,i=i+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,tt)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(E,rt)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,n=n+Math.imul(w,it)|0,o=(o=o+Math.imul(w,at)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,at)|0,n=n+Math.imul(g,ut)|0,o=(o=o+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,n=n+Math.imul(d,ft)|0,o=(o=o+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,i=i+Math.imul(m,ht)|0;var Ct=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(o=(o=o+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((i=i+Math.imul(h,mt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,V),o=(o=Math.imul(N,H))+Math.imul($,V)|0,i=Math.imul($,H),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(O,X)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,tt)|0,n=n+Math.imul(S,rt)|0,o=(o=o+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(E,it)|0,o=(o=o+Math.imul(E,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,n=n+Math.imul(w,ut)|0,o=(o=o+Math.imul(w,ct)|0)+Math.imul(A,ut)|0,i=i+Math.imul(A,ct)|0,n=n+Math.imul(g,ft)|0,o=(o=o+Math.imul(g,ht)|0)+Math.imul(v,ft)|0,i=i+Math.imul(v,ht)|0;var St=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((i=i+Math.imul(m,mt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Z))+Math.imul($,W)|0,i=Math.imul($,Z),n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(j,X)|0,i=i+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(D,rt)|0,i=i+Math.imul(D,nt)|0,n=n+Math.imul(S,it)|0,o=(o=o+Math.imul(S,at)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,at)|0,n=n+Math.imul(E,ut)|0,o=(o=o+Math.imul(E,ct)|0)+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,n=n+Math.imul(w,ft)|0,o=(o=o+Math.imul(w,ht)|0)+Math.imul(A,ft)|0,i=i+Math.imul(A,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul(v,dt)|0))<<13)|0;c=((i=i+Math.imul(v,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,Q),o=(o=Math.imul(N,Y))+Math.imul($,Q)|0,i=Math.imul($,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,tt)|0,n=n+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,nt)|0)+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,n=n+Math.imul(O,it)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(D,it)|0,i=i+Math.imul(D,at)|0,n=n+Math.imul(S,ut)|0,o=(o=o+Math.imul(S,ct)|0)+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,n=n+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,i=i+Math.imul(_,ht)|0;var xt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(A,dt)|0))<<13)|0;c=((i=i+Math.imul(A,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(N,X),o=(o=Math.imul(N,tt))+Math.imul($,X)|0,i=Math.imul($,tt),n=n+Math.imul(R,rt)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,n=n+Math.imul(T,it)|0,o=(o=o+Math.imul(T,at)|0)+Math.imul(j,it)|0,i=i+Math.imul(j,at)|0,n=n+Math.imul(O,ut)|0,o=(o=o+Math.imul(O,ct)|0)+Math.imul(D,ut)|0,i=i+Math.imul(D,ct)|0,n=n+Math.imul(S,ft)|0,o=(o=o+Math.imul(S,ht)|0)+Math.imul(k,ft)|0,i=i+Math.imul(k,ht)|0;var Ot=(c+(n=n+Math.imul(E,dt)|0)|0)+((8191&(o=(o=o+Math.imul(E,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((i=i+Math.imul(_,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,rt),o=(o=Math.imul(N,nt))+Math.imul($,rt)|0,i=Math.imul($,nt),n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,at)|0)+Math.imul(B,it)|0,i=i+Math.imul(B,at)|0,n=n+Math.imul(T,ut)|0,o=(o=o+Math.imul(T,ct)|0)+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,n=n+Math.imul(O,ft)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(D,ft)|0,i=i+Math.imul(D,ht)|0;var Dt=(c+(n=n+Math.imul(S,dt)|0)|0)+((8191&(o=(o=o+Math.imul(S,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((i=i+Math.imul(k,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(N,it),o=(o=Math.imul(N,at))+Math.imul($,it)|0,i=Math.imul($,at),n=n+Math.imul(R,ut)|0,o=(o=o+Math.imul(R,ct)|0)+Math.imul(B,ut)|0,i=i+Math.imul(B,ct)|0,n=n+Math.imul(T,ft)|0,o=(o=o+Math.imul(T,ht)|0)+Math.imul(j,ft)|0,i=i+Math.imul(j,ht)|0;var Ft=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(D,dt)|0))<<13)|0;c=((i=i+Math.imul(D,mt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(N,ut),o=(o=Math.imul(N,ct))+Math.imul($,ut)|0,i=Math.imul($,ct),n=n+Math.imul(R,ft)|0,o=(o=o+Math.imul(R,ht)|0)+Math.imul(B,ft)|0,i=i+Math.imul(B,ht)|0;var Tt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((i=i+Math.imul(j,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,ft),o=(o=Math.imul(N,ht))+Math.imul($,ft)|0,i=Math.imul($,ht);var jt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(o=(o=o+Math.imul(R,mt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((i=i+Math.imul(B,mt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Pt=(c+(n=Math.imul(N,dt))|0)+((8191&(o=(o=Math.imul(N,mt))+Math.imul($,dt)|0))<<13)|0;return c=((i=Math.imul($,mt))+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=bt,u[4]=wt,u[5]=At,u[6]=Mt,u[7]=Et,u[8]=_t,u[9]=Ct,u[10]=St,u[11]=kt,u[12]=xt,u[13]=Ot,u[14]=Dt,u[15]=Ft,u[16]=Tt,u[17]=jt,u[18]=Pt,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(d=p),i.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,e.length-1),c=Math.max(0,i-t.length+1);c<=u;c++){var l=i-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,t,e):m(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,o=0;o<e;o++)n|=(1&t)<<e-o-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,o,i){for(var a=0;a<i;a++)n[a]=e[t[a]],o[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,o,i){this.permute(i,t,e,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,p=0;p<a;p++){var d=r[l+p],m=n[l+p],y=r[l+p+a],g=n[l+p+a],v=f*y-h*g;g=f*g+h*y,y=v,r[l+p]=d+y,n[l+p]=m+g,r[l+p+a]=d-y,n[l+p+a]=m-g,p!==s&&(v=u*f-c*h,h=u*h+c*f,f=v)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=t[n];t[n]=t[r-n-1],t[r-n-1]=o,o=e[n],e[n]=-e[r-n-1],e[r-n-1]=-o}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var o=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&o,r=o<67108864?0:o/67108864|0}return t},y.prototype.convert13b=function(t,e,r,o){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,f,n,o);for(var p=0;p<n;p++){var d=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=d}return this.conjugate(s,u,n),this.transform(s,u,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,i=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,o=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,o=1<<e;return!(this.length<=r||!(this.words[r]&o))},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var o,i,a=t.length+r;this._expand(a);var s=0;for(o=0;o<t.length;o++){i=(0|this.words[o+r])+s;var u=(0|t.words[o])*e;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(e*r+(0|this.words[o]))%t;return r},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*e;this.words[r]=o/t|0,e=o%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=e.cmp(r);if(o<0){var i=e;e=r,r=i}else if(0===o||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,o=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|t.words[r];if(n!==o){n<o?e=-1:n>o&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},o(b,v),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),o=0;o<n;o++)e.words[o]=t.words[o];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&r,o=10;o<t.length;o++){var a=0|t.words[o];t.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,t.words[o-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(w,v),o(A,v),o(M,v),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,o=67108863&n;n>>>=26,t.words[r]=o,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,o),h=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),d=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<d);var g=this.pow(f,new i(1).iushln(d-y-1));h=h.redMul(g),f=g.redSqr(),p=p.redMul(f),d=y}return h},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new _(t)},o(_,E),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},5766:(t,e)=>{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=u(t),a=i[0],s=i[1],c=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(t,s,s+a>u?u:s+a));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var o,i,a=[],s=e;s<n;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2197:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(3196).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,o){for(var i=0,a=0,s=Math.min(t.length,r),u=e;u<s;u++){var c=t.charCodeAt(u)-48;i*=o,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<o,"Invalid character"),i+=a}return i}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<t.length&&(16===e?this._parseHex(t,o,r):(this._parseBase(t,e,o),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this._strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=e)n++;n--,o=o/e|0;for(var i=t.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype._move=function(t){l(t,this)},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(t){i.prototype.inspect=f}else i.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var o=0|t.words[0],i=0|e.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;l+=(a=(o=0|t.words[d])*(i=0|e.words[p])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);i=s>>>24-o&16777215,(o+=2)>=26&&(o-=26,a--),r=0!==i||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=p[t],l=d[t];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(l).toString(t);r=(f=f.idivn(l)).isZero()?m+r:h[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,i);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,o),a},i.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|n;t[r++]=255&a,r<t.length&&(t[r++]=a>>8&255),r<t.length&&(t[r++]=a>>16&255),6===i?(r<t.length&&(t[r++]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r<t.length)for(t[r++]=n;r<t.length;)t[r++]=0},i.prototype._toArrayLikeBE=function(t,e){for(var r=t.length-1,n=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|n;t[r--]=255&a,r>=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===i?(r>=0&&(t[r--]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this._strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this._strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this._strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0,i=0;i<n.length;i++)e=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&e,o=e>>>26;for(;0!==o&&i<r.length;i++)e=(0|r.words[i])+o,this.words[i]=67108863&e,o=e>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)i=(e=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var y=function(t,e,r){var n,o,i,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,p=0|a[1],d=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,A=b>>>13,M=0|a[4],E=8191&M,_=M>>>13,C=0|a[5],S=8191&C,k=C>>>13,x=0|a[6],O=8191&x,D=x>>>13,F=0|a[7],T=8191&F,j=F>>>13,P=0|a[8],R=8191&P,B=P>>>13,I=0|a[9],N=8191&I,$=I>>>13,L=0|s[0],U=8191&L,q=L>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Z=G>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,K=0|s[4],X=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,ot=0|s[6],it=8191&ot,at=ot>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,U))|0)+((8191&(o=(o=Math.imul(f,q))+Math.imul(h,U)|0))<<13)|0;c=((i=Math.imul(h,q))+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,U),o=(o=Math.imul(d,q))+Math.imul(m,U)|0,i=Math.imul(m,q);var gt=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(o=(o=o+Math.imul(f,H)|0)+Math.imul(h,V)|0))<<13)|0;c=((i=i+Math.imul(h,H)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),o=(o=Math.imul(g,q))+Math.imul(v,U)|0,i=Math.imul(v,q),n=n+Math.imul(d,V)|0,o=(o=o+Math.imul(d,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var vt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,W)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,q))+Math.imul(A,U)|0,i=Math.imul(A,q),n=n+Math.imul(g,V)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,H)|0,n=n+Math.imul(d,W)|0,o=(o=o+Math.imul(d,Z)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,Z)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,U),o=(o=Math.imul(E,q))+Math.imul(_,U)|0,i=Math.imul(_,q),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(g,W)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Z)|0,n=n+Math.imul(d,Q)|0,o=(o=o+Math.imul(d,Y)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Y)|0;var wt=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,tt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(S,U),o=(o=Math.imul(S,q))+Math.imul(k,U)|0,i=Math.imul(k,q),n=n+Math.imul(E,V)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(_,V)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(d,X)|0,o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var At=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((i=i+Math.imul(h,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,U),o=(o=Math.imul(O,q))+Math.imul(D,U)|0,i=Math.imul(D,q),n=n+Math.imul(S,V)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(g,X)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,i=i+Math.imul(m,nt)|0;var Mt=(c+(n=n+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,at)|0)+Math.imul(h,it)|0))<<13)|0;c=((i=i+Math.imul(h,at)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,U),o=(o=Math.imul(T,q))+Math.imul(j,U)|0,i=Math.imul(j,q),n=n+Math.imul(O,V)|0,o=(o=o+Math.imul(O,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,n=n+Math.imul(S,W)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,n=n+Math.imul(d,it)|0,o=(o=o+Math.imul(d,at)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(o=(o=o+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((i=i+Math.imul(h,ct)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,q))+Math.imul(B,U)|0,i=Math.imul(B,q),n=n+Math.imul(T,V)|0,o=(o=o+Math.imul(T,H)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Z)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,n=n+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,nt)|0)+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(g,it)|0,o=(o=o+Math.imul(g,at)|0)+Math.imul(v,it)|0,i=i+Math.imul(v,at)|0,n=n+Math.imul(d,ut)|0,o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ut)|0,i=i+Math.imul(m,ct)|0;var _t=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((i=i+Math.imul(h,ht)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,q))+Math.imul($,U)|0,i=Math.imul($,q),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,H)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,H)|0,n=n+Math.imul(T,W)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(j,W)|0,i=i+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,tt)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(E,rt)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,n=n+Math.imul(w,it)|0,o=(o=o+Math.imul(w,at)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,at)|0,n=n+Math.imul(g,ut)|0,o=(o=o+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,n=n+Math.imul(d,ft)|0,o=(o=o+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,i=i+Math.imul(m,ht)|0;var Ct=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(o=(o=o+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((i=i+Math.imul(h,mt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,V),o=(o=Math.imul(N,H))+Math.imul($,V)|0,i=Math.imul($,H),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(O,X)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,tt)|0,n=n+Math.imul(S,rt)|0,o=(o=o+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(E,it)|0,o=(o=o+Math.imul(E,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,n=n+Math.imul(w,ut)|0,o=(o=o+Math.imul(w,ct)|0)+Math.imul(A,ut)|0,i=i+Math.imul(A,ct)|0,n=n+Math.imul(g,ft)|0,o=(o=o+Math.imul(g,ht)|0)+Math.imul(v,ft)|0,i=i+Math.imul(v,ht)|0;var St=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((i=i+Math.imul(m,mt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Z))+Math.imul($,W)|0,i=Math.imul($,Z),n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(j,X)|0,i=i+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(D,rt)|0,i=i+Math.imul(D,nt)|0,n=n+Math.imul(S,it)|0,o=(o=o+Math.imul(S,at)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,at)|0,n=n+Math.imul(E,ut)|0,o=(o=o+Math.imul(E,ct)|0)+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,n=n+Math.imul(w,ft)|0,o=(o=o+Math.imul(w,ht)|0)+Math.imul(A,ft)|0,i=i+Math.imul(A,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul(v,dt)|0))<<13)|0;c=((i=i+Math.imul(v,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,Q),o=(o=Math.imul(N,Y))+Math.imul($,Q)|0,i=Math.imul($,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,tt)|0,n=n+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,nt)|0)+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,n=n+Math.imul(O,it)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(D,it)|0,i=i+Math.imul(D,at)|0,n=n+Math.imul(S,ut)|0,o=(o=o+Math.imul(S,ct)|0)+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,n=n+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,i=i+Math.imul(_,ht)|0;var xt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(A,dt)|0))<<13)|0;c=((i=i+Math.imul(A,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(N,X),o=(o=Math.imul(N,tt))+Math.imul($,X)|0,i=Math.imul($,tt),n=n+Math.imul(R,rt)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,n=n+Math.imul(T,it)|0,o=(o=o+Math.imul(T,at)|0)+Math.imul(j,it)|0,i=i+Math.imul(j,at)|0,n=n+Math.imul(O,ut)|0,o=(o=o+Math.imul(O,ct)|0)+Math.imul(D,ut)|0,i=i+Math.imul(D,ct)|0,n=n+Math.imul(S,ft)|0,o=(o=o+Math.imul(S,ht)|0)+Math.imul(k,ft)|0,i=i+Math.imul(k,ht)|0;var Ot=(c+(n=n+Math.imul(E,dt)|0)|0)+((8191&(o=(o=o+Math.imul(E,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((i=i+Math.imul(_,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,rt),o=(o=Math.imul(N,nt))+Math.imul($,rt)|0,i=Math.imul($,nt),n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,at)|0)+Math.imul(B,it)|0,i=i+Math.imul(B,at)|0,n=n+Math.imul(T,ut)|0,o=(o=o+Math.imul(T,ct)|0)+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,n=n+Math.imul(O,ft)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(D,ft)|0,i=i+Math.imul(D,ht)|0;var Dt=(c+(n=n+Math.imul(S,dt)|0)|0)+((8191&(o=(o=o+Math.imul(S,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((i=i+Math.imul(k,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(N,it),o=(o=Math.imul(N,at))+Math.imul($,it)|0,i=Math.imul($,at),n=n+Math.imul(R,ut)|0,o=(o=o+Math.imul(R,ct)|0)+Math.imul(B,ut)|0,i=i+Math.imul(B,ct)|0,n=n+Math.imul(T,ft)|0,o=(o=o+Math.imul(T,ht)|0)+Math.imul(j,ft)|0,i=i+Math.imul(j,ht)|0;var Ft=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(D,dt)|0))<<13)|0;c=((i=i+Math.imul(D,mt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(N,ut),o=(o=Math.imul(N,ct))+Math.imul($,ut)|0,i=Math.imul($,ct),n=n+Math.imul(R,ft)|0,o=(o=o+Math.imul(R,ht)|0)+Math.imul(B,ft)|0,i=i+Math.imul(B,ht)|0;var Tt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((i=i+Math.imul(j,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,ft),o=(o=Math.imul(N,ht))+Math.imul($,ft)|0,i=Math.imul($,ht);var jt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(o=(o=o+Math.imul(R,mt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((i=i+Math.imul(B,mt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Pt=(c+(n=Math.imul(N,dt))|0)+((8191&(o=(o=Math.imul(N,mt))+Math.imul($,dt)|0))<<13)|0;return c=((i=Math.imul($,mt))+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=bt,u[4]=wt,u[5]=At,u[6]=Mt,u[7]=Et,u[8]=_t,u[9]=Ct,u[10]=St,u[11]=kt,u[12]=xt,u[13]=Ot,u[14]=Dt,u[15]=Ft,u[16]=Tt,u[17]=jt,u[18]=Pt,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,e.length-1),c=Math.max(0,i-t.length+1);c<=u;c++){var l=i-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r._strip()}function v(t,e,r){return g(t,e,r)}function b(t,e){this.x=t,this.y=e}Math.imul||(y=m),i.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):r<63?m(this,t,e):r<1024?g(this,t,e):v(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},b.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,o=0;o<e;o++)n|=(1&t)<<e-o-1,t>>=1;return n},b.prototype.permute=function(t,e,r,n,o,i){for(var a=0;a<i;a++)n[a]=e[t[a]],o[a]=r[t[a]]},b.prototype.transform=function(t,e,r,n,o,i){this.permute(i,t,e,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,p=0;p<a;p++){var d=r[l+p],m=n[l+p],y=r[l+p+a],g=n[l+p+a],v=f*y-h*g;g=f*g+h*y,y=v,r[l+p]=d+y,n[l+p]=m+g,r[l+p+a]=d-y,n[l+p+a]=m-g,p!==s&&(v=u*f-c*h,h=u*h+c*f,f=v)}},b.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},b.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=t[n];t[n]=t[r-n-1],t[r-n-1]=o,o=e[n],e[n]=-e[r-n-1],e[r-n-1]=-o}},b.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var o=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&o,r=o<67108864?0:o/67108864|0}return t},b.prototype.convert13b=function(t,e,r,o){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},b.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},b.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,f,n,o);for(var p=0;p<n;p++){var d=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=d}return this.conjugate(s,u,n),this.transform(s,u,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r._strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),v(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,o=0;o<this.length;o++){var i=(0|this.words[o])*t,a=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=a>>>26,this.words[o]=67108863&a}return 0!==r&&(this.words[o]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=t.words[n]>>>o&1}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,o=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this._strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,o=1<<e;return!(this.length<=r||!(this.words[r]&o))},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this._strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var o,i,a=t.length+r;this._expand(a);var s=0;for(o=0;o<t.length;o++){i=(0|this.words[o+r])+s;var u=(0|t.words[o])*e;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this._strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,o=0,i=this.length-1;i>=0;i--)o=(r*o+(0|this.words[i]))%t;return e?-o:o},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+67108864*r;this.words[o]=i/t|0,r=i%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=e.cmp(r);if(o<0){var i=e;e=r,r=i}else if(0===o||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,o=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|t.words[r];if(n!==o){n<o?e=-1:n>o&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new S(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},o(M,A),M.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),o=0;o<n;o++)e.words[o]=t.words[o];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&r,o=10;o<t.length;o++){var a=0|t.words[o];t.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,t.words[o-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(E,A),o(_,A),o(C,A),C.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,o=67108863&n;n>>>=26,t.words[r]=o,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new E;else if("p192"===t)e=new _;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new C}return w[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,o),h=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),d=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<d);var g=this.pow(f,new i(1).iushln(d-y-1));h=h.redMul(g),f=g.redSqr(),p=p.redMul(f),d=y}return h},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new k(t)},o(k,S),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},2745:(t,e,r)=>{var n;function o(t){this.rand=t}if(t.exports=function(t){return n||(n=new o(null)),n.generate(t)},t.exports.Rand=o,o.prototype.generate=function(t){return this._rand(t)},o.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=r(8087);if("function"!=typeof i.randomBytes)throw new Error("Not supported");o.prototype._rand=function(t){return i.randomBytes(t)}}catch(t){}},2970:(t,e,r)=>{var n=r(7834).Buffer;function o(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),o=0;o<e;o++)r[o]=t.readUInt32BE(4*o);return r}function i(t){for(;0<t.length;t++)t[0]=0}function a(t,e,r,n,o){for(var i,a,s,u,c=r[0],l=r[1],f=r[2],h=r[3],p=t[0]^e[0],d=t[1]^e[1],m=t[2]^e[2],y=t[3]^e[3],g=4,v=1;v<o;v++)i=c[p>>>24]^l[d>>>16&255]^f[m>>>8&255]^h[255&y]^e[g++],a=c[d>>>24]^l[m>>>16&255]^f[y>>>8&255]^h[255&p]^e[g++],s=c[m>>>24]^l[y>>>16&255]^f[p>>>8&255]^h[255&d]^e[g++],u=c[y>>>24]^l[p>>>16&255]^f[d>>>8&255]^h[255&m]^e[g++],p=i,d=a,m=s,y=u;return i=(n[p>>>24]<<24|n[d>>>16&255]<<16|n[m>>>8&255]<<8|n[255&y])^e[g++],a=(n[d>>>24]<<24|n[m>>>16&255]<<16|n[y>>>8&255]<<8|n[255&p])^e[g++],s=(n[m>>>24]<<24|n[y>>>16&255]<<16|n[p>>>8&255]<<8|n[255&d])^e[g++],u=(n[y>>>24]<<24|n[p>>>16&255]<<16|n[d>>>8&255]<<8|n[255&m])^e[g++],[i>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],o=[[],[],[],[]],i=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var l=t[a],f=t[l],h=t[f],p=257*t[c]^16843008*c;o[0][a]=p<<24|p>>>8,o[1][a]=p<<16|p>>>16,o[2][a]=p<<8|p>>>24,o[3][a]=p,p=16843009*h^65537*f^257*l^16843008*a,i[0][c]=p<<24|p>>>8,i[1][c]=p<<16|p>>>16,i[2][c]=p<<8|p>>>24,i[3][c]=p,0===a?a=s=1:(a=l^t[t[t[h^l]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:o,INV_SUB_MIX:i}}();function c(t){this._key=o(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),o=[],i=0;i<e;i++)o[i]=t[i];for(i=e;i<n;i++){var a=o[i-1];i%e==0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[i/e|0]<<24):e>6&&i%e==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),o[i]=o[i-e]^a}for(var c=[],l=0;l<n;l++){var f=n-l,h=o[f-(l%4?0:4)];c[l]=l<4||f<=4?h:u.INV_SUB_MIX[0][u.SBOX[h>>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=r,this._keySchedule=o,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return a(t=o(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},c.prototype.decryptBlock=function(t){var e=(t=o(t))[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),i=n.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},c.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=c},3313:(t,e,r)=>{var n=r(2970),o=r(7834).Buffer,i=r(3973),a=r(1285),s=r(2895),u=r(1313),c=r(4182);function l(t,e,r,a){i.call(this);var u=o.alloc(4,0);this._cipher=new n.AES(e);var l=this._cipher.encryptBlock(u);this._ghash=new s(l),r=function(t,e,r){if(12===e.length)return t._finID=o.concat([e,o.from([0,0,0,1])]),o.concat([e,o.from([0,0,0,2])]);var n=new s(r),i=e.length,a=i%16;n.update(e),a&&(a=16-a,n.update(o.alloc(a,0))),n.update(o.alloc(8,0));var u=8*i,l=o.alloc(8);l.writeUIntBE(u,0,8),n.update(l),t._finID=n.state;var f=o.from(t._finID);return c(f),f}(this,r,l),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(l,i),l.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=o.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),o=0;o<n;++o)r+=t[o]^e[o];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},l.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=l},10:(t,e,r)=>{var n=r(9309),o=r(7612),i=r(9234);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(i)}},7612:(t,e,r)=>{var n=r(3313),o=r(7834).Buffer,i=r(8702),a=r(7041),s=r(3973),u=r(2970),c=r(9341);function l(t,e,r){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(e),this._prev=o.from(r),this._mode=t,this._autopadding=!0}function f(){this.cache=o.allocUnsafe(0)}function h(t,e,r){var s=i[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,r,!0):"auth"===s.type?new n(s.module,e,r,!0):new l(s.module,e,r)}r(1285)(l,s),l.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return o.concat(n)},l.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var r=-1;++r<e;)if(t[r+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},f.prototype.add=function(t){this.cache=o.concat([this.cache,t])},f.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=i[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(e,!1,r.key,r.iv);return h(t,n.key,n.iv)},e.createDecipheriv=h},9309:(t,e,r)=>{var n=r(8702),o=r(3313),i=r(7834).Buffer,a=r(7041),s=r(3973),u=r(2970),c=r(9341);function l(t,e,r){s.call(this),this._cache=new h,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}r(1285)(l,s),l.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get();)r=this._mode.encrypt(this,e),n.push(r);return i.concat(n)};var f=i.alloc(16,16);function h(){this.cache=i.allocUnsafe(0)}function p(t,e,r){var s=n[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,e,r):"auth"===s.type?new o(s.module,e,r):new l(s.module,e,r)}l.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=i.concat([this.cache,t])},h.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},h.prototype.flush=function(){for(var t=16-this.cache.length,e=i.allocUnsafe(t),r=-1;++r<t;)e.writeUInt8(t,r);return i.concat([this.cache,e])},e.createCipheriv=p,e.createCipher=function(t,e){var r=n[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var o=c(e,!1,r.key,r.iv);return p(t,o.key,o.iv)}},2895:(t,e,r)=>{var n=r(7834).Buffer,o=n.alloc(16,0);function i(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,r,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],o=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(o[0]^=n[0],o[1]^=n[1],o[2]^=n[2],o[3]^=n[3]),r=0!=(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=i(o)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,o],16)),this.ghash(i([0,t,0,e])),this.state},t.exports=a},4182:t=>{t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},8796:(t,e,r)=>{var n=r(1313);e.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},e.decrypt=function(t,e){var r=t._prev;t._prev=e;var o=t._cipher.decryptBlock(e);return n(o,r)}},6528:(t,e,r)=>{var n=r(7834).Buffer,o=r(1313);function i(t,e,r){var i=e.length,a=o(e,t._cache);return t._cache=t._cache.slice(i),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var o,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,i(t,e,r)]);break}o=t._cache.length,a=n.concat([a,i(t,e.slice(0,o),r)]),e=e.slice(o)}return a}},918:(t,e,r)=>{var n=r(7834).Buffer;function o(t,e,r){for(var n,o,a=-1,s=0;++a<8;)n=e&1<<7-a?128:0,s+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=i(t._prev,r?n:o);return s}function i(t,e){var r=t.length,o=-1,i=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++o<r;)i[o]=t[o]<<1|t[o+1]>>7;return i}e.encrypt=function(t,e,r){for(var i=e.length,a=n.allocUnsafe(i),s=-1;++s<i;)a[s]=o(t,e[s],r);return a}},7263:(t,e,r)=>{var n=r(7834).Buffer;function o(t,e,r){var o=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:o])]),o}e.encrypt=function(t,e,r){for(var i=e.length,a=n.allocUnsafe(i),s=-1;++s<i;)a[s]=o(t,e[s],r);return a}},8219:(t,e,r)=>{var n=r(1313),o=r(7834).Buffer,i=r(4182);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return i(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),i=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var u=a(t),c=i+16*s;t._cache.writeUInt32BE(u[0],c+0),t._cache.writeUInt32BE(u[1],c+4),t._cache.writeUInt32BE(u[2],c+8),t._cache.writeUInt32BE(u[3],c+12)}var l=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,l)}},7028:(t,e)=>{e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},8702:(t,e,r)=>{var n={ECB:r(7028),CBC:r(8796),CFB:r(6528),CFB8:r(7263),CFB1:r(918),OFB:r(4256),CTR:r(8219),GCM:r(8219)},o=r(9234);for(var i in o)o[i].module=n[o[i].mode];t.exports=o},4256:(t,e,r)=>{var n=r(1313);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=Buffer.concat([t._cache,o(t)]);var r=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),n(e,r)}},7041:(t,e,r)=>{var n=r(2970),o=r(7834).Buffer,i=r(3973);function a(t,e,r,a){i.call(this),this._cipher=new n.AES(e),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._mode=t}r(1285)(a,i),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},3667:(t,e,r)=>{var n=r(7214),o=r(10),i=r(8702),a=r(2820),s=r(9341);function u(t,e,r){if(t=t.toLowerCase(),i[t])return o.createCipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t});throw new TypeError("invalid suite type")}function c(t,e,r){if(t=t.toLowerCase(),i[t])return o.createDecipheriv(t,e,r);if(a[t])return new n({key:e,iv:r,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var r,n;if(t=t.toLowerCase(),i[t])r=i[t].key,n=i[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var o=s(e,!1,r,n);return u(t,o.key,o.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var r,n;if(t=t.toLowerCase(),i[t])r=i[t].key,n=i[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");r=8*a[t].key,n=a[t].iv}var o=s(e,!1,r,n);return c(t,o.key,o.iv)},e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},7214:(t,e,r)=>{var n=r(3973),o=r(4387),i=r(1285),a=r(7834).Buffer,s={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function u(t){n.call(this);var e,r=t.mode.toLowerCase(),o=s[r];e=t.decrypt?"decrypt":"encrypt";var i=t.key;a.isBuffer(i)||(i=a.from(i)),"des-ede"!==r&&"des-ede-cbc"!==r||(i=a.concat([i,i.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=o.create({key:i,iv:u,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,i(u,n),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},2820:(t,e)=>{e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},1857:(t,e,r)=>{var n=r(2197),o=r(5003);function i(t){var e,r=t.modulus.byteLength();do{e=new n(o(r))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function a(t,e){var r=function(t){var e=i(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),o=e.modulus.byteLength(),a=new n(t).mul(r.blinder).umod(e.modulus),s=a.toRed(n.mont(e.prime1)),u=a.toRed(n.mont(e.prime2)),c=e.coefficient,l=e.prime1,f=e.prime2,h=s.redPow(e.exponent1).fromRed(),p=u.redPow(e.exponent2).fromRed(),d=h.isub(p).imul(c).umod(l).imul(f);return p.iadd(d).imul(r.unblinder).umod(e.modulus).toArrayLike(Buffer,"be",o)}a.getr=i,t.exports=a},4778:(t,e,r)=>{t.exports=r(26)},5263:(t,e,r)=>{var n=r(6640).Buffer,o=r(6162),i=r(7525),a=r(1285),s=r(262),u=r(5643),c=r(26);function l(t){i.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=o(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){i.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=o(e.hash),this._tag=e.id,this._signType=e.sign}function h(t){return new l(t)}function p(t){return new f(t)}Object.keys(c).forEach((function(t){c[t].id=n.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]})),a(l,i.Writable),l.prototype._write=function(t,e,r){this._hash.update(t),r()},l.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},l.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=s(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(f,i.Writable),f.prototype._write=function(t,e,r){this._hash.update(t),r()},f.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},f.prototype.verify=function(t,e,r){"string"==typeof e&&(e=n.from(e,r)),this.end();var o=this._hash.digest();return u(e,o,t,this._signType,this._tag)},t.exports={Sign:h,Verify:p,createSign:h,createVerify:p}},262:(t,e,r)=>{var n=r(6640).Buffer,o=r(11),i=r(1857),a=r(7554).ec,s=r(2197),u=r(8016),c=r(9167);function l(t,e,r,i){if((t=n.from(t.toArray())).length<e.byteLength()){var a=n.alloc(e.byteLength()-t.length);t=n.concat([a,t])}var s=r.length,u=function(t,e){t=(t=f(t,e)).mod(e);var r=n.from(t.toArray());if(r.length<e.byteLength()){var o=n.alloc(e.byteLength()-r.length);r=n.concat([o,r])}return r}(r,e),c=n.alloc(s);c.fill(1);var l=n.alloc(s);return l=o(i,l).update(c).update(n.from([0])).update(t).update(u).digest(),c=o(i,l).update(c).digest(),{k:l=o(i,l).update(c).update(n.from([1])).update(t).update(u).digest(),v:c=o(i,l).update(c).digest()}}function f(t,e){var r=new s(t),n=(t.length<<3)-e.bitLength();return n>0&&r.ishrn(n),r}function h(t,e,r){var i,a;do{for(i=n.alloc(0);8*i.length<t.bitLength();)e.v=o(r,e.k).update(e.v).digest(),i=n.concat([i,e.v]);a=f(i,t),e.k=o(r,e.k).update(e.v).update(n.from([0])).digest(),e.v=o(r,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function p(t,e,r,n){return t.toRed(s.mont(r)).redPow(e).fromRed().mod(n)}t.exports=function(t,e,r,o,d){var m=u(e);if(m.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(t,e){var r=c[e.curve.join(".")];if(!r)throw new Error("unknown curve "+e.curve.join("."));var o=new a(r).keyFromPrivate(e.privateKey).sign(t);return n.from(o.toDER())}(t,m)}if("dsa"===m.type){if("dsa"!==o)throw new Error("wrong private key type");return function(t,e,r){for(var o,i=e.params.priv_key,a=e.params.p,u=e.params.q,c=e.params.g,d=new s(0),m=f(t,u).mod(u),y=!1,g=l(i,u,t,r);!1===y;)d=p(c,o=h(u,g,r),a,u),0===(y=o.invm(u).imul(m.add(i.mul(d))).mod(u)).cmpn(0)&&(y=!1,d=new s(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var r=[48,t.length+e.length+4,2,t.length];return r=r.concat(t,[2,e.length],e),n.from(r)}(d,y)}(t,m,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");t=n.concat([d,t]);for(var y=m.modulus.byteLength(),g=[0,1];t.length+g.length+1<y;)g.push(255);g.push(0);for(var v=-1;++v<t.length;)g.push(t[v]);return i(g,m)},t.exports.getKey=l,t.exports.makeKey=h},5643:(t,e,r)=>{var n=r(6640).Buffer,o=r(2197),i=r(7554).ec,a=r(8016),s=r(9167);function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,r,c,l){var f=a(r);if("ec"===f.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),a=r.data.subjectPrivateKey.data;return o.verify(e,t,a)}(t,e,f)}if("dsa"===f.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,i=r.data.q,s=r.data.g,c=r.data.pub_key,l=a.signature.decode(t,"der"),f=l.s,h=l.r;u(f,i),u(h,i);var p=o.mont(n),d=f.invm(i);return 0===s.toRed(p).redPow(new o(e).mul(d).mod(i)).fromRed().mul(c.toRed(p).redPow(h.mul(d).mod(i)).fromRed()).mod(n).mod(i).cmp(h)}(t,e,f)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=n.concat([l,e]);for(var h=f.modulus.byteLength(),p=[1],d=0;e.length+p.length+2<h;)p.push(255),d++;p.push(0);for(var m=-1;++m<e.length;)p.push(e[m]);p=n.from(p);var y=o.mont(f.modulus);t=(t=new o(t).toRed(y)).redPow(new o(f.publicExponent)),t=n.from(t.fromRed().toArray());var g=d<8?1:0;for(h=Math.min(t.length,p.length),t.length!==p.length&&(g=1),m=-1;++m<h;)g|=t[m]^p[m];return 0===g}},6640:(t,e,r)=>{var n=r(8834),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},1313:t=>{t.exports=function(t,e){for(var r=Math.min(t.length,e.length),n=new Buffer(r),o=0;o<r;++o)n[o]=t[o]^e[o];return n}},8834:(t,e,r)=>{"use strict";var n=r(5766),o=r(2333);e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50;var i=2147483647;function a(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=s.prototype,e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=a(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r)).__proto__=s.prototype,n}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var o=function(t){if(s.isBuffer(t)){var e=0|h(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||U(t.length)?a(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),a(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=a(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(t>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(o)return n?-1:I(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return k(this,e,r);case"latin1":case"binary":return x(this,e,r);case"base64":return _(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),U(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){f=!1;break}if(f)return i}return-1}function v(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(U(s))return a;t[r+a]=s}return a}function b(t,e,r,n){return $(I(e,t.length-r),t,r,n)}function w(t,e,r,n){return $(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function A(t,e,r,n){return w(t,e,r,n)}function M(t,e,r,n){return $(N(e),t,r,n)}function E(t,e,r,n){return $(function(t,e){for(var r,n,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function _(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,u,c=t[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=S));return r}(n)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},s.allocUnsafe=function(t){return l(t)},s.allocUnsafeSlow=function(t){return l(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},s.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=s.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(L(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},s.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?C(this,0,t):d.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},s.prototype.compare=function(t,e,r,n,o){if(L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),u=Math.min(i,a),c=this.slice(n,o),l=t.slice(e,r),f=0;f<u;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},s.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},s.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},s.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return A(this,t,e,r);case"base64":return M(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function k(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function x(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function O(t,e,r){var n,o=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>o)&&(r=o);for(var i="",a=e;a<r;++a)i+=(n=t[a])<16?"0"+n.toString(16):n.toString(16);return i}function D(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function F(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,o,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function j(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,r,n,i){return e=+e,r>>>=0,i||j(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function R(t,e,r,n,i){return e=+e,r>>>=0,i||j(t,0,r,8),o.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},s.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},s.prototype.readUInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||T(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},s.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||T(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);T(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<r&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);T(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return R(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return R(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},s.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=s.isBuffer(t)?t:s.from(t,n),u=a.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=a[i%u]}return this};var B=/[^+/0-9A-Za-z-_]/g;function I(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function N(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function L(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function U(t){return t!=t}},2680:(t,e,r)=>{"use strict";var n=r(7286),o=r(9429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},9429:(t,e,r)=>{"use strict";var n=r(4090),o=r(7286),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var f=function(){return s(n,i,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},3973:(t,e,r)=>{var n=r(7834).Buffer,o=r(4851).Transform,i=r(214).s;function a(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(1285)(a,o),a.prototype.update=function(t,e,r){"string"==typeof t&&(t=n.from(t,e));var o=this._update(t);return this.hashMode?this:(r&&(o=this._toString(o,r)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new i(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=a},5363:(t,e,r)=>{var n=r(7554),o=r(9239);t.exports=function(t){return new a(t)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=i[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(t,e,r){Array.isArray(t)||(t=t.toArray());var n=new Buffer(t);if(r&&n.length<r){var o=new Buffer(r-n.length);o.fill(0),n=Buffer.concat([o,n])}return e?n.toString(e):n}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,e,r){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var r=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,t)},a.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,e){e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e));var r=new o(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},9239:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(633).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,i=Math.min(t.length,r),a=e;a<i;a++){var s=t.charCodeAt(a)-48;o*=n,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<t.length&&(16===e?this._parseHex(t,o,r):(this._parseBase(t,e,o),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=e)n++;n--,o=o/e|0;for(var i=t.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var o=0|t.words[0],i=0|e.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;l+=(a=(o=0|t.words[d])*(i=0|e.words[p])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);r=0!=(i=s>>>24-o&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],p=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:l[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(i),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[i-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0,i=0;i<n.length;i++)e=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&e,o=e>>>26;for(;0!==o&&i<r.length;i++)e=(0|r.words[i])+o,this.words[i]=67108863&e,o=e>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)i=(e=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,o,i,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,p=0|a[1],d=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,A=b>>>13,M=0|a[4],E=8191&M,_=M>>>13,C=0|a[5],S=8191&C,k=C>>>13,x=0|a[6],O=8191&x,D=x>>>13,F=0|a[7],T=8191&F,j=F>>>13,P=0|a[8],R=8191&P,B=P>>>13,I=0|a[9],N=8191&I,$=I>>>13,L=0|s[0],U=8191&L,q=L>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Z=G>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,K=0|s[4],X=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,ot=0|s[6],it=8191&ot,at=ot>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,U))|0)+((8191&(o=(o=Math.imul(f,q))+Math.imul(h,U)|0))<<13)|0;c=((i=Math.imul(h,q))+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,U),o=(o=Math.imul(d,q))+Math.imul(m,U)|0,i=Math.imul(m,q);var gt=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(o=(o=o+Math.imul(f,H)|0)+Math.imul(h,V)|0))<<13)|0;c=((i=i+Math.imul(h,H)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),o=(o=Math.imul(g,q))+Math.imul(v,U)|0,i=Math.imul(v,q),n=n+Math.imul(d,V)|0,o=(o=o+Math.imul(d,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var vt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,W)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,q))+Math.imul(A,U)|0,i=Math.imul(A,q),n=n+Math.imul(g,V)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,H)|0,n=n+Math.imul(d,W)|0,o=(o=o+Math.imul(d,Z)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,Z)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,U),o=(o=Math.imul(E,q))+Math.imul(_,U)|0,i=Math.imul(_,q),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(g,W)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Z)|0,n=n+Math.imul(d,Q)|0,o=(o=o+Math.imul(d,Y)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Y)|0;var wt=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,tt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(S,U),o=(o=Math.imul(S,q))+Math.imul(k,U)|0,i=Math.imul(k,q),n=n+Math.imul(E,V)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(_,V)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(d,X)|0,o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var At=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((i=i+Math.imul(h,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,U),o=(o=Math.imul(O,q))+Math.imul(D,U)|0,i=Math.imul(D,q),n=n+Math.imul(S,V)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(g,X)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,i=i+Math.imul(m,nt)|0;var Mt=(c+(n=n+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,at)|0)+Math.imul(h,it)|0))<<13)|0;c=((i=i+Math.imul(h,at)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,U),o=(o=Math.imul(T,q))+Math.imul(j,U)|0,i=Math.imul(j,q),n=n+Math.imul(O,V)|0,o=(o=o+Math.imul(O,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,n=n+Math.imul(S,W)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,n=n+Math.imul(d,it)|0,o=(o=o+Math.imul(d,at)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(o=(o=o+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((i=i+Math.imul(h,ct)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,q))+Math.imul(B,U)|0,i=Math.imul(B,q),n=n+Math.imul(T,V)|0,o=(o=o+Math.imul(T,H)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Z)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,n=n+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,nt)|0)+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(g,it)|0,o=(o=o+Math.imul(g,at)|0)+Math.imul(v,it)|0,i=i+Math.imul(v,at)|0,n=n+Math.imul(d,ut)|0,o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ut)|0,i=i+Math.imul(m,ct)|0;var _t=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((i=i+Math.imul(h,ht)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,q))+Math.imul($,U)|0,i=Math.imul($,q),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,H)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,H)|0,n=n+Math.imul(T,W)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(j,W)|0,i=i+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,tt)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(E,rt)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,n=n+Math.imul(w,it)|0,o=(o=o+Math.imul(w,at)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,at)|0,n=n+Math.imul(g,ut)|0,o=(o=o+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,n=n+Math.imul(d,ft)|0,o=(o=o+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,i=i+Math.imul(m,ht)|0;var Ct=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(o=(o=o+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((i=i+Math.imul(h,mt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,V),o=(o=Math.imul(N,H))+Math.imul($,V)|0,i=Math.imul($,H),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(O,X)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,tt)|0,n=n+Math.imul(S,rt)|0,o=(o=o+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(E,it)|0,o=(o=o+Math.imul(E,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,n=n+Math.imul(w,ut)|0,o=(o=o+Math.imul(w,ct)|0)+Math.imul(A,ut)|0,i=i+Math.imul(A,ct)|0,n=n+Math.imul(g,ft)|0,o=(o=o+Math.imul(g,ht)|0)+Math.imul(v,ft)|0,i=i+Math.imul(v,ht)|0;var St=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((i=i+Math.imul(m,mt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Z))+Math.imul($,W)|0,i=Math.imul($,Z),n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(j,X)|0,i=i+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(D,rt)|0,i=i+Math.imul(D,nt)|0,n=n+Math.imul(S,it)|0,o=(o=o+Math.imul(S,at)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,at)|0,n=n+Math.imul(E,ut)|0,o=(o=o+Math.imul(E,ct)|0)+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,n=n+Math.imul(w,ft)|0,o=(o=o+Math.imul(w,ht)|0)+Math.imul(A,ft)|0,i=i+Math.imul(A,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul(v,dt)|0))<<13)|0;c=((i=i+Math.imul(v,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,Q),o=(o=Math.imul(N,Y))+Math.imul($,Q)|0,i=Math.imul($,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,tt)|0,n=n+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,nt)|0)+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,n=n+Math.imul(O,it)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(D,it)|0,i=i+Math.imul(D,at)|0,n=n+Math.imul(S,ut)|0,o=(o=o+Math.imul(S,ct)|0)+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,n=n+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,i=i+Math.imul(_,ht)|0;var xt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(A,dt)|0))<<13)|0;c=((i=i+Math.imul(A,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(N,X),o=(o=Math.imul(N,tt))+Math.imul($,X)|0,i=Math.imul($,tt),n=n+Math.imul(R,rt)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,n=n+Math.imul(T,it)|0,o=(o=o+Math.imul(T,at)|0)+Math.imul(j,it)|0,i=i+Math.imul(j,at)|0,n=n+Math.imul(O,ut)|0,o=(o=o+Math.imul(O,ct)|0)+Math.imul(D,ut)|0,i=i+Math.imul(D,ct)|0,n=n+Math.imul(S,ft)|0,o=(o=o+Math.imul(S,ht)|0)+Math.imul(k,ft)|0,i=i+Math.imul(k,ht)|0;var Ot=(c+(n=n+Math.imul(E,dt)|0)|0)+((8191&(o=(o=o+Math.imul(E,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((i=i+Math.imul(_,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,rt),o=(o=Math.imul(N,nt))+Math.imul($,rt)|0,i=Math.imul($,nt),n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,at)|0)+Math.imul(B,it)|0,i=i+Math.imul(B,at)|0,n=n+Math.imul(T,ut)|0,o=(o=o+Math.imul(T,ct)|0)+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,n=n+Math.imul(O,ft)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(D,ft)|0,i=i+Math.imul(D,ht)|0;var Dt=(c+(n=n+Math.imul(S,dt)|0)|0)+((8191&(o=(o=o+Math.imul(S,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((i=i+Math.imul(k,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(N,it),o=(o=Math.imul(N,at))+Math.imul($,it)|0,i=Math.imul($,at),n=n+Math.imul(R,ut)|0,o=(o=o+Math.imul(R,ct)|0)+Math.imul(B,ut)|0,i=i+Math.imul(B,ct)|0,n=n+Math.imul(T,ft)|0,o=(o=o+Math.imul(T,ht)|0)+Math.imul(j,ft)|0,i=i+Math.imul(j,ht)|0;var Ft=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(D,dt)|0))<<13)|0;c=((i=i+Math.imul(D,mt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(N,ut),o=(o=Math.imul(N,ct))+Math.imul($,ut)|0,i=Math.imul($,ct),n=n+Math.imul(R,ft)|0,o=(o=o+Math.imul(R,ht)|0)+Math.imul(B,ft)|0,i=i+Math.imul(B,ht)|0;var Tt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((i=i+Math.imul(j,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,ft),o=(o=Math.imul(N,ht))+Math.imul($,ft)|0,i=Math.imul($,ht);var jt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(o=(o=o+Math.imul(R,mt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((i=i+Math.imul(B,mt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Pt=(c+(n=Math.imul(N,dt))|0)+((8191&(o=(o=Math.imul(N,mt))+Math.imul($,dt)|0))<<13)|0;return c=((i=Math.imul($,mt))+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=bt,u[4]=wt,u[5]=At,u[6]=Mt,u[7]=Et,u[8]=_t,u[9]=Ct,u[10]=St,u[11]=kt,u[12]=xt,u[13]=Ot,u[14]=Dt,u[15]=Ft,u[16]=Tt,u[17]=jt,u[18]=Pt,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(d=p),i.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,e.length-1),c=Math.max(0,i-t.length+1);c<=u;c++){var l=i-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,t,e):m(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,o=0;o<e;o++)n|=(1&t)<<e-o-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,o,i){for(var a=0;a<i;a++)n[a]=e[t[a]],o[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,o,i){this.permute(i,t,e,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,p=0;p<a;p++){var d=r[l+p],m=n[l+p],y=r[l+p+a],g=n[l+p+a],v=f*y-h*g;g=f*g+h*y,y=v,r[l+p]=d+y,n[l+p]=m+g,r[l+p+a]=d-y,n[l+p+a]=m-g,p!==s&&(v=u*f-c*h,h=u*h+c*f,f=v)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=t[n];t[n]=t[r-n-1],t[r-n-1]=o,o=e[n],e[n]=-e[r-n-1],e[r-n-1]=-o}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var o=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&o,r=o<67108864?0:o/67108864|0}return t},y.prototype.convert13b=function(t,e,r,o){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,f,n,o);for(var p=0;p<n;p++){var d=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=d}return this.conjugate(s,u,n),this.transform(s,u,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,i=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,o=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,o=1<<e;return!(this.length<=r||!(this.words[r]&o))},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var o,i,a=t.length+r;this._expand(a);var s=0;for(o=0;o<t.length;o++){i=(0|this.words[o+r])+s;var u=(0|t.words[o])*e;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(e*r+(0|this.words[o]))%t;return r},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*e;this.words[r]=o/t|0,e=o%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=e.cmp(r);if(o<0){var i=e;e=r,r=i}else if(0===o||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,o=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|t.words[r];if(n!==o){n<o?e=-1:n>o&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},o(b,v),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),o=0;o<n;o++)e.words[o]=t.words[o];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&r,o=10;o<t.length;o++){var a=0|t.words[o];t.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,t.words[o-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(w,v),o(A,v),o(M,v),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,o=67108863&n;n>>>=26,t.words[r]=o,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,o),h=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),d=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<d);var g=this.pow(f,new i(1).iushln(d-y-1));h=h.redMul(g),f=g.redSqr(),p=p.redMul(f),d=y}return h},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new _(t)},o(_,E),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},6162:(t,e,r)=>{"use strict";var n=r(1285),o=r(7993),i=r(1445),a=r(9065),s=r(3973);function u(t){s.call(this,"digest"),this._hash=t}n(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new o:"rmd160"===t||"ripemd160"===t?new i:new u(a(t))}},2511:(t,e,r)=>{var n=r(7993);t.exports=function(t){return(new n).update(t).digest()}},11:(t,e,r)=>{"use strict";var n=r(1285),o=r(6456),i=r(3973),a=r(7834).Buffer,s=r(2511),u=r(1445),c=r(9065),l=a.alloc(128);function f(t,e){i.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>r?e=("rmd160"===t?new u:c(t)).update(e).digest():e.length<r&&(e=a.concat([e,l],r));for(var n=this._ipad=a.allocUnsafe(r),o=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^e[s],o[s]=92^e[s];this._hash="rmd160"===t?new u:c(t),this._hash.update(n)}n(f,i),f.prototype._update=function(t){this._hash.update(t)},f.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new f("rmd160",e):"md5"===t?new o(s,e):new f(t,e)}},6456:(t,e,r)=>{"use strict";var n=r(1285),o=r(7834).Buffer,i=r(3973),a=o.alloc(128),s=64;function u(t,e){i.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=o.concat([e,a],s));for(var r=this._ipad=o.allocUnsafe(s),n=this._opad=o.allocUnsafe(s),u=0;u<s;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,i),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=u},5634:(t,e,r)=>{"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r(5003),e.createHash=e.Hash=r(6162),e.createHmac=e.Hmac=r(11);var n=r(4778),o=Object.keys(n),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);e.getHashes=function(){return i};var a=r(499);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=r(3667);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=r(7602);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var c=r(5263);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=r(5363);var l=r(8493);e.publicEncrypt=l.publicEncrypt,e.privateEncrypt=l.privateEncrypt,e.publicDecrypt=l.publicDecrypt,e.privateDecrypt=l.privateDecrypt;var f=r(9631);e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},8879:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(n,u),i=r-o<0,a=e.clone().add(n+(i?-1:1),u);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:n,ms:r,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",b={};b[v]=m;var w=function(t){return t instanceof _},A=function(t,e,r){var n;if(!t)return v;if("string"==typeof t)b[t]&&(n=t),e&&(b[t]=e,n=t);else{var o=t.name;b[o]=t,n=o}return!r&&n&&(v=n),n||!r&&v},M=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},E=g;E.l=A,E.i=w,E.w=function(t,e){return M(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function m(t){this.$L=A(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(t,e){var r=M(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return M(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<M(t)},y.$g=function(t,e,r){return E.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,c=!!E.u(e)||e,h=E.p(t),p=function(t,e){var n=E.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return c?n:n.endOf(a)},d=function(t,e){return E.w(r.toDate()[t].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case l:return c?p(1,0):p(31,11);case u:return c?p(1,y):p(0,y+1);case s:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(c?g-w:g+(6-w),y);case a:case f:return d(v+"Hours",0);case i:return d(v+"Minutes",1);case o:return d(v+"Seconds",2);case n:return d(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var s,c=E.p(t),h="set"+(this.$u?"UTC":""),p=(s={},s[a]=h+"Date",s[f]=h+"Date",s[u]=h+"Month",s[l]=h+"FullYear",s[i]=h+"Hours",s[o]=h+"Minutes",s[n]=h+"Seconds",s[r]=h+"Milliseconds",s)[c],d=c===a?this.$D+(e-this.$W):e;if(c===u||c===l){var m=this.clone().set(f,1);m.$d[p](d),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[E.p(t)]()},y.add=function(r,c){var f,h=this;r=Number(r);var p=E.p(c),d=function(t){var e=M(h);return E.w(e.date(e.date()+Math.round(t*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===l)return this.set(l,this.$y+r);if(p===a)return d(1);if(p===s)return d(7);var m=(f={},f[o]=t,f[i]=e,f[n]=1e3,f)[p]||1,y=this.$d.getTime()+r*m;return E.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,s=this.$M,u=r.weekdays,c=r.months,l=function(t,r,o,i){return t&&(t[r]||t(e,n))||o[r].substr(0,i)},f=function(t){return E.s(i%12||12,t,"0")},p=r.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:E.s(s+1,2,"0"),MMM:l(r.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:l(r.weekdaysMin,this.$W,u,2),ddd:l(r.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:E.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:E.s(a,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:o};return n.replace(d,(function(t,e){return e||m[t]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,h){var p,d=E.p(f),m=M(r),y=(m.utcOffset()-this.utcOffset())*t,g=this-m,v=E.m(this,m);return v=(p={},p[l]=v/12,p[u]=v,p[c]=v/3,p[s]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[i]=g/e,p[o]=g/t,p[n]=g/1e3,p)[d]||g,h?v:E.a(v)},y.daysInMonth=function(){return this.endOf(u).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=A(t,e,!0);return n&&(r.$L=n),r},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),C=_.prototype;return M.prototype=C,[["$ms",r],["$s",n],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),M.extend=function(t,e){return t.$i||(t(e,_,M),t.$i=!0),M},M.locale=A,M.isDayjs=w,M.unix=function(t){return M(1e3*t)},M.en=b[v],M.Ls=b,M.p={},M}()},264:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,o,i){var a=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},a.utc=function(e){var r=i(this.toDate(),{locale:this.$L,utc:!0});return e?r.add(this.utcOffset(),t):r},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var u=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=a.utcOffset;a.utcOffset=function(n,o){var i=this.$utils().u;if(i(n))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&(n=function(t){void 0===t&&(t="");var n=t.match(e);if(!n)return null;var o=(""+n[0]).match(r)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(n),null===n))return this;var a=Math.abs(n)<=16?60*n:n,s=this;if(o)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,t)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=a.diff;a.diff=function(t,e,r){if(t&&this.$u===t.$u)return h.call(this,t,e,r);var n=this.local(),o=i(t).local();return h.call(n,o,e,r)}}}()},4387:(t,e,r)=>{"use strict";e.utils=r(4112),e.Cipher=r(3639),e.DES=r(4225),e.CBC=r(9692),e.EDE=r(4335)},9692:(t,e,r)=>{"use strict";var n=r(9561),o=r(1285),i={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}o(e,t);for(var r=Object.keys(i),n=0;n<r.length;n++){var a=r[n];e.prototype[a]=i[a]}return e.create=function(t){return new e(t)},e},i._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},i._update=function(t,e,r,n){var o=this._cbcState,i=this.constructor.super_.prototype,a=o.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];for(i._update.call(this,a,0,r,n),s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{for(i._update.call(this,t,e,r,n),s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},3639:(t,e,r)=>{"use strict";var n=r(9561);function o(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},o.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n<r;n++)this.buffer[this.bufferOff+n]=t[e+n];return this.bufferOff+=r,r},o.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(t){var e=0,r=0,n=(this.bufferOff+t.length)/this.blockSize|0,o=new Array(n*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(o,r)));for(var i=t.length-(t.length-e)%this.blockSize;e<i;e+=this.blockSize)this._update(t,e,o,r),r+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return o},o.prototype._updateDecrypt=function(t){for(var e=0,r=0,n=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,o=new Array(n*this.blockSize);n>0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(o,r);return e+=this._buffer(t,e),o},o.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},o.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},o.prototype._unpad=function(t){return t},o.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},4225:(t,e,r)=>{"use strict";var n=r(9561),o=r(1285),i=r(4112),a=r(3639);function s(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}o(u,a),t.exports=u,u.create=function(t){return new u(t)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),n.equal(e.length,this.blockSize,"Invalid key length");var r=i.readUInt32BE(e,0),o=i.readUInt32BE(e,4);i.pc1(r,o,t.tmp,0),r=t.tmp[0],o=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=c[a>>>1];r=i.r28shl(r,s),o=i.r28shl(o,s),i.pc2(r,o,t.keys,a)}},u.prototype._update=function(t,e,r,n){var o=this._desState,a=i.readUInt32BE(t,e),s=i.readUInt32BE(t,e+4);i.ip(a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],"encrypt"===this.type?this._encrypt(o,a,s,o.tmp,0):this._decrypt(o,a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],i.writeUInt32BE(r,a,n),i.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n<t.length;n++)t[n]=r;return!0},u.prototype._unpad=function(t){for(var e=t[t.length-1],r=t.length-e;r<t.length;r++)n.equal(t[r],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,r,n,o){for(var a=e,s=r,u=0;u<t.keys.length;u+=2){var c=t.keys[u],l=t.keys[u+1];i.expand(s,t.tmp,0),c^=t.tmp[0],l^=t.tmp[1];var f=i.substitute(c,l),h=s;s=(a^i.permute(f))>>>0,a=h}i.rip(s,a,n,o)},u.prototype._decrypt=function(t,e,r,n,o){for(var a=r,s=e,u=t.keys.length-2;u>=0;u-=2){var c=t.keys[u],l=t.keys[u+1];i.expand(a,t.tmp,0),c^=t.tmp[0],l^=t.tmp[1];var f=i.substitute(c,l),h=a;a=(s^i.permute(f))>>>0,s=h}i.rip(a,s,n,o)}},4335:(t,e,r)=>{"use strict";var n=r(9561),o=r(1285),i=r(3639),a=r(4225);function s(t,e){n.equal(e.length,24,"Invalid key length");var r=e.slice(0,8),o=e.slice(8,16),i=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i})]:[a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o}),a.create({type:"decrypt",key:r})]}function u(t){i.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}o(u,i),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,r,n){var o=this._edeState;o.ciphers[0]._update(t,e,r,n),o.ciphers[1]._update(r,n,r,n),o.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},4112:(t,e)=>{"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var o=0,i=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)o<<=1,o|=e>>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)i<<=1,i|=e>>>s+a&1;for(s=1;s<=25;s+=8)i<<=1,i|=t>>>s+a&1}r[n+0]=o>>>0,r[n+1]=i>>>0},e.rip=function(t,e,r,n){for(var o=0,i=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;r[n+0]=o>>>0,r[n+1]=i>>>0},e.pc1=function(t,e,r,n){for(var o=0,i=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;r[n+0]=o>>>0,r[n+1]=i>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,o){for(var i=0,a=0,s=r.length>>>1,u=0;u<s;u++)i<<=1,i|=t>>>r[u]&1;for(u=s;u<r.length;u++)a<<=1,a|=e>>>r[u]&1;n[o+0]=i>>>0,n[o+1]=a>>>0},e.expand=function(t,e,r){var n=0,o=0;n=(1&t)<<5|t>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=t>>>i&63;for(i=11;i>=3;i-=4)o|=t>>>i&63,o<<=6;o|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=o>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,o=0;o<4;o++)r<<=4,r|=n[64*o+(t>>>18-6*o&63)];for(o=0;o<4;o++)r<<=4,r|=n[256+64*o+(e>>>18-6*o&63)];return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,r=0;r<o.length;r++)e<<=1,e|=t>>>o[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length<e;)n="0"+n;for(var o=[],i=0;i<e;i+=r)o.push(n.slice(i,i+r));return o.join(" ")}},7602:(t,e,r)=>{var n=r(2808),o=r(3418),i=r(767),a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new Buffer(o[t].prime,"hex"),r=new Buffer(o[t].gen,"hex");return new i(e,r)},e.createDiffieHellman=e.DiffieHellman=function t(e,r,o,s){return Buffer.isBuffer(r)||void 0===a[r]?t(e,"binary",r,o):(r=r||"binary",s=s||"binary",o=o||new Buffer([2]),Buffer.isBuffer(o)||(o=new Buffer(o,s)),"number"==typeof e?new i(n(e,o),o,!0):(Buffer.isBuffer(e)||(e=new Buffer(e,r)),new i(e,o,!0)))}},767:(t,e,r)=>{var n=r(3908),o=new(r(6676)),i=new n(24),a=new n(11),s=new n(10),u=new n(3),c=new n(7),l=r(2808),f=r(5003);function h(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._pub=new n(t),this}function p(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._priv=new n(t),this}t.exports=m;var d={};function m(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function y(t,e){var r=new Buffer(t.toArray());return e?r.toString(e):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in d)return d[n];var f,h=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return h+=1,h+="02"===r||"05"===r?8:4,d[n]=h,h;switch(o.test(t.shrn(1))||(h+=2),r){case"02":t.mod(i).cmp(a)&&(h+=8);break;case"05":(f=t.mod(s)).cmp(u)&&f.cmp(c)&&(h+=8);break;default:h+=4}return d[n]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var e=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new Buffer(e.toArray()),o=this.getPrime();if(r.length<o.length){var i=new Buffer(o.length-r.length);i.fill(0),r=Buffer.concat([i,r])}return r},m.prototype.getPublicKey=function(t){return y(this._pub,t)},m.prototype.getPrivateKey=function(t){return y(this._priv,t)},m.prototype.getPrime=function(t){return y(this.__prime,t)},m.prototype.getGenerator=function(t){return y(this._gen,t)},m.prototype.setGenerator=function(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.__gen=t,this._gen=new n(t),this}},2808:(t,e,r)=>{var n=r(5003);t.exports=v,v.simpleSieve=y,v.fermatTest=g;var o=r(3908),i=new o(24),a=new(r(6676)),s=new o(1),u=new o(2),c=new o(5),l=(new o(16),new o(8),new o(10)),f=new o(3),h=(new o(7),new o(11)),p=new o(4),d=(new o(12),null);function m(){if(null!==d)return d;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),o=0;o<e&&t[o]<=n&&r%t[o]!=0;o++);e!==o&&t[o]<=n||(t[e++]=r)}return d=t,t}function y(t){for(var e=m(),r=0;r<e.length;r++)if(0===t.modn(e[r]))return 0===t.cmpn(e[r]);return!0}function g(t){var e=o.mont(t);return 0===u.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function v(t,e){if(t<16)return new o(2===e||5===e?[140,123]:[140,39]);var r,d;for(e=new o(e);;){for(r=new o(n(Math.ceil(t/8)));r.bitLength()>t;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),e.cmp(u)){if(!e.cmp(c))for(;r.mod(l).cmp(f);)r.iadd(p)}else for(;r.mod(i).cmp(h);)r.iadd(p);if(y(d=r.shrn(1))&&y(r)&&g(d)&&g(r)&&a.test(d)&&a.test(r))return r}}},3908:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(395).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,i=Math.min(t.length,r),a=e;a<i;a++){var s=t.charCodeAt(a)-48;o*=n,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<t.length&&(16===e?this._parseHex(t,o,r):(this._parseBase(t,e,o),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=e)n++;n--,o=o/e|0;for(var i=t.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var o=0|t.words[0],i=0|e.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;l+=(a=(o=0|t.words[d])*(i=0|e.words[p])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);r=0!=(i=s>>>24-o&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],p=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:l[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(i),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[i-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0,i=0;i<n.length;i++)e=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&e,o=e>>>26;for(;0!==o&&i<r.length;i++)e=(0|r.words[i])+o,this.words[i]=67108863&e,o=e>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)i=(e=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,o,i,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,p=0|a[1],d=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,A=b>>>13,M=0|a[4],E=8191&M,_=M>>>13,C=0|a[5],S=8191&C,k=C>>>13,x=0|a[6],O=8191&x,D=x>>>13,F=0|a[7],T=8191&F,j=F>>>13,P=0|a[8],R=8191&P,B=P>>>13,I=0|a[9],N=8191&I,$=I>>>13,L=0|s[0],U=8191&L,q=L>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Z=G>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,K=0|s[4],X=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,ot=0|s[6],it=8191&ot,at=ot>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,U))|0)+((8191&(o=(o=Math.imul(f,q))+Math.imul(h,U)|0))<<13)|0;c=((i=Math.imul(h,q))+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,U),o=(o=Math.imul(d,q))+Math.imul(m,U)|0,i=Math.imul(m,q);var gt=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(o=(o=o+Math.imul(f,H)|0)+Math.imul(h,V)|0))<<13)|0;c=((i=i+Math.imul(h,H)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),o=(o=Math.imul(g,q))+Math.imul(v,U)|0,i=Math.imul(v,q),n=n+Math.imul(d,V)|0,o=(o=o+Math.imul(d,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var vt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,W)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,q))+Math.imul(A,U)|0,i=Math.imul(A,q),n=n+Math.imul(g,V)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,H)|0,n=n+Math.imul(d,W)|0,o=(o=o+Math.imul(d,Z)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,Z)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,U),o=(o=Math.imul(E,q))+Math.imul(_,U)|0,i=Math.imul(_,q),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(g,W)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Z)|0,n=n+Math.imul(d,Q)|0,o=(o=o+Math.imul(d,Y)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Y)|0;var wt=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,tt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(S,U),o=(o=Math.imul(S,q))+Math.imul(k,U)|0,i=Math.imul(k,q),n=n+Math.imul(E,V)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(_,V)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(d,X)|0,o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var At=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((i=i+Math.imul(h,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,U),o=(o=Math.imul(O,q))+Math.imul(D,U)|0,i=Math.imul(D,q),n=n+Math.imul(S,V)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(g,X)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,i=i+Math.imul(m,nt)|0;var Mt=(c+(n=n+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,at)|0)+Math.imul(h,it)|0))<<13)|0;c=((i=i+Math.imul(h,at)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,U),o=(o=Math.imul(T,q))+Math.imul(j,U)|0,i=Math.imul(j,q),n=n+Math.imul(O,V)|0,o=(o=o+Math.imul(O,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,n=n+Math.imul(S,W)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,n=n+Math.imul(d,it)|0,o=(o=o+Math.imul(d,at)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(o=(o=o+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((i=i+Math.imul(h,ct)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,q))+Math.imul(B,U)|0,i=Math.imul(B,q),n=n+Math.imul(T,V)|0,o=(o=o+Math.imul(T,H)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Z)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,n=n+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,nt)|0)+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(g,it)|0,o=(o=o+Math.imul(g,at)|0)+Math.imul(v,it)|0,i=i+Math.imul(v,at)|0,n=n+Math.imul(d,ut)|0,o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ut)|0,i=i+Math.imul(m,ct)|0;var _t=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((i=i+Math.imul(h,ht)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,q))+Math.imul($,U)|0,i=Math.imul($,q),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,H)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,H)|0,n=n+Math.imul(T,W)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(j,W)|0,i=i+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,tt)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(E,rt)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,n=n+Math.imul(w,it)|0,o=(o=o+Math.imul(w,at)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,at)|0,n=n+Math.imul(g,ut)|0,o=(o=o+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,n=n+Math.imul(d,ft)|0,o=(o=o+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,i=i+Math.imul(m,ht)|0;var Ct=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(o=(o=o+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((i=i+Math.imul(h,mt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,V),o=(o=Math.imul(N,H))+Math.imul($,V)|0,i=Math.imul($,H),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(O,X)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,tt)|0,n=n+Math.imul(S,rt)|0,o=(o=o+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(E,it)|0,o=(o=o+Math.imul(E,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,n=n+Math.imul(w,ut)|0,o=(o=o+Math.imul(w,ct)|0)+Math.imul(A,ut)|0,i=i+Math.imul(A,ct)|0,n=n+Math.imul(g,ft)|0,o=(o=o+Math.imul(g,ht)|0)+Math.imul(v,ft)|0,i=i+Math.imul(v,ht)|0;var St=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((i=i+Math.imul(m,mt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Z))+Math.imul($,W)|0,i=Math.imul($,Z),n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(j,X)|0,i=i+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(D,rt)|0,i=i+Math.imul(D,nt)|0,n=n+Math.imul(S,it)|0,o=(o=o+Math.imul(S,at)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,at)|0,n=n+Math.imul(E,ut)|0,o=(o=o+Math.imul(E,ct)|0)+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,n=n+Math.imul(w,ft)|0,o=(o=o+Math.imul(w,ht)|0)+Math.imul(A,ft)|0,i=i+Math.imul(A,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul(v,dt)|0))<<13)|0;c=((i=i+Math.imul(v,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,Q),o=(o=Math.imul(N,Y))+Math.imul($,Q)|0,i=Math.imul($,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,tt)|0,n=n+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,nt)|0)+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,n=n+Math.imul(O,it)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(D,it)|0,i=i+Math.imul(D,at)|0,n=n+Math.imul(S,ut)|0,o=(o=o+Math.imul(S,ct)|0)+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,n=n+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,i=i+Math.imul(_,ht)|0;var xt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(A,dt)|0))<<13)|0;c=((i=i+Math.imul(A,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(N,X),o=(o=Math.imul(N,tt))+Math.imul($,X)|0,i=Math.imul($,tt),n=n+Math.imul(R,rt)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,n=n+Math.imul(T,it)|0,o=(o=o+Math.imul(T,at)|0)+Math.imul(j,it)|0,i=i+Math.imul(j,at)|0,n=n+Math.imul(O,ut)|0,o=(o=o+Math.imul(O,ct)|0)+Math.imul(D,ut)|0,i=i+Math.imul(D,ct)|0,n=n+Math.imul(S,ft)|0,o=(o=o+Math.imul(S,ht)|0)+Math.imul(k,ft)|0,i=i+Math.imul(k,ht)|0;var Ot=(c+(n=n+Math.imul(E,dt)|0)|0)+((8191&(o=(o=o+Math.imul(E,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((i=i+Math.imul(_,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,rt),o=(o=Math.imul(N,nt))+Math.imul($,rt)|0,i=Math.imul($,nt),n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,at)|0)+Math.imul(B,it)|0,i=i+Math.imul(B,at)|0,n=n+Math.imul(T,ut)|0,o=(o=o+Math.imul(T,ct)|0)+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,n=n+Math.imul(O,ft)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(D,ft)|0,i=i+Math.imul(D,ht)|0;var Dt=(c+(n=n+Math.imul(S,dt)|0)|0)+((8191&(o=(o=o+Math.imul(S,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((i=i+Math.imul(k,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(N,it),o=(o=Math.imul(N,at))+Math.imul($,it)|0,i=Math.imul($,at),n=n+Math.imul(R,ut)|0,o=(o=o+Math.imul(R,ct)|0)+Math.imul(B,ut)|0,i=i+Math.imul(B,ct)|0,n=n+Math.imul(T,ft)|0,o=(o=o+Math.imul(T,ht)|0)+Math.imul(j,ft)|0,i=i+Math.imul(j,ht)|0;var Ft=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(D,dt)|0))<<13)|0;c=((i=i+Math.imul(D,mt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(N,ut),o=(o=Math.imul(N,ct))+Math.imul($,ut)|0,i=Math.imul($,ct),n=n+Math.imul(R,ft)|0,o=(o=o+Math.imul(R,ht)|0)+Math.imul(B,ft)|0,i=i+Math.imul(B,ht)|0;var Tt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((i=i+Math.imul(j,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,ft),o=(o=Math.imul(N,ht))+Math.imul($,ft)|0,i=Math.imul($,ht);var jt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(o=(o=o+Math.imul(R,mt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((i=i+Math.imul(B,mt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Pt=(c+(n=Math.imul(N,dt))|0)+((8191&(o=(o=Math.imul(N,mt))+Math.imul($,dt)|0))<<13)|0;return c=((i=Math.imul($,mt))+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=bt,u[4]=wt,u[5]=At,u[6]=Mt,u[7]=Et,u[8]=_t,u[9]=Ct,u[10]=St,u[11]=kt,u[12]=xt,u[13]=Ot,u[14]=Dt,u[15]=Ft,u[16]=Tt,u[17]=jt,u[18]=Pt,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(d=p),i.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,e.length-1),c=Math.max(0,i-t.length+1);c<=u;c++){var l=i-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,t,e):m(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,o=0;o<e;o++)n|=(1&t)<<e-o-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,o,i){for(var a=0;a<i;a++)n[a]=e[t[a]],o[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,o,i){this.permute(i,t,e,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,p=0;p<a;p++){var d=r[l+p],m=n[l+p],y=r[l+p+a],g=n[l+p+a],v=f*y-h*g;g=f*g+h*y,y=v,r[l+p]=d+y,n[l+p]=m+g,r[l+p+a]=d-y,n[l+p+a]=m-g,p!==s&&(v=u*f-c*h,h=u*h+c*f,f=v)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=t[n];t[n]=t[r-n-1],t[r-n-1]=o,o=e[n],e[n]=-e[r-n-1],e[r-n-1]=-o}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var o=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&o,r=o<67108864?0:o/67108864|0}return t},y.prototype.convert13b=function(t,e,r,o){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,f,n,o);for(var p=0;p<n;p++){var d=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=d}return this.conjugate(s,u,n),this.transform(s,u,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,i=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,o=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,o=1<<e;return!(this.length<=r||!(this.words[r]&o))},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var o,i,a=t.length+r;this._expand(a);var s=0;for(o=0;o<t.length;o++){i=(0|this.words[o+r])+s;var u=(0|t.words[o])*e;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(e*r+(0|this.words[o]))%t;return r},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*e;this.words[r]=o/t|0,e=o%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=e.cmp(r);if(o<0){var i=e;e=r,r=i}else if(0===o||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,o=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|t.words[r];if(n!==o){n<o?e=-1:n>o&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},o(b,v),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),o=0;o<n;o++)e.words[o]=t.words[o];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&r,o=10;o<t.length;o++){var a=0|t.words[o];t.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,t.words[o-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(w,v),o(A,v),o(M,v),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,o=67108863&n;n>>>=26,t.words[r]=o,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,o),h=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),d=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<d);var g=this.pow(f,new i(1).iushln(d-y-1));h=h.redMul(g),f=g.redSqr(),p=p.redMul(f),d=y}return h},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new _(t)},o(_,E),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},7554:(t,e,r)=>{"use strict";var n=e;n.version=r(763).i8,n.utils=r(8288),n.rand=r(2745),n.curve=r(8610),n.curves=r(1479),n.ec=r(8596),n.eddsa=r(9208)},8919:(t,e,r)=>{"use strict";var n=r(2140),o=r(8288),i=o.getNAF,a=o.getJSF,s=o.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var r=t._getDoubles(),n=i(e,1,this._bitLength),o=(1<<r.step+1)-(r.step%2==0?2:1);o/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var l=a+r.step-1;l>=a;l--)u=(u<<1)+n[l];c.push(u)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),p=o;p>0;p--){for(a=0;a<c.length;a++)(u=c[a])===p?h=h.mixedAdd(r.points[a]):u===-p&&(h=h.mixedAdd(r.points[a].neg()));f=f.add(h)}return f.toP()},u.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var o=n.points,a=i(e,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var l=0;c>=0&&0===a[c];c--)l++;if(c>=0&&l++,u=u.dblp(l),c<0)break;var f=a[c];s(0!==f),u="affine"===t.type?f>0?u.mixedAdd(o[f-1>>1]):u.mixedAdd(o[-f-1>>1].neg()):f>0?u.add(o[f-1>>1]):u.add(o[-f-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,o){var s,u,c,l=this._wnafT1,f=this._wnafT2,h=this._wnafT3,p=0;for(s=0;s<n;s++){var d=(c=e[s])._getNAFPoints(t);l[s]=d.wnd,f[s]=d.points}for(s=n-1;s>=1;s-=2){var m=s-1,y=s;if(1===l[m]&&1===l[y]){var g=[e[m],null,null,e[y]];0===e[m].y.cmp(e[y].y)?(g[1]=e[m].add(e[y]),g[2]=e[m].toJ().mixedAdd(e[y].neg())):0===e[m].y.cmp(e[y].y.redNeg())?(g[1]=e[m].toJ().mixedAdd(e[y]),g[2]=e[m].add(e[y].neg())):(g[1]=e[m].toJ().mixedAdd(e[y]),g[2]=e[m].toJ().mixedAdd(e[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],b=a(r[m],r[y]);for(p=Math.max(b[0].length,p),h[m]=new Array(p),h[y]=new Array(p),u=0;u<p;u++){var w=0|b[0][u],A=0|b[1][u];h[m][u]=v[3*(w+1)+(A+1)],h[y][u]=0,f[m]=g}}else h[m]=i(r[m],l[m],this._bitLength),h[y]=i(r[y],l[y],this._bitLength),p=Math.max(h[m].length,p),p=Math.max(h[y].length,p)}var M=this.jpoint(null,null,null),E=this._wnafT4;for(s=p;s>=0;s--){for(var _=0;s>=0;){var C=!0;for(u=0;u<n;u++)E[u]=0|h[u][s],0!==E[u]&&(C=!1);if(!C)break;_++,s--}if(s>=0&&_++,M=M.dblp(_),s<0)break;for(u=0;u<n;u++){var S=E[u];0!==S&&(S>0?c=f[u][S-1>>1]:S<0&&(c=f[u][-S-1>>1].neg()),M="affine"===c.type?M.mixedAdd(c):M.add(c))}}for(s=0;s<n;s++)f[s]=null;return o?M:M.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=o.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?s(t[t.length-1]%2==0):7===t[0]&&s(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(t){return this.encode(t,!0)},c.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},c.prototype.encode=function(t,e){return o.encode(this._encode(e),t)},c.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},c.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o<e;o+=t){for(var i=0;i<t;i++)n=n.dbl();r.push(n)}return{step:t,points:r}},c.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),o=1;o<r;o++)e[o]=e[o-1].add(n);return{wnd:t,points:e}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},7105:(t,e,r)=>{"use strict";var n=r(8288),o=r(2140),i=r(1285),a=r(8919),s=n.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function c(t,e,r,n,i){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(e,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(e&&!u||!e&&u)&&(s=s.redNeg()),this.point(t,s)},u.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(o)},i(c,a.BasePoint),u.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new c(this,t,e,r,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),o=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),i=n.redAdd(e),a=i.redSub(r),s=n.redSub(e),u=o.redMul(a),c=i.redMul(s),l=o.redMul(s),f=a.redMul(i);return this.curve.point(u,c,f,l)},c.prototype._projDbl=function(){var t,e,r,n,o,i,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(t=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),e=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(o=this.z.redSqr(),i=c.redSub(o).redISub(o),t=a.redSub(s).redISub(u).redMul(i),e=c.redMul(n.redSub(u)),r=c.redMul(i))}else n=s.redAdd(u),o=this.curve._mulC(this.z).redSqr(),i=n.redSub(o).redSub(o),t=this.curve._mulC(a.redISub(n)).redMul(i),e=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(i);return this.curve.point(t,e,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),o=this.z.redMul(t.z.redAdd(t.z)),i=r.redSub(e),a=o.redSub(n),s=o.redAdd(n),u=r.redAdd(e),c=i.redMul(a),l=s.redMul(u),f=i.redMul(u),h=a.redMul(s);return this.curve.point(c,l,h,f)},c.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),o=n.redSqr(),i=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(i).redMul(a),u=o.redSub(s),c=o.redAdd(s),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(a),f=n.redMul(u).redMul(l);return this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(i))),r=u.redMul(c)):(e=n.redMul(c).redMul(a.redSub(i)),r=this.curve._mulC(u).redMul(c)),this.curve.point(f,e,r)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},c.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},8610:(t,e,r)=>{"use strict";var n=e;n.base=r(8919),n.short=r(7715),n.mont=r(5125),n.edwards=r(7105)},5125:(t,e,r)=>{"use strict";var n=r(2140),o=r(1285),i=r(8919),a=r(8288);function s(t){i.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,r){i.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(s,i),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},o(u,i.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),o=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,o)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),o=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(r),a=o.redMul(n),s=e.z.redMul(i.redAdd(a).redSqr()),u=e.x.redMul(i.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var i=o.length-1;i>=0;i--)0===o[i]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},7715:(t,e,r)=>{"use strict";var n=r(8288),o=r(2140),i=r(1285),a=r(8919),s=n.assert;function u(t){a.call(this,"short",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(t,e,r,n){a.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(e,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,r,n){a.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(e,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,r;if(t.beta)e=new o(t.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);e=(e=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(t.lambda)r=new o(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?r=i[0]:(r=i[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:r,basis:t.basis?t.basis.map((function(t){return{a:new o(t.a,16),b:new o(t.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.mont(t),r=new o(2).toRed(e).redInvm(),n=r.redNeg(),i=new o(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,r,n,i,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,p=this.n.clone(),d=new o(1),m=new o(0),y=new o(0),g=new o(1),v=0;0!==h.cmpn(0);){var b=p.div(h);c=p.sub(b.mul(h)),l=y.sub(b.mul(d));var w=g.sub(b.mul(m));if(!n&&c.cmp(f)<0)e=u.neg(),r=d,n=c.neg(),i=l;else if(n&&2==++v)break;u=c,p=h,h=c,y=d,d=l,g=m,m=w}a=c.neg(),s=l;var A=n.sqr().add(i.sqr());return a.sqr().add(s.sqr()).cmp(A)>=0&&(a=e,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],o=n.b.mul(t).divRound(this.n),i=r.b.neg().mul(t).divRound(this.n),a=o.mul(r.a),s=i.mul(n.a),u=o.mul(r.b),c=i.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(e&&!i||!e&&i)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i<t.length;i++){var a=this._endoSplit(e[i]),s=t[i],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*i]=s,n[2*i+1]=u,o[2*i]=a.k1,o[2*i+1]=a.k2}for(var c=this._wnafMulAdd(1,n,o,2*i,r),l=0;l<2*i;l++)n[l]=null,o[l]=null;return c},i(c,a.BasePoint),u.prototype.point=function(t,e,r){return new c(this,t,e,r)},u.prototype.pointFromJSON=function(t,e){return c.fromJSON(this,t,e)},c.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function o(e){return t.point(e[0],e[1],r)}var i=e[2];return n.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[n].concat(i.doubles.points.map(o))},naf:i.naf&&{wnd:i.naf.wnd,points:[n].concat(i.naf.points.map(o))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new o(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){var n=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},c.prototype.jmulAdd=function(t,e,r){var n=[this,e],o=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(l,a.BasePoint),u.prototype.jpoint=function(t,e,r){return new l(this,t,e,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),o=t.x.redMul(r),i=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(o),u=i.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),p=u.redMul(f.redISub(h)).redISub(i.redMul(l)),d=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,p,d)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),o=this.y,i=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=o.redSub(i);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(o.redMul(c)),p=this.z.redMul(a);return this.curve.jpoint(f,h,p)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,o=this.curve.tinv,i=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(e=0;e<t;e++){var l=i.redSqr(),f=c.redSqr(),h=f.redSqr(),p=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),d=i.redMul(f),m=p.redSqr().redISub(d.redAdd(d)),y=d.redISub(m),g=p.redMul(y);g=g.redIAdd(g).redISub(h);var v=c.redMul(s);e+1<t&&(u=u.redMul(h)),i=m,s=v,c=g}return this.curve.jpoint(i,c.redMul(o),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(n).redISub(i);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=i.redIAdd(i);c=(c=c.redIAdd(c)).redIAdd(c),t=u,e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(l).redISub(h);p=p.redIAdd(p);var d=l.redAdd(l).redIAdd(l),m=d.redSqr(),y=h.redIAdd(h);y=(y=y.redIAdd(y)).redIAdd(y),t=m.redISub(p).redISub(p),e=d.redMul(p.redISub(t)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},l.prototype._threeDbl=function(){var t,e,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(n).redISub(i);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var c=i.redIAdd(i);c=(c=c.redIAdd(c)).redIAdd(c),e=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),p=this.x.redSub(l).redMul(this.x.redAdd(l));p=p.redAdd(p).redIAdd(p);var d=h.redIAdd(h),m=(d=d.redIAdd(d)).redAdd(d);t=p.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var y=f.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),e=p.redMul(d.redISub(t)).redISub(y)}return this.curve.jpoint(t,e,r)},l.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,o=n.redSqr().redSqr(),i=e.redSqr(),a=r.redSqr(),s=i.redAdd(i).redIAdd(i).redIAdd(t.redMul(o)),u=e.redAdd(e),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=s.redMul(f).redISub(h),d=r.redAdd(r).redMul(n);return this.curve.jpoint(l,p,d)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),o=t.redAdd(t).redIAdd(t),i=o.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(i)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=o.redIAdd(a).redSqr().redISub(i).redISub(s).redISub(u),l=e.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,h,p)},l.prototype.mul=function(t,e){return t=new o(t,e),this.curve._wnafMul(this,t)},l.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),o=r.redMul(t.z);return 0===this.y.redMul(o).redISub(t.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),o=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},1479:(t,e,r)=>{"use strict";var n,o=e,i=r(3506),a=r(8610),s=r(8288).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var r=new u(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:r}),r}})}o.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(7983)}catch(t){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},8596:(t,e,r)=>{"use strict";var n=r(2140),o=r(8873),i=r(8288),a=r(1479),s=r(2745),u=i.assert,c=r(2307),l=r(1798);function f(t){if(!(this instanceof f))return new f(t);"string"==typeof t&&(u(Object.prototype.hasOwnProperty.call(a,t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=f,f.prototype.keyPair=function(t){return new c(this,t)},f.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},f.prototype.sign=function(t,e,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),c=new o({hash:this.hash,entropy:s,nonce:u,pers:i.pers,persEnc:i.persEnc||"utf8"}),f=this.n.sub(new n(1)),h=0;;h++){var p=i.k?i.k(h):new n(c.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(f)>=0)){var d=this.g.mul(p);if(!d.isInfinity()){var m=d.getX(),y=m.umod(this.n);if(0!==y.cmpn(0)){var g=p.invm(this.n).mul(y.mul(e.getPrivate()).iadd(t));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(d.getY().isOdd()?1:0)|(0!==m.cmp(y)?2:0);return i.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new l({r:y,s:g,recoveryParam:v})}}}}}},f.prototype.verify=function(t,e,r,o){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,o);var i=(e=new l(e,"hex")).r,a=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(t).umod(this.n),f=u.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},f.prototype.recoverPubKey=function(t,e,r,o){u((3&r)===r,"The recovery param is more than two bits"),e=new l(e,o);var i=this.n,a=new n(t),s=e.r,c=e.s,f=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var p=e.r.invm(i),d=i.sub(a).mul(p).umod(i),m=c.mul(p).umod(i);return this.g.mulAdd(d,s,m)},f.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new l(e,n)).recoveryParam)return e.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(t,e,o)}catch(t){continue}if(i.eq(r))return o}throw new Error("Unable to find valid recovery factor")}},2307:(t,e,r)=>{"use strict";var n=r(2140),o=r(8288).assert;function i(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=i,i.fromPublic=function(t,e,r){return e instanceof i?e:new i(t,{pub:e,pubEnc:r})},i.fromPrivate=function(t,e,r){return e instanceof i?e:new i(t,{priv:e,privEnc:r})},i.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},i.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},i.prototype.derive=function(t){return t.validate()||o(t.validate(),"public point not validated"),t.mul(this.priv).getX()},i.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},i.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},1798:(t,e,r)=>{"use strict";var n=r(2140),o=r(8288),i=o.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(i(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var o=0,i=0,a=e.place;i<n;i++,a++)o<<=8,o|=t[a],o>>>=0;return!(o<=127)&&(e.place=a,o)}function c(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128)t.push(e);else{var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=o.toArray(t,e);var r=new s;if(48!==t[r.place++])return!1;var i=u(t,r);if(!1===i)return!1;if(i+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var a=u(t,r);if(!1===a)return!1;var c=t.slice(r.place,a+r.place);if(r.place+=a,2!==t[r.place++])return!1;var l=u(t,r);if(!1===l)return!1;if(t.length!==l+r.place)return!1;var f=t.slice(r.place,l+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new n(c),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=c(e),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,e.length),(n=n.concat(e)).push(2),l(n,r.length);var i=n.concat(r),a=[48];return l(a,i.length),a=a.concat(i),o.encode(a,t)}},9208:(t,e,r)=>{"use strict";var n=r(3506),o=r(1479),i=r(8288),a=i.assert,s=i.parseBytes,u=r(851),c=r(6117);function l(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=o[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=l,l.prototype.sign=function(t,e){t=s(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),o=this.g.mul(n),i=this.encodePoint(o),a=this.hashInt(i,r.pubBytes(),t).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:u,Rencoded:i})},l.prototype.verify=function(t,e,r){t=s(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),o=this.hashInt(e.Rencoded(),n.pubBytes(),t),i=this.g.mul(e.S());return e.R().add(n.pub().mul(o)).eq(i)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return i.intFromLE(t.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},l.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},l.prototype.makeSignature=function(t){return t instanceof c?t:new c(this,t)},l.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},l.prototype.decodePoint=function(t){var e=(t=i.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=0!=(128&t[e]),o=i.intFromLE(r);return this.curve.pointFromY(o,n)},l.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(t){return i.intFromLE(t)},l.prototype.isPoint=function(t){return t instanceof this.pointClass}},851:(t,e,r)=>{"use strict";var n=r(8288),o=n.assert,i=n.parseBytes,a=n.cachedProperty;function s(t,e){this.eddsa=t,this._secret=i(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=i(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return o(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},s.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=s},6117:(t,e,r)=>{"use strict";var n=r(2140),o=r(8288),i=o.assert,a=o.cachedProperty,s=o.parseBytes;function u(t,e){this.eddsa=t,"object"!=typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),i(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},7983:t=>{t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},8288:(t,e,r)=>{"use strict";var n=e,o=r(2140),i=r(9561),a=r(3022);n.assert=i,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(t,e,r){var n=new Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var o=1<<e+1,i=t.clone(),a=0;a<n.length;a++){var s,u=i.andln(o-1);i.isOdd()?(s=u>(o>>1)-1?(o>>1)-u:u,i.isubn(s)):s=0,n[a]=s,i.iushrn(1)}return n},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n,o=0,i=0;t.cmpn(-o)>0||e.cmpn(-i)>0;){var a,s,u=t.andln(3)+o&3,c=e.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*o===a+1&&(o=1-o),2*i===s+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new o(t,"hex","le")}},2140:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(488).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,i=Math.min(t.length,r),a=e;a<i;a++){var s=t.charCodeAt(a)-48;o*=n,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<t.length&&(16===e?this._parseHex(t,o,r):(this._parseBase(t,e,o),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=e)n++;n--,o=o/e|0;for(var i=t.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var o=0|t.words[0],i=0|e.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;l+=(a=(o=0|t.words[d])*(i=0|e.words[p])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);r=0!=(i=s>>>24-o&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],p=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:l[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(i),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[i-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0,i=0;i<n.length;i++)e=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&e,o=e>>>26;for(;0!==o&&i<r.length;i++)e=(0|r.words[i])+o,this.words[i]=67108863&e,o=e>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)i=(e=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,o,i,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,p=0|a[1],d=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,A=b>>>13,M=0|a[4],E=8191&M,_=M>>>13,C=0|a[5],S=8191&C,k=C>>>13,x=0|a[6],O=8191&x,D=x>>>13,F=0|a[7],T=8191&F,j=F>>>13,P=0|a[8],R=8191&P,B=P>>>13,I=0|a[9],N=8191&I,$=I>>>13,L=0|s[0],U=8191&L,q=L>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Z=G>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,K=0|s[4],X=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,ot=0|s[6],it=8191&ot,at=ot>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,U))|0)+((8191&(o=(o=Math.imul(f,q))+Math.imul(h,U)|0))<<13)|0;c=((i=Math.imul(h,q))+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,U),o=(o=Math.imul(d,q))+Math.imul(m,U)|0,i=Math.imul(m,q);var gt=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(o=(o=o+Math.imul(f,H)|0)+Math.imul(h,V)|0))<<13)|0;c=((i=i+Math.imul(h,H)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),o=(o=Math.imul(g,q))+Math.imul(v,U)|0,i=Math.imul(v,q),n=n+Math.imul(d,V)|0,o=(o=o+Math.imul(d,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var vt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,W)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,q))+Math.imul(A,U)|0,i=Math.imul(A,q),n=n+Math.imul(g,V)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,H)|0,n=n+Math.imul(d,W)|0,o=(o=o+Math.imul(d,Z)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,Z)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,U),o=(o=Math.imul(E,q))+Math.imul(_,U)|0,i=Math.imul(_,q),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(g,W)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Z)|0,n=n+Math.imul(d,Q)|0,o=(o=o+Math.imul(d,Y)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Y)|0;var wt=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,tt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(S,U),o=(o=Math.imul(S,q))+Math.imul(k,U)|0,i=Math.imul(k,q),n=n+Math.imul(E,V)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(_,V)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(d,X)|0,o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var At=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((i=i+Math.imul(h,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,U),o=(o=Math.imul(O,q))+Math.imul(D,U)|0,i=Math.imul(D,q),n=n+Math.imul(S,V)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(g,X)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,i=i+Math.imul(m,nt)|0;var Mt=(c+(n=n+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,at)|0)+Math.imul(h,it)|0))<<13)|0;c=((i=i+Math.imul(h,at)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,U),o=(o=Math.imul(T,q))+Math.imul(j,U)|0,i=Math.imul(j,q),n=n+Math.imul(O,V)|0,o=(o=o+Math.imul(O,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,n=n+Math.imul(S,W)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,n=n+Math.imul(d,it)|0,o=(o=o+Math.imul(d,at)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(o=(o=o+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((i=i+Math.imul(h,ct)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,q))+Math.imul(B,U)|0,i=Math.imul(B,q),n=n+Math.imul(T,V)|0,o=(o=o+Math.imul(T,H)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Z)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,n=n+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,nt)|0)+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(g,it)|0,o=(o=o+Math.imul(g,at)|0)+Math.imul(v,it)|0,i=i+Math.imul(v,at)|0,n=n+Math.imul(d,ut)|0,o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ut)|0,i=i+Math.imul(m,ct)|0;var _t=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((i=i+Math.imul(h,ht)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,q))+Math.imul($,U)|0,i=Math.imul($,q),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,H)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,H)|0,n=n+Math.imul(T,W)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(j,W)|0,i=i+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,tt)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(E,rt)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,n=n+Math.imul(w,it)|0,o=(o=o+Math.imul(w,at)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,at)|0,n=n+Math.imul(g,ut)|0,o=(o=o+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,n=n+Math.imul(d,ft)|0,o=(o=o+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,i=i+Math.imul(m,ht)|0;var Ct=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(o=(o=o+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((i=i+Math.imul(h,mt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,V),o=(o=Math.imul(N,H))+Math.imul($,V)|0,i=Math.imul($,H),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(O,X)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,tt)|0,n=n+Math.imul(S,rt)|0,o=(o=o+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(E,it)|0,o=(o=o+Math.imul(E,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,n=n+Math.imul(w,ut)|0,o=(o=o+Math.imul(w,ct)|0)+Math.imul(A,ut)|0,i=i+Math.imul(A,ct)|0,n=n+Math.imul(g,ft)|0,o=(o=o+Math.imul(g,ht)|0)+Math.imul(v,ft)|0,i=i+Math.imul(v,ht)|0;var St=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((i=i+Math.imul(m,mt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Z))+Math.imul($,W)|0,i=Math.imul($,Z),n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(j,X)|0,i=i+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(D,rt)|0,i=i+Math.imul(D,nt)|0,n=n+Math.imul(S,it)|0,o=(o=o+Math.imul(S,at)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,at)|0,n=n+Math.imul(E,ut)|0,o=(o=o+Math.imul(E,ct)|0)+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,n=n+Math.imul(w,ft)|0,o=(o=o+Math.imul(w,ht)|0)+Math.imul(A,ft)|0,i=i+Math.imul(A,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul(v,dt)|0))<<13)|0;c=((i=i+Math.imul(v,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,Q),o=(o=Math.imul(N,Y))+Math.imul($,Q)|0,i=Math.imul($,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,tt)|0,n=n+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,nt)|0)+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,n=n+Math.imul(O,it)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(D,it)|0,i=i+Math.imul(D,at)|0,n=n+Math.imul(S,ut)|0,o=(o=o+Math.imul(S,ct)|0)+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,n=n+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,i=i+Math.imul(_,ht)|0;var xt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(A,dt)|0))<<13)|0;c=((i=i+Math.imul(A,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(N,X),o=(o=Math.imul(N,tt))+Math.imul($,X)|0,i=Math.imul($,tt),n=n+Math.imul(R,rt)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,n=n+Math.imul(T,it)|0,o=(o=o+Math.imul(T,at)|0)+Math.imul(j,it)|0,i=i+Math.imul(j,at)|0,n=n+Math.imul(O,ut)|0,o=(o=o+Math.imul(O,ct)|0)+Math.imul(D,ut)|0,i=i+Math.imul(D,ct)|0,n=n+Math.imul(S,ft)|0,o=(o=o+Math.imul(S,ht)|0)+Math.imul(k,ft)|0,i=i+Math.imul(k,ht)|0;var Ot=(c+(n=n+Math.imul(E,dt)|0)|0)+((8191&(o=(o=o+Math.imul(E,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((i=i+Math.imul(_,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,rt),o=(o=Math.imul(N,nt))+Math.imul($,rt)|0,i=Math.imul($,nt),n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,at)|0)+Math.imul(B,it)|0,i=i+Math.imul(B,at)|0,n=n+Math.imul(T,ut)|0,o=(o=o+Math.imul(T,ct)|0)+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,n=n+Math.imul(O,ft)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(D,ft)|0,i=i+Math.imul(D,ht)|0;var Dt=(c+(n=n+Math.imul(S,dt)|0)|0)+((8191&(o=(o=o+Math.imul(S,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((i=i+Math.imul(k,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(N,it),o=(o=Math.imul(N,at))+Math.imul($,it)|0,i=Math.imul($,at),n=n+Math.imul(R,ut)|0,o=(o=o+Math.imul(R,ct)|0)+Math.imul(B,ut)|0,i=i+Math.imul(B,ct)|0,n=n+Math.imul(T,ft)|0,o=(o=o+Math.imul(T,ht)|0)+Math.imul(j,ft)|0,i=i+Math.imul(j,ht)|0;var Ft=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(D,dt)|0))<<13)|0;c=((i=i+Math.imul(D,mt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(N,ut),o=(o=Math.imul(N,ct))+Math.imul($,ut)|0,i=Math.imul($,ct),n=n+Math.imul(R,ft)|0,o=(o=o+Math.imul(R,ht)|0)+Math.imul(B,ft)|0,i=i+Math.imul(B,ht)|0;var Tt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((i=i+Math.imul(j,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,ft),o=(o=Math.imul(N,ht))+Math.imul($,ft)|0,i=Math.imul($,ht);var jt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(o=(o=o+Math.imul(R,mt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((i=i+Math.imul(B,mt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Pt=(c+(n=Math.imul(N,dt))|0)+((8191&(o=(o=Math.imul(N,mt))+Math.imul($,dt)|0))<<13)|0;return c=((i=Math.imul($,mt))+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=bt,u[4]=wt,u[5]=At,u[6]=Mt,u[7]=Et,u[8]=_t,u[9]=Ct,u[10]=St,u[11]=kt,u[12]=xt,u[13]=Ot,u[14]=Dt,u[15]=Ft,u[16]=Tt,u[17]=jt,u[18]=Pt,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(d=p),i.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,e.length-1),c=Math.max(0,i-t.length+1);c<=u;c++){var l=i-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,t,e):m(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,o=0;o<e;o++)n|=(1&t)<<e-o-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,o,i){for(var a=0;a<i;a++)n[a]=e[t[a]],o[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,o,i){this.permute(i,t,e,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,p=0;p<a;p++){var d=r[l+p],m=n[l+p],y=r[l+p+a],g=n[l+p+a],v=f*y-h*g;g=f*g+h*y,y=v,r[l+p]=d+y,n[l+p]=m+g,r[l+p+a]=d-y,n[l+p+a]=m-g,p!==s&&(v=u*f-c*h,h=u*h+c*f,f=v)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=t[n];t[n]=t[r-n-1],t[r-n-1]=o,o=e[n],e[n]=-e[r-n-1],e[r-n-1]=-o}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var o=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&o,r=o<67108864?0:o/67108864|0}return t},y.prototype.convert13b=function(t,e,r,o){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,f,n,o);for(var p=0;p<n;p++){var d=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=d}return this.conjugate(s,u,n),this.transform(s,u,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,i=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,o=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,o=1<<e;return!(this.length<=r||!(this.words[r]&o))},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var o,i,a=t.length+r;this._expand(a);var s=0;for(o=0;o<t.length;o++){i=(0|this.words[o+r])+s;var u=(0|t.words[o])*e;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(e*r+(0|this.words[o]))%t;return r},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*e;this.words[r]=o/t|0,e=o%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=e.cmp(r);if(o<0){var i=e;e=r,r=i}else if(0===o||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,o=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|t.words[r];if(n!==o){n<o?e=-1:n>o&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},o(b,v),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),o=0;o<n;o++)e.words[o]=t.words[o];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&r,o=10;o<t.length;o++){var a=0|t.words[o];t.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,t.words[o-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(w,v),o(A,v),o(M,v),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,o=67108863&n;n>>>=26,t.words[r]=o,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,o),h=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),d=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<d);var g=this.pow(f,new i(1).iushln(d-y-1));h=h.redMul(g),f=g.redSqr(),p=p.redMul(f),d=y}return h},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new _(t)},o(_,E),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},2699:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(r,n){function o(r){t.removeListener(e,i),n(r)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}m(t,e,i,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function c(t,e,r,n){var o,i,a,c;if(s(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),void 0===a)a=i[e]=r,++t._eventsCount;else if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=u(t))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,c=l,console&&console.warn&&console.warn(c)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function h(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function m(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function o(i){n.once&&t.removeEventListener(e,o),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)n(u,this,e);else{var c=u.length,l=d(u,c);for(r=0;r<c;++r)n(l[r],this,e)}return!0},i.prototype.addListener=function(t,e){return c(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return c(this,t,e,!0)},i.prototype.once=function(t,e){return s(e),this.on(t,f(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,f(this,t,e)),this},i.prototype.removeListener=function(t,e){var r,n,o,i,a;if(s(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},i.prototype.listeners=function(t){return h(this,t,!0)},i.prototype.rawListeners=function(t){return h(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},9341:(t,e,r)=>{var n=r(7834).Buffer,o=r(7993);t.exports=function(t,e,r,i){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(i||0),c=n.alloc(0);a>0||i>0;){var l=new o;l.update(c),l.update(t),e&&l.update(e),c=l.digest();var f=0;if(a>0){var h=s.length-a;f=Math.min(a,c.length),c.copy(s,h,0,f),a-=f}if(f<c.length&&i>0){var p=u.length-i,d=Math.min(i,c.length-f);c.copy(u,p,f,f+d),i-=d}}return c.fill(0),{key:s,iv:u}}},3243:(t,e,r)=>{"use strict";var n=r(9680),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},s=function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},u=function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=r),"[object Array]"===o.call(t)?a(t,e,i):"string"==typeof t?s(t,e,i):u(t,e,i)}},7795:t=>{"use strict";var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";t.exports=function(t){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(e+i);for(var a,s=r.call(arguments,1),u=function(){if(this instanceof a){var e=i.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return i.apply(t,s.concat(r.call(arguments)))},c=Math.max(0,i.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var h=function(){};h.prototype=i.prototype,a.prototype=new h,h.prototype=null}return a}},4090:(t,e,r)=>{"use strict";var n=r(7795);t.exports=Function.prototype.bind||n},7286:(t,e,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=r(2636)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&(r=h(o.prototype))}return m[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(4090),b=r(3198),w=v.call(Function.call,Array.prototype.concat),A=v.call(Function.apply,Array.prototype.splice),M=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),_=v.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,k=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return M(t,C,(function(t,e,r,o){n[n.length]=r?M(o,S,"$1"):e||t})),n},x=function(t,e){var r,n=t;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(m,n)){var i=m[n];if(i===p&&(i=y(n)),void 0===i&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(t),n=r.length>0?r[0]:"",i=x("%"+n+"%",e),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],A(r,w([0,1],f)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],y=E(d,0,1),g=E(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&p||(l=!0),b(m,s="%"+(n+="."+d)+"%"))c=m[s];else if(null!=c){if(!(d in c)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var v=u(c,d);c=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[d]}else p=b(c,d),c=c[d];p&&!l&&(m[s]=c)}}return c}},2636:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(6679);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},6679:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7226:(t,e,r)=>{"use strict";var n=r(6679);t.exports=function(){return n()&&!!Symbol.toStringTag}},3198:(t,e,r)=>{"use strict";var n=r(4090);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},4485:(t,e,r)=>{"use strict";var n=r(529).Buffer,o=r(7525).Transform;function i(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(1285)(i,o),i.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},i.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,o=0;this._blockOffset+t.length-o>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=t[o++];this._update(),this._blockOffset=0}for(;o<t.length;)r[this._blockOffset++]=t[o++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},529:(t,e,r)=>{var n=r(8834),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},3506:(t,e,r)=>{var n=e;n.utils=r(212),n.common=r(4495),n.sha=r(5530),n.ripemd=r(1396),n.hmac=r(5047),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},4495:(t,e,r)=>{"use strict";var n=r(212),o=r(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=i,i.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,r=e-(t+this.padLength)%e,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(t<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=t>>>24&255,n[o++]=t>>>16&255,n[o++]=t>>>8&255,n[o++]=255&t}else for(n[o++]=255&t,n[o++]=t>>>8&255,n[o++]=t>>>16&255,n[o++]=t>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},5047:(t,e,r)=>{"use strict";var n=r(212),o=r(9561);function i(t,e,r){if(!(this instanceof i))return new i(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=i,i.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},i.prototype.update=function(t,e){return this.inner.update(t,e),this},i.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},1396:(t,e,r)=>{"use strict";var n=r(212),o=r(4495),i=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=o.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(t,e,r,n){return t<=15?e^r^n:t<=31?e&r|~e&n:t<=47?(e|~r)^n:t<=63?e&n|r&~n:e^(r|~n)}function h(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function p(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}n.inherits(l,c),e.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.h[0],n=this.h[1],o=this.h[2],c=this.h[3],l=this.h[4],v=r,b=n,w=o,A=c,M=l,E=0;E<80;E++){var _=a(i(u(r,f(E,n,o,c),t[d[E]+e],h(E)),y[E]),l);r=l,l=c,c=i(o,10),o=n,n=_,_=a(i(u(v,f(79-E,b,w,A),t[m[E]+e],p(E)),g[E]),M),v=M,M=A,A=i(w,10),w=b,b=_}_=s(this.h[1],o,A),this.h[1]=s(this.h[2],c,M),this.h[2]=s(this.h[3],l,v),this.h[3]=s(this.h[4],r,b),this.h[4]=s(this.h[0],n,w),this.h[0]=_},l.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},5530:(t,e,r)=>{"use strict";e.sha1=r(5079),e.sha224=r(3823),e.sha256=r(8032),e.sha384=r(5328),e.sha512=r(168)},5079:(t,e,r)=>{"use strict";var n=r(212),o=r(4495),i=r(713),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=i.ft_1,l=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,l),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],l=this.h[2],h=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var d=~~(n/20),m=u(a(o,5),c(d,i,l,h),p,r[n],f[d]);p=h,h=l,l=a(i,30),i=o,o=m}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],p)},h.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},3823:(t,e,r)=>{"use strict";var n=r(212),o=r(8032);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,o),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},8032:(t,e,r)=>{"use strict";var n=r(212),o=r(4495),i=r(713),a=r(9561),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=i.ch32,f=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,m=i.g1_256,y=o.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(v,y),t.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n<r.length;n++)r[n]=u(m(r[n-2]),r[n-7],d(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],y=this.h[2],g=this.h[3],v=this.h[4],b=this.h[5],w=this.h[6],A=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var M=c(A,p(v),l(v,b,w),this.k[n],r[n]),E=s(h(o),f(o,i,y));A=w,w=b,b=v,v=s(g,M),g=y,y=i,i=o,o=s(M,E)}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],A)},v.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},5328:(t,e,r)=>{"use strict";var n=r(212),o=r(168);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,o),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},168:(t,e,r)=>{"use strict";var n=r(212),o=r(4495),i=r(9561),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,l=n.sum64,f=n.sum64_hi,h=n.sum64_lo,p=n.sum64_4_hi,d=n.sum64_4_lo,m=n.sum64_5_hi,y=n.sum64_5_lo,g=o.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function w(t,e,r,n,o){var i=t&r^~t&o;return i<0&&(i+=4294967296),i}function A(t,e,r,n,o,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function M(t,e,r,n,o){var i=t&r^t&o^r&o;return i<0&&(i+=4294967296),i}function E(t,e,r,n,o,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function _(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function C(t,e){var r=s(t,e,28)^s(e,t,2)^s(e,t,7);return r<0&&(r+=4294967296),r}function S(t,e){var r=s(t,e,14)^s(t,e,18)^s(e,t,9);return r<0&&(r+=4294967296),r}function k(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function x(t,e){var r=s(t,e,1)^s(t,e,8)^c(t,e,7);return r<0&&(r+=4294967296),r}function O(t,e){var r=s(t,e,19)^s(e,t,29)^c(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(b,g),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n<r.length;n+=2){var o=(y=r[n-4],g=r[n-3],v=void 0,(v=a(y,g,19)^a(g,y,29)^u(y,g,6))<0&&(v+=4294967296),v),i=O(r[n-4],r[n-3]),s=r[n-14],c=r[n-13],l=k(r[n-30],r[n-29]),f=x(r[n-30],r[n-29]),h=r[n-32],m=r[n-31];r[n]=p(o,i,s,c,l,f,h,m),r[n+1]=d(o,i,s,c,l,f,h,m)}var y,g,v},b.prototype._update=function(t,e){this._prepareBlock(t,e);var r,n,o,s=this.W,u=this.h[0],c=this.h[1],p=this.h[2],d=this.h[3],g=this.h[4],v=this.h[5],b=this.h[6],k=this.h[7],x=this.h[8],O=this.h[9],D=this.h[10],F=this.h[11],T=this.h[12],j=this.h[13],P=this.h[14],R=this.h[15];i(this.k.length===s.length);for(var B=0;B<s.length;B+=2){var I=P,N=R,$=(o=void 0,(o=a(r=x,n=O,14)^a(r,n,18)^a(n,r,9))<0&&(o+=4294967296),o),L=S(x,O),U=w(x,0,D,0,T),q=A(0,O,0,F,0,j),z=this.k[B],V=this.k[B+1],H=s[B],G=s[B+1],W=m(I,N,$,L,U,q,z,V,H,G),Z=y(I,N,$,L,U,q,z,V,H,G);I=_(u,c),N=C(u,c),$=M(u,0,p,0,g),L=E(0,c,0,d,0,v);var J=f(I,N,$,L),Q=h(I,N,$,L);P=T,R=j,T=D,j=F,D=x,F=O,x=f(b,k,W,Z),O=h(k,k,W,Z),b=g,k=v,g=p,v=d,p=u,d=c,u=f(W,Z,J,Q),c=h(W,Z,J,Q)}l(this.h,0,u,c),l(this.h,2,p,d),l(this.h,4,g,v),l(this.h,6,b,k),l(this.h,8,x,O),l(this.h,10,D,F),l(this.h,12,T,j),l(this.h,14,P,R)},b.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},713:(t,e,r)=>{"use strict";var n=r(212).rotr32;function o(t,e,r){return t&e^~t&r}function i(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?o(e,r,n):1===t||3===t?a(e,r,n):2===t?i(e,r,n):void 0},e.ch32=o,e.maj32=i,e.p32=a,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},212:(t,e,r)=>{"use strict";var n=r(9561),o=r(1285);function i(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o<t.length;o+=2)r.push(parseInt(t[o]+t[o+1],16))}else for(var n=0,o=0;o<t.length;o++){var a=t.charCodeAt(o);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):i(t,o)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(o=0;o<t.length;o++)r[o]=0|t[o];return r},e.toHex=function(t){for(var e="",r=0;r<t.length;r++)e+=s(t[r].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var r="",n=0;n<t.length;n++){var o=t[n];"little"===e&&(o=a(o)),r+=u(o.toString(16))}return r},e.zero2=s,e.zero8=u,e.join32=function(t,e,r,o){var i=r-e;n(i%4==0);for(var a=new Array(i/4),s=0,u=e;s<a.length;s++,u+=4){var c;c="big"===o?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[s]=c>>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,o=0;n<t.length;n++,o+=4){var i=t[n];"big"===e?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,o){return t+e+r+n+o>>>0},e.sum64=function(t,e,r,n){var o=t[e],i=n+t[e+1]>>>0,a=(i<n?1:0)+r+o;t[e]=a>>>0,t[e+1]=i},e.sum64_hi=function(t,e,r,n){return(e+n>>>0<e?1:0)+t+r>>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,o,i,a,s){var u=0,c=e;return u+=(c=c+n>>>0)<e?1:0,u+=(c=c+i>>>0)<i?1:0,t+r+o+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,r,n,o,i,a,s){return e+n+i+s>>>0},e.sum64_5_hi=function(t,e,r,n,o,i,a,s,u,c){var l=0,f=e;return l+=(f=f+n>>>0)<e?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+s>>>0)<s?1:0,t+r+o+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},e.sum64_5_lo=function(t,e,r,n,o,i,a,s,u,c){return e+n+i+s+c>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},8873:(t,e,r)=>{"use strict";var n=r(3506),o=r(3022),i=r(9561);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),r=o.toArray(t.nonce,t.nonceEnc||"hex"),n=o.toArray(t.pers,t.persEnc||"hex");i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=o.toArray(t,e),r=o.toArray(r,n),i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,t);return this._update(r),this._reseed++,o.encode(a,e)}},2333:(t,e)=>{e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+t[e+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[r+p]=255&a,p+=d,a/=256,c-=8);t[r+p-d]|=128*m}},1285:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},2635:(t,e,r)=>{"use strict";var n=r(7226)(),o=r(2680)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=s?i:a},9680:t=>{"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(f=function(t){if((l||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},3138:(t,e,r)=>{"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(7226)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(i.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},198:(t,e,r)=>{"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},f=i("String.prototype.slice"),h={},p=r(9765),d=Object.getPrototypeOf;s&&p&&d&&n(c,(function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=p(r,Symbol.toStringTag);if(!n){var o=d(r);n=p(o,Symbol.toStringTag)}h[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=f(a(t),8,-1);return l(c,e)>-1}return!!p&&function(t){var e=!1;return n(h,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},251:(t,e,r)=>{"use strict";function n(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach((function(e){e&&Object.keys(e).forEach((function(r){t[r]=e[r]}))})),t}function o(t){return Object.prototype.toString.call(t)}function i(t){return"[object Function]"===o(t)}function a(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},u={"http:":{validate:function(t,e,r){var n=t.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,r){var n=t.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?e>=3&&":"===t[e-3]||e>=3&&"/"===t[e-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,r){var n=t.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function l(t){var e=t.re=r(7998)(t.__opts__),n=t.__tlds__.slice();function s(t){return t.replace("%TLDS%",e.src_tlds)}t.onCompile(),t.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(e.src_xn),e.src_tlds=n.join("|"),e.email_fuzzy=RegExp(s(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(s(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(s(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(s(e.tpl_host_fuzzy_test),"i");var u=[];function c(t,e){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+e)}t.__compiled__={},Object.keys(t.__schemas__).forEach((function(e){var r=t.__schemas__[e];if(null!==r){var n={validate:null,link:null};if(t.__compiled__[e]=n,"[object Object]"===o(r))return"[object RegExp]"!==o(r.validate)?i(r.validate)?n.validate=r.validate:c(e,r):n.validate=function(t){return function(e,r){var n=e.slice(r);return t.test(n)?n.match(t)[0].length:0}}(r.validate),void(i(r.normalize)?n.normalize=r.normalize:r.normalize?c(e,r):n.normalize=function(t,e){e.normalize(t)});!function(t){return"[object String]"===o(t)}(r)?c(e,r):u.push(e)}})),u.forEach((function(e){t.__compiled__[t.__schemas__[e]]&&(t.__compiled__[e].validate=t.__compiled__[t.__schemas__[e]].validate,t.__compiled__[e].normalize=t.__compiled__[t.__schemas__[e]].normalize)})),t.__compiled__[""]={validate:null,normalize:function(t,e){e.normalize(t)}};var l=Object.keys(t.__compiled__).filter((function(e){return e.length>0&&t.__compiled__[e]})).map(a).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),function(t){t.__index__=-1,t.__text_cache__=""}(t)}function f(t,e){var r=t.__index__,n=t.__last_index__,o=t.__text_cache__.slice(r,n);this.schema=t.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=o,this.text=o,this.url=o}function h(t,e){var r=new f(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function p(t,e){if(!(this instanceof p))return new p(t,e);var r;e||(r=t,Object.keys(r||{}).reduce((function(t,e){return t||s.hasOwnProperty(e)}),!1)&&(e=t,t={})),this.__opts__=n({},s,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},u,t),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},l(this)}p.prototype.add=function(t,e){return this.__schemas__[t]=e,l(this),this},p.prototype.set=function(t){return this.__opts__=n(this.__opts__,t),this},p.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var e,r,n,o,i,a,s,u;if(this.re.schema_test.test(t))for((s=this.re.schema_search).lastIndex=0;null!==(e=s.exec(t));)if(o=this.testSchemaAt(t,e[2],s.lastIndex)){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&null!==(n=t.match(this.re.email_fuzzy))&&(i=n.index+n[1].length,a=n.index+n[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},p.prototype.pretest=function(t){return this.re.pretest.test(t)},p.prototype.testSchemaAt=function(t,e,r){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,r,this):0},p.prototype.match=function(t){var e=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(h(this,e)),e=this.__last_index__);for(var n=e?t.slice(e):t;this.test(n);)r.push(h(this,e)),n=n.slice(this.__last_index__),e+=this.__last_index__;return r.length?r:null},p.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,e,r){return t!==r[e-1]})).reverse(),l(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,l(this),this)},p.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},p.prototype.onCompile=function(){},t.exports=p},7998:(t,e,r)=>{"use strict";t.exports=function(t){var e={};return e.src_Any=r(3530).source,e.src_Cc=r(6889).source,e.src_Z=r(8442).source,e.src_P=r(7062).source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|"),e.src_pseudo_letter="(?:(?![><|]|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|[><|]|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy='(^|[><|]|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}},3054:(t,e,r)=>{"use strict";t.exports=r(1671)},3906:(t,e,r)=>{"use strict";t.exports=r(2059)},5373:t=>{"use strict";t.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},9372:t=>{"use strict";var e="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",n=new RegExp("^(?:"+e+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+e+"|"+r+")");t.exports.n=n,t.exports.q=o},5292:(t,e,r)=>{"use strict";var n=Object.prototype.hasOwnProperty;function o(t,e){return n.call(t,e)}function i(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||65535==(65535&t)||65534==(65535&t)||t>=0&&t<=8||11===t||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function a(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=r(3906),f=/[&<>"]/,h=/[&<>"]/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function d(t){return p[t]}var m=/[.?*+^$[\]\\(){}|-]/g,y=r(7062);e.lib={},e.lib.mdurl=r(4976),e.lib.ucmicro=r(8579),e.assign=function(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(r){t[r]=e[r]}))}})),t},e.isString=function(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)},e.has=o,e.unescapeMd=function(t){return t.indexOf("\\")<0?t:t.replace(s,"$1")},e.unescapeAll=function(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(u,(function(t,e,r){return e||function(t,e){var r=0;return o(l,e)?l[e]:35===e.charCodeAt(0)&&c.test(e)&&i(r="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?a(r):t}(t,r)}))},e.isValidEntityCode=i,e.fromCodePoint=a,e.escapeHtml=function(t){return f.test(t)?t.replace(h,d):t},e.arrayReplaceAt=function(t,e,r){return[].concat(t.slice(0,e),r,t.slice(e+1))},e.isSpace=function(t){switch(t){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(t){return y.test(t)},e.escapeRE=function(t){return t.replace(m,"\\$&")},e.normalizeReference=function(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}},4960:(t,e,r)=>{"use strict";e.parseLinkLabel=r(1519),e.parseLinkDestination=r(5361),e.parseLinkTitle=r(5477)},5361:(t,e,r)=>{"use strict";var n=r(5292).unescapeAll;t.exports=function(t,e,r){var o,i,a=e,s={ok:!1,pos:0,lines:0,str:""};if(60===t.charCodeAt(e)){for(e++;e<r;){if(10===(o=t.charCodeAt(e)))return s;if(60===o)return s;if(62===o)return s.pos=e+1,s.str=n(t.slice(a+1,e)),s.ok=!0,s;92===o&&e+1<r?e+=2:e++}return s}for(i=0;e<r&&32!==(o=t.charCodeAt(e))&&!(o<32||127===o);)if(92===o&&e+1<r){if(32===t.charCodeAt(e+1))break;e+=2}else{if(40===o&&++i>32)return s;if(41===o){if(0===i)break;i--}e++}return a===e||0!==i||(s.str=n(t.slice(a,e)),s.lines=0,s.pos=e,s.ok=!0),s}},1519:t=>{"use strict";t.exports=function(t,e,r){var n,o,i,a,s=-1,u=t.posMax,c=t.pos;for(t.pos=e+1,n=1;t.pos<u;){if(93===(i=t.src.charCodeAt(t.pos))&&0==--n){o=!0;break}if(a=t.pos,t.md.inline.skipToken(t),91===i)if(a===t.pos-1)n++;else if(r)return t.pos=c,-1}return o&&(s=t.pos),t.pos=c,s}},5477:(t,e,r)=>{"use strict";var n=r(5292).unescapeAll;t.exports=function(t,e,r){var o,i,a=0,s=e,u={ok:!1,pos:0,lines:0,str:""};if(e>=r)return u;if(34!==(i=t.charCodeAt(e))&&39!==i&&40!==i)return u;for(e++,40===i&&(i=41);e<r;){if((o=t.charCodeAt(e))===i)return u.pos=e+1,u.lines=a,u.str=n(t.slice(s+1,e)),u.ok=!0,u;if(40===o&&41===i)return u;10===o?a++:92===o&&e+1<r&&(e++,10===t.charCodeAt(e)&&a++),e++}return u}},1671:(t,e,r)=>{"use strict";var n=r(5292),o=r(4960),i=r(3931),a=r(8777),s=r(9101),u=r(4197),c=r(251),l=r(4976),f=r(8058),h={default:r(1602),zero:r(8373),commonmark:r(5112)},p=/^(vbscript|javascript|file|data):/,d=/^data:image\/(gif|png|jpeg|webp);/;function m(t){var e=t.trim().toLowerCase();return!p.test(e)||!!d.test(e)}var y=["http:","https:","mailto:"];function g(t){var e=l.parse(t,!0);if(e.hostname&&(!e.protocol||y.indexOf(e.protocol)>=0))try{e.hostname=f.toASCII(e.hostname)}catch(t){}return l.encode(l.format(e))}function v(t){var e=l.parse(t,!0);if(e.hostname&&(!e.protocol||y.indexOf(e.protocol)>=0))try{e.hostname=f.toUnicode(e.hostname)}catch(t){}return l.decode(l.format(e),l.decode.defaultChars+"%")}function b(t,e){if(!(this instanceof b))return new b(t,e);e||n.isString(t)||(e=t||{},t="default"),this.inline=new u,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new c,this.validateLink=m,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=n,this.helpers=n.assign({},o),this.options={},this.configure(t),e&&this.set(e)}b.prototype.set=function(t){return n.assign(this.options,t),this},b.prototype.configure=function(t){var e,r=this;if(n.isString(t)&&!(t=h[e=t]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&r.set(t.options),t.components&&Object.keys(t.components).forEach((function(e){t.components[e].rules&&r[e].ruler.enableOnly(t.components[e].rules),t.components[e].rules2&&r[e].ruler2.enableOnly(t.components[e].rules2)})),this},b.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){r=r.concat(this[e].ruler.enable(t,!0))}),this),r=r.concat(this.inline.ruler2.enable(t,!0));var n=t.filter((function(t){return r.indexOf(t)<0}));if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},b.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){r=r.concat(this[e].ruler.disable(t,!0))}),this),r=r.concat(this.inline.ruler2.disable(t,!0));var n=t.filter((function(t){return r.indexOf(t)<0}));if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},b.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},b.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens},b.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},b.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens},b.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)},t.exports=b},9101:(t,e,r)=>{"use strict";var n=r(1390),o=[["table",r(3031),["paragraph","reference"]],["code",r(1094)],["fence",r(5883),["paragraph","reference","blockquote","list"]],["blockquote",r(4261),["paragraph","reference","blockquote","list"]],["hr",r(1208),["paragraph","reference","blockquote","list"]],["list",r(1551),["paragraph","reference","blockquote"]],["reference",r(4600)],["html_block",r(5231),["paragraph","reference","blockquote"]],["heading",r(4758),["paragraph","reference","blockquote"]],["lheading",r(8971)],["paragraph",r(2248)]];function i(){this.ruler=new n;for(var t=0;t<o.length;t++)this.ruler.push(o[t][0],o[t][1],{alt:(o[t][2]||[]).slice()})}i.prototype.tokenize=function(t,e,r){for(var n,o=this.ruler.getRules(""),i=o.length,a=e,s=!1,u=t.md.options.maxNesting;a<r&&(t.line=a=t.skipEmptyLines(a),!(a>=r))&&!(t.sCount[a]<t.blkIndent);){if(t.level>=u){t.line=r;break}for(n=0;n<i&&!o[n](t,a,r,!1);n++);t.tight=!s,t.isEmpty(t.line-1)&&(s=!0),(a=t.line)<r&&t.isEmpty(a)&&(s=!0,a++,t.line=a)}},i.prototype.parse=function(t,e,r,n){var o;t&&(o=new this.State(t,e,r,n),this.tokenize(o,o.line,o.lineMax))},i.prototype.State=r(9043),t.exports=i},8777:(t,e,r)=>{"use strict";var n=r(1390),o=[["normalize",r(7244)],["block",r(2304)],["inline",r(4059)],["linkify",r(9357)],["replacements",r(8277)],["smartquotes",r(2508)]];function i(){this.ruler=new n;for(var t=0;t<o.length;t++)this.ruler.push(o[t][0],o[t][1])}i.prototype.process=function(t){var e,r,n;for(e=0,r=(n=this.ruler.getRules("")).length;e<r;e++)n[e](t)},i.prototype.State=r(7811),t.exports=i},4197:(t,e,r)=>{"use strict";var n=r(1390),o=[["text",r(1414)],["newline",r(4537)],["escape",r(8199)],["backticks",r(8706)],["strikethrough",r(338).w],["emphasis",r(7147).w],["link",r(6267)],["image",r(2641)],["autolink",r(1858)],["html_inline",r(3095)],["entity",r(5796)]],i=[["balance_pairs",r(2877)],["strikethrough",r(338).g],["emphasis",r(7147).g],["text_collapse",r(3659)]];function a(){var t;for(this.ruler=new n,t=0;t<o.length;t++)this.ruler.push(o[t][0],o[t][1]);for(this.ruler2=new n,t=0;t<i.length;t++)this.ruler2.push(i[t][0],i[t][1])}a.prototype.skipToken=function(t){var e,r,n=t.pos,o=this.ruler.getRules(""),i=o.length,a=t.md.options.maxNesting,s=t.cache;if(void 0===s[n]){if(t.level<a)for(r=0;r<i&&(t.level++,e=o[r](t,!0),t.level--,!e);r++);else t.pos=t.posMax;e||t.pos++,s[n]=t.pos}else t.pos=s[n]},a.prototype.tokenize=function(t){for(var e,r,n=this.ruler.getRules(""),o=n.length,i=t.posMax,a=t.md.options.maxNesting;t.pos<i;){if(t.level<a)for(r=0;r<o&&!(e=n[r](t,!1));r++);if(e){if(t.pos>=i)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},a.prototype.parse=function(t,e,r,n){var o,i,a,s=new this.State(t,e,r,n);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,o=0;o<a;o++)i[o](s)},a.prototype.State=r(1245),t.exports=a},5112:t=>{"use strict";t.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},1602:t=>{"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},8373:t=>{"use strict";t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},3931:(t,e,r)=>{"use strict";var n=r(5292).assign,o=r(5292).unescapeAll,i=r(5292).escapeHtml,a={};function s(){this.rules=n({},a)}a.code_inline=function(t,e,r,n,o){var a=t[e];return"<code"+o.renderAttrs(a)+">"+i(t[e].content)+"</code>"},a.code_block=function(t,e,r,n,o){var a=t[e];return"<pre"+o.renderAttrs(a)+"><code>"+i(t[e].content)+"</code></pre>\n"},a.fence=function(t,e,r,n,a){var s,u,c,l,f,h=t[e],p=h.info?o(h.info).trim():"",d="",m="";return p&&(d=(c=p.split(/(\s+)/g))[0],m=c.slice(2).join("")),0===(s=r.highlight&&r.highlight(h.content,d,m)||i(h.content)).indexOf("<pre")?s+"\n":p?(u=h.attrIndex("class"),l=h.attrs?h.attrs.slice():[],u<0?l.push(["class",r.langPrefix+d]):(l[u]=l[u].slice(),l[u][1]+=" "+r.langPrefix+d),f={attrs:l},"<pre><code"+a.renderAttrs(f)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(h)+">"+s+"</code></pre>\n"},a.image=function(t,e,r,n,o){var i=t[e];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,r,n),o.renderToken(t,e,r)},a.hardbreak=function(t,e,r){return r.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(t,e){return i(t[e].content)},a.html_block=function(t,e){return t[e].content},a.html_inline=function(t,e){return t[e].content},s.prototype.renderAttrs=function(t){var e,r,n;if(!t.attrs)return"";for(n="",e=0,r=t.attrs.length;e<r;e++)n+=" "+i(t.attrs[e][0])+'="'+i(t.attrs[e][1])+'"';return n},s.prototype.renderToken=function(t,e,r){var n,o="",i=!1,a=t[e];return a.hidden?"":(a.block&&-1!==a.nesting&&e&&t[e-1].hidden&&(o+="\n"),o+=(-1===a.nesting?"</":"<")+a.tag,o+=this.renderAttrs(a),0===a.nesting&&r.xhtmlOut&&(o+=" /"),a.block&&(i=!0,1===a.nesting&&e+1<t.length&&("inline"===(n=t[e+1]).type||n.hidden||-1===n.nesting&&n.tag===a.tag)&&(i=!1)),o+=i?">\n":">")},s.prototype.renderInline=function(t,e,r){for(var n,o="",i=this.rules,a=0,s=t.length;a<s;a++)void 0!==i[n=t[a].type]?o+=i[n](t,a,e,r,this):o+=this.renderToken(t,a,e);return o},s.prototype.renderInlineAsText=function(t,e,r){for(var n="",o=0,i=t.length;o<i;o++)"text"===t[o].type?n+=t[o].content:"image"===t[o].type?n+=this.renderInlineAsText(t[o].children,e,r):"softbreak"===t[o].type&&(n+="\n");return n},s.prototype.render=function(t,e,r){var n,o,i,a="",s=this.rules;for(n=0,o=t.length;n<o;n++)"inline"===(i=t[n].type)?a+=this.renderInline(t[n].children,e,r):void 0!==s[i]?a+=s[t[n].type](t,n,e,r,this):a+=this.renderToken(t,n,e,r);return a},t.exports=s},1390:t=>{"use strict";function e(){this.__rules__=[],this.__cache__=null}e.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},e.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach((function(t){t.enabled&&t.alt.forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})),t.__cache__={},e.forEach((function(e){t.__cache__[e]=[],t.__rules__.forEach((function(r){r.enabled&&(e&&r.alt.indexOf(e)<0||t.__cache__[e].push(r.fn))}))}))},e.prototype.at=function(t,e,r){var n=this.__find__(t),o=r||{};if(-1===n)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null},e.prototype.before=function(t,e,r,n){var o=this.__find__(t),i=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},e.prototype.after=function(t,e,r,n){var o=this.__find__(t),i=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},e.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach((function(t){var n=this.__find__(t);if(n<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[n].enabled=!0,r.push(t)}),this),this.__cache__=null,r},e.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach((function(t){t.enabled=!1})),this.enable(t,e)},e.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach((function(t){var n=this.__find__(t);if(n<0){if(e)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[n].enabled=!1,r.push(t)}),this),this.__cache__=null,r},e.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},t.exports=e},4261:(t,e,r)=>{"use strict";var n=r(5292).isSpace;t.exports=function(t,e,r,o){var i,a,s,u,c,l,f,h,p,d,m,y,g,v,b,w,A,M,E,_,C=t.lineMax,S=t.bMarks[e]+t.tShift[e],k=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(62!==t.src.charCodeAt(S++))return!1;if(o)return!0;for(u=p=t.sCount[e]+1,32===t.src.charCodeAt(S)?(S++,u++,p++,i=!1,w=!0):9===t.src.charCodeAt(S)?(w=!0,(t.bsCount[e]+p)%4==3?(S++,u++,p++,i=!1):i=!0):w=!1,d=[t.bMarks[e]],t.bMarks[e]=S;S<k&&(a=t.src.charCodeAt(S),n(a));)9===a?p+=4-(p+t.bsCount[e]+(i?1:0))%4:p++,S++;for(m=[t.bsCount[e]],t.bsCount[e]=t.sCount[e]+1+(w?1:0),l=S>=k,v=[t.sCount[e]],t.sCount[e]=p-u,b=[t.tShift[e]],t.tShift[e]=S-t.bMarks[e],M=t.md.block.ruler.getRules("blockquote"),g=t.parentType,t.parentType="blockquote",h=e+1;h<r&&(_=t.sCount[h]<t.blkIndent,!((S=t.bMarks[h]+t.tShift[h])>=(k=t.eMarks[h])));h++)if(62!==t.src.charCodeAt(S++)||_){if(l)break;for(A=!1,s=0,c=M.length;s<c;s++)if(M[s](t,h,r,!0)){A=!0;break}if(A){t.lineMax=h,0!==t.blkIndent&&(d.push(t.bMarks[h]),m.push(t.bsCount[h]),b.push(t.tShift[h]),v.push(t.sCount[h]),t.sCount[h]-=t.blkIndent);break}d.push(t.bMarks[h]),m.push(t.bsCount[h]),b.push(t.tShift[h]),v.push(t.sCount[h]),t.sCount[h]=-1}else{for(u=p=t.sCount[h]+1,32===t.src.charCodeAt(S)?(S++,u++,p++,i=!1,w=!0):9===t.src.charCodeAt(S)?(w=!0,(t.bsCount[h]+p)%4==3?(S++,u++,p++,i=!1):i=!0):w=!1,d.push(t.bMarks[h]),t.bMarks[h]=S;S<k&&(a=t.src.charCodeAt(S),n(a));)9===a?p+=4-(p+t.bsCount[h]+(i?1:0))%4:p++,S++;l=S>=k,m.push(t.bsCount[h]),t.bsCount[h]=t.sCount[h]+1+(w?1:0),v.push(t.sCount[h]),t.sCount[h]=p-u,b.push(t.tShift[h]),t.tShift[h]=S-t.bMarks[h]}for(y=t.blkIndent,t.blkIndent=0,(E=t.push("blockquote_open","blockquote",1)).markup=">",E.map=f=[e,0],t.md.block.tokenize(t,e,h),(E=t.push("blockquote_close","blockquote",-1)).markup=">",t.lineMax=C,t.parentType=g,f[1]=t.line,s=0;s<b.length;s++)t.bMarks[s+e]=d[s],t.tShift[s+e]=b[s],t.sCount[s+e]=v[s],t.bsCount[s+e]=m[s];return t.blkIndent=y,!0}},1094:t=>{"use strict";t.exports=function(t,e,r){var n,o,i;if(t.sCount[e]-t.blkIndent<4)return!1;for(o=n=e+1;n<r;)if(t.isEmpty(n))n++;else{if(!(t.sCount[n]-t.blkIndent>=4))break;o=++n}return t.line=o,(i=t.push("code_block","code",0)).content=t.getLines(e,o,4+t.blkIndent,!1)+"\n",i.map=[e,t.line],!0}},5883:t=>{"use strict";t.exports=function(t,e,r,n){var o,i,a,s,u,c,l,f=!1,h=t.bMarks[e]+t.tShift[e],p=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(h+3>p)return!1;if(126!==(o=t.src.charCodeAt(h))&&96!==o)return!1;if(u=h,(i=(h=t.skipChars(h,o))-u)<3)return!1;if(l=t.src.slice(u,h),a=t.src.slice(h,p),96===o&&a.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;for(s=e;!(++s>=r||(h=u=t.bMarks[s]+t.tShift[s])<(p=t.eMarks[s])&&t.sCount[s]<t.blkIndent);)if(t.src.charCodeAt(h)===o&&!(t.sCount[s]-t.blkIndent>=4||(h=t.skipChars(h,o))-u<i||(h=t.skipSpaces(h))<p)){f=!0;break}return i=t.sCount[e],t.line=s+(f?1:0),(c=t.push("fence","code",0)).info=a,c.content=t.getLines(e+1,s,i,!0),c.markup=l,c.map=[e,t.line],!0}},4758:(t,e,r)=>{"use strict";var n=r(5292).isSpace;t.exports=function(t,e,r,o){var i,a,s,u,c=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(35!==(i=t.src.charCodeAt(c))||c>=l)return!1;for(a=1,i=t.src.charCodeAt(++c);35===i&&c<l&&a<=6;)a++,i=t.src.charCodeAt(++c);return!(a>6||c<l&&!n(i)||(o||(l=t.skipSpacesBack(l,c),(s=t.skipCharsBack(l,35,c))>c&&n(t.src.charCodeAt(s-1))&&(l=s),t.line=e+1,(u=t.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),u.map=[e,t.line],(u=t.push("inline","",0)).content=t.src.slice(c,l).trim(),u.map=[e,t.line],u.children=[],(u=t.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}},1208:(t,e,r)=>{"use strict";var n=r(5292).isSpace;t.exports=function(t,e,r,o){var i,a,s,u,c=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(42!==(i=t.src.charCodeAt(c++))&&45!==i&&95!==i)return!1;for(a=1;c<l;){if((s=t.src.charCodeAt(c++))!==i&&!n(s))return!1;s===i&&a++}return!(a<3||(o||(t.line=e+1,(u=t.push("hr","hr",0)).map=[e,t.line],u.markup=Array(a+1).join(String.fromCharCode(i))),0))}},5231:(t,e,r)=>{"use strict";var n=r(5373),o=r(9372).q,i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+n.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];t.exports=function(t,e,r,n){var o,a,s,u,c=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(c))return!1;for(u=t.src.slice(c,l),o=0;o<i.length&&!i[o][0].test(u);o++);if(o===i.length)return!1;if(n)return i[o][2];if(a=e+1,!i[o][1].test(u))for(;a<r&&!(t.sCount[a]<t.blkIndent);a++)if(c=t.bMarks[a]+t.tShift[a],l=t.eMarks[a],u=t.src.slice(c,l),i[o][1].test(u)){0!==u.length&&a++;break}return t.line=a,(s=t.push("html_block","",0)).map=[e,a],s.content=t.getLines(e,a,t.blkIndent,!0),!0}},8971:t=>{"use strict";t.exports=function(t,e,r){var n,o,i,a,s,u,c,l,f,h,p=e+1,d=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;for(h=t.parentType,t.parentType="paragraph";p<r&&!t.isEmpty(p);p++)if(!(t.sCount[p]-t.blkIndent>3)){if(t.sCount[p]>=t.blkIndent&&(u=t.bMarks[p]+t.tShift[p])<(c=t.eMarks[p])&&(45===(f=t.src.charCodeAt(u))||61===f)&&(u=t.skipChars(u,f),(u=t.skipSpaces(u))>=c)){l=61===f?1:2;break}if(!(t.sCount[p]<0)){for(o=!1,i=0,a=d.length;i<a;i++)if(d[i](t,p,r,!0)){o=!0;break}if(o)break}}return!!l&&(n=t.getLines(e,p,t.blkIndent,!1).trim(),t.line=p+1,(s=t.push("heading_open","h"+String(l),1)).markup=String.fromCharCode(f),s.map=[e,t.line],(s=t.push("inline","",0)).content=n,s.map=[e,t.line-1],s.children=[],(s=t.push("heading_close","h"+String(l),-1)).markup=String.fromCharCode(f),t.parentType=h,!0)}},1551:(t,e,r)=>{"use strict";var n=r(5292).isSpace;function o(t,e){var r,o,i,a;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],42!==(r=t.src.charCodeAt(o++))&&45!==r&&43!==r||o<i&&(a=t.src.charCodeAt(o),!n(a))?-1:o}function i(t,e){var r,o=t.bMarks[e]+t.tShift[e],i=o,a=t.eMarks[e];if(i+1>=a)return-1;if((r=t.src.charCodeAt(i++))<48||r>57)return-1;for(;;){if(i>=a)return-1;if(!((r=t.src.charCodeAt(i++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(i-o>=10)return-1}return i<a&&(r=t.src.charCodeAt(i),!n(r))?-1:i}t.exports=function(t,e,r,n){var a,s,u,c,l,f,h,p,d,m,y,g,v,b,w,A,M,E,_,C,S,k,x,O,D,F,T,j,P=!1,R=!0;if(t.sCount[e]-t.blkIndent>=4)return!1;if(t.listIndent>=0&&t.sCount[e]-t.listIndent>=4&&t.sCount[e]<t.blkIndent)return!1;if(n&&"paragraph"===t.parentType&&t.sCount[e]>=t.blkIndent&&(P=!0),(x=i(t,e))>=0){if(h=!0,D=t.bMarks[e]+t.tShift[e],v=Number(t.src.slice(D,x-1)),P&&1!==v)return!1}else{if(!((x=o(t,e))>=0))return!1;h=!1}if(P&&t.skipSpaces(x)>=t.eMarks[e])return!1;if(g=t.src.charCodeAt(x-1),n)return!0;for(y=t.tokens.length,h?(j=t.push("ordered_list_open","ol",1),1!==v&&(j.attrs=[["start",v]])):j=t.push("bullet_list_open","ul",1),j.map=m=[e,0],j.markup=String.fromCharCode(g),w=e,O=!1,T=t.md.block.ruler.getRules("list"),E=t.parentType,t.parentType="list";w<r;){for(k=x,b=t.eMarks[w],f=A=t.sCount[w]+x-(t.bMarks[e]+t.tShift[e]);k<b;){if(9===(a=t.src.charCodeAt(k)))A+=4-(A+t.bsCount[w])%4;else{if(32!==a)break;A++}k++}if((l=(s=k)>=b?1:A-f)>4&&(l=1),c=f+l,(j=t.push("list_item_open","li",1)).markup=String.fromCharCode(g),j.map=p=[e,0],h&&(j.info=t.src.slice(D,x-1)),S=t.tight,C=t.tShift[e],_=t.sCount[e],M=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=c,t.tight=!0,t.tShift[e]=s-t.bMarks[e],t.sCount[e]=A,s>=b&&t.isEmpty(e+1)?t.line=Math.min(t.line+2,r):t.md.block.tokenize(t,e,r,!0),t.tight&&!O||(R=!1),O=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=M,t.tShift[e]=C,t.sCount[e]=_,t.tight=S,(j=t.push("list_item_close","li",-1)).markup=String.fromCharCode(g),w=e=t.line,p[1]=w,s=t.bMarks[e],w>=r)break;if(t.sCount[w]<t.blkIndent)break;if(t.sCount[e]-t.blkIndent>=4)break;for(F=!1,u=0,d=T.length;u<d;u++)if(T[u](t,w,r,!0)){F=!0;break}if(F)break;if(h){if((x=i(t,w))<0)break;D=t.bMarks[w]+t.tShift[w]}else if((x=o(t,w))<0)break;if(g!==t.src.charCodeAt(x-1))break}return(j=h?t.push("ordered_list_close","ol",-1):t.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),m[1]=w,t.line=w,t.parentType=E,R&&function(t,e){var r,n,o=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===o&&"paragraph_open"===t.tokens[r].type&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}(t,y),!0}},2248:t=>{"use strict";t.exports=function(t,e){var r,n,o,i,a,s,u=e+1,c=t.md.block.ruler.getRules("paragraph"),l=t.lineMax;for(s=t.parentType,t.parentType="paragraph";u<l&&!t.isEmpty(u);u++)if(!(t.sCount[u]-t.blkIndent>3||t.sCount[u]<0)){for(n=!1,o=0,i=c.length;o<i;o++)if(c[o](t,u,l,!0)){n=!0;break}if(n)break}return r=t.getLines(e,u,t.blkIndent,!1).trim(),t.line=u,(a=t.push("paragraph_open","p",1)).map=[e,t.line],(a=t.push("inline","",0)).content=r,a.map=[e,t.line],a.children=[],a=t.push("paragraph_close","p",-1),t.parentType=s,!0}},4600:(t,e,r)=>{"use strict";var n=r(5292).normalizeReference,o=r(5292).isSpace;t.exports=function(t,e,r,i){var a,s,u,c,l,f,h,p,d,m,y,g,v,b,w,A,M=0,E=t.bMarks[e]+t.tShift[e],_=t.eMarks[e],C=e+1;if(t.sCount[e]-t.blkIndent>=4)return!1;if(91!==t.src.charCodeAt(E))return!1;for(;++E<_;)if(93===t.src.charCodeAt(E)&&92!==t.src.charCodeAt(E-1)){if(E+1===_)return!1;if(58!==t.src.charCodeAt(E+1))return!1;break}for(c=t.lineMax,w=t.md.block.ruler.getRules("reference"),m=t.parentType,t.parentType="reference";C<c&&!t.isEmpty(C);C++)if(!(t.sCount[C]-t.blkIndent>3||t.sCount[C]<0)){for(b=!1,f=0,h=w.length;f<h;f++)if(w[f](t,C,c,!0)){b=!0;break}if(b)break}for(_=(v=t.getLines(e,C,t.blkIndent,!1).trim()).length,E=1;E<_;E++){if(91===(a=v.charCodeAt(E)))return!1;if(93===a){d=E;break}(10===a||92===a&&++E<_&&10===v.charCodeAt(E))&&M++}if(d<0||58!==v.charCodeAt(d+1))return!1;for(E=d+2;E<_;E++)if(10===(a=v.charCodeAt(E)))M++;else if(!o(a))break;if(!(y=t.md.helpers.parseLinkDestination(v,E,_)).ok)return!1;if(l=t.md.normalizeLink(y.str),!t.md.validateLink(l))return!1;for(s=E=y.pos,u=M+=y.lines,g=E;E<_;E++)if(10===(a=v.charCodeAt(E)))M++;else if(!o(a))break;for(y=t.md.helpers.parseLinkTitle(v,E,_),E<_&&g!==E&&y.ok?(A=y.str,E=y.pos,M+=y.lines):(A="",E=s,M=u);E<_&&(a=v.charCodeAt(E),o(a));)E++;if(E<_&&10!==v.charCodeAt(E)&&A)for(A="",E=s,M=u;E<_&&(a=v.charCodeAt(E),o(a));)E++;return!(E<_&&10!==v.charCodeAt(E)||!(p=n(v.slice(1,d)))||(i||(void 0===t.env.references&&(t.env.references={}),void 0===t.env.references[p]&&(t.env.references[p]={title:A,href:l}),t.parentType=m,t.line=e+M+1),0))}},9043:(t,e,r)=>{"use strict";var n=r(9147),o=r(5292).isSpace;function i(t,e,r,n){var i,a,s,u,c,l,f,h;for(this.src=t,this.md=e,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",h=!1,s=u=l=f=0,c=(a=this.src).length;u<c;u++){if(i=a.charCodeAt(u),!h){if(o(i)){l++,9===i?f+=4-f%4:f++;continue}h=!0}10!==i&&u!==c-1||(10!==i&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(l),this.sCount.push(f),this.bsCount.push(0),h=!1,l=0,f=0,s=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(t,e,r){var o=new n(t,e,r);return o.block=!0,r<0&&this.level--,o.level=this.level,r>0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},i.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},i.prototype.skipSpaces=function(t){for(var e,r=this.src.length;t<r&&(e=this.src.charCodeAt(t),o(e));t++);return t},i.prototype.skipSpacesBack=function(t,e){if(t<=e)return t;for(;t>e;)if(!o(this.src.charCodeAt(--t)))return t+1;return t},i.prototype.skipChars=function(t,e){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===e;t++);return t},i.prototype.skipCharsBack=function(t,e,r){if(t<=r)return t;for(;t>r;)if(e!==this.src.charCodeAt(--t))return t+1;return t},i.prototype.getLines=function(t,e,r,n){var i,a,s,u,c,l,f,h=t;if(t>=e)return"";for(l=new Array(e-t),i=0;h<e;h++,i++){for(a=0,f=u=this.bMarks[h],c=h+1<e||n?this.eMarks[h]+1:this.eMarks[h];u<c&&a<r;){if(s=this.src.charCodeAt(u),o(s))9===s?a+=4-(a+this.bsCount[h])%4:a++;else{if(!(u-f<this.tShift[h]))break;a++}u++}l[i]=a>r?new Array(a-r+1).join(" ")+this.src.slice(u,c):this.src.slice(u,c)}return l.join("")},i.prototype.Token=n,t.exports=i},3031:(t,e,r)=>{"use strict";var n=r(5292).isSpace;function o(t,e){var r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.substr(r,n-r)}function i(t){var e,r=[],n=0,o=t.length,i=!1,a=0,s="";for(e=t.charCodeAt(n);n<o;)124===e&&(i?(s+=t.substring(a,n-1),a=n):(r.push(s+t.substring(a,n)),s="",a=n+1)),i=92===e,n++,e=t.charCodeAt(n);return r.push(s+t.substring(a)),r}t.exports=function(t,e,r,a){var s,u,c,l,f,h,p,d,m,y,g,v,b,w,A,M,E,_;if(e+2>r)return!1;if(h=e+1,t.sCount[h]<t.blkIndent)return!1;if(t.sCount[h]-t.blkIndent>=4)return!1;if((c=t.bMarks[h]+t.tShift[h])>=t.eMarks[h])return!1;if(124!==(E=t.src.charCodeAt(c++))&&45!==E&&58!==E)return!1;if(c>=t.eMarks[h])return!1;if(124!==(_=t.src.charCodeAt(c++))&&45!==_&&58!==_&&!n(_))return!1;if(45===E&&n(_))return!1;for(;c<t.eMarks[h];){if(124!==(s=t.src.charCodeAt(c))&&45!==s&&58!==s&&!n(s))return!1;c++}for(p=(u=o(t,e+1)).split("|"),y=[],l=0;l<p.length;l++){if(!(g=p[l].trim())){if(0===l||l===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?y.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?y.push("left"):y.push("")}if(-1===(u=o(t,e).trim()).indexOf("|"))return!1;if(t.sCount[e]-t.blkIndent>=4)return!1;if((p=i(u)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),0===(d=p.length)||d!==y.length)return!1;if(a)return!0;for(w=t.parentType,t.parentType="table",M=t.md.block.ruler.getRules("blockquote"),(m=t.push("table_open","table",1)).map=v=[e,0],(m=t.push("thead_open","thead",1)).map=[e,e+1],(m=t.push("tr_open","tr",1)).map=[e,e+1],l=0;l<p.length;l++)m=t.push("th_open","th",1),y[l]&&(m.attrs=[["style","text-align:"+y[l]]]),(m=t.push("inline","",0)).content=p[l].trim(),m.children=[],m=t.push("th_close","th",-1);for(m=t.push("tr_close","tr",-1),m=t.push("thead_close","thead",-1),h=e+2;h<r&&!(t.sCount[h]<t.blkIndent);h++){for(A=!1,l=0,f=M.length;l<f;l++)if(M[l](t,h,r,!0)){A=!0;break}if(A)break;if(!(u=o(t,h).trim()))break;if(t.sCount[h]-t.blkIndent>=4)break;for((p=i(u)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),h===e+2&&((m=t.push("tbody_open","tbody",1)).map=b=[e+2,0]),(m=t.push("tr_open","tr",1)).map=[h,h+1],l=0;l<d;l++)m=t.push("td_open","td",1),y[l]&&(m.attrs=[["style","text-align:"+y[l]]]),(m=t.push("inline","",0)).content=p[l]?p[l].trim():"",m.children=[],m=t.push("td_close","td",-1);m=t.push("tr_close","tr",-1)}return b&&(m=t.push("tbody_close","tbody",-1),b[1]=h),m=t.push("table_close","table",-1),v[1]=h,t.parentType=w,t.line=h,!0}},2304:t=>{"use strict";t.exports=function(t){var e;t.inlineMode?((e=new t.Token("inline","",0)).content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}},4059:t=>{"use strict";t.exports=function(t){var e,r,n,o=t.tokens;for(r=0,n=o.length;r<n;r++)"inline"===(e=o[r]).type&&t.md.inline.parse(e.content,t.md,t.env,e.children)}},9357:(t,e,r)=>{"use strict";var n=r(5292).arrayReplaceAt;function o(t){return/^<\/a\s*>/i.test(t)}t.exports=function(t){var e,r,i,a,s,u,c,l,f,h,p,d,m,y,g,v,b,w,A=t.tokens;if(t.md.options.linkify)for(r=0,i=A.length;r<i;r++)if("inline"===A[r].type&&t.md.linkify.pretest(A[r].content))for(m=0,e=(a=A[r].children).length-1;e>=0;e--)if("link_close"!==(u=a[e]).type){if("html_inline"===u.type&&(w=u.content,/^<a[>\s]/i.test(w)&&m>0&&m--,o(u.content)&&m++),!(m>0)&&"text"===u.type&&t.md.linkify.test(u.content)){for(f=u.content,b=t.md.linkify.match(f),c=[],d=u.level,p=0,l=0;l<b.length;l++)y=b[l].url,g=t.md.normalizeLink(y),t.md.validateLink(g)&&(v=b[l].text,v=b[l].schema?"mailto:"!==b[l].schema||/^mailto:/i.test(v)?t.md.normalizeLinkText(v):t.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):t.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(h=b[l].index)>p&&((s=new t.Token("text","",0)).content=f.slice(p,h),s.level=d,c.push(s)),(s=new t.Token("link_open","a",1)).attrs=[["href",g]],s.level=d++,s.markup="linkify",s.info="auto",c.push(s),(s=new t.Token("text","",0)).content=v,s.level=d,c.push(s),(s=new t.Token("link_close","a",-1)).level=--d,s.markup="linkify",s.info="auto",c.push(s),p=b[l].lastIndex);p<f.length&&((s=new t.Token("text","",0)).content=f.slice(p),s.level=d,c.push(s)),A[r].children=a=n(a,e,c)}}else for(e--;a[e].level!==u.level&&"link_open"!==a[e].type;)e--}},7244:t=>{"use strict";var e=/\r\n?|\n/g,r=/\0/g;t.exports=function(t){var n;n=(n=t.src.replace(e,"\n")).replace(r,"�"),t.src=n}},8277:t=>{"use strict";var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,r=/\((c|tm|r|p)\)/i,n=/\((c|tm|r|p)\)/gi,o={c:"©",r:"®",p:"§",tm:"™"};function i(t,e){return o[e.toLowerCase()]}function a(t){var e,r,o=0;for(e=t.length-1;e>=0;e--)"text"!==(r=t[e]).type||o||(r.content=r.content.replace(n,i)),"link_open"===r.type&&"auto"===r.info&&o--,"link_close"===r.type&&"auto"===r.info&&o++}function s(t){var r,n,o=0;for(r=t.length-1;r>=0;r--)"text"!==(n=t[r]).type||o||e.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}t.exports=function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)"inline"===t.tokens[n].type&&(r.test(t.tokens[n].content)&&a(t.tokens[n].children),e.test(t.tokens[n].content)&&s(t.tokens[n].children))}},2508:(t,e,r)=>{"use strict";var n=r(5292).isWhiteSpace,o=r(5292).isPunctChar,i=r(5292).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function u(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function c(t,e){var r,a,c,l,f,h,p,d,m,y,g,v,b,w,A,M,E,_,C,S,k;for(C=[],r=0;r<t.length;r++){for(a=t[r],p=t[r].level,E=C.length-1;E>=0&&!(C[E].level<=p);E--);if(C.length=E+1,"text"===a.type){f=0,h=(c=a.content).length;t:for(;f<h&&(s.lastIndex=f,l=s.exec(c));){if(A=M=!0,f=l.index+1,_="'"===l[0],m=32,l.index-1>=0)m=c.charCodeAt(l.index-1);else for(E=r-1;E>=0&&"softbreak"!==t[E].type&&"hardbreak"!==t[E].type;E--)if(t[E].content){m=t[E].content.charCodeAt(t[E].content.length-1);break}if(y=32,f<h)y=c.charCodeAt(f);else for(E=r+1;E<t.length&&"softbreak"!==t[E].type&&"hardbreak"!==t[E].type;E++)if(t[E].content){y=t[E].content.charCodeAt(0);break}if(g=i(m)||o(String.fromCharCode(m)),v=i(y)||o(String.fromCharCode(y)),b=n(m),(w=n(y))?A=!1:v&&(b||g||(A=!1)),b?M=!1:g&&(w||v||(M=!1)),34===y&&'"'===l[0]&&m>=48&&m<=57&&(M=A=!1),A&&M&&(A=g,M=v),A||M){if(M)for(E=C.length-1;E>=0&&(d=C[E],!(C[E].level<p));E--)if(d.single===_&&C[E].level===p){d=C[E],_?(S=e.md.options.quotes[2],k=e.md.options.quotes[3]):(S=e.md.options.quotes[0],k=e.md.options.quotes[1]),a.content=u(a.content,l.index,k),t[d.token].content=u(t[d.token].content,d.pos,S),f+=k.length-1,d.token===r&&(f+=S.length-1),h=(c=a.content).length,C.length=E;continue t}A?C.push({token:r,pos:l.index,single:_,level:p}):M&&_&&(a.content=u(a.content,l.index,"’"))}else _&&(a.content=u(a.content,l.index,"’"))}}}}t.exports=function(t){var e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&a.test(t.tokens[e].content)&&c(t.tokens[e].children,t)}},7811:(t,e,r)=>{"use strict";var n=r(9147);function o(t,e,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}o.prototype.Token=n,t.exports=o},1858:t=>{"use strict";var e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,r=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;t.exports=function(t,n){var o,i,a,s,u,c,l=t.pos;if(60!==t.src.charCodeAt(l))return!1;for(u=t.pos,c=t.posMax;;){if(++l>=c)return!1;if(60===(s=t.src.charCodeAt(l)))return!1;if(62===s)break}return o=t.src.slice(u+1,l),r.test(o)?(i=t.md.normalizeLink(o),!!t.md.validateLink(i)&&(n||((a=t.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(o),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=o.length+2,!0)):!!e.test(o)&&(i=t.md.normalizeLink("mailto:"+o),!!t.md.validateLink(i)&&(n||((a=t.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=t.push("text","",0)).content=t.md.normalizeLinkText(o),(a=t.push("link_close","a",-1)).markup="autolink",a.info="auto"),t.pos+=o.length+2,!0))}},8706:t=>{"use strict";t.exports=function(t,e){var r,n,o,i,a,s,u,c,l=t.pos;if(96!==t.src.charCodeAt(l))return!1;for(r=l,l++,n=t.posMax;l<n&&96===t.src.charCodeAt(l);)l++;if(u=(o=t.src.slice(r,l)).length,t.backticksScanned&&(t.backticks[u]||0)<=r)return e||(t.pending+=o),t.pos+=u,!0;for(a=s=l;-1!==(a=t.src.indexOf("`",s));){for(s=a+1;s<n&&96===t.src.charCodeAt(s);)s++;if((c=s-a)===u)return e||((i=t.push("code_inline","code",0)).markup=o,i.content=t.src.slice(l,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=s,!0;t.backticks[c]=a}return t.backticksScanned=!0,e||(t.pending+=o),t.pos+=u,!0}},2877:t=>{"use strict";function e(t,e){var r,n,o,i,a,s,u,c,l={},f=e.length;if(f){var h=0,p=-2,d=[];for(r=0;r<f;r++)if(o=e[r],d.push(0),e[h].marker===o.marker&&p===o.token-1||(h=r),p=o.token,o.length=o.length||0,o.close){for(l.hasOwnProperty(o.marker)||(l[o.marker]=[-1,-1,-1,-1,-1,-1]),a=l[o.marker][(o.open?3:0)+o.length%3],s=n=h-d[h]-1;n>a;n-=d[n]+1)if((i=e[n]).marker===o.marker&&i.open&&i.end<0&&(u=!1,(i.close||o.open)&&(i.length+o.length)%3==0&&(i.length%3==0&&o.length%3==0||(u=!0)),!u)){c=n>0&&!e[n-1].open?d[n-1]+1:0,d[r]=r-n+c,d[n]=c,o.open=!1,i.end=r,i.close=!1,s=-1,p=-2;break}-1!==s&&(l[o.marker][(o.open?3:0)+(o.length||0)%3]=s)}}}t.exports=function(t){var r,n=t.tokens_meta,o=t.tokens_meta.length;for(e(0,t.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&e(0,n[r].delimiters)}},7147:t=>{"use strict";function e(t,e){var r,n,o,i,a,s;for(r=e.length-1;r>=0;r--)95!==(n=e[r]).marker&&42!==n.marker||-1!==n.end&&(o=e[n.end],s=r>0&&e[r-1].end===n.end+1&&e[r-1].marker===n.marker&&e[r-1].token===n.token-1&&e[n.end+1].token===o.token+1,a=String.fromCharCode(n.marker),(i=t.tokens[n.token]).type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",(i=t.tokens[o.token]).type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.content="",s&&(t.tokens[e[r-1].token].content="",t.tokens[e[n.end+1].token].content="",r--))}t.exports.w=function(t,e){var r,n,o=t.pos,i=t.src.charCodeAt(o);if(e)return!1;if(95!==i&&42!==i)return!1;for(n=t.scanDelims(t.pos,42===i),r=0;r<n.length;r++)t.push("text","",0).content=String.fromCharCode(i),t.delimiters.push({marker:i,length:n.length,token:t.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return t.pos+=n.length,!0},t.exports.g=function(t){var r,n=t.tokens_meta,o=t.tokens_meta.length;for(e(t,t.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&e(t,n[r].delimiters)}},5796:(t,e,r)=>{"use strict";var n=r(3906),o=r(5292).has,i=r(5292).isValidEntityCode,a=r(5292).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;t.exports=function(t,e){var r,c,l=t.pos,f=t.posMax;if(38!==t.src.charCodeAt(l))return!1;if(l+1<f)if(35===t.src.charCodeAt(l+1)){if(c=t.src.slice(l).match(s))return e||(r="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),t.pending+=i(r)?a(r):a(65533)),t.pos+=c[0].length,!0}else if((c=t.src.slice(l).match(u))&&o(n,c[1]))return e||(t.pending+=n[c[1]]),t.pos+=c[0].length,!0;return e||(t.pending+="&"),t.pos++,!0}},8199:(t,e,r)=>{"use strict";for(var n=r(5292).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){o[t.charCodeAt(0)]=1})),t.exports=function(t,e){var r,i=t.pos,a=t.posMax;if(92!==t.src.charCodeAt(i))return!1;if(++i<a){if((r=t.src.charCodeAt(i))<256&&0!==o[r])return e||(t.pending+=t.src[i]),t.pos+=2,!0;if(10===r){for(e||t.push("hardbreak","br",0),i++;i<a&&(r=t.src.charCodeAt(i),n(r));)i++;return t.pos=i,!0}}return e||(t.pending+="\\"),t.pos++,!0}},3095:(t,e,r)=>{"use strict";var n=r(9372).n;t.exports=function(t,e){var r,o,i,a=t.pos;return!(!t.md.options.html||(i=t.posMax,60!==t.src.charCodeAt(a)||a+2>=i||33!==(r=t.src.charCodeAt(a+1))&&63!==r&&47!==r&&!function(t){var e=32|t;return e>=97&&e<=122}(r)||!(o=t.src.slice(a).match(n))||(e||(t.push("html_inline","",0).content=t.src.slice(a,a+o[0].length)),t.pos+=o[0].length,0)))}},2641:(t,e,r)=>{"use strict";var n=r(5292).normalizeReference,o=r(5292).isSpace;t.exports=function(t,e){var r,i,a,s,u,c,l,f,h,p,d,m,y,g="",v=t.pos,b=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;if(c=t.pos+2,(u=t.md.helpers.parseLinkLabel(t,t.pos+1,!1))<0)return!1;if((l=u+1)<b&&40===t.src.charCodeAt(l)){for(l++;l<b&&(i=t.src.charCodeAt(l),o(i)||10===i);l++);if(l>=b)return!1;for(y=l,(h=t.md.helpers.parseLinkDestination(t.src,l,t.posMax)).ok&&(g=t.md.normalizeLink(h.str),t.md.validateLink(g)?l=h.pos:g=""),y=l;l<b&&(i=t.src.charCodeAt(l),o(i)||10===i);l++);if(h=t.md.helpers.parseLinkTitle(t.src,l,t.posMax),l<b&&y!==l&&h.ok)for(p=h.str,l=h.pos;l<b&&(i=t.src.charCodeAt(l),o(i)||10===i);l++);else p="";if(l>=b||41!==t.src.charCodeAt(l))return t.pos=v,!1;l++}else{if(void 0===t.env.references)return!1;if(l<b&&91===t.src.charCodeAt(l)?(y=l+1,(l=t.md.helpers.parseLinkLabel(t,l))>=0?s=t.src.slice(y,l++):l=u+1):l=u+1,s||(s=t.src.slice(c,u)),!(f=t.env.references[n(s)]))return t.pos=v,!1;g=f.href,p=f.title}return e||(a=t.src.slice(c,u),t.md.inline.parse(a,t.md,t.env,m=[]),(d=t.push("image","img",0)).attrs=r=[["src",g],["alt",""]],d.children=m,d.content=a,p&&r.push(["title",p])),t.pos=l,t.posMax=b,!0}},6267:(t,e,r)=>{"use strict";var n=r(5292).normalizeReference,o=r(5292).isSpace;t.exports=function(t,e){var r,i,a,s,u,c,l,f,h="",p="",d=t.pos,m=t.posMax,y=t.pos,g=!0;if(91!==t.src.charCodeAt(t.pos))return!1;if(u=t.pos+1,(s=t.md.helpers.parseLinkLabel(t,t.pos,!0))<0)return!1;if((c=s+1)<m&&40===t.src.charCodeAt(c)){for(g=!1,c++;c<m&&(i=t.src.charCodeAt(c),o(i)||10===i);c++);if(c>=m)return!1;if(y=c,(l=t.md.helpers.parseLinkDestination(t.src,c,t.posMax)).ok){for(h=t.md.normalizeLink(l.str),t.md.validateLink(h)?c=l.pos:h="",y=c;c<m&&(i=t.src.charCodeAt(c),o(i)||10===i);c++);if(l=t.md.helpers.parseLinkTitle(t.src,c,t.posMax),c<m&&y!==c&&l.ok)for(p=l.str,c=l.pos;c<m&&(i=t.src.charCodeAt(c),o(i)||10===i);c++);}(c>=m||41!==t.src.charCodeAt(c))&&(g=!0),c++}if(g){if(void 0===t.env.references)return!1;if(c<m&&91===t.src.charCodeAt(c)?(y=c+1,(c=t.md.helpers.parseLinkLabel(t,c))>=0?a=t.src.slice(y,c++):c=s+1):c=s+1,a||(a=t.src.slice(u,s)),!(f=t.env.references[n(a)]))return t.pos=d,!1;h=f.href,p=f.title}return e||(t.pos=u,t.posMax=s,t.push("link_open","a",1).attrs=r=[["href",h]],p&&r.push(["title",p]),t.md.inline.tokenize(t),t.push("link_close","a",-1)),t.pos=c,t.posMax=m,!0}},4537:(t,e,r)=>{"use strict";var n=r(5292).isSpace;t.exports=function(t,e){var r,o,i,a=t.pos;if(10!==t.src.charCodeAt(a))return!1;if(r=t.pending.length-1,o=t.posMax,!e)if(r>=0&&32===t.pending.charCodeAt(r))if(r>=1&&32===t.pending.charCodeAt(r-1)){for(i=r-1;i>=1&&32===t.pending.charCodeAt(i-1);)i--;t.pending=t.pending.slice(0,i),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a<o&&n(t.src.charCodeAt(a));)a++;return t.pos=a,!0}},1245:(t,e,r)=>{"use strict";var n=r(9147),o=r(5292).isWhiteSpace,i=r(5292).isPunctChar,a=r(5292).isMdAsciiPunct;function s(t,e,r,n){this.src=t,this.env=r,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var t=new n("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},s.prototype.push=function(t,e,r){this.pending&&this.pushPending();var o=new n(t,e,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},s.prototype.scanDelims=function(t,e){var r,n,s,u,c,l,f,h,p,d=t,m=!0,y=!0,g=this.posMax,v=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;d<g&&this.src.charCodeAt(d)===v;)d++;return s=d-t,n=d<g?this.src.charCodeAt(d):32,f=a(r)||i(String.fromCharCode(r)),p=a(n)||i(String.fromCharCode(n)),l=o(r),(h=o(n))?m=!1:p&&(l||f||(m=!1)),l?y=!1:f&&(h||p||(y=!1)),e?(u=m,c=y):(u=m&&(!y||f),c=y&&(!m||p)),{can_open:u,can_close:c,length:s}},s.prototype.Token=n,t.exports=s},338:t=>{"use strict";function e(t,e){var r,n,o,i,a,s=[],u=e.length;for(r=0;r<u;r++)126===(o=e[r]).marker&&-1!==o.end&&(i=e[o.end],(a=t.tokens[o.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=t.tokens[i.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===t.tokens[i.token-1].type&&"~"===t.tokens[i.token-1].content&&s.push(i.token-1));for(;s.length;){for(n=(r=s.pop())+1;n<t.tokens.length&&"s_close"===t.tokens[n].type;)n++;r!==--n&&(a=t.tokens[n],t.tokens[n]=t.tokens[r],t.tokens[r]=a)}}t.exports.w=function(t,e){var r,n,o,i,a=t.pos,s=t.src.charCodeAt(a);if(e)return!1;if(126!==s)return!1;if(o=(n=t.scanDelims(t.pos,!0)).length,i=String.fromCharCode(s),o<2)return!1;for(o%2&&(t.push("text","",0).content=i,o--),r=0;r<o;r+=2)t.push("text","",0).content=i+i,t.delimiters.push({marker:s,length:0,token:t.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return t.pos+=n.length,!0},t.exports.g=function(t){var r,n=t.tokens_meta,o=t.tokens_meta.length;for(e(t,t.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&e(t,n[r].delimiters)}},1414:t=>{"use strict";function e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}t.exports=function(t,r){for(var n=t.pos;n<t.posMax&&!e(t.src.charCodeAt(n));)n++;return n!==t.pos&&(r||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}},3659:t=>{"use strict";t.exports=function(t){var e,r,n=0,o=t.tokens,i=t.tokens.length;for(e=r=0;e<i;e++)o[e].nesting<0&&n--,o[e].level=n,o[e].nesting>0&&n++,"text"===o[e].type&&e+1<i&&"text"===o[e+1].type?o[e+1].content=o[e].content+o[e+1].content:(e!==r&&(o[r]=o[e]),r++);e!==r&&(o.length=r)}},9147:t=>{"use strict";function e(t,e,r){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}e.prototype.attrIndex=function(t){var e,r,n;if(!this.attrs)return-1;for(r=0,n=(e=this.attrs).length;r<n;r++)if(e[r][0]===t)return r;return-1},e.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},e.prototype.attrSet=function(t,e){var r=this.attrIndex(t),n=[t,e];r<0?this.attrPush(n):this.attrs[r]=n},e.prototype.attrGet=function(t){var e=this.attrIndex(t),r=null;return e>=0&&(r=this.attrs[e][1]),r},e.prototype.attrJoin=function(t,e){var r=this.attrIndex(t);r<0?this.attrPush([t,e]):this.attrs[r][1]=this.attrs[r][1]+" "+e},t.exports=e},7993:(t,e,r)=>{"use strict";var n=r(1285),o=r(4485),i=r(7834).Buffer,a=new Array(16);function s(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function c(t,e,r,n,o,i,a){return u(t+(e&r|~e&n)+o+i|0,a)+e|0}function l(t,e,r,n,o,i,a){return u(t+(e&n|r&~n)+o+i|0,a)+e|0}function f(t,e,r,n,o,i,a){return u(t+(e^r^n)+o+i|0,a)+e|0}function h(t,e,r,n,o,i,a){return u(t+(r^(e|~n))+o+i|0,a)+e|0}n(s,o),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,o=this._c,i=this._d;r=c(r,n,o,i,t[0],3614090360,7),i=c(i,r,n,o,t[1],3905402710,12),o=c(o,i,r,n,t[2],606105819,17),n=c(n,o,i,r,t[3],3250441966,22),r=c(r,n,o,i,t[4],4118548399,7),i=c(i,r,n,o,t[5],1200080426,12),o=c(o,i,r,n,t[6],2821735955,17),n=c(n,o,i,r,t[7],4249261313,22),r=c(r,n,o,i,t[8],1770035416,7),i=c(i,r,n,o,t[9],2336552879,12),o=c(o,i,r,n,t[10],4294925233,17),n=c(n,o,i,r,t[11],2304563134,22),r=c(r,n,o,i,t[12],1804603682,7),i=c(i,r,n,o,t[13],4254626195,12),o=c(o,i,r,n,t[14],2792965006,17),r=l(r,n=c(n,o,i,r,t[15],1236535329,22),o,i,t[1],4129170786,5),i=l(i,r,n,o,t[6],3225465664,9),o=l(o,i,r,n,t[11],643717713,14),n=l(n,o,i,r,t[0],3921069994,20),r=l(r,n,o,i,t[5],3593408605,5),i=l(i,r,n,o,t[10],38016083,9),o=l(o,i,r,n,t[15],3634488961,14),n=l(n,o,i,r,t[4],3889429448,20),r=l(r,n,o,i,t[9],568446438,5),i=l(i,r,n,o,t[14],3275163606,9),o=l(o,i,r,n,t[3],4107603335,14),n=l(n,o,i,r,t[8],1163531501,20),r=l(r,n,o,i,t[13],2850285829,5),i=l(i,r,n,o,t[2],4243563512,9),o=l(o,i,r,n,t[7],1735328473,14),r=f(r,n=l(n,o,i,r,t[12],2368359562,20),o,i,t[5],4294588738,4),i=f(i,r,n,o,t[8],2272392833,11),o=f(o,i,r,n,t[11],1839030562,16),n=f(n,o,i,r,t[14],4259657740,23),r=f(r,n,o,i,t[1],2763975236,4),i=f(i,r,n,o,t[4],1272893353,11),o=f(o,i,r,n,t[7],4139469664,16),n=f(n,o,i,r,t[10],3200236656,23),r=f(r,n,o,i,t[13],681279174,4),i=f(i,r,n,o,t[0],3936430074,11),o=f(o,i,r,n,t[3],3572445317,16),n=f(n,o,i,r,t[6],76029189,23),r=f(r,n,o,i,t[9],3654602809,4),i=f(i,r,n,o,t[12],3873151461,11),o=f(o,i,r,n,t[15],530742520,16),r=h(r,n=f(n,o,i,r,t[2],3299628645,23),o,i,t[0],4096336452,6),i=h(i,r,n,o,t[7],1126891415,10),o=h(o,i,r,n,t[14],2878612391,15),n=h(n,o,i,r,t[5],4237533241,21),r=h(r,n,o,i,t[12],1700485571,6),i=h(i,r,n,o,t[3],2399980690,10),o=h(o,i,r,n,t[10],4293915773,15),n=h(n,o,i,r,t[1],2240044497,21),r=h(r,n,o,i,t[8],1873313359,6),i=h(i,r,n,o,t[15],4264355552,10),o=h(o,i,r,n,t[6],2734768916,15),n=h(n,o,i,r,t[13],1309151649,21),r=h(r,n,o,i,t[4],4149444226,6),i=h(i,r,n,o,t[11],3174756917,10),o=h(o,i,r,n,t[2],718787259,15),n=h(n,o,i,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},3771:t=>{"use strict";var e={};function r(t,n){var o;return"string"!=typeof n&&(n=r.defaultChars),o=function(t){var r,n,o=e[t];if(o)return o;for(o=e[t]=[],r=0;r<128;r++)n=String.fromCharCode(r),o.push(n);for(r=0;r<t.length;r++)o[n=t.charCodeAt(r)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}(n),t.replace(/(%[a-f0-9]{2})+/gi,(function(t){var e,r,n,i,a,s,u,c="";for(e=0,r=t.length;e<r;e+=3)(n=parseInt(t.slice(e+1,e+3),16))<128?c+=o[n]:192==(224&n)&&e+3<r&&128==(192&(i=parseInt(t.slice(e+4,e+6),16)))?(c+=(u=n<<6&1984|63&i)<128?"��":String.fromCharCode(u),e+=3):224==(240&n)&&e+6<r&&(i=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),128==(192&i)&&128==(192&a))?(c+=(u=n<<12&61440|i<<6&4032|63&a)<2048||u>=55296&&u<=57343?"���":String.fromCharCode(u),e+=6):240==(248&n)&&e+9<r&&(i=parseInt(t.slice(e+4,e+6),16),a=parseInt(t.slice(e+7,e+9),16),s=parseInt(t.slice(e+10,e+12),16),128==(192&i)&&128==(192&a)&&128==(192&s))?((u=n<<18&1835008|i<<12&258048|a<<6&4032|63&s)<65536||u>1114111?c+="����":(u-=65536,c+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),e+=9):c+="�";return c}))}r.defaultChars=";/?:@&=+$,#",r.componentChars="",t.exports=r},1737:t=>{"use strict";var e={};function r(t,n,o){var i,a,s,u,c,l="";for("string"!=typeof n&&(o=n,n=r.defaultChars),void 0===o&&(o=!0),c=function(t){var r,n,o=e[t];if(o)return o;for(o=e[t]=[],r=0;r<128;r++)n=String.fromCharCode(r),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r<t.length;r++)o[t.charCodeAt(r)]=t[r];return o}(n),i=0,a=t.length;i<a;i++)if(s=t.charCodeAt(i),o&&37===s&&i+2<a&&/^[0-9a-f]{2}$/i.test(t.slice(i+1,i+3)))l+=t.slice(i,i+3),i+=2;else if(s<128)l+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a&&(u=t.charCodeAt(i+1))>=56320&&u<=57343){l+=encodeURIComponent(t[i]+t[i+1]),i++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(t[i]);return l}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",t.exports=r},5024:t=>{"use strict";t.exports=function(t){var e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",(e+=t.search||"")+(t.hash||"")}},4976:(t,e,r)=>{"use strict";t.exports.encode=r(1737),t.exports.decode=r(3771),t.exports.format=r(5024),t.exports.parse=r(2084)},2084:t=>{"use strict";function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(i),s=["%","/","?",";","#"].concat(a),u=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};e.prototype.parse=function(t,e){var n,i,a,p,d,m=t;if(m=m.trim(),!e&&1===t.split("#").length){var y=o.exec(m);if(y)return this.pathname=y[1],y[2]&&(this.search=y[2]),this}var g=r.exec(m);if(g&&(a=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(e||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(d="//"===m.substr(0,2))||g&&f[g]||(m=m.substr(2),this.slashes=!0)),!f[g]&&(d||g&&!h[g])){var v,b,w=-1;for(n=0;n<u.length;n++)-1!==(p=m.indexOf(u[n]))&&(-1===w||p<w)&&(w=p);for(-1!==(b=-1===w?m.lastIndexOf("@"):m.lastIndexOf("@",w))&&(v=m.slice(0,b),m=m.slice(b+1),this.auth=v),w=-1,n=0;n<s.length;n++)-1!==(p=m.indexOf(s[n]))&&(-1===w||p<w)&&(w=p);-1===w&&(w=m.length),":"===m[w-1]&&w--;var A=m.slice(0,w);m=m.slice(w),this.parseHost(A),this.hostname=this.hostname||"";var M="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!M){var E=this.hostname.split(/\./);for(n=0,i=E.length;n<i;n++){var _=E[n];if(_&&!_.match(c)){for(var C="",S=0,k=_.length;S<k;S++)_.charCodeAt(S)>127?C+="x":C+=_[S];if(!C.match(c)){var x=E.slice(0,n),O=E.slice(n+1),D=_.match(l);D&&(x.push(D[1]),O.unshift(D[2])),O.length&&(m=O.join(".")+m),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=m.indexOf("#");-1!==F&&(this.hash=m.substr(F),m=m.slice(0,F));var T=m.indexOf("?");return-1!==T&&(this.search=m.substr(T),m=m.slice(0,T)),m&&(this.pathname=m),h[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(t){var e=n.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},t.exports=function(t,r){if(t&&t instanceof e)return t;var n=new e;return n.parse(t,r),n}},6676:(t,e,r)=>{var n=r(1466),o=r(2745);function i(t){this.rand=t||new o.Rand}t.exports=i,i.create=function(t){return new i(t)},i.prototype._randbelow=function(t){var e=t.bitLength(),r=Math.ceil(e/8);do{var o=new n(this.rand.generate(r))}while(o.cmp(t)>=0);return o},i.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},i.prototype.test=function(t,e,r){var o=t.bitLength(),i=n.mont(t),a=new n(1).toRed(i);e||(e=Math.max(1,o/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var c=t.shrn(u),l=s.toRed(i);e>0;e--){var f=this._randrange(new n(2),s);r&&r(f);var h=f.toRed(i).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var p=1;p<u;p++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(l))break}if(p===u)return!1}}return!0},i.prototype.getDivisor=function(t,e){var r=t.bitLength(),o=n.mont(t),i=new n(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),c=a.toRed(o);e>0;e--){var l=this._randrange(new n(2),a),f=t.gcd(l);if(0!==f.cmpn(1))return f;var h=l.toRed(o).redPow(u);if(0!==h.cmp(i)&&0!==h.cmp(c)){for(var p=1;p<s;p++){if(0===(h=h.redSqr()).cmp(i))return h.fromRed().subn(1).gcd(t);if(0===h.cmp(c))break}if(p===s)return(h=h.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},1466:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(6024).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,i=Math.min(t.length,r),a=e;a<i;a++){var s=t.charCodeAt(a)-48;o*=n,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<t.length&&(16===e?this._parseHex(t,o,r):(this._parseBase(t,e,o),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=e)n++;n--,o=o/e|0;for(var i=t.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var o=0|t.words[0],i=0|e.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;l+=(a=(o=0|t.words[d])*(i=0|e.words[p])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);r=0!=(i=s>>>24-o&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],p=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:l[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(i),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[i-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0,i=0;i<n.length;i++)e=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&e,o=e>>>26;for(;0!==o&&i<r.length;i++)e=(0|r.words[i])+o,this.words[i]=67108863&e,o=e>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)i=(e=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,o,i,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,p=0|a[1],d=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,A=b>>>13,M=0|a[4],E=8191&M,_=M>>>13,C=0|a[5],S=8191&C,k=C>>>13,x=0|a[6],O=8191&x,D=x>>>13,F=0|a[7],T=8191&F,j=F>>>13,P=0|a[8],R=8191&P,B=P>>>13,I=0|a[9],N=8191&I,$=I>>>13,L=0|s[0],U=8191&L,q=L>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Z=G>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,K=0|s[4],X=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,ot=0|s[6],it=8191&ot,at=ot>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,U))|0)+((8191&(o=(o=Math.imul(f,q))+Math.imul(h,U)|0))<<13)|0;c=((i=Math.imul(h,q))+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,U),o=(o=Math.imul(d,q))+Math.imul(m,U)|0,i=Math.imul(m,q);var gt=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(o=(o=o+Math.imul(f,H)|0)+Math.imul(h,V)|0))<<13)|0;c=((i=i+Math.imul(h,H)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),o=(o=Math.imul(g,q))+Math.imul(v,U)|0,i=Math.imul(v,q),n=n+Math.imul(d,V)|0,o=(o=o+Math.imul(d,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var vt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,W)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,q))+Math.imul(A,U)|0,i=Math.imul(A,q),n=n+Math.imul(g,V)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,H)|0,n=n+Math.imul(d,W)|0,o=(o=o+Math.imul(d,Z)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,Z)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,U),o=(o=Math.imul(E,q))+Math.imul(_,U)|0,i=Math.imul(_,q),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(g,W)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Z)|0,n=n+Math.imul(d,Q)|0,o=(o=o+Math.imul(d,Y)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Y)|0;var wt=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,tt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(S,U),o=(o=Math.imul(S,q))+Math.imul(k,U)|0,i=Math.imul(k,q),n=n+Math.imul(E,V)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(_,V)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(d,X)|0,o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var At=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((i=i+Math.imul(h,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,U),o=(o=Math.imul(O,q))+Math.imul(D,U)|0,i=Math.imul(D,q),n=n+Math.imul(S,V)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(g,X)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,i=i+Math.imul(m,nt)|0;var Mt=(c+(n=n+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,at)|0)+Math.imul(h,it)|0))<<13)|0;c=((i=i+Math.imul(h,at)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,U),o=(o=Math.imul(T,q))+Math.imul(j,U)|0,i=Math.imul(j,q),n=n+Math.imul(O,V)|0,o=(o=o+Math.imul(O,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,n=n+Math.imul(S,W)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,n=n+Math.imul(d,it)|0,o=(o=o+Math.imul(d,at)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(o=(o=o+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((i=i+Math.imul(h,ct)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,q))+Math.imul(B,U)|0,i=Math.imul(B,q),n=n+Math.imul(T,V)|0,o=(o=o+Math.imul(T,H)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Z)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,n=n+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,nt)|0)+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(g,it)|0,o=(o=o+Math.imul(g,at)|0)+Math.imul(v,it)|0,i=i+Math.imul(v,at)|0,n=n+Math.imul(d,ut)|0,o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ut)|0,i=i+Math.imul(m,ct)|0;var _t=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((i=i+Math.imul(h,ht)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,q))+Math.imul($,U)|0,i=Math.imul($,q),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,H)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,H)|0,n=n+Math.imul(T,W)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(j,W)|0,i=i+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,tt)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(E,rt)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,n=n+Math.imul(w,it)|0,o=(o=o+Math.imul(w,at)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,at)|0,n=n+Math.imul(g,ut)|0,o=(o=o+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,n=n+Math.imul(d,ft)|0,o=(o=o+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,i=i+Math.imul(m,ht)|0;var Ct=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(o=(o=o+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((i=i+Math.imul(h,mt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,V),o=(o=Math.imul(N,H))+Math.imul($,V)|0,i=Math.imul($,H),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(O,X)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,tt)|0,n=n+Math.imul(S,rt)|0,o=(o=o+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(E,it)|0,o=(o=o+Math.imul(E,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,n=n+Math.imul(w,ut)|0,o=(o=o+Math.imul(w,ct)|0)+Math.imul(A,ut)|0,i=i+Math.imul(A,ct)|0,n=n+Math.imul(g,ft)|0,o=(o=o+Math.imul(g,ht)|0)+Math.imul(v,ft)|0,i=i+Math.imul(v,ht)|0;var St=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((i=i+Math.imul(m,mt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Z))+Math.imul($,W)|0,i=Math.imul($,Z),n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(j,X)|0,i=i+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(D,rt)|0,i=i+Math.imul(D,nt)|0,n=n+Math.imul(S,it)|0,o=(o=o+Math.imul(S,at)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,at)|0,n=n+Math.imul(E,ut)|0,o=(o=o+Math.imul(E,ct)|0)+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,n=n+Math.imul(w,ft)|0,o=(o=o+Math.imul(w,ht)|0)+Math.imul(A,ft)|0,i=i+Math.imul(A,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul(v,dt)|0))<<13)|0;c=((i=i+Math.imul(v,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,Q),o=(o=Math.imul(N,Y))+Math.imul($,Q)|0,i=Math.imul($,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,tt)|0,n=n+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,nt)|0)+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,n=n+Math.imul(O,it)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(D,it)|0,i=i+Math.imul(D,at)|0,n=n+Math.imul(S,ut)|0,o=(o=o+Math.imul(S,ct)|0)+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,n=n+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,i=i+Math.imul(_,ht)|0;var xt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(A,dt)|0))<<13)|0;c=((i=i+Math.imul(A,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(N,X),o=(o=Math.imul(N,tt))+Math.imul($,X)|0,i=Math.imul($,tt),n=n+Math.imul(R,rt)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,n=n+Math.imul(T,it)|0,o=(o=o+Math.imul(T,at)|0)+Math.imul(j,it)|0,i=i+Math.imul(j,at)|0,n=n+Math.imul(O,ut)|0,o=(o=o+Math.imul(O,ct)|0)+Math.imul(D,ut)|0,i=i+Math.imul(D,ct)|0,n=n+Math.imul(S,ft)|0,o=(o=o+Math.imul(S,ht)|0)+Math.imul(k,ft)|0,i=i+Math.imul(k,ht)|0;var Ot=(c+(n=n+Math.imul(E,dt)|0)|0)+((8191&(o=(o=o+Math.imul(E,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((i=i+Math.imul(_,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,rt),o=(o=Math.imul(N,nt))+Math.imul($,rt)|0,i=Math.imul($,nt),n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,at)|0)+Math.imul(B,it)|0,i=i+Math.imul(B,at)|0,n=n+Math.imul(T,ut)|0,o=(o=o+Math.imul(T,ct)|0)+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,n=n+Math.imul(O,ft)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(D,ft)|0,i=i+Math.imul(D,ht)|0;var Dt=(c+(n=n+Math.imul(S,dt)|0)|0)+((8191&(o=(o=o+Math.imul(S,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((i=i+Math.imul(k,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(N,it),o=(o=Math.imul(N,at))+Math.imul($,it)|0,i=Math.imul($,at),n=n+Math.imul(R,ut)|0,o=(o=o+Math.imul(R,ct)|0)+Math.imul(B,ut)|0,i=i+Math.imul(B,ct)|0,n=n+Math.imul(T,ft)|0,o=(o=o+Math.imul(T,ht)|0)+Math.imul(j,ft)|0,i=i+Math.imul(j,ht)|0;var Ft=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(D,dt)|0))<<13)|0;c=((i=i+Math.imul(D,mt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(N,ut),o=(o=Math.imul(N,ct))+Math.imul($,ut)|0,i=Math.imul($,ct),n=n+Math.imul(R,ft)|0,o=(o=o+Math.imul(R,ht)|0)+Math.imul(B,ft)|0,i=i+Math.imul(B,ht)|0;var Tt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((i=i+Math.imul(j,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,ft),o=(o=Math.imul(N,ht))+Math.imul($,ft)|0,i=Math.imul($,ht);var jt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(o=(o=o+Math.imul(R,mt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((i=i+Math.imul(B,mt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Pt=(c+(n=Math.imul(N,dt))|0)+((8191&(o=(o=Math.imul(N,mt))+Math.imul($,dt)|0))<<13)|0;return c=((i=Math.imul($,mt))+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=bt,u[4]=wt,u[5]=At,u[6]=Mt,u[7]=Et,u[8]=_t,u[9]=Ct,u[10]=St,u[11]=kt,u[12]=xt,u[13]=Ot,u[14]=Dt,u[15]=Ft,u[16]=Tt,u[17]=jt,u[18]=Pt,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(d=p),i.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,e.length-1),c=Math.max(0,i-t.length+1);c<=u;c++){var l=i-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,t,e):m(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,o=0;o<e;o++)n|=(1&t)<<e-o-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,o,i){for(var a=0;a<i;a++)n[a]=e[t[a]],o[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,o,i){this.permute(i,t,e,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,p=0;p<a;p++){var d=r[l+p],m=n[l+p],y=r[l+p+a],g=n[l+p+a],v=f*y-h*g;g=f*g+h*y,y=v,r[l+p]=d+y,n[l+p]=m+g,r[l+p+a]=d-y,n[l+p+a]=m-g,p!==s&&(v=u*f-c*h,h=u*h+c*f,f=v)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=t[n];t[n]=t[r-n-1],t[r-n-1]=o,o=e[n],e[n]=-e[r-n-1],e[r-n-1]=-o}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var o=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&o,r=o<67108864?0:o/67108864|0}return t},y.prototype.convert13b=function(t,e,r,o){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,f,n,o);for(var p=0;p<n;p++){var d=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=d}return this.conjugate(s,u,n),this.transform(s,u,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,i=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,o=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,o=1<<e;return!(this.length<=r||!(this.words[r]&o))},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var o,i,a=t.length+r;this._expand(a);var s=0;for(o=0;o<t.length;o++){i=(0|this.words[o+r])+s;var u=(0|t.words[o])*e;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(e*r+(0|this.words[o]))%t;return r},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*e;this.words[r]=o/t|0,e=o%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=e.cmp(r);if(o<0){var i=e;e=r,r=i}else if(0===o||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,o=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|t.words[r];if(n!==o){n<o?e=-1:n>o&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},o(b,v),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),o=0;o<n;o++)e.words[o]=t.words[o];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&r,o=10;o<t.length;o++){var a=0|t.words[o];t.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,t.words[o-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(w,v),o(A,v),o(M,v),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,o=67108863&n;n>>>=26,t.words[r]=o,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,o),h=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),d=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<d);var g=this.pow(f,new i(1).iushln(d-y-1));h=h.redMul(g),f=g.redSqr(),p=p.redMul(f),d=y}return h},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new _(t)},o(_,E),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},9561:t=>{function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},3022:(t,e)=>{"use strict";var r=e;function n(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16));else for(n=0;n<t.length;n++){var o=t.charCodeAt(n),i=o>>8,a=255&o;i?r.push(i,a):r.push(a)}return r},r.zero2=n,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}},8045:(t,e,r)=>{"use strict";var n=r(2812);e.certificate=r(7832);var o=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=o;var i=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=i;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=c;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=l,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var f=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=f;var h=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},7832:(t,e,r)=>{"use strict";var n=r(2812),o=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),i=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(i)})),c=n.define("RDNSequence",(function(){this.seqof(u)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),f=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),h=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),p=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),d=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=d},2968:(t,e,r)=>{var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(9341),s=r(10),u=r(7834).Buffer;t.exports=function(t,e){var r,c=t.toString(),l=c.match(n);if(l){var f="aes"+l[1],h=u.from(l[2],"hex"),p=u.from(l[3].replace(/[\r\n]/g,""),"base64"),d=a(e,h.slice(0,8),parseInt(l[1],10)).key,m=[],y=s.createDecipheriv(f,d,h);m.push(y.update(p)),m.push(y.final()),r=u.concat(m)}else{var g=c.match(i);r=u.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(o)[1],data:r}}},8016:(t,e,r)=>{var n=r(8045),o=r(8675),i=r(2968),a=r(10),s=r(499),u=r(7834).Buffer;function c(t){var e;"object"!=typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=u.from(t));var r,c,l=i(t,e),f=l.tag,h=l.data;switch(f){case"CERTIFICATE":c=n.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(h,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":h=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=o[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,l=t.subjectPrivateKey,f=parseInt(i.split("-")[1],10)/8,h=s.pbkdf2Sync(e,r,n,f,"sha1"),p=a.createDecipheriv(i,h,c),d=[];return d.push(p.update(l)),d.push(p.final()),u.concat(d)}(h=n.EncryptedPrivateKey.decode(h,"der"),e);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=n.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=c,c.signature=n.signature},8094:function(t){"undefined"!=typeof self&&self,t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";function n(t){if(!(this instanceof n))return new n(t);this._=t}var o=n.prototype;function i(t,e){for(var r=0;r<t;r++)e(r)}function a(t,e,r){return function(t,e){i(e.length,(function(r){t(e[r],r,e)}))}((function(r,n,o){e=t(e,r,n,o)}),r),e}function s(t,e){return a((function(e,r,n,o){return e.concat([t(r,n,o)])}),[],e)}function u(t,e){var r={v:0,buf:e};return i(t,(function(){var t;r={v:r.v<<1|(t=r.buf,t[0]>>7),buf:function(t){var e=a((function(t,e,r,n){return t.concat(r===n.length-1?Buffer.from([e,0]).readUInt16BE(0):n.readUInt16BE(r))}),[],t);return Buffer.from(s((function(t){return(t<<1&65535)>>8}),e))}(r.buf)}})),r}function c(){return"undefined"!=typeof Buffer}function l(){if(!c())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function f(t){l();var e=a((function(t,e){return t+e}),0,t);if(e%8!=0)throw new Error("The bits ["+t.join(", ")+"] add up to "+e+" which is not an even number of bytes; the total should be divisible by 8");var r,o=e/8,i=(r=function(t){return t>48},a((function(t,e){return t||(r(e)?e:t)}),null,t));if(i)throw new Error(i+" bit range requested exceeds 48 bit (6 byte) Number max.");return new n((function(e,r){var n=o+r;return n>e.length?M(r,o.toString()+" bytes"):A(n,a((function(t,e){var r=u(e,t.buf);return{coll:t.coll.concat(r.v),buf:r.buf}}),{coll:[],buf:e.slice(r,n)},t).coll)}))}function h(t,e){return new n((function(r,n){return l(),n+e>r.length?M(n,e+" bytes for "+t):A(n+e,r.slice(n,n+e))}))}function p(t,e){if("number"!=typeof(r=e)||Math.floor(r)!==r||e<0||e>6)throw new Error(t+" requires integer length in range [0, 6].");var r}function d(t){return p("uintBE",t),h("uintBE("+t+")",t).map((function(e){return e.readUIntBE(0,t)}))}function m(t){return p("uintLE",t),h("uintLE("+t+")",t).map((function(e){return e.readUIntLE(0,t)}))}function y(t){return p("intBE",t),h("intBE("+t+")",t).map((function(e){return e.readIntBE(0,t)}))}function g(t){return p("intLE",t),h("intLE("+t+")",t).map((function(e){return e.readIntLE(0,t)}))}function v(t){return t instanceof n}function b(t){return"[object Array]"==={}.toString.call(t)}function w(t){return c()&&Buffer.isBuffer(t)}function A(t,e){return{status:!0,index:t,value:e,furthest:-1,expected:[]}}function M(t,e){return b(e)||(e=[e]),{status:!1,index:-1,value:null,furthest:t,expected:e}}function E(t,e){if(!e)return t;if(t.furthest>e.furthest)return t;var r=t.furthest===e.furthest?function(t,e){if(function(){if(void 0!==n._supportsSet)return n._supportsSet;var t="undefined"!=typeof Set;return n._supportsSet=t,t}()&&Array.from){for(var r=new Set(t),o=0;o<e.length;o++)r.add(e[o]);var i=Array.from(r);return i.sort(),i}for(var a={},s=0;s<t.length;s++)a[t[s]]=!0;for(var u=0;u<e.length;u++)a[e[u]]=!0;var c=[];for(var l in a)({}).hasOwnProperty.call(a,l)&&c.push(l);return c.sort(),c}(t.expected,e.expected):e.expected;return{status:t.status,index:t.index,value:t.value,furthest:e.furthest,expected:r}}var _={};function C(t,e){if(w(t))return{offset:e,line:-1,column:-1};if(_.input===t&&_.i===e)return _.value;var r=t.slice(0,e).split("\n"),n={offset:e,line:r.length,column:r[r.length-1].length+1};return _.input=t,_.i=e,_.value=n,n}function S(t){if(!v(t))throw new Error("not a parser: "+t)}function k(t,e){return"string"==typeof t?t.charAt(e):t[e]}function x(t){if("number"!=typeof t)throw new Error("not a number: "+t)}function O(t){if("function"!=typeof t)throw new Error("not a function: "+t)}function D(t){if("string"!=typeof t)throw new Error("not a string: "+t)}function F(t,e){return new Array(e+1).join(t)}function T(t,e,r){var n=e-t.length;return n<=0?t:F(r,n)+t}function j(t,e,r,n){return{from:t-e>0?t-e:0,to:t+r>n?n:t+r}}function P(t,e){var r,n,o,i,u,c=e.index,l=c.offset,f=1;if(l===t.length)return"Got the end of the input";if(w(t)){var h=l-l%8,p=l-h,d=j(h,40,40,t.length),m=s((function(t){return s((function(t){return T(t.toString(16),2,"0")}),t)}),function(t,e){var r=t.length,n=[],o=0;if(r<=8)return[t.slice()];for(var i=0;i<r;i++)n[o]||n.push([]),n[o].push(t[i]),(i+1)%8==0&&o++;return n}(t.slice(d.from,d.to).toJSON().data));i=function(t){return 0===t.from&&1===t.to?{from:t.from,to:t.to}:{from:t.from/8,to:Math.floor(t.to/8)}}(d),n=h/8,r=3*p,p>=4&&(r+=1),f=2,o=s((function(t){return t.length<=4?t.join(" "):t.slice(0,4).join(" ")+" "+t.slice(4).join(" ")}),m),(u=(8*(i.to>0?i.to-1:i.to)).toString(16).length)<2&&(u=2)}else{var y=t.split(/\r\n|[\n\r\u2028\u2029]/);r=c.column-1,n=c.line-1,i=j(n,2,3,y.length),o=y.slice(i.from,i.to),u=i.to.toString().length}var g=n-i.from;return w(t)&&(u=(8*(i.to>0?i.to-1:i.to)).toString(16).length)<2&&(u=2),a((function(e,n,o){var a,s=o===g,c=s?"> ":" ";return a=w(t)?T((8*(i.from+o)).toString(16),u,"0"):T((i.from+o+1).toString(),u," "),[].concat(e,[c+a+" | "+n],s?[" "+F(" ",u)+" | "+T("",r," ")+F("^",f)]:[])}),[],o).join("\n")}function R(t,e){return["\n","-- PARSING FAILED "+F("-",50),"\n\n",P(t,e),"\n\n",(r=e.expected,1===r.length?"Expected:\n\n"+r[0]:"Expected one of the following: \n\n"+r.join(", ")),"\n"].join("");var r}function B(t){return void 0!==t.flags?t.flags:[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.unicode?"u":"",t.sticky?"y":""].join("")}function I(){for(var t=[].slice.call(arguments),e=t.length,r=0;r<e;r+=1)S(t[r]);return n((function(r,n){for(var o,i=new Array(e),a=0;a<e;a+=1){if(!(o=E(t[a]._(r,n),o)).status)return o;i[a]=o.value,n=o.index}return E(A(n,i),o)}))}function N(){var t=[].slice.call(arguments);if(0===t.length)throw new Error("seqMap needs at least one argument");var e=t.pop();return O(e),I.apply(null,t).map((function(t){return e.apply(null,t)}))}function $(){var t=[].slice.call(arguments),e=t.length;if(0===e)return H("zero alternates");for(var r=0;r<e;r+=1)S(t[r]);return n((function(e,r){for(var n,o=0;o<t.length;o+=1)if((n=E(t[o]._(e,r),n)).status)return n;return n}))}function L(t,e){return U(t,e).or(V([]))}function U(t,e){return S(t),S(e),N(t,e.then(t).many(),(function(t,e){return[t].concat(e)}))}function q(t){D(t);var e="'"+t+"'";return n((function(r,n){var o=n+t.length,i=r.slice(n,o);return i===t?A(o,i):M(n,e)}))}function z(t,e){!function(t){if(!(t instanceof RegExp))throw new Error("not a regexp: "+t);for(var e=B(t),r=0;r<e.length;r++){var n=e.charAt(r);if("i"!==n&&"m"!==n&&"u"!==n&&"s"!==n)throw new Error('unsupported regexp flag "'+n+'": '+t)}}(t),arguments.length>=2?x(e):e=0;var r=function(t){return RegExp("^(?:"+t.source+")",B(t))}(t),o=""+t;return n((function(t,n){var i=r.exec(t.slice(n));if(i){if(0<=e&&e<=i.length){var a=i[0],s=i[e];return A(n+a.length,s)}return M(n,"valid match group (0 to "+i.length+") in "+o)}return M(n,o)}))}function V(t){return n((function(e,r){return A(r,t)}))}function H(t){return n((function(e,r){return M(r,t)}))}function G(t){if(v(t))return n((function(e,r){var n=t._(e,r);return n.index=r,n.value="",n}));if("string"==typeof t)return G(q(t));if(t instanceof RegExp)return G(z(t));throw new Error("not a string, regexp, or parser: "+t)}function W(t){return S(t),n((function(e,r){var n=t._(e,r),o=e.slice(r,n.index);return n.status?M(r,'not "'+o+'"'):A(r,null)}))}function Z(t){return O(t),n((function(e,r){var n=k(e,r);return r<e.length&&t(n)?A(r+1,n):M(r,"a character/byte matching "+t)}))}function J(t,e){arguments.length<2&&(e=t,t=void 0);var r=n((function(t,n){return r._=e()._,r._(t,n)}));return t?r.desc(t):r}function Q(){return H("fantasy-land/empty")}o.parse=function(t){if("string"!=typeof t&&!w(t))throw new Error(".parse must be called with a string or Buffer as its argument");var e=this.skip(tt)._(t,0);return e.status?{status:!0,value:e.value}:{status:!1,index:C(t,e.furthest),expected:e.expected}},o.tryParse=function(t){var e=this.parse(t);if(e.status)return e.value;var r=R(t,e),n=new Error(r);throw n.type="ParsimmonError",n.result=e,n},o.assert=function(t,e){return this.chain((function(r){return t(r)?V(r):H(e)}))},o.or=function(t){return $(this,t)},o.trim=function(t){return this.wrap(t,t)},o.wrap=function(t,e){return N(t,this,e,(function(t,e){return e}))},o.thru=function(t){return t(this)},o.then=function(t){return S(t),I(this,t).map((function(t){return t[1]}))},o.many=function(){var t=this;return n((function(e,r){for(var n=[],o=void 0;;){if(!(o=E(t._(e,r),o)).status)return E(A(r,n),o);if(r===o.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");r=o.index,n.push(o.value)}}))},o.tieWith=function(t){return D(t),this.map((function(e){if(function(t){if(!b(t))throw new Error("not an array: "+t)}(e),e.length){D(e[0]);for(var r=e[0],n=1;n<e.length;n++)D(e[n]),r+=t+e[n];return r}return""}))},o.tie=function(){return this.tieWith("")},o.times=function(t,e){var r=this;return arguments.length<2&&(e=t),x(t),x(e),n((function(n,o){for(var i=[],a=void 0,s=void 0,u=0;u<t;u+=1){if(s=E(a=r._(n,o),s),!a.status)return s;o=a.index,i.push(a.value)}for(;u<e&&(s=E(a=r._(n,o),s),a.status);u+=1)o=a.index,i.push(a.value);return E(A(o,i),s)}))},o.result=function(t){return this.map((function(){return t}))},o.atMost=function(t){return this.times(0,t)},o.atLeast=function(t){return N(this.times(t),this.many(),(function(t,e){return t.concat(e)}))},o.map=function(t){O(t);var e=this;return n((function(r,n){var o=e._(r,n);return o.status?E(A(o.index,t(o.value)),o):o}))},o.contramap=function(t){O(t);var e=this;return n((function(r,n){var o=e.parse(t(r.slice(n)));return o.status?A(n+r.length,o.value):o}))},o.promap=function(t,e){return O(t),O(e),this.contramap(t).map(e)},o.skip=function(t){return I(this,t).map((function(t){return t[0]}))},o.mark=function(){return N(Y,this,Y,(function(t,e,r){return{start:t,value:e,end:r}}))},o.node=function(t){return N(Y,this,Y,(function(e,r,n){return{name:t,value:r,start:e,end:n}}))},o.sepBy=function(t){return L(this,t)},o.sepBy1=function(t){return U(this,t)},o.lookahead=function(t){return this.skip(G(t))},o.notFollowedBy=function(t){return this.skip(W(t))},o.desc=function(t){b(t)||(t=[t]);var e=this;return n((function(r,n){var o=e._(r,n);return o.status||(o.expected=t),o}))},o.fallback=function(t){return this.or(V(t))},o.ap=function(t){return N(t,this,(function(t,e){return t(e)}))},o.chain=function(t){var e=this;return n((function(r,n){var o=e._(r,n);return o.status?E(t(o.value)._(r,o.index),o):o}))},o.concat=o.or,o.empty=Q,o.of=V,o["fantasy-land/ap"]=o.ap,o["fantasy-land/chain"]=o.chain,o["fantasy-land/concat"]=o.concat,o["fantasy-land/empty"]=o.empty,o["fantasy-land/of"]=o.of,o["fantasy-land/map"]=o.map;var Y=n((function(t,e){return A(e,C(t,e))})),K=n((function(t,e){return e>=t.length?M(e,"any character/byte"):A(e+1,k(t,e))})),X=n((function(t,e){return A(t.length,t.slice(e))})),tt=n((function(t,e){return e<t.length?M(e,"EOF"):A(e,null)})),et=z(/[0-9]/).desc("a digit"),rt=z(/[0-9]*/).desc("optional digits"),nt=z(/[a-z]/i).desc("a letter"),ot=z(/[a-z]*/i).desc("optional letters"),it=z(/\s*/).desc("optional whitespace"),at=z(/\s+/).desc("whitespace"),st=q("\r"),ut=q("\n"),ct=q("\r\n"),lt=$(ct,ut,st).desc("newline"),ft=$(lt,tt);n.all=X,n.alt=$,n.any=K,n.cr=st,n.createLanguage=function(t){var e={};for(var r in t)({}).hasOwnProperty.call(t,r)&&function(r){e[r]=J((function(){return t[r](e)}))}(r);return e},n.crlf=ct,n.custom=function(t){return n(t(A,M))},n.digit=et,n.digits=rt,n.empty=Q,n.end=ft,n.eof=tt,n.fail=H,n.formatError=R,n.index=Y,n.isParser=v,n.lazy=J,n.letter=nt,n.letters=ot,n.lf=ut,n.lookahead=G,n.makeFailure=M,n.makeSuccess=A,n.newline=lt,n.noneOf=function(t){return Z((function(e){return t.indexOf(e)<0})).desc("none of '"+t+"'")},n.notFollowedBy=W,n.of=V,n.oneOf=function(t){for(var e=t.split(""),r=0;r<e.length;r++)e[r]="'"+e[r]+"'";return Z((function(e){return t.indexOf(e)>=0})).desc(e)},n.optWhitespace=it,n.Parser=n,n.range=function(t,e){return Z((function(r){return t<=r&&r<=e})).desc(t+"-"+e)},n.regex=z,n.regexp=z,n.sepBy=L,n.sepBy1=U,n.seq=I,n.seqMap=N,n.seqObj=function(){for(var t,e={},r=0,o=(t=arguments,Array.prototype.slice.call(t)),i=o.length,a=0;a<i;a+=1){var s=o[a];if(!v(s)){if(b(s)&&2===s.length&&"string"==typeof s[0]&&v(s[1])){var u=s[0];if(Object.prototype.hasOwnProperty.call(e,u))throw new Error("seqObj: duplicate key "+u);e[u]=!0,r++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if(0===r)throw new Error("seqObj expects at least one named parser, found zero");return n((function(t,e){for(var r,n={},a=0;a<i;a+=1){var s,u;if(b(o[a])?(s=o[a][0],u=o[a][1]):(s=null,u=o[a]),!(r=E(u._(t,e),r)).status)return r;s&&(n[s]=r.value),e=r.index}return E(A(e,n),r)}))},n.string=q,n.succeed=V,n.takeWhile=function(t){return O(t),n((function(e,r){for(var n=r;n<e.length&&t(k(e,n));)n++;return A(n,e.slice(r,n))}))},n.test=Z,n.whitespace=at,n["fantasy-land/empty"]=Q,n["fantasy-land/of"]=V,n.Binary={bitSeq:f,bitSeqObj:function(t){l();var e={},r=0,n=s((function(t){if(b(t)){var n=t;if(2!==n.length)throw new Error("["+n.join(", ")+"] should be length 2, got length "+n.length);if(D(n[0]),x(n[1]),Object.prototype.hasOwnProperty.call(e,n[0]))throw new Error("duplicate key in bitSeqObj: "+n[0]);return e[n[0]]=!0,r++,n}return x(t),[null,t]}),t);if(r<1)throw new Error("bitSeqObj expects at least one named pair, got ["+t.join(", ")+"]");var o=s((function(t){return t[0]}),n);return f(s((function(t){return t[1]}),n)).map((function(t){return a((function(t,e){return null!==e[0]&&(t[e[0]]=e[1]),t}),{},s((function(e,r){return[e,t[r]]}),o))}))},byte:function(t){if(l(),x(t),t>255)throw new Error("Value specified to byte constructor ("+t+"=0x"+t.toString(16)+") is larger in value than a single byte.");var e=(t>15?"0x":"0x0")+t.toString(16);return n((function(r,n){var o=k(r,n);return o===t?A(n+1,o):M(n,e)}))},buffer:function(t){return h("buffer",t).map((function(t){return Buffer.from(t)}))},encodedString:function(t,e){return h("string",e).map((function(e){return e.toString(t)}))},uintBE:d,uint8BE:d(1),uint16BE:d(2),uint32BE:d(4),uintLE:m,uint8LE:m(1),uint16LE:m(2),uint32LE:m(4),intBE:y,int8BE:y(1),int16BE:y(2),int32BE:y(4),intLE:g,int8LE:g(1),int16LE:g(2),int32LE:g(4),floatBE:h("floatBE",4).map((function(t){return t.readFloatBE(0)})),floatLE:h("floatLE",4).map((function(t){return t.readFloatLE(0)})),doubleBE:h("doubleBE",8).map((function(t){return t.readDoubleBE(0)})),doubleLE:h("doubleLE",8).map((function(t){return t.readDoubleLE(0)}))},t.exports=n}])},499:(t,e,r)=>{e.pbkdf2=r(4874),e.pbkdf2Sync=r(8840)},4874:(t,e,r)=>{var n,o,i=r(7834).Buffer,a=r(7351),s=r(5214),u=r(8840),c=r(7232),l=r.g.crypto&&r.g.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(){return o||(o=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function d(t,e,r,n,o){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:o}},t,n<<3)})).then((function(t){return i.from(t)}))}t.exports=function(t,e,o,m,y,g){"function"==typeof y&&(g=y,y=void 0);var v=f[(y=y||"sha1").toLowerCase()];if(v&&"function"==typeof r.g.Promise){if(a(o,m),t=c(t,s,"Password"),e=c(e,s,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){p()((function(){e(null,t)}))}),(function(t){p()((function(){e(t)}))}))}(function(t){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var e=d(n=n||i.alloc(8),n,10,128,t).then((function(){return!0})).catch((function(){return!1}));return h[t]=e,e}(v).then((function(r){return r?d(t,e,o,m,v):u(t,e,o,m,y)})),g)}else p()((function(){var r;try{r=u(t,e,o,m,y)}catch(t){return g(t)}g(null,r)}))}},5214:(t,e,r)=>{var n;n=r.g.process&&r.g.process.browser?"utf-8":r.g.process&&r.g.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n},7351:t=>{var e=Math.pow(2,30)-1;t.exports=function(t,r){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>e||r!=r)throw new TypeError("Bad key length")}},8840:(t,e,r)=>{var n=r(2511),o=r(1445),i=r(9065),a=r(7834).Buffer,s=r(7351),u=r(5214),c=r(7232),l=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(t,e,r){var s=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new o).update(t).digest()}:"md5"===t?n:function(e){return i(t).update(e).digest()}}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=s(e):e.length<u&&(e=a.concat([e,l],u));for(var c=a.allocUnsafe(u+f[t]),h=a.allocUnsafe(u+f[t]),p=0;p<u;p++)c[p]=54^e[p],h[p]=92^e[p];var d=a.allocUnsafe(u+r+4);c.copy(d,0,0,u),this.ipad1=d,this.ipad2=c,this.opad=h,this.alg=t,this.blocksize=u,this.hash=s,this.size=f[t]}h.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,r,n,o){s(r,n);var i=new h(o=o||"sha1",t=c(t,u,"Password"),(e=c(e,u,"Salt")).length),l=a.allocUnsafe(n),p=a.allocUnsafe(e.length+4);e.copy(p,0,0,e.length);for(var d=0,m=f[o],y=Math.ceil(n/m),g=1;g<=y;g++){p.writeUInt32BE(g,e.length);for(var v=i.run(p,i.ipad1),b=v,w=1;w<r;w++){b=i.run(b,i.ipad2);for(var A=0;A<m;A++)v[A]^=b[A]}v.copy(l,d),d+=m}return l}},7232:(t,e,r)=>{var n=r(7834).Buffer;t.exports=function(t,e,r){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},8493:(t,e,r)=>{e.publicEncrypt=r(1896),e.privateDecrypt=r(6932),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},8525:(t,e,r)=>{var n=r(6162),o=r(7834).Buffer;function i(t){var e=o.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,a=o.alloc(0),s=0;a.length<e;)r=i(s++),a=o.concat([a,n("sha1").update(t).update(r).digest()]);return a.slice(0,e)}},2216:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function i(t,e,r){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(5862).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=s(t,r);return r-1>=e&&(n|=s(t,r-1)<<4),n}function c(t,e,r,n){for(var o=0,i=Math.min(t.length,r),a=e;a<i;a++){var s=t.charCodeAt(a)-48;o*=n,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}i.isBN=function(t){return t instanceof i||null!==t&&"object"==typeof t&&t.constructor.wordSize===i.wordSize&&Array.isArray(t.words)},i.max=function(t,e){return t.cmp(e)>0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<t.length&&(16===e?this._parseHex(t,o,r):(this._parseBase(t,e,o),"le"===r&&this._initArray(this.toArray(),e,r)))},i.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},i.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=t.length-1,i=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=t.length-1;n>=e;n-=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(t.length-e)%2==0?e+1:e;n<t.length;n+=2)o=u(t,e,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=e)n++;n--,o=o/e|0;for(var i=t.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(t,l,l+n,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(t,l,t.length,e),l=0;l<a;l++)f*=e;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},i.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},i.prototype.clone=function(){var t=new i(null);return this.copy(t),t},i.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var o=0|t.words[0],i=0|e.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p<=h;p++){var d=c-p|0;l+=(a=(o=0|t.words[d])*(i=0|e.words[p])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);r=0!=(i=s>>>24-o&16777215)||a!==this.length-1?l[6-u.length]+u+r:u+r,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],p=h[t];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:l[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(t,e){return n(void 0!==a),this.toArrayLike(a,t,e)},i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(i),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s<i;s++)c[s]=0}else{for(s=0;s<i-o;s++)c[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[i-s-1]=a}return c},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},i.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},i.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},i.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},i.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},i.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},i.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},i.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,o=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var o=0,i=0;i<n.length;i++)e=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&e,o=e>>>26;for(;0!==o&&i<r.length;i++)e=(0|r.words[i])+o,this.words[i]=67108863&e,o=e>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a<n.length;a++)i=(e=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&e;for(;0!==i&&a<r.length;a++)i=(e=(0|r.words[a])+i)>>26,this.words[a]=67108863&e;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,o,i,a=t.words,s=e.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,p=0|a[1],d=8191&p,m=p>>>13,y=0|a[2],g=8191&y,v=y>>>13,b=0|a[3],w=8191&b,A=b>>>13,M=0|a[4],E=8191&M,_=M>>>13,C=0|a[5],S=8191&C,k=C>>>13,x=0|a[6],O=8191&x,D=x>>>13,F=0|a[7],T=8191&F,j=F>>>13,P=0|a[8],R=8191&P,B=P>>>13,I=0|a[9],N=8191&I,$=I>>>13,L=0|s[0],U=8191&L,q=L>>>13,z=0|s[1],V=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Z=G>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,K=0|s[4],X=8191&K,tt=K>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,ot=0|s[6],it=8191&ot,at=ot>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191&lt,ht=lt>>>13,pt=0|s[9],dt=8191&pt,mt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,U))|0)+((8191&(o=(o=Math.imul(f,q))+Math.imul(h,U)|0))<<13)|0;c=((i=Math.imul(h,q))+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,U),o=(o=Math.imul(d,q))+Math.imul(m,U)|0,i=Math.imul(m,q);var gt=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(o=(o=o+Math.imul(f,H)|0)+Math.imul(h,V)|0))<<13)|0;c=((i=i+Math.imul(h,H)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(g,U),o=(o=Math.imul(g,q))+Math.imul(v,U)|0,i=Math.imul(v,q),n=n+Math.imul(d,V)|0,o=(o=o+Math.imul(d,H)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,H)|0;var vt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(h,W)|0))<<13)|0;c=((i=i+Math.imul(h,Z)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,q))+Math.imul(A,U)|0,i=Math.imul(A,q),n=n+Math.imul(g,V)|0,o=(o=o+Math.imul(g,H)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,H)|0,n=n+Math.imul(d,W)|0,o=(o=o+Math.imul(d,Z)|0)+Math.imul(m,W)|0,i=i+Math.imul(m,Z)|0;var bt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Y)|0)+Math.imul(h,Q)|0))<<13)|0;c=((i=i+Math.imul(h,Y)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(E,U),o=(o=Math.imul(E,q))+Math.imul(_,U)|0,i=Math.imul(_,q),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,H)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,H)|0,n=n+Math.imul(g,W)|0,o=(o=o+Math.imul(g,Z)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Z)|0,n=n+Math.imul(d,Q)|0,o=(o=o+Math.imul(d,Y)|0)+Math.imul(m,Q)|0,i=i+Math.imul(m,Y)|0;var wt=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,tt)|0)+Math.imul(h,X)|0))<<13)|0;c=((i=i+Math.imul(h,tt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(S,U),o=(o=Math.imul(S,q))+Math.imul(k,U)|0,i=Math.imul(k,q),n=n+Math.imul(E,V)|0,o=(o=o+Math.imul(E,H)|0)+Math.imul(_,V)|0,i=i+Math.imul(_,H)|0,n=n+Math.imul(w,W)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(A,W)|0,i=i+Math.imul(A,Z)|0,n=n+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,Y)|0,n=n+Math.imul(d,X)|0,o=(o=o+Math.imul(d,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var At=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(o=(o=o+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))<<13)|0;c=((i=i+Math.imul(h,nt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(O,U),o=(o=Math.imul(O,q))+Math.imul(D,U)|0,i=Math.imul(D,q),n=n+Math.imul(S,V)|0,o=(o=o+Math.imul(S,H)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,H)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(A,Q)|0,i=i+Math.imul(A,Y)|0,n=n+Math.imul(g,X)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul(v,X)|0,i=i+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,o=(o=o+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,i=i+Math.imul(m,nt)|0;var Mt=(c+(n=n+Math.imul(f,it)|0)|0)+((8191&(o=(o=o+Math.imul(f,at)|0)+Math.imul(h,it)|0))<<13)|0;c=((i=i+Math.imul(h,at)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(T,U),o=(o=Math.imul(T,q))+Math.imul(j,U)|0,i=Math.imul(j,q),n=n+Math.imul(O,V)|0,o=(o=o+Math.imul(O,H)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,H)|0,n=n+Math.imul(S,W)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Z)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Y)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Y)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(A,X)|0,i=i+Math.imul(A,tt)|0,n=n+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,nt)|0)+Math.imul(v,rt)|0,i=i+Math.imul(v,nt)|0,n=n+Math.imul(d,it)|0,o=(o=o+Math.imul(d,at)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,at)|0;var Et=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(o=(o=o+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((i=i+Math.imul(h,ct)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,q))+Math.imul(B,U)|0,i=Math.imul(B,q),n=n+Math.imul(T,V)|0,o=(o=o+Math.imul(T,H)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,H)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Z)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Y)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,Y)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,tt)|0,n=n+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,nt)|0)+Math.imul(A,rt)|0,i=i+Math.imul(A,nt)|0,n=n+Math.imul(g,it)|0,o=(o=o+Math.imul(g,at)|0)+Math.imul(v,it)|0,i=i+Math.imul(v,at)|0,n=n+Math.imul(d,ut)|0,o=(o=o+Math.imul(d,ct)|0)+Math.imul(m,ut)|0,i=i+Math.imul(m,ct)|0;var _t=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(o=(o=o+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((i=i+Math.imul(h,ht)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,q))+Math.imul($,U)|0,i=Math.imul($,q),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,H)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,H)|0,n=n+Math.imul(T,W)|0,o=(o=o+Math.imul(T,Z)|0)+Math.imul(j,W)|0,i=i+Math.imul(j,Z)|0,n=n+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,Y)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,Y)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,tt)|0)+Math.imul(k,X)|0,i=i+Math.imul(k,tt)|0,n=n+Math.imul(E,rt)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(_,rt)|0,i=i+Math.imul(_,nt)|0,n=n+Math.imul(w,it)|0,o=(o=o+Math.imul(w,at)|0)+Math.imul(A,it)|0,i=i+Math.imul(A,at)|0,n=n+Math.imul(g,ut)|0,o=(o=o+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,i=i+Math.imul(v,ct)|0,n=n+Math.imul(d,ft)|0,o=(o=o+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,i=i+Math.imul(m,ht)|0;var Ct=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&(o=(o=o+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))<<13)|0;c=((i=i+Math.imul(h,mt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(N,V),o=(o=Math.imul(N,H))+Math.imul($,V)|0,i=Math.imul($,H),n=n+Math.imul(R,W)|0,o=(o=o+Math.imul(R,Z)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(T,Q)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(j,Q)|0,i=i+Math.imul(j,Y)|0,n=n+Math.imul(O,X)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(D,X)|0,i=i+Math.imul(D,tt)|0,n=n+Math.imul(S,rt)|0,o=(o=o+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,i=i+Math.imul(k,nt)|0,n=n+Math.imul(E,it)|0,o=(o=o+Math.imul(E,at)|0)+Math.imul(_,it)|0,i=i+Math.imul(_,at)|0,n=n+Math.imul(w,ut)|0,o=(o=o+Math.imul(w,ct)|0)+Math.imul(A,ut)|0,i=i+Math.imul(A,ct)|0,n=n+Math.imul(g,ft)|0,o=(o=o+Math.imul(g,ht)|0)+Math.imul(v,ft)|0,i=i+Math.imul(v,ht)|0;var St=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))<<13)|0;c=((i=i+Math.imul(m,mt)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(N,W),o=(o=Math.imul(N,Z))+Math.imul($,W)|0,i=Math.imul($,Z),n=n+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,Y)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Y)|0,n=n+Math.imul(T,X)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(j,X)|0,i=i+Math.imul(j,tt)|0,n=n+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(D,rt)|0,i=i+Math.imul(D,nt)|0,n=n+Math.imul(S,it)|0,o=(o=o+Math.imul(S,at)|0)+Math.imul(k,it)|0,i=i+Math.imul(k,at)|0,n=n+Math.imul(E,ut)|0,o=(o=o+Math.imul(E,ct)|0)+Math.imul(_,ut)|0,i=i+Math.imul(_,ct)|0,n=n+Math.imul(w,ft)|0,o=(o=o+Math.imul(w,ht)|0)+Math.imul(A,ft)|0,i=i+Math.imul(A,ht)|0;var kt=(c+(n=n+Math.imul(g,dt)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul(v,dt)|0))<<13)|0;c=((i=i+Math.imul(v,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(N,Q),o=(o=Math.imul(N,Y))+Math.imul($,Q)|0,i=Math.imul($,Y),n=n+Math.imul(R,X)|0,o=(o=o+Math.imul(R,tt)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,tt)|0,n=n+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,nt)|0)+Math.imul(j,rt)|0,i=i+Math.imul(j,nt)|0,n=n+Math.imul(O,it)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(D,it)|0,i=i+Math.imul(D,at)|0,n=n+Math.imul(S,ut)|0,o=(o=o+Math.imul(S,ct)|0)+Math.imul(k,ut)|0,i=i+Math.imul(k,ct)|0,n=n+Math.imul(E,ft)|0,o=(o=o+Math.imul(E,ht)|0)+Math.imul(_,ft)|0,i=i+Math.imul(_,ht)|0;var xt=(c+(n=n+Math.imul(w,dt)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(A,dt)|0))<<13)|0;c=((i=i+Math.imul(A,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(N,X),o=(o=Math.imul(N,tt))+Math.imul($,X)|0,i=Math.imul($,tt),n=n+Math.imul(R,rt)|0,o=(o=o+Math.imul(R,nt)|0)+Math.imul(B,rt)|0,i=i+Math.imul(B,nt)|0,n=n+Math.imul(T,it)|0,o=(o=o+Math.imul(T,at)|0)+Math.imul(j,it)|0,i=i+Math.imul(j,at)|0,n=n+Math.imul(O,ut)|0,o=(o=o+Math.imul(O,ct)|0)+Math.imul(D,ut)|0,i=i+Math.imul(D,ct)|0,n=n+Math.imul(S,ft)|0,o=(o=o+Math.imul(S,ht)|0)+Math.imul(k,ft)|0,i=i+Math.imul(k,ht)|0;var Ot=(c+(n=n+Math.imul(E,dt)|0)|0)+((8191&(o=(o=o+Math.imul(E,mt)|0)+Math.imul(_,dt)|0))<<13)|0;c=((i=i+Math.imul(_,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(N,rt),o=(o=Math.imul(N,nt))+Math.imul($,rt)|0,i=Math.imul($,nt),n=n+Math.imul(R,it)|0,o=(o=o+Math.imul(R,at)|0)+Math.imul(B,it)|0,i=i+Math.imul(B,at)|0,n=n+Math.imul(T,ut)|0,o=(o=o+Math.imul(T,ct)|0)+Math.imul(j,ut)|0,i=i+Math.imul(j,ct)|0,n=n+Math.imul(O,ft)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(D,ft)|0,i=i+Math.imul(D,ht)|0;var Dt=(c+(n=n+Math.imul(S,dt)|0)|0)+((8191&(o=(o=o+Math.imul(S,mt)|0)+Math.imul(k,dt)|0))<<13)|0;c=((i=i+Math.imul(k,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(N,it),o=(o=Math.imul(N,at))+Math.imul($,it)|0,i=Math.imul($,at),n=n+Math.imul(R,ut)|0,o=(o=o+Math.imul(R,ct)|0)+Math.imul(B,ut)|0,i=i+Math.imul(B,ct)|0,n=n+Math.imul(T,ft)|0,o=(o=o+Math.imul(T,ht)|0)+Math.imul(j,ft)|0,i=i+Math.imul(j,ht)|0;var Ft=(c+(n=n+Math.imul(O,dt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(D,dt)|0))<<13)|0;c=((i=i+Math.imul(D,mt)|0)+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,n=Math.imul(N,ut),o=(o=Math.imul(N,ct))+Math.imul($,ut)|0,i=Math.imul($,ct),n=n+Math.imul(R,ft)|0,o=(o=o+Math.imul(R,ht)|0)+Math.imul(B,ft)|0,i=i+Math.imul(B,ht)|0;var Tt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(j,dt)|0))<<13)|0;c=((i=i+Math.imul(j,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(N,ft),o=(o=Math.imul(N,ht))+Math.imul($,ft)|0,i=Math.imul($,ht);var jt=(c+(n=n+Math.imul(R,dt)|0)|0)+((8191&(o=(o=o+Math.imul(R,mt)|0)+Math.imul(B,dt)|0))<<13)|0;c=((i=i+Math.imul(B,mt)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Pt=(c+(n=Math.imul(N,dt))|0)+((8191&(o=(o=Math.imul(N,mt))+Math.imul($,dt)|0))<<13)|0;return c=((i=Math.imul($,mt))+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u[0]=yt,u[1]=gt,u[2]=vt,u[3]=bt,u[4]=wt,u[5]=At,u[6]=Mt,u[7]=Et,u[8]=_t,u[9]=Ct,u[10]=St,u[11]=kt,u[12]=xt,u[13]=Ot,u[14]=Dt,u[15]=Ft,u[16]=Tt,u[17]=jt,u[18]=Pt,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return(new y).mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(d=p),i.prototype.mulTo=function(t,e){var r,n=this.length+t.length;return r=10===this.length&&10===t.length?d(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,e.length-1),c=Math.max(0,i-t.length+1);c<=u;c++){var l=i-c,f=(0|t.words[l])*(0|e.words[c]),h=67108863&f;s=67108863&(h=h+s|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,t,e):m(this,t,e),r},y.prototype.makeRBT=function(t){for(var e=new Array(t),r=i.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,o=0;o<e;o++)n|=(1&t)<<e-o-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,o,i){for(var a=0;a<i;a++)n[a]=e[t[a]],o[a]=r[t[a]]},y.prototype.transform=function(t,e,r,n,o,i){this.permute(i,t,e,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var f=u,h=c,p=0;p<a;p++){var d=r[l+p],m=n[l+p],y=r[l+p+a],g=n[l+p+a],v=f*y-h*g;g=f*g+h*y,y=v,r[l+p]=d+y,n[l+p]=m+g,r[l+p+a]=d-y,n[l+p+a]=m-g,p!==s&&(v=u*f-c*h,h=u*h+c*f,f=v)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=t[n];t[n]=t[r-n-1],t[r-n-1]=o,o=e[n],e[n]=-e[r-n-1],e[r-n-1]=-o}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var o=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&o,r=o<67108864?0:o/67108864|0}return t},y.prototype.convert13b=function(t,e,r,o){for(var i=0,a=0;a<e;a++)i+=0|t[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*e;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},y.prototype.stub=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,a,n),this.convert13b(e.words,e.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,f,n,o);for(var p=0;p<n;p++){var d=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=d}return this.conjugate(s,u,n),this.transform(s,u,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),m(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var o=(0|this.words[r])*t,i=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,o=r%26;e[r]=(t.words[n]&1<<o)>>>o}return e}(t);if(0===e.length)return new i(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var o=r.sqr();n<e.length;n++,o=o.sqr())0!==e[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,o=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&i,u=(0|this.words[e])-s<<r;this.words[e]=u|a,a=s>>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},i.prototype.iushrn=function(t,e,r){var o;n("number"==typeof t&&t>=0),o=e?(e-e%26)/26:0;var i=t%26,a=Math.min((t-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var f=0|this.words[c];this.words[c]=l<<26-i|f>>>i,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,o=1<<e;return!(this.length<=r||!(this.words[r]&o))},i.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(t){return this.clone().imaskn(t)},i.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},i.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},i.prototype.addn=function(t){return this.clone().iaddn(t)},i.prototype.subn=function(t){return this.clone().isubn(t)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(t,e,r){var o,i,a=t.length+r;this._expand(a);var s=0;for(o=0;o<t.length;o++){i=(0|this.words[o+r])+s;var u=(0|t.words[o])*e;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this.strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),o=t,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),o=t.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modn=function(t){n(t<=67108863);for(var e=(1<<26)%t,r=0,o=this.length-1;o>=0;o--)r=(e*r+(0|this.words[o]))%t;return r},i.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*e;this.words[r]=o/t|0,e=o%t}return this.strip()},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var d=0,m=1;0==(r.words[0]&m)&&d<26;++d,m<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=e.cmp(r);if(o<0){var i=e;e=r,r=i}else if(0===o||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,o=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},i.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},i.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|t.words[r];if(n!==o){n<o?e=-1:n>o&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},o(b,v),b.prototype.split=function(t,e){for(var r=4194303,n=Math.min(t.length,9),o=0;o<n;o++)e.words[o]=t.words[o];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&r,o=10;o<t.length;o++){var a=0|t.words[o];t.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,t.words[o-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(w,v),o(A,v),o(M,v),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=19*(0|t.words[r])+e,o=67108863&n;n>>>=26,t.words[r]=o,e=n}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new w;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return g[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,o),h=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),d=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<d);var g=this.pow(f,new i(1).iushln(d-y-1));h=h.redMul(g),f=g.redSqr(),p=p.redMul(f),d=y}return h},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new i(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var o=r[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var f=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new _(t)},o(_,E),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},6932:(t,e,r)=>{var n=r(8016),o=r(8525),i=r(1273),a=r(2216),s=r(1857),u=r(6162),c=r(6112),l=r(7834).Buffer;t.exports=function(t,e,r){var f;f=t.padding?t.padding:r?1:4;var h,p=n(t),d=p.modulus.byteLength();if(e.length>d||new a(e).cmp(p.modulus)>=0)throw new Error("decryption error");h=r?c(new a(e),p):s(e,p);var m=l.alloc(d-h.length);if(h=l.concat([m,h],d),4===f)return function(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(l.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),c=e.slice(a+1),f=i(s,o(c,a)),h=i(c,o(f,r-a-1));if(function(t,e){t=l.from(t),e=l.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));for(var o=-1;++o<n;)r+=t[o]^e[o];return r}(n,h.slice(0,a)))throw new Error("decryption error");for(var p=a;0===h[p];)p++;if(1!==h[p++])throw new Error("decryption error");return h.slice(p)}(p,h);if(1===f)return function(t,e,r){for(var n=e.slice(0,2),o=2,i=0;0!==e[o++];)if(o>=e.length){i++;break}var a=e.slice(2,o-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&i++,a.length<8&&i++,i)throw new Error("decryption error");return e.slice(o)}(0,h,r);if(3===f)return h;throw new Error("unknown padding")}},1896:(t,e,r)=>{var n=r(8016),o=r(5003),i=r(6162),a=r(8525),s=r(1273),u=r(2216),c=r(6112),l=r(1857),f=r(7834).Buffer;t.exports=function(t,e,r){var h;h=t.padding?t.padding:r?1:4;var p,d=n(t);if(4===h)p=function(t,e){var r=t.modulus.byteLength(),n=e.length,c=i("sha1").update(f.alloc(0)).digest(),l=c.length,h=2*l;if(n>r-h-2)throw new Error("message too long");var p=f.alloc(r-n-h-2),d=r-l-1,m=o(l),y=s(f.concat([c,p,f.alloc(1,1),e],d),a(m,d)),g=s(m,a(y,l));return new u(f.concat([f.alloc(1),g,y],r))}(d,e);else if(1===h)p=function(t,e,r){var n,i=e.length,a=t.modulus.byteLength();if(i>a-11)throw new Error("message too long");return n=r?f.alloc(a-i-3,255):function(t){for(var e,r=f.allocUnsafe(t),n=0,i=o(2*t),a=0;n<t;)a===i.length&&(i=o(2*t),a=0),(e=i[a++])&&(r[n++]=e);return r}(a-i-3),new u(f.concat([f.from([0,r?1:2]),n,f.alloc(1),e],a))}(d,e,r);else{if(3!==h)throw new Error("unknown padding");if((p=new u(e)).cmp(d.modulus)>=0)throw new Error("data too long for modulus")}return r?l(p,d):c(p,d)}},6112:(t,e,r)=>{var n=r(2216),o=r(7834).Buffer;t.exports=function(t,e){return o.from(t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed().toArray())}},1273:t=>{t.exports=function(t,e){for(var r=t.length,n=-1;++n<r;)t[n]^=e[n];return t}},8058:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ucs2decode:()=>p,ucs2encode:()=>d,decode:()=>g,encode:()=>v,toASCII:()=>w,toUnicode:()=>b,default:()=>A});const n=2147483647,o=36,i=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,l=String.fromCharCode;function f(t){throw new RangeError(u[t])}function h(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]);const o=function(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}((t=t.replace(s,".")).split("."),e).join(".");return n+o}function p(t){const e=[];let r=0;const n=t.length;for(;r<n;){const o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=t.charCodeAt(r++);56320==(64512&n)?e.push(((1023&o)<<10)+(1023&n)+65536):(e.push(o),r--)}else e.push(o)}return e}const d=t=>String.fromCodePoint(...t),m=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},y=function(t,e,r){let n=0;for(t=r?c(t/700):t>>1,t+=c(t/e);t>455;n+=o)t=c(t/35);return c(n+36*t/(t+38))},g=function(t){const e=[],r=t.length;let i=0,a=128,s=72,u=t.lastIndexOf("-");u<0&&(u=0);for(let r=0;r<u;++r)t.charCodeAt(r)>=128&&f("not-basic"),e.push(t.charCodeAt(r));for(let h=u>0?u+1:0;h<r;){let u=i;for(let e=1,a=o;;a+=o){h>=r&&f("invalid-input");const u=(l=t.charCodeAt(h++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:o;(u>=o||u>c((n-i)/e))&&f("overflow"),i+=u*e;const p=a<=s?1:a>=s+26?26:a-s;if(u<p)break;const d=o-p;e>c(n/d)&&f("overflow"),e*=d}const p=e.length+1;s=y(i-u,p,0==u),c(i/p)>n-a&&f("overflow"),a+=c(i/p),i%=p,e.splice(i++,0,a)}var l;return String.fromCodePoint(...e)},v=function(t){const e=[];let r=(t=p(t)).length,i=128,a=0,s=72;for(const r of t)r<128&&e.push(l(r));let u=e.length,h=u;for(u&&e.push("-");h<r;){let r=n;for(const e of t)e>=i&&e<r&&(r=e);const p=h+1;r-i>c((n-a)/p)&&f("overflow"),a+=(r-i)*p,i=r;for(const r of t)if(r<i&&++a>n&&f("overflow"),r==i){let t=a;for(let r=o;;r+=o){const n=r<=s?1:r>=s+26?26:r-s;if(t<n)break;const i=t-n,a=o-n;e.push(l(m(n+i%a,0))),t=c(i/a)}e.push(l(m(t,0))),s=y(a,p,h==u),a=0,++h}++a,++i}return e.join("")},b=function(t){return h(t,(function(t){return i.test(t)?g(t.slice(4).toLowerCase()):t}))},w=function(t){return h(t,(function(t){return a.test(t)?"xn--"+v(t):t}))},A={version:"2.1.0",ucs2:{decode:p,encode:d},decode:g,encode:v,toASCII:w,toUnicode:b}},5003:(t,e,r)=>{"use strict";var n=65536,o=r(7834).Buffer,i=r.g.crypto||r.g.msCrypto;i&&i.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(t);if(t>0)if(t>n)for(var a=0;a<t;a+=n)i.getRandomValues(r.slice(a,a+n));else i.getRandomValues(r);return"function"==typeof e?process.nextTick((function(){e(null,r)})):r}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},9631:(t,e,r)=>{"use strict";function n(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(7834),i=r(5003),a=o.Buffer,s=o.kMaxLength,u=r.g.crypto||r.g.msCrypto,c=Math.pow(2,32)-1;function l(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>s||t>e)throw new RangeError("offset out of range")}function f(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>s)throw new RangeError("buffer too small")}function h(t,e,r,n){if(process.browser){var o=t.buffer,a=new Uint8Array(o,e,r);return u.getRandomValues(a),n?void process.nextTick((function(){n(null,t)})):t}if(!n)return i(r).copy(t,e),t;i(r,(function(r,o){if(r)return n(r);o.copy(t,e),n(null,t)}))}u&&u.getRandomValues||!process.browser?(e.randomFill=function(t,e,n,o){if(!(a.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)o=e,e=0,n=t.length;else if("function"==typeof n)o=n,n=t.length-e;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return l(e,t.length),f(n,e,t.length),h(t,e,n,o)},e.randomFillSync=function(t,e,n){if(void 0===e&&(e=0),!(a.isBuffer(t)||t instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return l(e,t.length),void 0===n&&(n=t.length-e),f(n,e,t.length),h(t,e,n)}):(e.randomFill=n,e.randomFillSync=n)},4452:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var o=function(t){var e,n;function o(e,n,o){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,o))||this}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o}(n);o.prototype.name=n.name,o.prototype.code=t,e[t]=o}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var o,i,a,s,u;if("string"==typeof e&&(i="not ",e.substr(0,i.length)===i)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))a="The ".concat(t," ").concat(o," ").concat(n(e,"type"));else{var c=("number"!=typeof u&&(u=0),u+".".length>(s=t).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(t,'" ').concat(c," ").concat(o," ").concat(n(e,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},7073:(t,e,r)=>{"use strict";var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var o=r(8051),i=r(2557);r(1285)(c,o);for(var a=n(i.prototype),s=0;s<a.length;s++){var u=a[s];c.prototype[u]||(c.prototype[u]=i.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),i.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},5163:(t,e,r)=>{"use strict";t.exports=o;var n=r(7640);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r(1285)(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},8051:(t,e,r)=>{"use strict";var n;t.exports=_,_.ReadableState=E,r(2699).EventEmitter;var o,i=function(t,e){return t.listeners(e).length},a=r(5010),s=r(8834).Buffer,u=r.g.Uint8Array||function(){},c=r(6602);o=c&&c.debuglog?c.debuglog("stream"):function(){};var l,f,h,p=r(6637),d=r(2262),m=r(7605).getHighWaterMark,y=r(4452).q,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,b=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(1285)(_,a);var A=d.errorOrDestroy,M=["error","close","destroy","pause","resume"];function E(t,e,o){n=n||r(7073),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",o),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(214).s),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function _(t){if(n=n||r(7073),!(this instanceof _))return new _(t);var e=this instanceof n;this._readableState=new E(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function C(t,e,r,n,i){o("readableAddChunk",e);var a,c=t._readableState;if(null===e)c.reading=!1,function(t,e){if(o("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,D(t)))}}(t,c);else if(i||(a=function(t,e){var r,n;return n=e,s.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new g("chunk",["string","Buffer","Uint8Array"],e)),r}(c,e)),a)A(t,a);else if(c.objectMode||e&&e.length>0)if("string"==typeof e||c.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)c.endEmitted?A(t,new w):S(t,c,e,!0);else if(c.ended)A(t,new v);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(e=c.decoder.write(e),c.objectMode||0!==e.length?S(t,c,e,!1):F(t,c)):S(t,c,e,!1)}else n||(c.reading=!1,F(t,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function S(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&O(t)),F(t,e)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),_.prototype.destroy=d.destroy,_.prototype._undestroy=d.undestroy,_.prototype._destroy=function(t,e){e(t)},_.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=s.from(t,e),e=""),r=!0),C(this,t,e,!1,r)},_.prototype.unshift=function(t){return C(this,t,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(t){l||(l=r(214).s);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var k=1073741824;function x(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=k?t=k:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(D,t))}function D(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,B(t)}function F(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(o("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function j(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function P(t){o("readable nexttick read 0"),t.read(0)}function R(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function I(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick($,e,t))}function $(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}_.prototype.read=function(t){o("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):O(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&N(this),null;var n,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&o("length less than watermark",i=!0),e.ended||e.reading?o("reading or ended",i=!1):i&&(o("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=x(r,e))),null===(n=t>0?I(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==n&&this.emit("data",n),n},_.prototype._read=function(t){A(this,new b("_read()"))},_.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,e);var a=e&&!1===e.end||t===process.stdout||t===process.stderr?d:s;function s(){o("onend"),t.end()}n.endEmitted?process.nextTick(a):r.once("end",a),t.on("unpipe",(function e(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",h),t.removeListener("finish",p),t.removeListener("drain",u),t.removeListener("error",f),t.removeListener("unpipe",e),r.removeListener("end",s),r.removeListener("end",d),r.removeListener("data",l),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}));var u=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,B(t))}}(r);t.on("drain",u);var c=!1;function l(e){o("ondata");var i=t.write(e);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==L(n.pipes,t))&&!c&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(e){o("onerror",e),d(),t.removeListener("error",f),0===i(t,"error")&&A(t,e)}function h(){t.removeListener("finish",p),d()}function p(){o("onfinish"),t.removeListener("close",h),d()}function d(){o("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events.error?Array.isArray(t._events.error)?t._events.error.unshift(r):t._events.error=[r,t._events.error]:t.on(e,r)}(t,"error",f),t.once("close",h),t.once("finish",p),t.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},_.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?O(this):n.reading||process.nextTick(P,this))),r},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(j,this),r},_.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(j,this),e},_.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(R,t,e))}(this,t)),t.paused=!1,this},_.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a<M.length;a++)t.on(M[a],this.emit.bind(this,M[a]));return this._read=function(e){o("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(_.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=r(1029)),f(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),_._fromList=I,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(_.from=function(t,e){return void 0===h&&(h=r(352)),h(_,t,e)})},7640:(t,e,r)=>{"use strict";t.exports=l;var n=r(4452).q,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(7073);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,r){h(t,e,r)}))}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r(1285)(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,r){r(new o("_transform()"))},l.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},2557:(t,e,r)=>{"use strict";function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;for(t.entry=null;n;){var o=n.callback;e.pendingcb--,o(undefined),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=_,_.WritableState=E;var i,a={deprecate:r(5803)},s=r(5010),u=r(8834).Buffer,c=r.g.Uint8Array||function(){},l=r(2262),f=r(7605).getHighWaterMark,h=r(4452).q,p=h.ERR_INVALID_ARG_TYPE,d=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,g=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,b=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,A=l.errorOrDestroy;function M(){}function E(t,e,i){o=o||r(7073),t=t||{},"boolean"!=typeof i&&(i=e instanceof o),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,o){--e.pendingcb,r?(process.nextTick(o,n),process.nextTick(D,t,e),t._writableState.errorEmitted=!0,A(t,n)):(o(n),t._writableState.errorEmitted=!0,A(t,n),D(t,e))}(t,r,n,e,o);else{var i=x(r)||t.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||k(t,r),n?process.nextTick(S,t,r,i,o):S(t,r,i,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function _(t){var e=this instanceof(o=o||r(7073));if(!e&&!i.call(_,this))return new _(t);this._writableState=new E(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function C(t,e,r,n,o,i,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new g("write")):r?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function S(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),D(t,e)}function k(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var o=e.bufferedRequestCount,i=new Array(o),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,C(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback;if(C(t,e,!1,e.objectMode?1:c.length,c,l,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final((function(r){e.pendingcb--,r&&A(t,r),e.prefinished=!0,t.emit("prefinish"),D(t,e)}))}function D(t,e){var r=x(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(O,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(1285)(_,s),E.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(E.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(t){return!!i.call(this,t)||this===_&&t&&t._writableState instanceof E}})):i=function(t){return t instanceof this},_.prototype.pipe=function(){A(this,new y)},_.prototype.write=function(t,e,r){var n,o=this._writableState,i=!1,a=!o.objectMode&&(n=t,u.isBuffer(n)||n instanceof c);return a&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=M),o.ending?function(t,e){var r=new b;A(t,r),process.nextTick(e,r)}(this,r):(a||function(t,e,r,n){var o;return null===r?o=new v:"string"==typeof r||e.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(A(t,o),process.nextTick(n,o),!1)}(this,o,t,r))&&(o.pendingcb++,i=function(t,e,r,n,o,i){if(!r){var a=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r)),e}(e,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var c=e.length<e.highWaterMark;if(c||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else C(t,e,!1,s,n,o,i);return c}(this,o,a,t,e,r)),i},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||k(this,t))},_.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(t,e,r){r(new d("_write()"))},_.prototype._writev=null,_.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,D(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),_.prototype.destroy=l.destroy,_.prototype._undestroy=l.undestroy,_.prototype._destroy=function(t,e){e(t)}},1029:(t,e,r)=>{"use strict";var n;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(9885),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(t,e){return{value:t,done:e}}function d(t){var e=t[a];if(null!==e){var r=t[h].read();null!==r&&(t[l]=null,t[a]=null,t[s]=null,e(p(r,!1)))}}function m(t){process.nextTick(d,t)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(e,r){process.nextTick((function(){t[u]?r(t[u]):e(p(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[f](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[f])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),y);t.exports=function(t){var e,r=Object.create(g,(o(e={},h,{value:t,writable:!0}),o(e,a,{value:null,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,c,{value:t._readableState.endEmitted,writable:!0}),o(e,f,{value:function(t,e){var n=r[h].read();n?(r[l]=null,r[a]=null,r[s]=null,t(p(n,!1))):(r[a]=t,r[s]=e)},writable:!0}),e));return r[l]=null,i(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[l]=null,r[a]=null,r[s]=null,e(t)),void(r[u]=t)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(p(void 0,!0))),r[c]=!0})),t.on("readable",m.bind(null,r)),r}},6637:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(8834).Buffer,s=r(4854).inspect,u=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,r,n,o=a.allocUnsafe(t>>>0),i=this.head,s=0;i;)e=i.data,r=o,n=s,a.prototype.copy.call(e,r,n),s+=i.data.length,i=i.next;return o}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var o=e.data,i=t>o.length?o.length:t;if(i===o.length?n+=o:n+=o.slice(0,t),0==(t-=i)){i===o.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var o=r.data,i=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,i),0==(t-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&i(e.prototype,r),t}()},2262:t=>{"use strict";function e(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var i=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,t)):process.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?i._writableState?i._writableState.errorEmitted?process.nextTick(r,i):(i._writableState.errorEmitted=!0,process.nextTick(e,i,t)):process.nextTick(e,i,t):o?(process.nextTick(r,i),o(t)):process.nextTick(r,i)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},9885:(t,e,r)=>{"use strict";var n=r(4452).q.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,r,i){if("function"==typeof r)return t(e,null,r);r||(r={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.apply(this,n)}}}(i||o);var a=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||l()},c=e._writableState&&e._writableState.finished,l=function(){s=!1,c=!0,a||i.call(e)},f=e._readableState&&e._readableState.endEmitted,h=function(){a=!1,f=!0,s||i.call(e)},p=function(t){i.call(e,t)},d=function(){var t;return a&&!f?(e._readableState&&e._readableState.ended||(t=new n),i.call(e,t)):s&&!c?(e._writableState&&e._writableState.ended||(t=new n),i.call(e,t)):void 0},m=function(){e.req.on("finish",l)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",l),e.on("abort",d),e.req?m():e.on("request",m)):s&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",h),e.on("finish",l),!1!==r.error&&e.on("error",p),e.on("close",d),function(){e.removeListener("complete",l),e.removeListener("abort",d),e.removeListener("request",m),e.req&&e.req.removeListener("finish",l),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("end",h),e.removeListener("error",p),e.removeListener("close",d)}}},352:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},3495:(t,e,r)=>{"use strict";var n,o=r(4452).q,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,o,i){i=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(i);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=r(9885)),n(t,{readable:e,writable:o},(function(t){if(t)return i(t);s=!0,i()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new a("pipe"))}}function c(t){t()}function l(t,e){return t.pipe(e)}function f(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,o=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new i("streams");var a=e.map((function(t,r){var i=r<e.length-1;return u(t,i,r>0,(function(t){n||(n=t),t&&a.forEach(c),i||(a.forEach(c),o(n))}))}));return e.reduce(l)}},7605:(t,e,r)=>{"use strict";var n=r(4452).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,o){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},5010:(t,e,r)=>{t.exports=r(2699).EventEmitter},7525:(t,e,r)=>{(e=t.exports=r(8051)).Stream=e,e.Readable=e,e.Writable=r(2557),e.Duplex=r(7073),e.Transform=r(7640),e.PassThrough=r(5163),e.finished=r(9885),e.pipeline=r(3495)},1445:(t,e,r)=>{"use strict";var n=r(8834).Buffer,o=r(1285),i=r(4485),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function p(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(t,e){return t<<e|t>>>32-e}function m(t,e,r,n,o,i,a,s){return d(t+(e^r^n)+i+a|0,s)+o|0}function y(t,e,r,n,o,i,a,s){return d(t+(e&r|~e&n)+i+a|0,s)+o|0}function g(t,e,r,n,o,i,a,s){return d(t+((e|~r)^n)+i+a|0,s)+o|0}function v(t,e,r,n,o,i,a,s){return d(t+(e&n|r&~n)+i+a|0,s)+o|0}function b(t,e,r,n,o,i,a,s){return d(t+(e^(r|~n))+i+a|0,s)+o|0}o(p,i),p.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,p=0|this._e,w=0|this._a,A=0|this._b,M=0|this._c,E=0|this._d,_=0|this._e,C=0;C<80;C+=1){var S,k;C<16?(S=m(r,n,o,i,p,t[s[C]],f[0],c[C]),k=b(w,A,M,E,_,t[u[C]],h[0],l[C])):C<32?(S=y(r,n,o,i,p,t[s[C]],f[1],c[C]),k=v(w,A,M,E,_,t[u[C]],h[1],l[C])):C<48?(S=g(r,n,o,i,p,t[s[C]],f[2],c[C]),k=g(w,A,M,E,_,t[u[C]],h[2],l[C])):C<64?(S=v(r,n,o,i,p,t[s[C]],f[3],c[C]),k=y(w,A,M,E,_,t[u[C]],h[3],l[C])):(S=b(r,n,o,i,p,t[s[C]],f[4],c[C]),k=m(w,A,M,E,_,t[u[C]],h[4],l[C])),r=p,p=i,i=d(o,10),o=n,n=S,w=_,_=E,E=d(M,10),M=A,A=k}var x=this._b+o+E|0;this._b=this._c+i+_|0,this._c=this._d+p+w|0,this._d=this._e+r+A|0,this._e=this._a+n+M|0,this._a=x},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=p},7834:(t,e,r)=>{var n=r(8834),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},7654:(t,e,r)=>{"use strict";var n,o=r(8834),i=o.Buffer,a={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(a[n]=o[n]);var s=a.Buffer={};for(n in i)i.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(s[n]=i[n]);if(a.Buffer.prototype=i.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(t,e,r){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return i(t,e,r)}),s.alloc||(s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=i(t);return e&&0!==e.length?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n}),!a.kStringMaxLength)try{a.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(t){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a},3327:(t,e,r)=>{var n=r(7834).Buffer;function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,o=this._blockSize,i=t.length,a=this._len,s=0;s<i;){for(var u=a%o,c=Math.min(i-s,o-u),l=0;l<c;l++)r[u+l]=t[s+l];s+=c,(a+=c)%o==0&&this._update(r)}return this._len+=i,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return t?i.toString(t):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},9065:(t,e,r)=>{var n=t.exports=function(t){t=t.toLowerCase();var e=n[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(8820),n.sha1=r(7885),n.sha224=r(8321),n.sha256=r(4424),n.sha384=r(213),n.sha512=r(5596)},8820:(t,e,r)=>{var n=r(1285),o=r(3327),i=r(7834).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,o.call(this,64,56)}function c(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,o),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)r[f]=t.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var h=0;h<80;++h){var p=~~(h/20),d=0|((e=n)<<5|e>>>27)+l(p,o,i,s)+u+r[h]+a[p];u=s,s=i,i=c(o),o=n,n=d}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=i.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},7885:(t,e,r)=>{var n=r(1285),o=r(3327),i=r(7834).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,o.call(this,64,56)}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function f(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,o),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=t.readInt32BE(4*h);for(;h<80;++h)r[h]=(e=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|e>>>31;for(var p=0;p<80;++p){var d=~~(p/20),m=c(n)+f(d,o,i,s)+u+r[p]+a[d]|0;u=s,s=i,i=l(o),o=n,n=m}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=i.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},8321:(t,e,r)=>{var n=r(1285),o=r(4424),i=r(3327),a=r(7834).Buffer,s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}n(u,o),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},4424:(t,e,r)=>{var n=r(1285),o=r(3327),i=r(7834).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}function c(t,e,r){return r^t&(e^r)}function l(t,e,r){return t&e|r&(t|e)}function f(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(u,o),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,s=0|this._d,u=0|this._e,d=0|this._f,m=0|this._g,y=0|this._h,g=0;g<16;++g)r[g]=t.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((e=r[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[g-7]+p(r[g-15])+r[g-16];for(var v=0;v<64;++v){var b=y+h(u)+c(u,d,m)+a[v]+r[v]|0,w=f(n)+l(n,o,i)|0;y=m,m=d,d=u,u=s+b|0,s=i,i=o,o=n,n=b+w|0}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=d+this._f|0,this._g=m+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var t=i.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},213:(t,e,r)=>{var n=r(1285),o=r(5596),i=r(3327),a=r(7834).Buffer,s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}n(u,o),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},5596:(t,e,r)=>{var n=r(1285),o=r(3327),i=r(7834).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}function c(t,e,r){return r^t&(e^r)}function l(t,e,r){return t&e|r&(t|e)}function f(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function y(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0<e>>>0?1:0}n(u,o),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,i=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,b=0|this._hh,w=0|this._al,A=0|this._bl,M=0|this._cl,E=0|this._dl,_=0|this._el,C=0|this._fl,S=0|this._gl,k=0|this._hl,x=0;x<32;x+=2)e[x]=t.readInt32BE(4*x),e[x+1]=t.readInt32BE(4*x+4);for(;x<160;x+=2){var O=e[x-30],D=e[x-30+1],F=p(O,D),T=d(D,O),j=m(O=e[x-4],D=e[x-4+1]),P=y(D,O),R=e[x-14],B=e[x-14+1],I=e[x-32],N=e[x-32+1],$=T+B|0,L=F+R+g($,T)|0;L=(L=L+j+g($=$+P|0,P)|0)+I+g($=$+N|0,N)|0,e[x]=L,e[x+1]=$}for(var U=0;U<160;U+=2){L=e[U],$=e[U+1];var q=l(r,n,o),z=l(w,A,M),V=f(r,w),H=f(w,r),G=h(s,_),W=h(_,s),Z=a[U],J=a[U+1],Q=c(s,u,v),Y=c(_,C,S),K=k+W|0,X=b+G+g(K,k)|0;X=(X=(X=X+Q+g(K=K+Y|0,Y)|0)+Z+g(K=K+J|0,J)|0)+L+g(K=K+$|0,$)|0;var tt=H+z|0,et=V+q+g(tt,H)|0;b=v,k=S,v=u,S=C,u=s,C=_,s=i+X+g(_=E+K|0,E)|0,i=o,E=M,o=n,M=A,n=r,A=w,r=X+et+g(w=K+tt|0,K)|0}this._al=this._al+w|0,this._bl=this._bl+A|0,this._cl=this._cl+M|0,this._dl=this._dl+E|0,this._el=this._el+_|0,this._fl=this._fl+C|0,this._gl=this._gl+S|0,this._hl=this._hl+k|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,A)|0,this._ch=this._ch+o+g(this._cl,M)|0,this._dh=this._dh+i+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,_)|0,this._fh=this._fh+u+g(this._fl,C)|0,this._gh=this._gh+v+g(this._gl,S)|0,this._hh=this._hh+b+g(this._hl,k)|0},u.prototype._hash=function(){var t=i.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},4851:(t,e,r)=>{t.exports=o;var n=r(2699).EventEmitter;function o(){n.call(this)}r(1285)(o,n),o.Readable=r(8051),o.Writable=r(2557),o.Duplex=r(7073),o.Transform=r(7640),o.PassThrough=r(5163),o.finished=r(9885),o.pipeline=r(3495),o.Stream=o,o.prototype.pipe=function(t,e){var r=this;function o(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(l(),0===n.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",o),t.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",c),t.on("error",c),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t}},214:(t,e,r)=>{"use strict";var n=r(7805).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=f,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.s=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var o=a(e[n]);return o>=0?(o>0&&(t.lastNeed=o-1),o):--n<r||-2===o?0:(o=a(e[n]))>=0?(o>0&&(t.lastNeed=o-2),o):--n<r||-2===o?0:(o=a(e[n]))>=0?(o>0&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},7805:(t,e,r)=>{var n=r(8834),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},6889:t=>{t.exports=/[\0-\x1F\x7F-\x9F]/},3811:t=>{t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},7062:t=>{t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},8442:t=>{t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},8579:(t,e,r)=>{"use strict";e.Any=r(3530),e.Cc=r(6889),e.Cf=r(3811),e.P=r(7062),e.Z=r(8442)},3530:t=>{t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},5803:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},82:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},4895:(t,e,r)=>{"use strict";var n=r(2635),o=r(3138),i=r(2094),a=r(198);function s(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var d=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function g(t){return"[object Map]"===l(t)}function v(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function A(t){return"[object ArrayBuffer]"===l(t)}function M(t){return"undefined"!=typeof ArrayBuffer&&(A.working?A(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===l(t)}function _(t){return"undefined"!=typeof DataView&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||_(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},g.working="undefined"!=typeof Map&&g(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(g.working?g(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},A.working="undefined"!=typeof ArrayBuffer&&A(new ArrayBuffer),e.isArrayBuffer=M,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=_;var C="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===l(t)}function k(t){return void 0!==C&&(void 0===S.working&&(S.working=S(new C)),S.working?S(t):t instanceof C)}function x(t){return y(t,f)}function O(t){return y(t,h)}function D(t){return y(t,p)}function F(t){return u&&y(t,d)}function T(t){return c&&y(t,m)}e.isSharedArrayBuffer=k,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=x,e.isStringObject=O,e.isBooleanObject=D,e.isBigIntObject=F,e.isSymbolObject=T,e.isBoxedPrimitive=function(t){return x(t)||O(t)||D(t)||F(t)||T(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(M(t)||k(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},3335:(t,e,r)=>{var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(t).replace(o,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<i;s=n[++r])y(s)||!A(s)?a+=" "+s:a+=" "+u(s);return a},e.deprecate=function(t,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return t;if("undefined"==typeof process)return function(){return e.deprecate(t,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return t.apply(this,arguments)}};var i={},a=/^$/;if({NODE_ENV:"production"}.NODE_DEBUG){var s={NODE_ENV:"production"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function u(t,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function l(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&_(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return v(o)||(o=f(t,o,n)),o}var i=function(t,e){if(b(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return g(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var a=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(_(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return h(r)}var c,l="",A=!1,C=["{","}"];return d(r)&&(A=!0,C=["[","]"]),_(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(l=" "+RegExp.prototype.toString.call(r)),M(r)&&(l=" "+Date.prototype.toUTCString.call(r)),E(r)&&(l=" "+h(r)),0!==a.length||A&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=A?function(t,e,r,n,o){for(var i=[],a=0,s=e.length;a<s;++a)O(e,String(a))?i.push(p(t,e,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(t,e,r,n,o,!0))})),i}(t,r,n,s,a):a.map((function(e){return p(t,r,n,s,e,A)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,l,C)):C[0]+l+C[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),O(n,o)||(a="["+o+"]"),s||(t.seen.indexOf(u.value)<0?(s=y(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),b(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function g(t){return"number"==typeof t}function v(t){return"string"==typeof t}function b(t){return void 0===t}function w(t){return A(t)&&"[object RegExp]"===C(t)}function A(t){return"object"==typeof t&&null!==t}function M(t){return A(t)&&"[object Date]"===C(t)}function E(t){return A(t)&&("[object Error]"===C(t)||t instanceof Error)}function _(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!i[t])if(a.test(t)){var r=process.pid;i[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else i[t]=function(){};return i[t]},e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(4895),e.isArray=d,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=b,e.isRegExp=w,e.types.isRegExp=w,e.isObject=A,e.isDate=M,e.types.isDate=M,e.isError=E,e.types.isNativeError=E,e.isFunction=_,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(82);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",x(),e.format.apply(e,arguments))},e.inherits=r(1285),e._extend=function(t,e){if(!e||!A(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function F(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(D&&t[D]){var e;if("function"!=typeof(e=t[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,D,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),D&&Object.defineProperty(e,D,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=D,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var n=e.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return n.apply(o,arguments)};t.apply(this,e).then((function(t){process.nextTick(i.bind(null,null,t))}),(function(t){process.nextTick(F.bind(null,t,i))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,n(t)),e}},9987:(t,e,r)=>{"use strict";var n;r.r(e),r.d(e,{NIL:()=>D,parse:()=>y,stringify:()=>l,v1:()=>m,v3:()=>C,v4:()=>S,v5:()=>O,validate:()=>s,version:()=>F});var o=new Uint8Array(16);function i(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(t){return"string"==typeof t&&a.test(t)};for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));const l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!s(r))throw TypeError("Stringified UUID is invalid");return r};var f,h,p=0,d=0;const m=function(t,e,r){var n=e&&r||0,o=e||new Array(16),a=(t=t||{}).node||f,s=void 0!==t.clockseq?t.clockseq:h;if(null==a||null==s){var u=t.random||(t.rng||i)();null==a&&(a=f=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=h=16383&(u[6]<<8|u[7]))}var c=void 0!==t.msecs?t.msecs:Date.now(),m=void 0!==t.nsecs?t.nsecs:d+1,y=c-p+(m-d)/1e4;if(y<0&&void 0===t.clockseq&&(s=s+1&16383),(y<0||c>p)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,d=m,h=s;var g=(1e4*(268435455&(c+=122192928e5))+m)%4294967296;o[n++]=g>>>24&255,o[n++]=g>>>16&255,o[n++]=g>>>8&255,o[n++]=255&g;var v=c/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var b=0;b<6;++b)o[n+b]=a[b];return e||l(o)},y=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=255&e,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=255&e,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=255&e,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=255&e,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=255&e,r};function g(t,e,r){function n(t,n,o,i){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}(t)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(n),a.set(t,n.length),(a=r(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return l(a)}try{n.name=t}catch(t){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function v(t){return 14+(t+64>>>9<<4)+1}function b(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}function w(t,e,r,n,o,i){return b((a=b(b(e,t),b(n,i)))<<(s=o)|a>>>32-s,r);var a,s}function A(t,e,r,n,o,i,a){return w(e&r|~e&n,t,e,o,i,a)}function M(t,e,r,n,o,i,a){return w(e&n|r&~n,t,e,o,i,a)}function E(t,e,r,n,o,i,a){return w(e^r^n,t,e,o,i,a)}function _(t,e,r,n,o,i,a){return w(r^(e|~n),t,e,o,i,a)}const C=g("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)}return function(t){for(var e=[],r=32*t.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=t[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);e.push(a)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[v(e)-1]=e;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var s=r,u=n,c=o,l=i;r=A(r,n,o,i,t[a],7,-680876936),i=A(i,r,n,o,t[a+1],12,-389564586),o=A(o,i,r,n,t[a+2],17,606105819),n=A(n,o,i,r,t[a+3],22,-1044525330),r=A(r,n,o,i,t[a+4],7,-176418897),i=A(i,r,n,o,t[a+5],12,1200080426),o=A(o,i,r,n,t[a+6],17,-1473231341),n=A(n,o,i,r,t[a+7],22,-45705983),r=A(r,n,o,i,t[a+8],7,1770035416),i=A(i,r,n,o,t[a+9],12,-1958414417),o=A(o,i,r,n,t[a+10],17,-42063),n=A(n,o,i,r,t[a+11],22,-1990404162),r=A(r,n,o,i,t[a+12],7,1804603682),i=A(i,r,n,o,t[a+13],12,-40341101),o=A(o,i,r,n,t[a+14],17,-1502002290),r=M(r,n=A(n,o,i,r,t[a+15],22,1236535329),o,i,t[a+1],5,-165796510),i=M(i,r,n,o,t[a+6],9,-1069501632),o=M(o,i,r,n,t[a+11],14,643717713),n=M(n,o,i,r,t[a],20,-373897302),r=M(r,n,o,i,t[a+5],5,-701558691),i=M(i,r,n,o,t[a+10],9,38016083),o=M(o,i,r,n,t[a+15],14,-660478335),n=M(n,o,i,r,t[a+4],20,-405537848),r=M(r,n,o,i,t[a+9],5,568446438),i=M(i,r,n,o,t[a+14],9,-1019803690),o=M(o,i,r,n,t[a+3],14,-187363961),n=M(n,o,i,r,t[a+8],20,1163531501),r=M(r,n,o,i,t[a+13],5,-1444681467),i=M(i,r,n,o,t[a+2],9,-51403784),o=M(o,i,r,n,t[a+7],14,1735328473),r=E(r,n=M(n,o,i,r,t[a+12],20,-1926607734),o,i,t[a+5],4,-378558),i=E(i,r,n,o,t[a+8],11,-2022574463),o=E(o,i,r,n,t[a+11],16,1839030562),n=E(n,o,i,r,t[a+14],23,-35309556),r=E(r,n,o,i,t[a+1],4,-1530992060),i=E(i,r,n,o,t[a+4],11,1272893353),o=E(o,i,r,n,t[a+7],16,-155497632),n=E(n,o,i,r,t[a+10],23,-1094730640),r=E(r,n,o,i,t[a+13],4,681279174),i=E(i,r,n,o,t[a],11,-358537222),o=E(o,i,r,n,t[a+3],16,-722521979),n=E(n,o,i,r,t[a+6],23,76029189),r=E(r,n,o,i,t[a+9],4,-640364487),i=E(i,r,n,o,t[a+12],11,-421815835),o=E(o,i,r,n,t[a+15],16,530742520),r=_(r,n=E(n,o,i,r,t[a+2],23,-995338651),o,i,t[a],6,-198630844),i=_(i,r,n,o,t[a+7],10,1126891415),o=_(o,i,r,n,t[a+14],15,-1416354905),n=_(n,o,i,r,t[a+5],21,-57434055),r=_(r,n,o,i,t[a+12],6,1700485571),i=_(i,r,n,o,t[a+3],10,-1894986606),o=_(o,i,r,n,t[a+10],15,-1051523),n=_(n,o,i,r,t[a+1],21,-2054922799),r=_(r,n,o,i,t[a+8],6,1873313359),i=_(i,r,n,o,t[a+15],10,-30611744),o=_(o,i,r,n,t[a+6],15,-1560198380),n=_(n,o,i,r,t[a+13],21,1309151649),r=_(r,n,o,i,t[a+4],6,-145523070),i=_(i,r,n,o,t[a+11],10,-1120210379),o=_(o,i,r,n,t[a+2],15,718787259),n=_(n,o,i,r,t[a+9],21,-343485551),r=b(r,s),n=b(n,u),o=b(o,c),i=b(i,l)}return[r,n,o,i]}(function(t){if(0===t.length)return[];for(var e=8*t.length,r=new Uint32Array(v(e)),n=0;n<e;n+=8)r[n>>5]|=(255&t[n/8])<<n%32;return r}(t),8*t.length))})),S=function(t,e,r){var n=(t=t||{}).random||(t.rng||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return l(n)};function k(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:case 3:return e^r^n;case 2:return e&r^e&n^r&n}}function x(t,e){return t<<e|t>>>32-e}const O=g("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=t[64*u+4*l]<<24|t[64*u+4*l+1]<<16|t[64*u+4*l+2]<<8|t[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var f=0;f<a;++f){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[f][p];for(var d=16;d<80;++d)h[d]=x(h[d-3]^h[d-8]^h[d-14]^h[d-16],1);for(var m=r[0],y=r[1],g=r[2],v=r[3],b=r[4],w=0;w<80;++w){var A=Math.floor(w/20),M=x(m,5)+k(A,y,g,v)+b+e[A]+h[w]>>>0;b=v,v=g,g=x(y,30)>>>0,y=m,m=M}r[0]=r[0]+m>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+v>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),D="00000000-0000-0000-0000-000000000000",F=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},2094:(t,e,r)=>{"use strict";var n=r(3243),o=r(2191),i=r(2680),a=i("Object.prototype.toString"),s=r(7226)(),u="undefined"==typeof globalThis?r.g:globalThis,c=o(),l=i("String.prototype.slice"),f={},h=r(9765),p=Object.getPrototypeOf;s&&h&&p&&n(c,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=p(e),n=h(r,Symbol.toStringTag);if(!n){var o=p(r);n=h(o,Symbol.toStringTag)}f[t]=n.get}}}));var d=r(198);t.exports=function(t){return!!d(t)&&(s&&Symbol.toStringTag in t?function(t){var e=!1;return n(f,(function(r,n){if(!e)try{var o=r.call(t);o===n&&(e=o)}catch(t){}})),e}(t):l(a(t),8,-1))}},8955:(t,e,r)=>{"use strict";t.exports.ConcertoMetaModel=r(1249),t.exports.CiceroMarkModel=r(5144),t.exports.CiceroMarkTransformer=r(6406),r(3853),r(5959),r(2647)},6406:(t,e,r)=>{"use strict";const{ModelManager:n,Factory:o,Serializer:i}=r(4640),a=r(3054),s=r(5747),u=r(612).FromMarkdownIt,c=r(6669),l=r(5171),f=r(2580),h=r(612).CommonMarkTransformer,{CommonMarkModel:p}=r(612).CommonMarkModel,d=r(3853),m=r(5959),{CiceroMarkModel:y}=r(5144),{ConcertoMetaModel:g}=r(1249),v=r(8027);t.exports=class{constructor(){this.commonMark=new h,this.modelManager=new n,this.modelManager.addCTOModel(g,"metamodel.cto"),this.modelManager.addCTOModel(p,"commonmark.cto"),this.modelManager.addCTOModel(y,"ciceromark.cto");const t=new o(this.modelManager);this.serializer=new i(t,this.modelManager)}getClauseText(t){if("org.accordproject.ciceromark.Clause"===t.$class){const e={$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:t.nodes};return this.toMarkdownCicero(e)}throw new Error("Cannot apply getClauseText to non-clause node")}getSerializer(){return this.serializer}fromCiceroEdit(t){const e=this.commonMark.fromMarkdown(t),r=this.serializer.fromJSON(e),n={ciceroMark:this,commonMark:this.commonMark,modelManager:this.modelManager,serializer:this.serializer},o=new d;return r.accept(o,n),this.serializer.toJSON(r)}toCiceroMarkUnwrapped(t,e){e&&Object.prototype.hasOwnProperty.call(e,"unquoteVariables")&&e.unquoteVariables&&(t=this.unquote(t));const r=this.serializer.fromJSON(t),n=new f;return r.accept(n,{modelManager:this.modelManager}),this.serializer.toJSON(r)}fromCommonMark(t){return t}fromMarkdown(t){const e=this.commonMark.fromMarkdown(t);return this.fromCommonMark(e)}toMarkdown(t,e){const r=this.toCommonMark(t,e);return this.commonMark.toMarkdown(r)}fromMarkdownCicero(t,e){const r=this.toTokens(t);return this.fromTokens(r)}toMarkdownCicero(t){return(new l).toMarkdownCicero(this.serializer.fromJSON(t))}toCommonMark(t,e){let r=this.toCiceroMarkUnwrapped(t,e);const n=this.serializer.fromJSON(r),o=new m(e);n.accept(o,{commonMark:this.commonMark,modelManager:this.modelManager,serializer:this.serializer});let i=this.serializer.toJSON(n);return e&&e.removeFormatting&&(i=new h(e).removeFormatting(i)),i}unquote(t){return v(t)}toTokens(t){return new a({html:!0}).use(s).parse(t,{})}fromTokens(t){const e=new u(c).toCommonMark(t),r=this.serializer.fromJSON(e);return this.serializer.toJSON(r)}}},2647:t=>{"use strict";t.exports=class{constructor(t){this.data={},t.decorators&&t.decorators.forEach((t=>{if(t.arguments.length%2!=0)throw new Error("Arguments must be [name, value] pairs");const e={};for(let r=0;r<t.arguments.length-1;r+=2){const n=t.arguments[r];if(n.$class&&"concerto.metamodel.DecoratorString"!==n.$class)throw new Error(`Argument names must be strings. Found ${n.$class}`);const o=t.arguments[r+1];e[n.value]="concerto.metamodel.DecoratorIdentifier"===o.$class?o.identifier:o.value}this.data[t.name]=e}))}hasDecorator(t){return!!this.data[t]}getArguments(t){return this.data[t]}getDecoratorValue(t,e){const r=this.getArguments(t);return r?r[e]:null}}},3853:(t,e,r)=>{"use strict";const{NS_PREFIX_CiceroMarkModel:n}=r(5144);class o{static visitChildren(t,e,r){e.nodes&&o.visitNodes(t,e.nodes,r)}static visitNodes(t,e,r){e.forEach((e=>{e.accept(t,r)}))}visit(t,e){switch(t.getType()){case"CodeBlock":{const r=t.tag;if(r&&"clause"===r.tagName&&2===r.attributes.length){const i=n+"Clause",a=t.text;if(o.getAttribute(r.attributes,"src")&&o.getAttribute(r.attributes,"clauseid")){t.$classDeclaration=e.modelManager.getType(i),t.src=o.getAttribute(r.attributes,"src").value,t.name=o.getAttribute(r.attributes,"clauseid").value;const n=e.commonMark.fromMarkdown(a);t.nodes=e.serializer.fromJSON(n).nodes,o.visitNodes(this,t.nodes,e),t.text=null,delete t.tag,delete t.info}}else if(r&&"list"===r.tagName&&0===r.attributes.length){const r=n+"ListBlock",i=t.text,a=e.commonMark.fromMarkdown(i),s=e.serializer.fromJSON(a).nodes;if(1===s.length&&"List"===s[0].getType()){const n=s[0];t.$classDeclaration=e.modelManager.getType(r),t.name="",t.type=n.type,t.start=n.start,t.tight=n.tight,t.delimiter=n.delimiter,t.nodes=n.nodes,o.visitNodes(this,t.nodes,e),t.text=null,delete t.tag,delete t.info}}}break;case"HtmlInline":if(t.tag&&"variable"===t.tag.tagName&&(2===t.tag.attributes.length||3===t.tag.attributes.length)){const r=t.tag;if(o.getAttribute(r.attributes,"id")&&o.getAttribute(r.attributes,"value")){const i=o.getAttribute(r.attributes,"format"),a=i?n+"FormattedVariable":n+"Variable";t.$classDeclaration=e.modelManager.getType(a),t.name=o.getAttribute(r.attributes,"id").value,t.value=decodeURIComponent(o.getAttribute(r.attributes,"value").value),i&&(t.format=decodeURIComponent(i.value)),delete t.tag,delete t.text}}if(t.tag&&"if"===t.tag.tagName&&4===t.tag.attributes.length){const r=t.tag;if(o.getAttribute(r.attributes,"id")&&o.getAttribute(r.attributes,"value")&&o.getAttribute(r.attributes,"whenTrue")&&o.getAttribute(r.attributes,"whenFalse")){const i=n+"Conditional";t.$classDeclaration=e.modelManager.getType(i),t.name=o.getAttribute(r.attributes,"id").value;const a=decodeURIComponent(o.getAttribute(r.attributes,"value").value),s=e.serializer.fromJSON({$class:"org.accordproject.commonmark.Text",text:a});t.nodes=[s];const u=decodeURIComponent(o.getAttribute(r.attributes,"whenTrue").value),c=u?[e.serializer.fromJSON({$class:"org.accordproject.commonmark.Text",text:u})]:[];t.isTrue=a===u,t.whenTrue=c;const l=decodeURIComponent(o.getAttribute(r.attributes,"whenFalse").value),f=l?[e.serializer.fromJSON({$class:"org.accordproject.commonmark.Text",text:l})]:[];t.whenFalse=f,delete t.tag,delete t.text}}if(t.tag&&"computed"===t.tag.tagName&&1===t.tag.attributes.length){const r=t.tag,i=n+"Formula";o.getAttribute(r.attributes,"value")&&(t.$classDeclaration=e.modelManager.getType(i),t.name="",t.value=decodeURIComponent(o.getAttribute(r.attributes,"value").value),delete t.tag,delete t.text)}break;default:o.visitChildren(this,t,e)}}static getAttribute(t,e){const r=t.filter((t=>t.name===e));return 0===r.length?null:r[0]}}t.exports=o},2580:(t,e,r)=>{"use strict";const{NS_PREFIX_CommonMarkModel:n}=r(612).CommonMarkModel;class o{constructor(){}static visitChildren(t,e,r){if(e.nodes){const n=e.nodes.map((e=>e.accept(t,r)));e.nodes=n.reduce(((t,e)=>t.concat(e)),[])}}visit(t,e){switch(t.getType()){case"ListBlock":{o.visitChildren(this,t,e);const r=n+"List";t.$classDeclaration=e.modelManager.getType(r),delete t.name,delete t.elementType,delete t.decorators}break;case"Variable":case"EnumVariable":case"FormattedVariable":t.$classDeclaration=e.modelManager.getType(n+"Text"),t.text=decodeURIComponent(t.value),delete t.elementType,delete t.decorators,delete t.name,delete t.value,delete t.format,delete t.enumValues,delete t.identifiedBy;break;case"Conditional":case"Optional":return t.$classDeclaration=e.modelManager.getType(n+"Text"),o.visitChildren(this,t,e),t.nodes;default:o.visitChildren(this,t,e)}return[t]}}t.exports=o},5959:(t,e,r)=>{"use strict";const{NS_PREFIX_CommonMarkModel:n}=r(612).CommonMarkModel;class o{constructor(){}static visitChildren(t,e,r){if(e.nodes){const n=e.nodes.map((e=>e.accept(t,r)));e.nodes=n.reduce(((t,e)=>t.concat(e)),[])}}visit(t,e){switch(t.getType()){case"Clause":return o.visitChildren(this,t,e),t.nodes;case"Formula":t.$classDeclaration=e.modelManager.getType(n+"Text"),t.text=decodeURIComponent(t.value),delete t.elementType,delete t.name,delete t.value,delete t.code,delete t.dependencies;break;default:o.visitChildren(this,t,e)}return[t]}}t.exports=o},5171:(t,e,r)=>{"use strict";const n=r(612).CommonMarkUtils,o=r(612).FromCommonMarkVisitor,i=r(612).fromcommonmarkrules,a=r(300);t.exports=class extends o{constructor(t){const e=i;Object.assign(e,a),super(t,(t=>t),((t,e)=>{e.forEach((e=>{t.result+=e}))}),e,(t=>"Item"===t||"Clause"===t))}toMarkdownCicero(t){const e={};return e.result=this.resultString(""),e.stack=n.blocksInit(),t.accept(this,e),e.result.trim()}}},8027:(t,e,r)=>{"use strict";const{Stack:n}=r(612);function o(t,e){switch(t.$class){case"org.accordproject.ciceromark.Formula":case"org.accordproject.ciceromark.Variable":case"org.accordproject.ciceromark.FormattedVariable":e.append({$class:"org.accordproject.commonmark.Text",text:t.value.replace(/^"/,"").replace(/"$/,"")});break;case"org.accordproject.commonmark.Document":t.nodes.forEach((t=>{o(t,e)}));break;default:if(t.nodes){let r=Object.assign({},t);r.nodes=[],e.push(r),t.nodes.forEach((t=>{o(t,e)})),e.pop()}else e.append(t)}}t.exports=function(t){const e={$class:"org.accordproject.commonmark.Document",xmlns:t.xmlns,nodes:[]},r=new n;return r.push(e,!1),o(t,r),e}},6669:(t,e,r)=>{"use strict";const{getAttr:n}=r(612).CommonMarkUtils,o=r(5144).NS_PREFIX_CiceroMarkModel,i={tag:o+"Formula",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{t.name=n(e.attrs,"name",null),t.value=e.content,t.dependencies=[]},skipEmpty:!1},a={tag:o+"Clause",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=n(e.attrs,"name",null),t.src=n(e.attrs,"src",null)}},s={tag:o+"Clause",leaf:!1,open:!1,close:!0},u={inlines:{},blocks:{}};u.inlines.formula=i,u.blocks.block_clause_open=a,u.blocks.block_clause_close=s,t.exports=u},5144:t=>{"use strict";t.exports={NS_PREFIX_CiceroMarkModel:"org.accordproject.ciceromark.",CiceroMarkModel:'\n/*\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nnamespace org.accordproject.ciceromark\n\nimport org.accordproject.commonmark.Child from https://models.accordproject.org/markdown/commonmark@0.4.0.cto\nimport concerto.metamodel.Decorator from https://models.accordproject.org/concerto/metamodel@0.2.0.cto\n\n/**\n * A model for Accord Project extensions to commonmark\n */\n\nabstract concept Element extends Child {\n o String name\n o String elementType optional\n o Decorator[] decorators optional\n}\n\nconcept Variable extends Element {\n o String value\n o String identifiedBy optional\n}\n\nconcept FormattedVariable extends Variable {\n o String format\n}\n\nconcept EnumVariable extends Variable {\n o String[] enumValues\n}\n\nconcept Formula extends Element {\n o String value\n o String[] dependencies optional\n o String code optional\n}\n\nabstract concept Block extends Element {\n}\n\nconcept Clause extends Block {\n o String src optional\n}\n\nconcept Conditional extends Block {\n o Boolean isTrue\n o Child[] whenTrue\n o Child[] whenFalse\n}\n\nconcept Optional extends Block {\n o Boolean hasSome\n o Child[] whenSome\n o Child[] whenNone\n}\n\nconcept ListBlock extends Block {\n o String type\n o String tight\n o String start optional\n o String delimiter optional\n}\n\n'}},1249:t=>{"use strict";t.exports={NS_PREFIX_ConcertoMetaModel:"concerto.metamodel.",ConcertoMetaModel:'\n/*\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nnamespace concerto.metamodel\n\n/**\n * The metadmodel for Concerto files\n */\nconcept TypeIdentifier {\n @FormEditor("selectOptions", "types")\n o String name default="Concept"\n @FormEditor( "hide", true)\n o String fullyQualifiedName optional\n}\n\nabstract concept DecoratorLiteral {\n}\n\nconcept DecoratorString extends DecoratorLiteral {\n o String value\n}\n\nconcept DecoratorNumber extends DecoratorLiteral {\n o Double value\n}\n\nconcept DecoratorBoolean extends DecoratorLiteral {\n o Boolean value\n}\n\nconcept DecoratorTypeReference extends DecoratorLiteral {\n o TypeIdentifier type\n o Boolean isArray default=false\n}\n\nconcept Decorator {\n o String name\n o DecoratorLiteral[] arguments optional\n}\n\nconcept Identified {\n}\n\nconcept IdentifiedBy extends Identified {\n o String name\n}\n\nconcept EnumDeclaration {\n @FormEditor("title", "Enum Name")\n o String name default="ClassName" regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n o EnumFieldDeclaration[] fields\n}\n\nconcept EnumFieldDeclaration {\n o String name default="fieldName" regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n @FormEditor("hide", true)\n o Decorator[] decorators optional\n}\n\n@FormEditor("defaultSubclass","concerto.metamodel.ConceptDeclaration")\nabstract concept ClassDeclaration {\n @FormEditor("title", "Class Name")\n o String name default="ClassName" regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n @FormEditor("hide", true)\n o Decorator[] decorators optional\n o Boolean isAbstract default=false\n o Identified identified optional\n @FormEditor("title", "Super Type")\n o TypeIdentifier superType optional\n o FieldDeclaration[] fields\n}\n\nconcept AssetDeclaration extends ClassDeclaration {\n}\n\nconcept ParticipantDeclaration extends ClassDeclaration {\n}\n\nconcept TransactionDeclaration extends ClassDeclaration {\n}\n\nconcept EventDeclaration extends ClassDeclaration {\n}\n\nconcept ConceptDeclaration extends ClassDeclaration {\n}\n\n@FormEditor("defaultSubclass","concerto.metamodel.StringFieldDeclaration")\nabstract concept FieldDeclaration {\n o String name default="fieldName" regex=/^(?!null|true|false)(\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4})(?:\\p{Lu}|\\p{Ll}|\\p{Lt}|\\p{Lm}|\\p{Lo}|\\p{Nl}|\\$|_|\\\\u[0-9A-Fa-f]{4}|\\p{Mn}|\\p{Mc}|\\p{Nd}|\\p{Pc}|\\u200C|\\u200D)*$/u\n @FormEditor("title", "Is Array?")\n o Boolean isArray default=false\n @FormEditor("title", "Is Optional?")\n o Boolean isOptional default=false\n @FormEditor("hide", true)\n o Decorator[] decorators optional\n}\n\nconcept RelationshipDeclaration extends FieldDeclaration {\n @FormEditor("title", "Type Name", "selectOptions", "types")\n o TypeIdentifier type\n}\n\nconcept ObjectFieldDeclaration extends FieldDeclaration {\n @FormEditor("hide", true)\n o String defaultValue optional\n @FormEditor("title", "Type Name", "selectOptions", "types")\n o TypeIdentifier type\n}\n\nconcept BooleanFieldDeclaration extends FieldDeclaration {\n @FormEditor("hide", true)\n o Boolean defaultValue optional\n}\n\nconcept DateTimeFieldDeclaration extends FieldDeclaration {\n}\n\nconcept StringFieldDeclaration extends FieldDeclaration {\n @FormEditor("hide", true)\n o String defaultValue optional\n @FormEditor("hide", true)\n o StringRegexValidator validator optional\n}\n\nconcept StringRegexValidator {\n o String regex\n}\n\nconcept DoubleFieldDeclaration extends FieldDeclaration {\n o Double defaultValue optional\n o DoubleDomainValidator validator optional\n}\n\nconcept DoubleDomainValidator {\n o Double lower optional\n o Double upper optional\n}\n\nconcept IntegerFieldDeclaration extends FieldDeclaration {\n @FormEditor("hide", true)\n o Integer defaultValue optional\n @FormEditor("hide", true)\n o IntegerDomainValidator validator optional\n}\n\nconcept IntegerDomainValidator {\n o Integer lower optional\n o Integer upper optional\n}\n\nconcept LongFieldDeclaration extends FieldDeclaration {\n @FormEditor("hide", true)\n o Long defaultValue optional\n @FormEditor("hide", true)\n o LongDomainValidator validator optional\n}\n\nconcept LongDomainValidator {\n o Long lower optional\n o Long upper optional\n}\n\nabstract concept Import {\n o String namespace\n o String uri optional\n}\n\nconcept ImportAll extends Import {\n}\n\nconcept ImportType extends Import {\n o String name\n}\n\nconcept ModelFile {\n o String namespace default="my.namespace"\n @FormEditor("hide", true)\n o Import[] imports optional\n @FormEditor("title", "Enums")\n o EnumDeclaration[] enumDeclarations optional\n @FormEditor("title", "Classes")\n o ClassDeclaration[] classDeclarations optional\n}\n\n'}},300:(t,e,r)=>{"use strict";const n=r(612).CommonMarkUtils,o={Formula:(t,e,r,n,o,i)=>{i(n,[o("{{%"),o(e.value),o("%}}")])},Clause:(t,e,r,o,i,a)=>{const s=n.mkPrefix(o,2),u=e.src?' src="'+e.src+'"':"",c=`{{#clause ${e.name}${u}}}\n`,l=Object.assign({},o);l.stack=Object.assign({},o.stack),l.stack.first=!1;const f=n.mkPrefix(l,1);a(o,[i(s),i(c),r,i(f),i("{{/clause}}")])}};t.exports=o},612:(t,e,r)=>{"use strict";t.exports.Stack=r(2315),t.exports.CommonMarkModel=r(6323),t.exports.CommonMarkUtils=r(489),t.exports.FromCommonMarkVisitor=r(3465),t.exports.fromcommonmarkrules=r(805),t.exports.CommonMarkTransformer=r(7857),t.exports.ToMarkdownVisitor=r(5297),t.exports.FromMarkdownIt=r(1172)},7857:(t,e,r)=>{"use strict";const n=r(3054),o=r(1172),{ModelManager:i,Factory:a,Serializer:s}=r(4640),u=r(5297),c=r(2923),l=r(6323).CommonMarkModel;t.exports=class{constructor(){const t=new i;t.addCTOModel(l,"commonmark.cto");const e=new a(t);this.serializer=new s(e,t)}toMarkdown(t){return(new u).toMarkdown(this.serializer.fromJSON(t))}removeFormatting(t){return c(t)}toTokens(t){return new n({html:!0}).parse(t,{})}fromTokens(t){const e=(new o).toCommonMark(t),r=this.serializer.fromJSON(e);return this.serializer.toJSON(r)}fromMarkdown(t){const e=this.toTokens(t);return this.fromTokens(e)}getSerializer(){return this.serializer}}},489:(t,e,r)=>{"use strict";const n=r(9291).DOMParser,o=r(6323).NS_PREFIX_CommonMarkModel;function i(t){let e="";for(let r=t.length-1;r>=0;r--)"Item"===t[r]||"ListBlockDefinition"===t[r]?e=" "+e:"BlockQuote"===t[r]&&(e="> "+e);return"\n"+e}function a(t){try{const e=(new n).parseFromString(t,"text/html").childNodes[0],r=e.attributes,i={};let a="";for(let t=0;t<r.length;t+=1)a+=`${r[t].name} = "${r[t].value}" `,i[r[t].name]=r[t].value;const s={};s.$class=o+"TagInfo",s.tagName=e.tagName.toLowerCase(),s.attributeString=a,s.attributes=[];for(const t in i)if(Object.prototype.hasOwnProperty.call(i,t)){const e=i[t];s.attributes.push({$class:o+"Attribute",name:t,value:e})}return s.content=e.textContent,s.closed=t.endsWith("/>"),s}catch(t){return null}}t.exports.blocksInit=function(){return{first:!0,blocks:[]}},t.exports.nextNode=function(t){t.stack.first=!1,t.index&&t.index++},t.exports.mkParameters=function(t,e,r,n){let o=Object.assign({},e);return o.result=r,o.stack=function(t,e,r){let n={};return r(e)?n.first=!0:n.first=t.first,n.blocks=t.blocks.slice(),n.blocks.push(e),n}(e.stack,t.getType(),n),"List"===t.getType()&&(o.indexInit=t.start?parseInt(t.start):1,o.index=o.indexInit,o.tight=t.tight,o.type=t.type),o},t.exports.mkNewLine=function(t){return i(t.stack.blocks)},t.exports.mkPrefix=function(t,e){const r=t.stack;return r.first?function(t){let e="";for(let r=t.length-1;r>=0&&"Item"!==t[r]&&"ListBlockDefinition"!==t[r];r--)"BlockQuote"===t[r]&&(e="> "+e);return e}(r.blocks):i(r.blocks).repeat(e)},t.exports.mkSetextHeading=function(t){return 1===t?"====":"----"},t.exports.mkATXHeading=function(t){return Array(t).fill("#").join("")},t.exports.mkTableHeading=function(t){return Array(t).fill("|---------").join("")+"|"},t.exports.escapeText=function(t){return t.replace(/[*`&>]/g,"\\$&").replace(/^(#+) /g,"\\$1 ").replace(/^(\d+)\. /g,"$1\\. ").replace(/^- /g,"\\- ").replace(/^_/g,"\\_")},t.exports.escapeCodeBlock=function(t){return t.replace(/`/g,"\\`")},t.exports.unescapeCodeBlock=function(t){return t.replace(/\\`/g,"`")},t.exports.parseHtmlBlock=a,t.exports.mergeAdjacentHtmlNodes=function(t,e){const r=[];for(let n=0;n<t.length;n++){const i=t[n],s=n+1<t.length?t[n+1]:null;s&&i.$class===o+"HtmlInline"&&s.$class===o+"HtmlInline"&&i.tag&&s.text===`</${i.tag.tagName}>`?(s.text=i.text+s.text,s.tag=e?a(s.text):null):r.push(i)}return r},t.exports.headingLevel=function(t){switch(t){case"h1":return"1";case"h2":return"2";case"h3":return"3";case"h4":return"4";case"h5":return"5";default:return"6"}},t.exports.getAttr=function(t,e,r){if(t){const n=t.filter((t=>t[0]===e));return n[0]?""+n[0][1]:r}return r},t.exports.trimEndline=function(t){return t.charAt(t.length-1)&&"\n"===t.charAt(t.length-1)?t.substring(0,t.length-1):t}},3465:(t,e,r)=>{"use strict";const n=r(489);t.exports=class{constructor(t,e,r,n,o){this.options=t,this.resultString=e,this.resultSeq=r,this.rules=n,this.setFirst=o}visitChildren(t,e,r,o="nodes"){const i=n.mkParameters(e,r,this.resultString(""),this.setFirst);return e[o]&&e[o].forEach((e=>{e.accept(t,i),n.nextNode(i)})),i.result}visit(t,e){const r=this.visitChildren(this,t,e),n=this.rules[t.getType()];if(!n)throw new Error(`No rule to handle type ${t.getType()}`);n(this,t,r,e,this.resultString,this.resultSeq)}}},1172:(t,e,r)=>{"use strict";const n=r(2315),{mergeAdjacentHtmlNodes:o}=r(489),i=r(6850);class a{constructor(t){this.rules=i,t&&(this.rules.inlines=Object.assign(this.rules.inlines,t.inlines),this.rules.blocks=Object.assign(this.rules.blocks,t.blocks))}static closeInlines(t,e){let r=e.pop();for(;e.peek();){const n=Object.values(t.inlines).find((t=>t.tag===r.$class&&t.exit));n&&n.exit&&n.exit(r,null,a.inlineCallback(t)),r=e.pop()}return o(r.nodes,!0)}static inlineCallback(t){return e=>{const r=new n;return a.inlineToCommonMark(t,e,r),a.closeInlines(t,r)}}static inlineToCommonMark(t,e,r){r.push({$class:"org.accordproject.commonmark.Inline",nodes:[]},!1);for(let n=0;n<e.length;n++){const o=e[n],i=t.inlines[o.type];if(!i)throw new Error("Unknown inline type "+o.type);if(i.leaf){const e={$class:i.tag};i.enter&&i.enter(e,o,a.inlineCallback(t)),i.skipEmpty&&""===e.text||r.append(e)}else if(i.open&&i.close){const e={$class:i.tag};i.enter&&i.enter(e,o,a.inlineCallback(t)),r.append(e)}else if(i.open){const e={$class:i.tag};i.enter&&i.enter(e,o,a.inlineCallback(t)),e.nodes=[],r.push(e,!0)}else if(i.close){const e=r.pop();i.exit&&i.exit(e,o,a.inlineCallback(t))}else{const e=r.peek();i.enter&&i.enter(e,o,a.inlineCallback(t))}}}static blockToCommonMark(t,e){let r=new n,o=new n;const i={$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:[]};r.push(i,!1),o.push({tight:"true"},!1);for(let n=0;n<e.length;n++){const i=e[n];if("bullet_list_open"===i.type||"ordered_list_open"===i.type)o.push({tight:"true"},!1);else if("bullet_list_close"===i.type||"ordered_list_close"===i.type){const t=o.pop();r.peek().tight=t.tight}else"paragraph_open"!==i.type||i.hidden||(o.peek().tight="false");if("inline"===i.type){const e=r.peek();if(e){e.nodes=a.inlineCallback(t)(i.children);continue}throw new Error("Malformed token stream: no current node")}const s=t.blocks[i.type];if(!s)throw new Error("Unknown block type "+i.type);if(s.leaf){const e={$class:s.tag};s.enter&&s.enter(e,i,a.inlineCallback(t)),r.append(e)}else if(s.open){const e={$class:s.tag};s.enter&&s.enter(e,i,a.inlineCallback(t)),e.nodes=[],r.push(e,!0)}else if(s.close){const e=r.pop();s.exit&&s.exit(e,i,a.inlineCallback(t)),"paragraph_close"!==i.type&&0===e.nodes.length&&delete e.nodes}}return i.nodes&&0!==i.nodes.length||i.nodes.push({$class:"org.accordproject.commonmark.Paragraph",nodes:[{$class:"org.accordproject.commonmark.Text",text:""}]}),i}toCommonMark(t){return a.blockToCommonMark(this.rules,t)}}t.exports=a},2315:t=>{"use strict";t.exports=class{constructor(){this.clear()}clear(){this.stack=[]}peek(){return 0===this.stack.length?null:this.stack[this.stack.length-1]}push(t,e=!0){e&&this.append(t),this.stack.push(t)}append(t){const e=this.peek();if(!e||!e.nodes)throw new Error(`Cannot append. Invalid stack: ${JSON.stringify(this.stack,null,4)}`);e.nodes.push(t)}pop(){return this.stack.pop()}}},5297:(t,e,r)=>{"use strict";const n=r(489),o=r(3465),i=r(805);t.exports=class extends o{constructor(){super({},(t=>t),((t,e)=>{e.forEach((e=>{t.result+=e}))}),i,(t=>"Item"===t))}toMarkdown(t){const e={};return e.result=this.resultString(""),e.stack=n.blocksInit(),t.accept(this,e),e.result.trim()}}},6323:t=>{"use strict";t.exports={NS_PREFIX_CommonMarkModel:"org.accordproject.commonmark.",CommonMarkModel:'\n/*\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nnamespace org.accordproject.commonmark\n\n/**\n * A model for a commonmark format markdown file\n */\n\nabstract concept Node {\n o String text optional\n o Node[] nodes optional\n o Integer startLine optional\n o Integer endLine optional\n}\n\nabstract concept Root extends Node {\n}\n\nabstract concept Child extends Node {\n}\n\nconcept Text extends Child {\n}\n\nconcept Attribute {\n o String name\n o String value\n}\nconcept TagInfo {\n o String tagName\n o String attributeString\n o Attribute[] attributes\n o String content\n o Boolean closed\n}\n\nconcept CodeBlock extends Child {\n o String info optional\n o TagInfo tag optional\n}\n\nconcept Code extends Child {\n o String info optional\n}\n\nconcept HtmlInline extends Child {\n o TagInfo tag optional\n}\n\nconcept HtmlBlock extends Child {\n o TagInfo tag optional\n}\n\nconcept Emph extends Child {\n}\n\nconcept Strong extends Child {\n}\n\nconcept BlockQuote extends Child {\n}\n\nconcept Heading extends Child {\n o String level\n}\n\nconcept ThematicBreak extends Child {\n}\n\nconcept Softbreak extends Child {\n}\n\nconcept Linebreak extends Child {\n}\n\nconcept Link extends Child {\n o String destination\n o String title\n}\n\nconcept Image extends Child {\n o String destination\n o String title\n}\n\nconcept Paragraph extends Child {\n}\n\nconcept List extends Child {\n o String type\n o String start optional\n o String tight\n o String delimiter optional\n}\n\nconcept Item extends Child {\n}\n\nconcept Document extends Root {\n o String xmlns\n}\n\nconcept Table extends Child{ \n}\n\nconcept TableHead extends Child{\n}\n\nconcept TableBody extends Child{\n}\n\nconcept TableRow extends Child{\n} \n\nconcept HeaderCell extends Child{\n}\n\nconcept TableCell extends Child{\n}\n'}},805:(t,e,r)=>{"use strict";const n=r(489);function o(t,e,r){const n=t[e]?t[e]:"";return r?r(n):n}const i={Code:(t,e,r,n,i,a)=>{a(n,[i(`\`${o(e,"text")}\``)])},Emph:(t,e,r,n,o,i)=>{i(n,[o("*"),r,o("*")])},Strong:(t,e,r,n,o,i)=>{i(n,[o("**"),r,o("**")])},Link:(t,e,r,n,i,a)=>{const s=`](${e.destination} "${o(e,"title")}")`;a(n,[i("["),r,i(s)])},Image:(t,e,r,n,i,a)=>{const s=`](${e.destination} "${o(e,"title")}")`;a(n,[i("!["),r,i(s)])},HtmlInline:(t,e,r,n,i,a)=>{a(n,[i(o(e,"text"))])},Linebreak:(t,e,r,o,i,a)=>{a(o,[i(`\\${n.mkPrefix(o,1)}`)])},Softbreak:(t,e,r,o,i,a)=>{a(o,[i(n.mkPrefix(o,1))])},Text:(t,e,r,i,a,s)=>{s(i,[a(o(e,"text",n.escapeText))])},ThematicBreak:(t,e,r,o,i,a)=>{a(o,[i(n.mkPrefix(o,2)),i("---")])},Heading:(t,e,r,o,i,a)=>{const s=parseInt(e.level),u=n.mkPrefix(o,2);if(s<3&&""!==r){n.nextNode(o);const t=n.mkPrefix(o,1),e=n.mkSetextHeading(s);a(o,[i(u),r,i(t),i(e)])}else{const t=n.mkATXHeading(s),e=" ";a(o,[i(u),i(t),i(e),r])}},CodeBlock:(t,e,r,i,a,s)=>{const u=n.mkPrefix(i,2),c=n.mkNewLine(i),l=`${u}\`\`\` ${o(e,"info")}`,f=`${c}${o(e,"text",n.escapeCodeBlock).split("\n").join(c)}\`\`\``;s(i,[a(l),a(f)])},HtmlBlock:(t,e,r,i,a,s)=>{const u=o(e,"text");s(i,[a(n.mkPrefix(i,2)),a(u)])},Paragraph:(t,e,r,o,i,a)=>{a(o,[i(n.mkPrefix(o,o.first?1:2)),r])},BlockQuote:(t,e,r,n,o,i)=>{i(n,[r])},Item:(t,e,r,o,i,a)=>{const s=o.tight&&"false"===o.tight&&o.index!==o.indexInit?2:1;"ordered"===o.type?a(o,[i(`${n.mkPrefix(o,s)}${o.index}. `),r]):a(o,[i(`${n.mkPrefix(o,s)}- `),r])},List:(t,e,r,n,o,i)=>{i(n,[r])},Document:(t,e,r,n,o,i)=>{i(n,[r])},Table:(t,e,r,n,o,i)=>{i(n,[r])},TableBody:(t,e,r,n,o,i)=>{i(n,[r])},TableRow:(t,e,r,o,i,a)=>{const s=n.mkNewLine(o);a(o,[r,i("|"),s])},TableCell:(t,e,r,n,o,i)=>{i(n,[o("|"),o(" "),r,o(" ")])},TableHead:(t,e,r,o,i,a)=>{const s=e.nodes[0].nodes.length,u=n.mkTableHeading(s),c=n.mkNewLine(o);a(o,[r,i(u),i(c)])},HeaderCell:(t,e,r,n,o,i)=>{i(n,[o("|"),o(" "),r,o(" ")])}};t.exports=i},2923:(t,e,r)=>{"use strict";const n=r(2315);function o(t,e){switch(t.$class){case"org.accordproject.commonmark.Emph":case"org.accordproject.commonmark.Strong":case"org.accordproject.commonmark.Document":case"org.accordproject.commonmark.BlockQuote":t.nodes.forEach((t=>{o(t,e)}));break;case"org.accordproject.commonmark.Paragraph":case"org.accordproject.commonmark.Heading":e.push({$class:"org.accordproject.commonmark.Paragraph",nodes:[]}),t.nodes&&t.nodes.forEach((t=>{o(t,e)})),e.pop();break;case"org.accordproject.commonmark.CodeBlock":case"org.accordproject.commonmark.HtmlBlock":e.append({$class:"org.accordproject.commonmark.Paragraph",nodes:[{$class:"org.accordproject.commonmark.Text",text:t.text}]});break;case"org.accordproject.commonmark.Code":case"org.accordproject.commonmark.HtmlInline":e.append({$class:"org.accordproject.commonmark.Text",text:t.text});break;case"org.accordproject.commonmark.Link":e.append({$class:"org.accordproject.commonmark.Text",text:t.destination});break;case"org.accordproject.commonmark.Image":e.append({$class:"org.accordproject.commonmark.Text",text:t.title});break;case"org.accordproject.commonmark.Linebreak":e.append({$class:"org.accordproject.commonmark.Text",text:"\n"});break;default:e.append(t)}}t.exports=function(t){const e={$class:"org.accordproject.commonmark.Document",xmlns:t.xmlns,nodes:[]},r=new n;return r.push(e,!1),o(t,r),e}},6850:(t,e,r)=>{"use strict";const{unescapeCodeBlock:n,parseHtmlBlock:o,headingLevel:i,getAttr:a,trimEndline:s}=r(489),u=r(6323).NS_PREFIX_CommonMarkModel,c={tag:u+"Text",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{t.text=e.content},skipEmpty:!0},l={tag:u+"Code",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{t.text=e.content},skipEmpty:!1},f={tag:u+"Softbreak",leaf:!0,open:!1,close:!1,skipEmpty:!1},h={tag:u+"Linebreak",leaf:!0,open:!1,close:!1,skipEmpty:!1},p={tag:u+"HtmlInline",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{t.text=e.content,t.tag=o(e.content)},skipEmpty:!1},d={tag:u+"Strong",leaf:!1,open:!0,close:!1,skipEmpty:!1},m={tag:u+"Strong",leaf:!1,open:!1,close:!0,skipEmpty:!1},y={tag:u+"Emph",leaf:!1,open:!0,close:!1,skipEmpty:!1},g={tag:u+"Emph",leaf:!1,open:!1,close:!0,skipEmpty:!1},v={tag:u+"Link",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.destination=a(e.attrs,"href",""),t.title=a(e.attrs,"title","")},skipEmpty:!1},b={tag:u+"Link",leaf:!1,open:!1,close:!0,skipEmpty:!1},w={tag:u+"Image",leaf:!1,open:!0,close:!0,enter:(t,e,r)=>{t.destination=a(e.attrs,"src",""),t.title=a(e.attrs,"title",""),t.nodes=r(e.children)},skipEmpty:!1},A={tag:u+"CodeBlock",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{const i=e.info.trim();t.info=i||null,t.tag=o(i),t.text=e.content?n(e.content):""}},M=A,E={tag:u+"HtmlBlock",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{const n=s(e.content);t.tag=o(n),t.text=n}},_={tag:u+"ThematicBreak",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{}},C={tag:u+"Paragraph",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},S={tag:u+"Paragraph",leaf:!1,open:!1,close:!0},k={tag:u+"Heading",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.level=i(e.tag)}},x={tag:u+"Heading",leaf:!1,open:!1,close:!0},O={tag:u+"BlockQuote",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},D={tag:u+"BlockQuote",leaf:!1,open:!1,close:!0},F={tag:u+"List",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.type="bullet",t.tight="true"}},T={tag:u+"List",leaf:!1,open:!1,close:!0},j={tag:u+"List",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.type="ordered",t.start=a(e.attrs,"start","1"),t.tight="true",t.delimiter=")"===e.markup?"paren":"period"}},P={tag:u+"List",leaf:!1,open:!1,close:!0},R={tag:u+"Item",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},B={tag:u+"List",leaf:!1,open:!1,close:!0},I={tag:u+"Table",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},N={tag:u+"Table",leaf:!1,open:!1,close:!0},$={tag:u+"TableHead",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},L={tag:u+"TableHead",leaf:!1,open:!1,close:!0},U={tag:u+"TableBody",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},q={tag:u+"TableBody",leaf:!1,open:!1,close:!0},z={tag:u+"TableRow",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},V={tag:u+"TableRow",leaf:!1,open:!1,close:!0},H={tag:u+"HeaderCell",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},G={tag:u+"HeaderCell",leaf:!1,open:!1,close:!0},W={tag:u+"TableCell",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{}},Z={tag:u+"TableCell",leaf:!1,open:!1,close:!0},J={inlines:{},blocks:{}};J.inlines.text=c,J.inlines.code_inline=l,J.inlines.softbreak=f,J.inlines.hardbreak=h,J.inlines.html_inline=p,J.inlines.strong_open=d,J.inlines.strong_close=m,J.inlines.em_open=y,J.inlines.em_close=g,J.inlines.link_open=v,J.inlines.link_close=b,J.inlines.image=w,J.blocks.code_block=A,J.blocks.fence=M,J.blocks.html_block=E,J.blocks.hr=_,J.blocks.paragraph_open=C,J.blocks.paragraph_close=S,J.blocks.heading_open=k,J.blocks.heading_close=x,J.blocks.blockquote_open=O,J.blocks.blockquote_close=D,J.blocks.bullet_list_open=F,J.blocks.bullet_list_close=T,J.blocks.ordered_list_open=j,J.blocks.ordered_list_close=P,J.blocks.list_item_open=R,J.blocks.list_item_close=B,J.blocks.table_open=I,J.blocks.table_close=N,J.blocks.thead_open=$,J.blocks.thead_close=L,J.blocks.tbody_open=U,J.blocks.tbody_close=q,J.blocks.tr_open=z,J.blocks.tr_close=V,J.blocks.th_open=H,J.blocks.th_close=G,J.blocks.td_open=W,J.blocks.td_close=Z,t.exports=J},5747:(t,e,r)=>{"use strict";t.exports=r(2454)},8614:(t,e,r)=>{"use strict";const n=r(2584).Ok,o=r(2584).cQ;t.exports=function(t,e,r,i){let a,s,u,c,l,f,h,p,d,m,y=!1,g=t.bMarks[e]+t.tShift[e],v=t.eMarks[e],b=[];if(123!==t.src.charCodeAt(g))return!1;if(123!==t.src.charCodeAt(g+1))return!1;if(35!==t.src.charCodeAt(g+2))return!1;if(u=n(t.src.slice(g),b),!u)return!1;if(l=g+u.matched[0].length,l=t.skipSpaces(l),l<v)return!1;if(s=u.tag,c=u.attrs,a=s,h="",i)return!0;for(f=e;!(f++,f>=r||(g=t.bMarks[f]+t.tShift[f],v=t.eMarks[f],g<v&&t.sCount[f]<t.blkIndent));)if(123===t.src.charCodeAt(g)&&123===t.src.charCodeAt(g+1)&&(47===t.src.charCodeAt(g+2)||35===t.src.charCodeAt(g+2)))if(35!==t.src.charCodeAt(g+2)){if(!(t.sCount[f]-t.blkIndent>=4)&&(u=o(t.src.slice(g),s,b),u&&(l=g+u.matched[0].length,l=t.skipSpaces(l),!(l<v)))){y=!0;break}}else u=n(t.src.slice(g),b);return d=t.parentType,m=t.lineMax,t.parentType="block",t.lineMax=f,p=t.push("block_"+a+"_open","div",1),p.markup="",p.block=!0,p.info="",p.map=[e,f],p.attrs=c,t.md.block.tokenize(t,e+1,f),p=t.push("block_"+a+"_close","div",-1),p.markup=t.src.slice(g,l),p.block=!0,t.parentType=d,t.lineMax=m,t.line=f+(y?1:0),!0}},8326:t=>{"use strict";t.exports=function(t){return function(e,r,n,o,i){return 1===e[r].nesting&&e[r].attrJoin("class",t+"_block"),i.renderToken(e,r,n,o,i)}}},647:(t,e,r)=>{"use strict";r(2584).zD,r(2584).$l,r(2584).Im;const n=r(2584).vH;t.exports=function(t,e){let r,o,i,a,s=t.pos;return i=t.posMax,!(123!==t.src.charCodeAt(s)||s+2>=i||(r=t.src.charCodeAt(s+1),123!==r||(r=t.src.charCodeAt(s+2),37!==r||(o=t.src.slice(s).match(n),!o||(e||(a=t.push("formula","formula",0),a.content=o[1],a.attrs=[["name","formula"]]),t.pos+=o[0].length,0)))))}},2584:(t,e,r)=>{"use strict";const n=r(4116),o=new RegExp('^(?:{{\\s*([a-zA-Z_][a-zA-Z0-9_]*)(:?\\s+as\\s*"([^"]*)"\\s*)?\\s*}})'),i=new RegExp('^(?:{{#\\s*([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s+([A-Za-z0-9_-]+))(?:\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s*=\\s*"([^"]*)")?)*\\s*}})'),a=new RegExp("^(?:{{/\\s*([a-zA-Z_][a-zA-Z0-9_]*)\\s*}})"),s=new RegExp("^(?:{{%([^%]*)%}})");function u(t){const e=[];e.push(["name",t[2]]);for(let r=3;r<t.length;r+=2)t[r]&&e.push([t[r],t[r+1]]);return e}t.exports.zD=o,t.exports.$l=i,t.exports.Im=a,t.exports.vH=s,t.exports.Ok=function(t,e){var r=t.match(i);if(!r)return null;var o=r[1];return n.blocks.includes(o)?(e.unshift(o),{tag:o,attrs:u(r),matched:r}):null},t.exports.cQ=function(t,e,r){var n=t.match(a);if(!n)return null;var o=n[1];return r[0]===o&&r.shift(),r.length>0?null:{tag:o,matched:n}}},2454:(t,e,r)=>{"use strict";const n=r(647),o=r(8614),i=r(8326),a=function(t,e){return`<span class="formula">${t[e].content}</span>`};t.exports=function(t){t.renderer.rules.formula=a,t.inline.ruler.before("emphasis","cicero",n),t.block.ruler.before("fence","cicero_block",o,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.block_clause_open=i("clause"),t.renderer.rules.block_clause_close=i("clause")}},4789:(t,e,r)=>{"use strict";t.exports=r(4128)},4128:(t,e,r)=>{"use strict";const n=r(4350),o=r(937),i=r(9430),a=r(5183);function s(t,e,r){const n=t.filter((t=>t[0]===e));return n[0]?""+n[0][1]:r}const u=function(t,e){const r=t[e],n=s(r.attrs,"name",null),o=s(r.attrs,"format",null);let i=`name="${n}"`;return o&&(i+=` format="${o}"`),`<span class="variable" ${i}>${n}</span>`},c=function(t,e){return'<span class="variable" name="this">this</span>'},l=function(t,e){return'</span><span class="else_inline">'},f=function(t,e){return`<span class="formula">${t[e].content}</span>`};t.exports=function(t){t.inline.ruler.before("emphasis","template",n),t.renderer.rules.inline_block_if_open=o("if"),t.renderer.rules.inline_block_if_close=o("if"),t.renderer.rules.inline_block_optional_close=o("optional"),t.renderer.rules.inline_block_optional_open=o("optional"),t.renderer.rules.inline_block_with_open=o("with"),t.renderer.rules.inline_block_with_close=o("with"),t.renderer.rules.inline_block_join_open=o("join"),t.renderer.rules.inline_block_join_close=o("join"),t.renderer.rules.inline_block_else=l,t.renderer.rules.variable=u,t.renderer.rules.this=c,t.renderer.rules.formula=f,t.block.ruler.before("fence","template_block",i,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules.block_clause_open=a("clause"),t.renderer.rules.block_clause_close=a("clause"),t.renderer.rules.block_ulist_open=a("ulist"),t.renderer.rules.block_ulist_close=a("ulist"),t.renderer.rules.block_olist_open=a("olist"),t.renderer.rules.block_olist_close=a("olist")}},9430:(t,e,r)=>{"use strict";const n=r(8226).Ok,o=r(8226).cQ;t.exports=function(t,e,r,i){let a,s,u,c,l,f,h,p,d,m,y=!1,g=t.bMarks[e]+t.tShift[e],v=t.eMarks[e],b=[];if(123!==t.src.charCodeAt(g))return!1;if(123!==t.src.charCodeAt(g+1))return!1;if(35!==t.src.charCodeAt(g+2))return!1;if(u=n(t.src.slice(g),b),!u)return!1;if(l=g+u.matched[0].length,l=t.skipSpaces(l),l<v)return!1;if(s=u.tag,c=u.attrs,a=s,h="",i)return!0;for(f=e;!(f++,f>=r||(g=t.bMarks[f]+t.tShift[f],v=t.eMarks[f],g<v&&t.sCount[f]<t.blkIndent));)if(123===t.src.charCodeAt(g)&&123===t.src.charCodeAt(g+1)&&(47===t.src.charCodeAt(g+2)||35===t.src.charCodeAt(g+2)))if(35!==t.src.charCodeAt(g+2)){if(!(t.sCount[f]-t.blkIndent>=4)&&(u=o(t.src.slice(g),s,b),u&&(l=g+u.matched[0].length,l=t.skipSpaces(l),!(l<v)))){y=!0;break}}else u=n(t.src.slice(g),b);return d=t.parentType,m=t.lineMax,t.parentType="block",t.lineMax=f,p=t.push("block_"+a+"_open","div",1),p.markup="",p.block=!0,p.info="",p.map=[e,f],p.attrs=c,t.md.block.tokenize(t,e+1,f),p=t.push("block_"+a+"_close","div",-1),p.markup=t.src.slice(g,l),p.block=!0,t.parentType=d,t.lineMax=m,t.line=f+(y?1:0),!0}},5183:t=>{"use strict";t.exports=function(t){return function(e,r,n,o,i){return 1===e[r].nesting&&e[r].attrJoin("class",t+"_block"),i.renderToken(e,r,n,o,i)}}},4350:(t,e,r)=>{"use strict";const n=r(1108),o=r(8226).zD,i=r(8226).$l,a=r(8226).Im,s=r(8226).vH,u=r(8226).DJ;t.exports=function(t,e){t.templates||(t.templates=[]);let r,c,l,f,h,p=t.pos;if(l=t.posMax,123!==t.src.charCodeAt(p)||p+2>=l)return!1;if(r=t.src.charCodeAt(p+1),123!==r)return!1;if(r=t.src.charCodeAt(p+2),35===r){if(e)return!1;if(c=t.src.slice(p).match(i),!c)return!1;h=u(c);const r=c[1];return!!n.inlines.includes(r)&&(t.templates.push(r),f=t.push("inline_block_"+r+"_open","span",1),f.content=c[0],f.attrs=h,t.pos+=c[0].length,!0)}if(47===r){if(e)return!1;if(c=t.src.slice(p).match(a),!c)return!1;const r=c[1];if(!n.inlines.includes(r))return!1;const o=t.templates.pop();return o!==r?(t.templates.push(o),!1):(f=t.push("inline_block_"+r+"_close","span",-1),f.content=c[0],t.pos+=c[0].length,!0)}if(37===r)return c=t.src.slice(p).match(s),!!c&&(e||(f=t.push("formula","formula",0),f.content=c[1],f.attrs=[]),t.pos+=c[0].length,!0);{if(c=t.src.slice(p).match(o),!c)return!1;const r=c[0],n=c[1],i=c[3];return e||("else"===n?(f=t.push("inline_block_else","else",0),f.content=r):"this"===n?(f=t.push("this","this",0),f.content=r,f.attrs=[],i&&f.attrs.push(["format",i])):(f=t.push("variable","variable",0),f.content=r,f.attrs=[["name",n]],i&&f.attrs.push(["format",i]))),t.pos+=r.length,!0}}},937:t=>{"use strict";t.exports=function(t){return function(e,r,n,o,i){return 1===e[r].nesting&&e[r].attrJoin("class",t+"_inline"),i.renderToken(e,r,n,o,i)}}},8226:(t,e,r)=>{"use strict";const n=r(1108),o=new RegExp('^(?:{{\\s*([a-zA-Z_][a-zA-Z0-9_]*)(:?\\s+as\\s*"([^"]*)"\\s*)?\\s*}})'),i=new RegExp('^(?:{{#\\s*([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s+([A-Za-z0-9_-]+))(?:\\s+([a-zA-Z_][a-zA-Z0-9_]*)(?:\\s*=\\s*"([^"]*)")?)*\\s*}})'),a=new RegExp("^(?:{{/\\s*([a-zA-Z_][a-zA-Z0-9_]*)\\s*}})"),s=new RegExp("^(?:{{%([^%]*)%}})");function u(t){const e=[];e.push(["name",t[2]]);for(let r=3;r<t.length;r+=2)t[r]&&e.push([t[r],t[r+1]]);return e}t.exports.zD=o,t.exports.$l=i,t.exports.Im=a,t.exports.vH=s,t.exports.Ok=function(t,e){var r=t.match(i);if(!r)return null;var o=r[1];return n.blocks.includes(o)?(e.unshift(o),{tag:o,attrs:u(r),matched:r}):null},t.exports.cQ=function(t,e,r){var n=t.match(a);if(!n)return null;var o=n[1];return r[0]===o&&r.shift(),r.length>0?null:{tag:o,matched:n}},t.exports.DJ=u},6010:(t,e,r)=>{"use strict";t.exports.TemplateMarkModel=r(8514),t.exports.util=r(9502),t.exports.templatemarkutil=r(1103),t.exports.datetimeutil=r(3742),t.exports.normalizeNLs=r(3881).normalizeNLs,t.exports.ParserManager=r(85),t.exports.TemplateException=r(2583),t.exports.TemplateMarkTransformer=r(6994)},6142:t=>{"use strict";class e{static visitChildren(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"nodes";r[o]&&e.visitNodes(t,r[o],n)}static visitNodes(t,e,r){e.forEach((e=>{e.accept(t,r)}))}visit(t,r){switch(t.getType()){case"VariableDefinition":case"FormattedVariableDefinition":case"EnumVariableDefinition":r.calculateDependencies&&r.variables.push(t.name);break;case"FormulaDefinition":r.calculateDependencies?t.dependencies=r.variables:r.result.push({name:t.name,code:t.code});break;default:e.visitChildren(this,t,r)}}calculateDependencies(t,e,r){var n=t.fromJSON(e,r);return n.accept(this,{calculateDependencies:!0,variables:[],result:[]}),t.toJSON(n,r)}processFormulas(t,e,r){var n={calculateDependencies:!1,variables:[],result:[]};return t.fromJSON(e,r).accept(this,n),n.result}}t.exports=e},1040:(t,e,r)=>{"use strict";var n=r(3335),{NS_PREFIX_CommonMarkModel:o}=r(612).CommonMarkModel,i=r(8514).NS_PREFIX_TemplateMarkModel;t.exports=class{visit(t,e){var r,o,i,a,s;if(null!==(r=t.isEnum)&&void 0!==r&&r.call(t))return this.visitEnumDeclaration(t,e);if(null!==(o=t.isClassDeclaration)&&void 0!==o&&o.call(t))return this.visitClassDeclaration(t,e);if(null!==(i=t.isField)&&void 0!==i&&i.call(t))return this.visitField(t,e);if(null!==(a=t.isRelationship)&&void 0!==a&&a.call(t))return this.visitRelationship(t,e);if(null!==(s=t.isEnumValue)&&void 0!==s&&s.call(t))return this.visitEnumValueDeclaration(t,e);throw new Error("Unrecognised type: "+typeof t+", value: "+n.inspect(t,{showHidden:!0,depth:2}))}visitEnumDeclaration(t,e){var r={};return r.$class=i+"EnumVariableDefinition",r.name=e.type,r}visitClassDeclaration(t,e){var r={};r.$class=i+"WithDefinition",r.name=e.name,r.nodes=[];var n=!0;return t.getProperties().forEach(((t,i)=>{if(!n){var a={};a.$class=o+"Text",a.text=" ",r.nodes.push(a)}r.nodes.push(t.accept(this,e)),n=!1})),r}visitField(t,e){var r=t.getName(),n={};if(n.$class=i+"VariableDefinition",n.name=r,t.isArray()){t.isPrimitive()&&(n.name="this");var o={};o.$class=i+"JoinDefinition",o.separator=" ",o.name=r,o.nodes=[n],n=o}if(t.isOptional()){t.isPrimitive()&&(n.name="this");var a={};a.$class=i+"OptionalDefinition",a.name=r,a.whenSome=[n],a.whenNone=[],n=a}return n}visitEnumValueDeclaration(t,e){throw new Error("visitEnumValueDeclaration not handled")}visitRelationshipDeclaration(t,e){throw new Error("visitRelationshipDeclaration")}}},6994:(t,e,r)=>{"use strict";var n=r(9910).Y,{templateMarkManager:o,templateToTokens:i,tokensToUntypedTemplateMark:a,templateMarkTyping:s}=r(1103),u=r(85),c=r(3881).x,l=r(3881).m,f=r(9891),h=r(6827);t.exports=class{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.parsingTable=t}toTokens(t){return i(t.content)}tokensToMarkdownTemplate(t,e,r,n){var o=a(t,r);n&&n.verbose&&(console.log("===== Untyped TemplateMark "),console.log(JSON.stringify(o,null,2)));var i=s(o,e,r);return n&&n.verbose&&(console.log("===== TemplateMark "),console.log(JSON.stringify(i,null,2))),i}fromMarkdownTemplate(t,e,r,n){if(!e)throw new Error("Cannot parse without template model");var o=this.toTokens(t);return n&&n.verbose&&(console.log("===== MarkdownIt Tokens "),console.log(JSON.stringify(o,null,2))),this.tokensToMarkdownTemplate(o,e,r,n)}toMarkdownTemplate(t){return(new f).toMarkdownTemplate(o.serializer,t)}dataFromCiceroMark(t,e,r){var o,i=e.getSerializer(),a=e.getParser(),s=c(t.content),u=t.fileName;try{o=a.parse(s)}catch(t){n(s,t.message,u)}if(o.status){var l=e.getUtcOffset();return i.toJSON(i.fromJSON(o.value,{utcOffset:l}),{utcOffset:l})}n(s,o,u)}fromCiceroMark(t,e,r,n,o,i,a){var s=new u(r,this.parsingTable,n,a);return s.setCurrentTime(o,i),s.setTemplateMark(e),s.buildParser(),this.dataFromCiceroMark(t,s,a)}fromMarkdownCicero(t,e,r,n,o,i,a){var s=this.fromMarkdownTemplate(e,r,n,a),u={fileName:t.fileName,content:l(t.content)};return this.fromCiceroMark(u,s,r,n,o,i,a)}draftCiceroMark(t,e,r,n){var i={parserManager:e,templateMarkModelManager:o.modelManager,templateMarkSerializer:o.serializer,fullData:t,data:t,kind:r,currentTime:e.getCurrentTime()},a=o.serializer.fromJSON(e.getTemplateMark()),s=new h;return a.accept(s,i),Object.assign({},o.serializer.toJSON(a))}instantiateCiceroMark(t,e,r,n,o,i,a){var s=new u(r,this.parsingTable,n);return s.setCurrentTime(o,i),s.setTemplateMark(e),this.draftCiceroMark(t,s,n,a)}getSerializer(){return o.serializer}}},6827:(t,e,r)=>{"use strict";var n=r(9502).flatten,o=r(1103).generateJSON,{NS_PREFIX_CommonMarkModel:i}=r(612).CommonMarkModel,{NS_PREFIX_CiceroMarkModel:a}=r(8955).CiceroMarkModel;class s{static cloneNode(t,e){return t.fromJSON(t.toJSON(e))}static visitChildren(t,e,r){e.nodes&&(e.nodes=s.visitNodes(t,e.nodes,r))}static visitNodes(t,e,r){return n(e.map((e=>e.accept(t,r))))}static matchTag(t){return"VariableDefinition"===t?a+"Variable":"FormattedVariableDefinition"===t?a+"FormattedVariable":"EnumVariableDefinition"===t?a+"EnumVariable":"FormulaDefinition"===t?a+"Formula":"ClauseDefinition"===t?a+"Clause":"ConditionalDefinition"===t?a+"Conditional":"OptionalDefinition"===t?a+"Optional":"ListBlockDefinition"===t?a+"ListBlock":t}visit(t,e){var r=this;switch(t.getType()){case"EnumVariableDefinition":var a=s.matchTag(t.getType());t.$classDeclaration=e.templateMarkModelManager.getType(a),t.value=""+e.data[t.name];break;case"VariableDefinition":case"FormattedVariableDefinition":var u=s.matchTag(t.getType());t.$classDeclaration=e.templateMarkModelManager.getType(u);var c="this"===t.name?e.data:e.data[t.name],l=t.identifiedBy?"Resource":t.elementType;e.visitor=r;var f=e.parserManager.getParsingTable().getDrafter(t.name,l,t.format,e)(c,t.format);if("string"!=typeof f)return f;t.value=""+f;break;case"ContractDefinition":return s.visitNodes(this,t.nodes,e);case"FormulaDefinition":var h=s.matchTag(t.getType());t.$classDeclaration=e.templateMarkModelManager.getType(h),t.value=e.parserManager.getFormulaEval(t.name)(t.code,e.fullData,e.currentTime);break;case"ClauseDefinition":if("contract"===e.kind){var p=s.matchTag(t.getType());t.$classDeclaration=e.templateMarkModelManager.getType(p);var d={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:e.data[t.name],kind:e.kind,currentTime:e.currentTime};s.visitChildren(this,t,d)}else s.visitChildren(this,t,e);break;case"WithDefinition":var m={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:e.data[t.name],kind:e.kind,currentTime:e.currentTime};return s.visitNodes(this,t.nodes,m);case"ConditionalDefinition":var y=s.matchTag(t.getType());t.$classDeclaration=e.templateMarkModelManager.getType(y),s.visitNodes(this,t.whenTrue,e),s.visitNodes(this,t.whenFalse,e),e.data[t.name]?(t.isTrue=!0,t.nodes=t.whenTrue):(t.isTrue=!1,t.nodes=t.whenFalse);break;case"OptionalDefinition":var g=s.matchTag(t.getType());if(t.$classDeclaration=e.templateMarkModelManager.getType(g),e.data[t.name]){t.hasSome=!0,t.nodes=t.whenSome;var v={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:e.data[t.name],kind:e.kind,currentTime:e.currentTime};s.visitNodes(this,t.whenSome,v);var b={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:{},kind:e.kind,currentTime:e.currentTime};s.visitNodes(this,t.whenNone,b)}else{t.hasSome=!1,t.nodes=t.whenNone;var w=o(e.parserManager.getModelManager(),t.elementType),A={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:w,kind:e.kind,currentTime:e.currentTime};s.visitNodes(this,t.whenSome,A);var M={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:{},kind:e.kind,currentTime:e.currentTime};s.visitNodes(this,t.whenNone,M)}break;case"ListBlockDefinition":var E=s.cloneNode(e.templateMarkSerializer,t);E.$classDeclaration=e.templateMarkModelManager.getType(i+"Item"),delete E.elementType,delete E.decorators,delete E.name,delete E.type,delete E.start,delete E.tight,delete E.delimiter;var _=e.data[t.name],C=s.matchTag(t.getType());t.$classDeclaration=e.templateMarkModelManager.getType(C),t.nodes=n(_.map((function(t){var n={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:t,kind:e.kind,currentTime:e.currentTime};return s.cloneNode(e.templateMarkSerializer,E).accept(r,n)}))),delete t.elementType;break;case"JoinDefinition":var S=s.cloneNode(e.templateMarkSerializer,t);S.$classDeclaration=e.templateMarkModelManager.getType(i+"Item"),delete S.elementType,delete S.decorators,delete S.name,delete S.separator;var k=e.data[t.name];return n(k.map((function(n,o){var i={parserManager:e.parserManager,templateMarkModelManager:e.templateMarkModelManager,templateMarkSerializer:e.templateMarkSerializer,fullData:e.fullData,data:n,kind:e.kind,currentTime:e.currentTime},a=s.cloneNode(e.templateMarkSerializer,S).accept(r,i)[0].nodes;return o>0&&a.unshift(e.templateMarkSerializer.fromJSON({$class:"org.accordproject.commonmark.Text",text:t.separator})),a})));case"Document":s.visitChildren(this,t.nodes[0],e),t.nodes=t.nodes[0].nodes;break;default:s.visitChildren(this,t,e)}return[t]}}t.exports=s},9891:(t,e,r)=>{"use strict";var n=r(612).CommonMarkUtils,o=r(612).FromCommonMarkVisitor,i=r(612).fromcommonmarkrules,a=r(9905);t.exports=class extends o{constructor(t){var e=i;Object.assign(e,a),super(t,(t=>t),((t,e)=>{e.forEach((e=>{t.result+=e}))}),e,(t=>"Item"===t||"ClauseDefinition"===t||"ListBlockDefinition"===t))}toMarkdownTemplate(t,e){var r={},o=t.fromJSON(function(t){return{$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:t.nodes[0].nodes}}(e));return r.result=this.resultString(""),r.stack=n.blocksInit(),o.accept(this,r),r.result.trim()}}},6705:(t,e,r)=>{"use strict";var n=r(8094),o=r(9502).flatten,i=r(612).CommonMarkUtils,a=r(612).FromCommonMarkVisitor,s=r(612).fromcommonmarkrules,u=r(968),c=r(1103).templateMarkManager,l=r(3943).n0,f=t=>e=>n.string(t),h=(t,e)=>{var r;r=t.result?l([t.result].concat(e)):l(e),t.result=function(t){return r(t).map(o)}};class p extends a{constructor(t){var e=s;Object.assign(e,u),super(t,f,h,e,(t=>"Item"===t||"ClauseDefinition"===t||"ListBlockDefinition"===t))}static toParserWithParameters(t,e,r){var n=Object.assign({},r);return n.parserManager=r.parserManager,n.parsingTable=r.parsingTable,n.templateParser=r.templateParser,n.result=f(""),n.stack=r.stack,n.first=r.first,c.serializer.fromJSON(e).accept(t,n),n.result}toParser(t,e,r){var o={},a={};a.parserManager=t,a.parsingTable=r,a.templateParser=o,a.result=f(""),a.stack=i.blocksInit(),a.first=!1;var s=p.toParserWithParameters(this,e,a);return o.main=t=>s(t).map((function(t){return t[0]})),n.createLanguage(o).main}}t.exports=p},8479:(t,e,r)=>{"use strict";var n=r(8514).NS_PREFIX_TemplateMarkModel,o=r(9910).L;function i(t,e){var r=[];return e.getDecorators().forEach((e=>{var n={$class:"concerto.metamodel.Decorator"},o=e.getName();n.name=o,n.arguments=[],e.getArguments().forEach((t=>{var e;e="string"==typeof t?{$class:"concerto.metamodel.DecoratorString",value:t}:"number"==typeof t?{$class:"concerto.metamodel.DecoratorNumber",value:t}:"boolean"==typeof t?{$class:"concerto.metamodel.DecoratorBoolean",value:t}:{$class:"concerto.metamodel.DecoratorTypeReference",type:{$class:"concerto.metamodel.TypeIdentifier",name:t.name},isArray:t.array},n.arguments.push(e)})),r.push(t.fromJSON(n))})),0===r.length?null:r}class a{static visitChildren(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"nodes";e[n]&&a.visitNodes(t,e[n],r)}static visitNodes(t,e,r){e.forEach((e=>{e.accept(t,r)}))}visit(t,e){var r=e.model;switch(t.getType()){case"VariableDefinition":case"FormattedVariableDefinition":if(r||o("Unknown property: "+t.name,t),"this"===t.name){var s=r;if(s){var u,c=e.templateMarkModelManager.getSerializer();if(t.decorators=i(c,s),s.isTypeEnum()){var l=e.templateMarkModelManager.getType(n+"EnumVariableDefinition"),f=s.getParent().getModelFile().getType(s.getType());t.elementType=s.getFullyQualifiedTypeName(),t.$classDeclaration=l,t.enumValues=f.getOwnProperties().map((t=>t.getName()))}else if(s.isPrimitive())t.elementType=s.getFullyQualifiedTypeName();else if(null!==(u=s.isRelationship)&&void 0!==u&&u.call(s)){var h=s.getFullyQualifiedTypeName();t.elementType=h;var p=e.introspector.getClassDeclaration(h).getIdentifierFieldName();t.identifiedBy=p||"$identifier"}else{var d=s.getFullyQualifiedTypeName();t.elementType=d}}}else{r.getProperty||o("Unknown property: "+t.name,t);var m=r.getProperty(t.name);if(m){var y,g=e.templateMarkModelManager.getSerializer();if(t.decorators=i(g,m),m.isTypeEnum()){var v=e.templateMarkModelManager.getType(n+"EnumVariableDefinition"),b=m.getParent().getModelFile().getType(m.getType());t.elementType=m.getFullyQualifiedTypeName(),t.$classDeclaration=v,t.enumValues=b.getOwnProperties().map((t=>t.getName()))}else if(m.isPrimitive())t.elementType=m.getFullyQualifiedTypeName();else if(null!==(y=m.isRelationship)&&void 0!==y&&y.call(m)){var w=m.getFullyQualifiedTypeName();t.elementType=w;var A=e.introspector.getClassDeclaration(w).getIdentifierFieldName();t.identifiedBy=A||"$identifier"}else{var M=m.getFullyQualifiedTypeName();t.elementType=M}}else o("Unknown property: "+t.name,t)}break;case"ClauseDefinition":if("contract"===e.kind){r||o("Unknown property: "+t.name,t);var E,_=r.getOwnProperty(t.name);_||o("Unknown property: "+t.name,t),_.isPrimitive()?E=_:(t.elementType=_.getFullyQualifiedTypeName(),E=e.introspector.getClassDeclaration(t.elementType));var C=e.templateMarkModelManager.getSerializer();t.decorators=i(C,E),a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:E,kind:e.kind})}else{r||o("Unknown property: "+t.name,t);var S=e.templateMarkModelManager.getSerializer();t.decorators=i(S,r),t.elementType=r.getFullyQualifiedName(),a.visitChildren(this,t,e)}break;case"WithDefinition":var k,x=r.getOwnProperty(t.name);x||o("Unknown property: "+t.name,t),x.isPrimitive()?k=x:(t.elementType=x.getFullyQualifiedTypeName(),k=e.introspector.getClassDeclaration(t.elementType));var O=e.templateMarkModelManager.getSerializer();t.decorators=i(O,k),a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:k,kind:e.kind});break;case"ListBlockDefinition":var D,F=r.getOwnProperty(t.name);F||o("Unknown property: "+t.name,t),F.isArray()||o("List template not on an array property: "+t.name,t);var T=e.templateMarkModelManager.getSerializer();t.decorators=i(T,F),F.isPrimitive()?D=F:(t.elementType=F.getFullyQualifiedTypeName(),D=e.introspector.getClassDeclaration(t.elementType)),a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:D,kind:e.kind});break;case"JoinDefinition":var j,P=r.getOwnProperty(t.name);P||o("Unknown property: "+t.name,t),P.isArray()||o("Join template not on an array property: "+t.name,t);var R=e.templateMarkModelManager.getSerializer();t.decorators=i(R,P),P.isPrimitive()?j=P:(t.elementType=P.getFullyQualifiedTypeName(),j=e.introspector.getClassDeclaration(t.elementType)),a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:j,kind:e.kind});break;case"ConditionalDefinition":var B,I=r.getOwnProperty(t.name);I||o("Unknown property: "+t.name,t),"Boolean"!==I.getType()&&o("Conditional template not on a boolean property: "+t.name,t);var N=e.templateMarkModelManager.getSerializer();t.decorators=i(N,I),B=I,a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:B,kind:e.kind},"whenTrue"),a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:null,kind:e.kind},"whenFalse");break;case"OptionalDefinition":var $,L=r.getOwnProperty(t.name);L||o("Unknown property: "+t.name,t),L.isOptional()||o("Optional template not on an optional property: "+t.name,t);var U=e.templateMarkModelManager.getSerializer();t.decorators=i(U,L),L.isPrimitive()?(t.elementType=L.getFullyQualifiedTypeName(),$=L):(t.elementType=L.getFullyQualifiedTypeName(),$=e.introspector.getClassDeclaration(t.elementType)),a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:$,kind:e.kind},"whenSome"),a.visitChildren(this,t,{templateMarkModelManager:e.templateMarkModelManager,introspector:e.introspector,model:null,kind:e.kind},"whenNone");break;case"ContractDefinition":t.elementType=r.getFullyQualifiedName(),a.visitChildren(this,t,e);break;default:a.visitChildren(this,t,e)}}}t.exports=a},3943:(t,e,r)=>{"use strict";var n=r(8094),o=r(9987),i=r(9502).flatten,a=r(612).CommonMarkUtils;function s(t,e){if("object"==typeof t&&"object"==typeof e){for(var r in t){if(!e[r])return!1;if(!s(t[r],e[r]))return!1}for(var n in e)if(!t[n])return!1}else if(t!==e)return!1;return!0}function u(t,e){var r={};r.$class=t;for(var n=0;n<e.length;n++){var o=e[n];if(r[o.name]){if(!s(r[o.name],o.value)){var i="Inconsistent values for variable ".concat(o.name,": ").concat(r[o.name]," and ").concat(o.value);throw new Error(i)}}else r[o.name]=o.value}return r.this&&(r=r.this),r}function c(t,e){return u(t.elementType,e.concat({name:"clauseId",elementType:"String",value:o.v4()}))}function l(){return n.regexp(/"[^"]*"/).desc('A String literal "..."')}function f(t){return e=t.map((function(t){return n.string(t)})),n.alt.apply(null,e);var e}function h(t,e,r){return n.seq(n.alt(e,n.seq(n.string("\n"),e)),r).map((function(t){return t[1]})).many().map((function(e){return function(t,e){var r={};r.name=t.name,r.elementType="List",r.value=[];for(var n=0;n<e.length;n++){var o=u(t.elementType,e[n]);r.value.push(o)}return r}(t,e)}))}t.exports.H$=function(t,e){var r={};return r.name=t.name,r.elementType=t.elementType,r.value=e,r},t.exports.LA=u,t.exports.WX=l,t.exports.jk=function(t){return n.string(a.escapeText(t))},t.exports.et=function(t){return n.seqMap.apply(null,t.concat([function(){var t=Array.prototype.slice.call(arguments);return t.filter((function(t){return!("string"==typeof t)}))}]))},t.exports.n0=function(t){return e=>n.seqMap.apply(null,t.map((t=>t(e))).concat([function(){var t=Array.prototype.slice.call(arguments);return t.filter((function(t){return!("string"==typeof t)}))}]))},t.exports.Yr=f,t.exports.C1=function(){return n.regexp(/{{%[^%]*%}}/).desc("A computed variable {{ ... }}")},t.exports.Kn=function(t){return f(t).map((function(t){return t}))},t.exports.$y=function(t,e,r){return n.alt(e.map((t=>!0)),r.map((t=>!1))).map((function(e){return function(t,e){var r={};return r.name=t.name,r.elementType="Boolean",r.value=e,r}(t,e)}))},t.exports.p7=function(t,e,r){return n.alt(e.map((function(e){return u(t.elementType,i(e))})),r.map((t=>null))).map((function(e){return function(t,e){var r={};return r.name=t.name,r.elementType=t.elementType,r.value=e,r}(t,e)}))},t.exports.H0=function(t,e,r){return h(t,n.seq(n.string(r),n.string("- ")),e)},t.exports.PX=function(t,e,r){return h(t,n.seq(n.string(r),n.regexp(/[0-9]+/),n.string(". ")),e)},t.exports.cB=function(t,e){var r=t.separator;return n.seq(e,n.seq(n.string(r),e).map((t=>t[1])).many()).map((function(t){return[t[0]].concat(t[1])})).map((function(e){return function(t,e){var r={};r.name=t.name,r.elementType="List",r.value=[];for(var n=0;n<e.length;n++)r.value.push(u(t.elementType,e[n]));return r}(t,e)}))},t.exports.id=function(t,e){return e.map((function(e){return u(t,i(e))}))},t.exports.U8=function(t,e){return e.skip(n.optWhitespace).map((function(e){return c(t,i(e))}))},t.exports.cd=function(t,e){var r=n.string("}}\n"),o=n.seq(n.string("\n\n{{#clause "),n.regexp(/[A-Za-z0-9_-]+/).desc("A name"),n.alt(n.seq(n.string(" src="),l(),r),r)),a=n.string("\n{{/clause}}");return n.seq(o,e,a).map((function(e){var r=e[0][2],n=r?r[1].substring(1,r[1].length-1):null;return function(t,e,r){var n={name:t.name,elementType:t.elementType,value:c(t,r)};return e&&(n.src=e),[n]}(t,n,i(e[1]))}))},t.exports.X$=function(t,e){return e.skip(n.optWhitespace).map((function(e){return function(t,e){return u(t.elementType,e.concat({name:"contractId",elementType:"String",value:o.v4()}))}(t,i(e))}))}},3742:(t,e,r)=>{"use strict";var n=r(8879),o=r(264);n.extend(o),t.exports={setCurrentTime:function(t){if(!t)return n.utc();try{return n.utc(t)}catch(e){throw new Error("".concat(t," is not a valid date and time: ").concat(e.message))}}}},9910:(t,e,r)=>{"use strict";var n=r(970).ParseException,o=r(2583);t.exports.L=function(t,e){var r=-1+(e&&e.value?e.value:" ").length;throw new o(t,{start:{line:-1,column:-1},end:{line:-1,endColumn:r}},"text/grammar.tem.md",null,"markdown-template")},t.exports.Y=function(t,e,r){var o,i,a,s={};if("string"!=typeof e){o="Parse error at line ".concat(e.index.line," column ").concat(e.index.column);var u=e.index,c=Object.assign({},u);c.offset=c.offset+1,c.column=c.column+1,s.start=u,s.end=c;var l=t.split("\n"),f=e.expected,h=l[u.line-1],p=h+"\n"+" ".repeat(u.column-1)+(t=>{var e=t.length-(u.column-1),r=function(t){return Math.max.apply(null,t.map((t=>t.length)))}(function(t){return t.map((t=>new RegExp(/'[^']*'/).test(t)?t.substr(1,t.length-2):t))}(f));return"^".repeat(e<r?e:r)})(h);i=o+"\n"+p+"\nExpected: "+((a=f)[0]&&"EOF"===a[0]?"End of text":f.join(" or "))}else i=o=e,s.start={offset:-1,column:-1},s.end={offset:-1,column:-1};throw new n(o,s,r,i,"markdown-template")}},8514:t=>{"use strict";t.exports={NS_PREFIX_TemplateMarkModel:"org.accordproject.templatemark.",TemplateMarkModel:'\n/*\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nnamespace org.accordproject.templatemark\n\nimport org.accordproject.commonmark.Child from https://models.accordproject.org/markdown/commonmark@0.4.0.cto\nimport concerto.metamodel.Decorator from https://models.accordproject.org/concerto/metamodel@0.2.0.cto\n\n/**\n * A model for Accord Project template extensions to commonmark\n */\nabstract concept ElementDefinition extends Child {\n o String name // Add Concerto regex\n o String elementType optional\n o Decorator[] decorators optional\n}\n\nconcept VariableDefinition extends ElementDefinition {\n o String identifiedBy optional\n}\n\nconcept FormattedVariableDefinition extends VariableDefinition {\n o String format\n}\n\nconcept EnumVariableDefinition extends VariableDefinition {\n o String[] enumValues\n}\n\nconcept FormulaDefinition extends ElementDefinition {\n o String[] dependencies optional // name of variables on which the formula depends\n o String code // Ergo expression\n}\n\nabstract concept BlockDefinition extends ElementDefinition {\n}\n\nconcept ClauseDefinition extends BlockDefinition {\n}\n\nconcept ContractDefinition extends BlockDefinition {\n}\n\nconcept WithDefinition extends BlockDefinition {\n}\n\nconcept ConditionalDefinition extends BlockDefinition {\n o Child[] whenTrue\n o Child[] whenFalse\n}\n\nconcept OptionalDefinition extends BlockDefinition {\n o Child[] whenSome\n o Child[] whenNone\n}\n\nconcept JoinDefinition extends BlockDefinition {\n o String separator\n}\n\nconcept ListBlockDefinition extends BlockDefinition {\n o String type\n o String tight\n o String start optional\n o String delimiter optional\n}\n\nconcept ForeachBlockDefinition extends BlockDefinition {\n}\n\nconcept WithBlockDefinition extends BlockDefinition {\n}\n\nconcept ConditionalBlockDefinition extends BlockDefinition {\n o Child[] whenTrue\n o Child[] whenFalse\n}\n\nconcept OptionalBlockDefinition extends BlockDefinition {\n o Child[] whenSome\n o Child[] whenNone\n}\n\n'}},9905:(t,e,r)=>{"use strict";var n=r(612).CommonMarkUtils,o={VariableDefinition:(t,e,r,n,o,i)=>{i(n,[o("{{"),o(e.name),o("}}")])},FormattedVariableDefinition:(t,e,r,n,o,i)=>{i(n,[o("{{"),o(e.name),o(' as "'),o(e.format),o('"}}')])},EnumVariableDefinition:(t,e,r,n,o,i)=>{i(n,[o("{{"),o(e.name),o("}}")])},FormulaDefinition:(t,e,r,n,o,i)=>{i(n,[o("{{%"),o(e.code),o("%}}")])},ConditionalDefinition:(t,e,r,n,o,i)=>{var a="{{#if ".concat(e.name,"}}"),s=t.visitChildren(t,e,n,"whenTrue"),u=t.visitChildren(t,e,n,"whenFalse"),c="{{/if}}";i(n,u?[o(a),o(s),o("{{else}}"),o(u),o(c)]:[o(a),o(s),o(c)])},OptionalDefinition:(t,e,r,n,o,i)=>{var a="{{#optional ".concat(e.name,"}}"),s=t.visitChildren(t,e,n,"whenSome"),u=t.visitChildren(t,e,n,"whenNone"),c="{{/optional}}";i(n,u?[o(a),o(s),o("{{else}}"),o(u),o(c)]:[o(a),o(s),o(c)])},WithDefinition:(t,e,r,n,o,i)=>{i(n,[o("{{#with ".concat(e.name,"}}")),r,o("{{/with}}")])},JoinDefinition:(t,e,r,n,o,i)=>{var a=e.separator?' separator="'+e.separator+'"':"";i(n,[o("{{#join ".concat(e.name).concat(a,"}}")),r,o("{{/join}}")])},ListBlockDefinition:(t,e,r,o,i,a)=>{var s="bullet"===e.type?"ulist":"olist",u=n.mkPrefix(o,1),c=u,l="{{#".concat(s," ").concat(e.name,"}}\n"),f=u,h="{{/".concat(s,"}}");a(o,[i(c),i(l),r,i(f),i(h)])},ClauseDefinition:(t,e,r,o,i,a)=>{var s=n.mkPrefix(o,2),u=e.src?' src="'+e.src+'"':"",c="{{#clause ".concat(e.name).concat(u,"}}\n");a(o,[i(s),i(c),r,i("\n{{/clause}}")])}};t.exports=o},3881:(t,e,r)=>{"use strict";var n=r(8955).CiceroMarkTransformer;function o(t){return t.replace(/\r/gm,"")}t.exports.normalizeNLs=o,t.exports.x=function(t){return(new n).toMarkdownCicero(t)},t.exports.m=function(t){var e=o(t);return(new n).fromMarkdownCicero(e)}},85:(t,e,r)=>{"use strict";var{Factory:n,Serializer:o,DateTimeUtil:i}=r(4640),a=r(4357),s=r(6827).visitNodes,u=r(6705),c=r(6142),{templateMarkManager:l,templateToTokens:f,tokensToUntypedTemplateMark:h,templateMarkTyping:p}=r(1103),d=t=>(t,e,r,n)=>{var o=Object.keys(e).filter((t=>!("$class"===t||"clauseId"===t||"contractId"===t)));return" calculate(".concat(t,")(").concat(o,") @ ").concat(r.format()," ")};t.exports=class{constructor(t,e,r,a){this.modelManager=t,this.factory=new n(this.modelManager),this.serializer=new o(this.factory,this.modelManager),this.template=null,this.templateMark=null,this.parser=null,this.templateKind=r||"clause";var{currentTime:s,utcOffset:u}=i.setCurrentTime();this.currentTime=s,this.utcOffset=u,this.userParsingTable=e,this.formulaEval=a||d,this.initParsingTable()}initParsingTable(){this.parserVisitor=new u,this.parsingTable=new a(this.modelManager,(function(t,e){return u.toParserWithParameters(new u,t,e)}),s),this.userParsingTable&&this.parsingTable.addParsingTable(this.userParsingTable)}getModelManager(){return this.modelManager}getFactory(){return this.factory}getSerializer(){return this.serializer}getTemplate(){return this.template}setTemplate(t){this.template=t}getTemplateMark(){if(!this.templateMark)throw new Error("Must call buildParser before calling getTemplateMark");return this.templateMark}setTemplateMark(t){this.templateMark=t}getParser(){if(!this.parser)throw new Error("Must call buildParser before calling getParser");return this.parser}getParsingTable(){return this.parsingTable}setParsingTable(t){this.userParsingTable=t}initParser(){if(!this.templateMark){var t=f(this.template),e=h(t,this.templateKind);this.templateMark=p(e,this.modelManager,this.templateKind)}this.parser=this.parserVisitor.toParser(this,this.templateMark,this.parsingTable)}buildParser(){this.parser?this.rebuildParser():this.initParser()}rebuildParser(){this.parser=null,this.initParsingTable(),this.template&&this.templateMark&&(this.templateMark=null),this.initParser()}getFormulaEval(t){return this.formulaEval(t)}setFormulaEval(t){this.formulaEval=t}getFormulas(){return(new c).processFormulas(l.modelManager.serializer,this.getTemplateMark())}setTemplateKind(t){this.templateKind=t}setCurrentTime(t,e){var{currentTime:r,utcOffset:n}=i.setCurrentTime(t,e);this.currentTime=r,this.utcOffset=n}getCurrentTime(){return this.currentTime}getUtcOffset(){return this.utcOffset}}},4357:(t,e,r)=>{"use strict";var n=r(2598),o=r(9086),i=r(7295),a=r(8096),s=r(4473),u=r(8700),c=r(7810),l=r(923),f=r(3943).n0,h=r(3943).id,p=r(4640).Introspector,d=r(1040),{templateMarkManager:m,templateToTokens:y,tokensToUntypedTemplateMarkFragment:g,templateMarkTypingFromType:v}=r(1103);function b(t,e){Object.assign(t,e)}t.exports=class{constructor(t,e,r){var y;this.modelManager=t,this.introspector=new p(this.modelManager),this.parsingTable=(b(y={},n),b(y,o),b(y,i),b(y,a),b(y,s),b(y,u),b(y,c),b(y,l),y),this.parseFromTemplateMark=function(t,r,n){var o=f(t.map((function(t){return e(t,n)})));return t=>h(r,o(t))},this.draftFromTemplateMark=function(t,e,n){return e=>{var o=function(t,e){var r={$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:e};return t.fromJSON(r).nodes}(n.templateMarkSerializer,t),i={parserManager:n.parserManager,templateMarkModelManager:n.templateMarkModelManager,templateMarkSerializer:n.templateMarkSerializer,data:e,kind:"clause"};return r(n.visitor,o,i)}},this.templateMarkFromModel=function(t,e,r){var n=new d,o={name:t},i=e.accept(n,o);return m.serializer.toJSON(m.serializer.fromJSON(i)).nodes}}getParsingTable(){return this.parsingTable}setParsingTable(t){this.parsingTable=t}addParsingTable(t){this.parsingTable=Object.assign(this.parsingTable,t)}addParsingTableEntry(t){b(this.parsingTable,t)}compileModel(t,e,r){var n=this.introspector.getClassDeclaration(r),o=this.templateMarkFromModel(t,n,r);e[r]={},e[r].templatemark={},e[r].templatemark.nodes=o}compileEntry(t,e,r,n){if(Object.prototype.hasOwnProperty.call(t,"inline")){var o=y(t.inline),i=g(o);t.templatemark={},t.templatemark.nodes=i.nodes[0].nodes[0].nodes}if(Object.prototype.hasOwnProperty.call(t,"templatemark")){var a=t.templatemark.nodes,s=v(a,this.modelManager,e);if(r){var u=this.parseFromTemplateMark(s,e,r);Object.prototype.hasOwnProperty.call(t,"javascript")||(t.javascript={}),t.javascript.parse=t=>u}if(n){var c=this.draftFromTemplateMark(s,e,n);Object.prototype.hasOwnProperty.call(t,"javascript")||(t.javascript={}),t.javascript.draft=c}}}getParser(t,e,r,n){var o=this.getParsingTable();o[e]||this.compileModel(t,o,e);var i=o[e];if(Object.prototype.hasOwnProperty.call(i,"javascript")||this.compileEntry(i,e,n,null),Object.prototype.hasOwnProperty.call(i,"javascript")&&i.javascript.parse)return i.javascript.parse(r,n.parserManager);throw new Error("No known parser for type "+e)}getDrafter(t,e,r,n){var o=this.getParsingTable();o[e]||this.compileModel(t,o,e);var i=o[e];if(Object.prototype.hasOwnProperty.call(i,"javascript")&&i.javascript.draft||this.compileEntry(i,e,null,n),Object.prototype.hasOwnProperty.call(i,"javascript")&&i.javascript.draft)return i.javascript.draft;throw new Error("No known parser for type "+e)}}},3120:t=>{"use strict";t.exports=function(t){return t?"true":"false"}},2598:(t,e,r)=>{"use strict";t.exports={Boolean:{javascript:{parse:r(8310),draft:r(3120)}}}},8310:(t,e,r)=>{"use strict";var n=r(8094);t.exports=t=>t=>n.alt(n.string("true"),n.string("false")).map((function(t){return"true"===t}))},5924:(t,e,r)=>{"use strict";var n=r(8879),o=r(264);n.extend(o),t.exports=function(t,e){var r=e||"MM/DD/YYYY";return n.utc(t).format(r)}},8700:(t,e,r)=>{"use strict";t.exports={DateTime:{javascript:{parse:r(7144),draft:r(5924)}}}},7144:(t,e,r)=>{"use strict";Error.stackTraceLimit=1/0;var n=r(8094),o=r(3943).jk,i=r(3943).et,a=r(3943).Yr,s=r(3943).LA,u={Jan:1,Feb:2,Mar:3,Apr:4,May:5,Jun:6,Jul:7,Aug:8,Sep:9,Oct:10,Nov:11,Dec:12},c={January:1,February:2,March:3,April:4,May:5,June:6,July:7,August:8,September:9,October:10,November:11,December:12};function l(t,e){var r={};return r.name=t,r.value=e,r}var f={D:function(){return n.regexp(/([1-2][0-9])|(3[0-1])|[1-9]/).map((function(t){return l("day",Number(t))}))},DD:function(){return n.regexp(/([1-2][0-9])|(3[0-1])|0[1-9]/).map((function(t){return l("day",Number(t))}))},M:function(){return n.regexp(/(1[0-2])|[1-9]/).map((function(t){return l("month",Number(t))}))},MM:function(){return n.regexp(/(1[0-2])|0[1-9]/).map((function(t){return l("month",Number(t))}))},MMM:function(){return a(Object.keys(u)).map((function(t){return l("month",u[t])}))},MMMM:function(){return a(Object.keys(c)).map((function(t){return l("month",c[t])}))},YYYY:function(){return n.regexp(/[0-9][0-9][0-9][0-9]/).map((function(t){return l("year",Number(t))}))},H:function(){return n.regexp(/2[0-3]|1[0-9]|[0-9]/).map((function(t){return l("hour",Number(t))}))},HH:function(){return n.regexp(/2[0-3]|[0-1][0-9]/).map((function(t){return l("hour",Number(t))}))},h:function(){return n.regexp(/1[0-2]|[1-9]/).map((function(t){return l("hour",Number(t))}))},hh:function(){return n.regexp(/1[0-2]|0[1-9]/).map((function(t){return l("hour",Number(t))}))},mm:function(){return n.regexp(/[0-5][0-9]/).map((function(t){return l("minute",Number(t))}))},ss:function(){return n.regexp(/[0-5][0-9]/).map((function(t){return l("second",Number(t))}))},SSS:function(){return n.regexp(/[0-9][0-9][0-9]/).map((function(t){return l("fracsecond",Number(t))}))},Z:function(){return n.regexp(/([-]|[+])[0-9][0-9]:[0-9][0-9]/).map((function(t){return l("timezone",t)}))},a:function(){return n.alt(n.string("am"),n.string("pm")).map((function(t){return l("halfDay",t)}))},A:function(){return n.alt(n.string("AM"),n.string("PM")).map((function(t){return l("halfDay",t.toLowerCase())}))}};function h(t){var e=f[t];return e?e():o(t)}t.exports=(t,e)=>r=>function(t,e){var r=e.getCurrentTime().format("Z");t||(t="MM/DD/YYYY");var n="Z"===t.charAt(t.length-1);n&&(t=t.substr(0,t.length-1));var o=t.split(/(DD|D|MMMM|MMM|MM|M|YYYY|HH|H|hh|h|mm|ss|SSS|a|A)+/);n&&o.push("Z");var a=o.map(h);return i(a).map((function(t){return function(t,e){var r=(t,e,r)=>(t?""+t:""+r).padStart(e,"0"),n=s("DateTime",t),o="";n.hour&&(o="am"===n.halfDay?12===n.hour?0:n.hour:"pm"===n.halfDay?12===n.hour?12:n.hour+12:n.hour);var i=r(n.year,4,0),a=r(n.month,2,1),u=r(n.day,2,1),c=r(o,2,0),l=r(n.minute,2,0),f=r(n.second,2,0),h=r(n.fracsecond,3,0),p=n.timezone?""+n.timezone:e;return"".concat(i,"-").concat(a,"-").concat(u,"T").concat(c,":").concat(l,":").concat(f,".").concat(h).concat(p)}(t,r)}))}(t,e)},750:(t,e,r)=>{"use strict";var n=r(9770).Rh,o=r(9770).o_;t.exports=function(t,e){return e?o(t,e):n(t)}},9770:(t,e,r)=>{"use strict";var n=r(8094);t.exports.t$=function(){return n.regexp(/-?(0|[1-9][0-9]*)([.][0-9]+)?([eE][+-]?[0-9]+)?/).map((function(t){return Number(t)})).desc("A Double amount")},t.exports.Rh=function(t){return Math.floor(t)===t?new Number(t).toFixed(1):""+t},t.exports.Ms=function(t){var e,r=t=>t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),o=null,i=null,a=t.match(/0(.)0((.)(0+))?/);e=r(a[1]),a[2]&&(o=r(a[3]),i=a[4].length);var s="";s+="-?[0-9]?[0-9]?[0-9]("+e+"([0-9][0-9][0-9]))*",o&&(s+=o+"[0-9]".repeat(i));var u=new RegExp(s);return n.regexp(u).desc('An amount with format "'+t+'"').map((function(t){var r=t.replace(new RegExp(e,"g"),"");return o&&(r=r.replace(new RegExp(o,"g"),".")),Number(r)}))},t.exports.o_=function(t,e){return e.replace(/0(.)0((.)(0+))?/gi,(function(e,r,n,o,i){var a=i?i.length:0,s=t.toFixed(a),u="";o&&(u+=o+s.substring(s.length-a));for(var c=s.substring(0,s.length-(0===a?0:a+1));c.length>3;)u=r+c.substring(c.length-3)+u,c=c.substring(0,c.length-3);return c+u}))}},8096:(t,e,r)=>{"use strict";t.exports={Double:{javascript:{parse:r(5938),draft:r(750)}}}},5938:(t,e,r)=>{"use strict";var n=r(9770).t$,o=r(9770).Ms,i=r(3943).jk,a=r(3943).et;function s(t){return/0.0(?:.0+)?/.test(t)?o(t):i(t)}t.exports=t=>e=>function(t){if(t){var e=t.split(/(0.0(?:.0+)?)/),r=(e=e.filter((t=>""!==t&&null!==t))).map(s);return a(r).map((t=>t[0]))}return n()}(t)},6107:(t,e,r)=>{"use strict";var n=r(1981).rS,o=r(1981).p3;t.exports=function(t,e){return e?o(t,e):n(t)}},1981:(t,e,r)=>{"use strict";var n=r(8094);t.exports.Lk=function(){return n.regexp(/-?[0-9]+/).map((function(t){return Number(t)})).desc("An Integer literal")},t.exports.rS=function(t){return""+t},t.exports.ZB=function(t){var e,r;e=t.match(/0(.)0/)[1],r=e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");var o="",i=new RegExp(o+="-?[0-9]?[0-9]?[0-9]("+r+"([0-9][0-9][0-9]))*");return n.regexp(i).desc('An amount with format "'+t+'"').map((function(t){var e=t.replace(new RegExp(r,"g"),"");return Number(e)}))},t.exports.p3=function(t,e){return e.replace(/0(.)0/gi,(function(e,r,n){for(var o=t.toFixed(0),i="",a=o.substring(0,o.length);a.length>3;)i=r+a.substring(a.length-3)+i,a=a.substring(0,a.length-3);return a+i}))}},9086:(t,e,r)=>{"use strict";t.exports={Integer:{javascript:{parse:r(2303),draft:r(6107)}}}},2303:(t,e,r)=>{"use strict";var n=r(1981).Lk,o=r(1981).ZB,i=r(3943).jk,a=r(3943).et;function s(t){return/0.0/.test(t)?o(t):i(t)}t.exports=t=>e=>function(t){if(t){var e=t.split(/(0.0)/),r=(e=e.filter((t=>""!==t&&null!==t))).map(s);return a(r).map((t=>t[0]))}return n()}(t)},1343:(t,e,r)=>{"use strict";var n=r(1981).rS,o=r(1981).p3;t.exports=function(t,e){return e?o(t,e):n(t)}},7295:(t,e,r)=>{"use strict";t.exports={Long:{javascript:{parse:r(2261),draft:r(1343)}}}},2261:(t,e,r)=>{"use strict";var n=r(1981).Lk,o=r(1981).ZB,i=r(3943).jk,a=r(3943).et;function s(t){return/0.0/.test(t)?o(t):i(t)}t.exports=t=>e=>function(t){if(t){var e=t.split(/(0.0)/),r=(e=e.filter((t=>""!==t&&null!==t))).map(s);return a(r).map((t=>t[0]))}return n()}(t)},7992:(t,e,r)=>{"use strict";var n=r(9770).Rh,o=r(9770).o_,i=r(1833);t.exports=function(t,e){return e?function(t,e){return o(t.doubleValue,e.replace(/K/gi,(r=t.currencyCode,i[r]?i[r]:r)).replace(/CCC/gi,t.currencyCode));var r}(t,e):function(t){return n(t.doubleValue)+" "+t.currencyCode}(t)}},923:(t,e,r)=>{"use strict";t.exports={"org.accordproject.money.MonetaryAmount":{javascript:{parse:r(8990),draft:r(7992)}}}},8990:(t,e,r)=>{"use strict";var n=r(8094),o=r(3943).jk,i=r(3943).et,a=r(3943).Kn,s=r(3943).H$,u=r(3943).LA,c=r(9770).t$,l=r(9770).Ms,f=r(1833),h=["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],p=(t=>{for(var e={},r=0;r<h.length;r++){var n=h[r];t[n]?e[t[n]]=n:e[n]=n}return e})(f);function d(t){return/0.0(?:.0+)?/.test(t)?l(t).map((t=>s({name:"doubleValue",elementType:"Double"},t))):"CCC"===t?a(h).map((t=>s({name:"currencyCode"},t))):"K"===t?a(Object.keys(p)).map((t=>s({name:"currencyCode"},p[t]))):o(t).map((t=>null))}t.exports=t=>e=>function(t){var e;if(t){var r=t.split(/(CCC|K|0.0(?:.0+)?)/);e=(r=r.filter((t=>""!==t&&null!==t))).map(d)}else e=[c().map((t=>s({name:"doubleValue",elementType:"Double"},t))),n.string(" ").map((t=>null)),a(h).map((t=>s({name:"currencyCode"},t)))];return i(e).map((t=>u("org.accordproject.money.MonetaryAmount",t.filter((t=>t)))))}(t)},8425:t=>{"use strict";t.exports=function(t){var e=t.match(/resource:[^#]*#([^]*)/);return'"'+decodeURIComponent(e[1])+'"'}},7810:(t,e,r)=>{"use strict";t.exports={Resource:{javascript:{parse:r(1467),draft:r(8425)}}}},1467:(t,e,r)=>{"use strict";var n=r(3943).WX;t.exports=t=>t=>n().map((function(t){return t.substring(1,t.length-1)}))},9729:t=>{"use strict";t.exports=function(t){return'"'+t+'"'}},4473:(t,e,r)=>{"use strict";t.exports={String:{javascript:{parse:r(4366),draft:r(9729)}}}},4366:(t,e,r)=>{"use strict";var n=r(3943).WX;t.exports=t=>t=>n().map((function(t){return t.substring(1,t.length-1)}))},2583:(t,e,r)=>{"use strict";var n=r(970).ParseException;t.exports=class extends n{constructor(t,e,r,n,o){super(t,e,r,n,o||"cicero-core")}}},1103:(t,e,r)=>{"use strict";var n=r(8879),o=r(264);n.extend(o);var i,{ModelManager:a,Factory:s,Serializer:u,Introspector:c}=r(4640),{CommonMarkModel:l}=r(612).CommonMarkModel,{CiceroMarkModel:f}=r(8955).CiceroMarkModel,{ConcertoMetaModel:h}=r(8955).ConcertoMetaModel,p=r(8514).TemplateMarkModel,d=r(3881).normalizeNLs,m=r(8479),y=r(6142),g=r(3054),v=r(4789),b=r(612).FromMarkdownIt,w=r(3364),A=((i={}).modelManager=new a(undefined),i.modelManager.addCTOModel(l,"commonmark.cto"),i.modelManager.addCTOModel(h,"metamodel.cto"),i.modelManager.addCTOModel(f,"ciceromark.cto"),i.modelManager.addCTOModel(p,"templatemark.cto"),i.factory=new s(i.modelManager),i.serializer=new u(i.factory,i.modelManager,{utcOffset:0}),i);function M(t,e){var r="org.accordproject.contract.Contract";"contract"!==e&&(r="org.accordproject.contract.Clause");var n=t.getClassDeclarations().filter((t=>!t.isAbstract()&&function(t,e){if(t.getFullyQualifiedName()===e)return!0;for(var r=t.getSuperTypeDeclaration();r;){if(r.getFullyQualifiedName()===e)return!0;r=r.getSuperTypeDeclaration()}return!1}(t,r)));if(n.length>1)throw new Error("Found multiple instances of ".concat(r,". The model for the template must contain a single asset that extends ").concat(r,"."));if(0===n.length)throw new Error("Failed to find an asset that extends ".concat(r,". The model for the template must contain a single asset that extends ").concat(r,"."));return n[0]}function E(t,e,r,n,o){var i=A.serializer.fromJSON(t,o),a={templateMarkModelManager:A.modelManager,introspector:e,model:r,kind:n},s=new m;i.accept(s,a);var u=Object.assign({},A.serializer.toJSON(i,o));return(new y).calculateDependencies(A.modelManager.serializer,u,o)}function _(t){var e=new b(w).toCommonMark(t);return A.serializer.toJSON(A.serializer.fromJSON(e)).nodes}t.exports.findTemplateModel=M,t.exports.templateMarkManager=A,t.exports.templateToTokens=function(t){var e=d(t);return new g({html:!0}).use(v).parse(e,{})},t.exports.tokensToUntypedTemplateMarkFragment=function(t){return{$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:[{$class:"org.accordproject.templatemark.ClauseDefinition",name:"top",nodes:_(t)}]}},t.exports.tokensToUntypedTemplateMark=function(t,e){var r=_(t);return"contract"===e?{$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:[{$class:"org.accordproject.templatemark.ContractDefinition",name:"top",nodes:r}]}:{$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:[{$class:"org.accordproject.templatemark.ClauseDefinition",name:"top",nodes:r}]}},t.exports.templateMarkTyping=function(t,e,r){var n=new c(e);return E(t,n,M(n,r),r)},t.exports.templateMarkTypingFromType=function(t,e,r){var n=new c(e),o=function(t,e){return t.getClassDeclaration(e)}(n,r);return E({$class:"org.accordproject.commonmark.Document",xmlns:"http://commonmark.org/xml/1.0",nodes:[{$class:"org.accordproject.templatemark.ContractDefinition",name:"top",nodes:t}]},n,o,"clause").nodes[0].nodes},t.exports.generateJSON=function(t,e){var r=new s(t),o=new u(r,t);switch(e){case"DateTime":return n.utc();case"Integer":case"Long":case"Double":return 0;case"Boolean":return!1;case"String":return"";default:var i=t.getType(e);if(i.isEnum())throw new Error("Cannot generate JSON for an enumerated type directly, the type should be contained in Concept, Asset, Transaction or Event declaration");var a=i.getNamespace(),c=i.getName(),l={includeOptionalFields:!0,generate:!0};if(i.isConcept()){var f=r.newConcept(a,c,null,l);return o.toJSON(f)}var h=r.newResource(a,c,"resource1",null,l);return o.toJSON(h)}}},3364:(t,e,r)=>{"use strict";var n=r(9502).formulaName,{getAttr:o}=r(612).CommonMarkUtils,i=r(8514).NS_PREFIX_TemplateMarkModel,a={tag:i+"VariableDefinition",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{var n=o(e.attrs,"format",null);n&&(t.$class=i+"FormattedVariableDefinition",t.format=n),t.name=o(e.attrs,"name",null),t.format=o(e.attrs,"format",null)},skipEmpty:!1},s={tag:i+"VariableDefinition",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{var n=o(e.attrs,"format",null);n&&(t.$class=i+"FormattedVariableDefinition",t.format=n),t.name="this",t.format=o(e.attrs,"format",null)},skipEmpty:!1},u={tag:i+"FormulaDefinition",leaf:!0,open:!1,close:!1,enter:(t,e,r)=>{var o=e.content;t.name=n(o),t.code=o,t.dependencies=[]},skipEmpty:!1},c={tag:i+"ConditionalDefinition",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=o(e.attrs,"name",null),t.whenTrue=null,t.whenFalse=null},skipEmpty:!1},l={tag:i+"ConditionalDefinition",leaf:!1,open:!1,close:!0,exit:(t,e,r)=>{t.whenTrue?t.whenFalse=t.nodes?t.nodes:[]:(t.whenTrue=t.nodes?t.nodes:[],t.whenFalse=[]),delete t.nodes},skipEmpty:!1},f={tag:i+"ConditionalDefinition",leaf:!1,open:!1,close:!1,enter:(t,e,r)=>{"org.accordproject.templatemark.ConditionalDefinition"===t.$class?(t.whenTrue=t.nodes?t.nodes:[],t.nodes=[]):(t.whenSome=t.nodes?t.nodes:[],t.nodes=[])},skipEmpty:!1},h={tag:i+"OptionalDefinition",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=o(e.attrs,"name",null),t.whenSome=null,t.whenNone=null},skipEmpty:!1},p={tag:i+"OptionalDefinition",leaf:!1,open:!1,close:!0,exit:(t,e,r)=>{t.whenSome?t.whenNone=t.nodes?t.nodes:[]:(t.whenSome=t.nodes?t.nodes:[],t.whenNone=[]),delete t.nodes},skipEmpty:!1},d={tag:i+"WithDefinition",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=o(e.attrs,"name",null)},skipEmpty:!1},m={tag:i+"WithDefinition",leaf:!1,open:!1,close:!0},y={tag:i+"JoinDefinition",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=o(e.attrs,"name",null),t.separator=o(e.attrs,"separator",",")},skipEmpty:!1},g={tag:i+"JoinDefinition",leaf:!1,open:!1,close:!0},v={tag:i+"ClauseDefinition",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=o(e.attrs,"name",null)}},b={tag:i+"ClauseDefinition",leaf:!1,open:!1,close:!0},w={tag:i+"ListBlockDefinition",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=o(e.attrs,"name",null),t.type="bullet",t.tight="true"}},A={tag:i+"ListBlockDefinition",leaf:!1,open:!1,close:!0},M={tag:i+"ListBlockDefinition",leaf:!1,open:!0,close:!1,enter:(t,e,r)=>{t.name=o(e.attrs,"name",null),t.type="ordered",t.tight="true",t.start="1",t.delimiter="period"}},E={tag:i+"ListBlockDefinition",leaf:!1,open:!1,close:!0},_={inlines:{},blocks:{}};_.inlines.variable=a,_.inlines.this=s,_.inlines.formula=u,_.inlines.inline_block_if_open=c,_.inlines.inline_block_if_close=l,_.inlines.inline_block_optional_open=h,_.inlines.inline_block_optional_close=p,_.inlines.inline_block_else=f,_.inlines.inline_block_with_open=d,_.inlines.inline_block_with_close=m,_.inlines.inline_block_join_open=y,_.inlines.inline_block_join_close=g,_.blocks.block_clause_open=v,_.blocks.block_clause_close=b,_.blocks.block_ulist_open=w,_.blocks.block_ulist_close=A,_.blocks.block_olist_open=M,_.blocks.block_olist_close=E,t.exports=_},968:(t,e,r)=>{"use strict";var n=r(612).CommonMarkUtils,o=r(3943).C1,i=r(3943).Kn,a=r(3943).$y,s=r(3943).p7,u=r(3943).H0,c=r(3943).PX,l=r(3943).cB,f=r(3943).id,h=r(3943).U8,p=r(3943).cd,d=r(3943).X$,m=r(3943).H$,y={EnumVariableDefinition:(t,e,r,n,o,a)=>{a(n,(t=>i(e.enumValues).map((t=>m(e,t)))))},VariableDefinition:(t,e,r,n,o,i)=>{var a,s=e.identifiedBy?"Resource":e.elementType,u=e.format?e.format:null,c=u?s+"_"+u:s;if(n.templateParser[c])a=t=>t[c].map((t=>m(e,t)));else{var l={};l.parserManager=n.parserManager,l.parsingTable=n.parsingTable,l.templateParser=n.templateParser,l.result=o(""),l.first=n.first,l.stack=n.stack;var f=n.parsingTable.getParser(e.name,s,u,l);n.templateParser[c]=f,a=t=>{try{return t[c].map((t=>m(e,t)))}catch(t){throw console.log("ERROR HANDLING VARIABLE "+s),t}}}i(n,a)}};y.FormattedVariableDefinition=y.VariableDefinition,y.ConditionalDefinition=(t,e,r,n,o,i)=>{var s=t.visitChildren(t,e,n,"whenTrue"),u=t.visitChildren(t,e,n,"whenFalse");i(n,(t=>a(e,s(t),u(t))))},y.OptionalDefinition=(t,e,r,n,o,i)=>{var a=t.visitChildren(t,e,n,"whenSome"),u=t.visitChildren(t,e,n,"whenNone");i(n,(t=>s(e,a(t),u(t))))},y.JoinDefinition=(t,e,r,n,o,i)=>{i(n,(t=>l(e,r(t))))},y.WithDefinition=(t,e,r,n,o,i)=>{i(n,(t=>f(e.elementType,r(t)).map((t=>m(e,t)))))},y.FormulaDefinition=(t,e,r,n,i,a)=>{a(n,(t=>o(e.value)))},y.ListBlockDefinition=(t,e,r,o,i,a)=>{var s=n.mkPrefix(o,1);a(o,"bullet"===e.type?t=>u(e,r(t),s):t=>c(e,r(t),s))},y.ClauseDefinition=(t,e,r,n,o,i)=>{i(n,n.stack.blocks.includes("ContractDefinition")?t=>p(e,r(t)):t=>h(e,r(t)))},y.ContractDefinition=(t,e,r,n,o,i)=>{i(n,(t=>d(e,r(t))))},t.exports=y},9502:(t,e,r)=>{"use strict";var n=r(5634);t.exports.flatten=function(t){return t.reduce(((t,e)=>t.concat(e)),[])},t.exports.formulaName=function(t){var e=n.createHash("sha256");return e.update(t),"formula_"+e.digest("hex")}},3397:()=>{},3196:()=>{},8087:()=>{},633:()=>{},395:()=>{},488:()=>{},6024:()=>{},5862:()=>{},4854:()=>{},6602:()=>{},2191:(t,e,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof o[n[e]]&&(t[t.length]=n[e]);return t}},9765:(t,e,r)=>{"use strict";var n=r(7286)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},9234:t=>{"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},26:t=>{"use strict";t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9167:t=>{"use strict";t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},3418:t=>{"use strict";t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},763:t=>{"use strict";t.exports={i8:"6.5.4"}},2059:t=>{"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},8675:t=>{"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},4116:t=>{"use strict";t.exports=JSON.parse('{"blocks":["clause"],"inlines":[]}')},1108:t=>{"use strict";t.exports=JSON.parse('{"blocks":["clause","ulist","olist"],"inlines":["if","optional","with","join"]}')},1833:t=>{"use strict";t.exports=JSON.parse('{"USD":"$","EUR":"€","JPY":"¥","GBP":"£","AUD":"A$","CAD":"C$","CHF":"CHF","CNY":"元","HKD":"HK$","NZD":"NZ$","KRW":"₩","SGD":"S$","MXN":"MEX$","INR":"₹","RUB":"₽","ZAR":"R","TRY":"₺","BRL":"R$","TWD":"NT$","PLN":"zł","THB":"฿","IDR":"Rp","HUF":"Ft","CZK":"Kč","ILS":"₪","CLP":"CLP$","PHP":"₱","AED":"د.إ","COP":"COL$","SAR":"﷼","MYR":"RM","RON":"L","BGN":"лв."}')}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r(6010)})()}));
\No newline at end of file