(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8016],{60116:function(t,e,n){"use strict";e._O=e.Jq=e.KB=e.u8=e.cv=void 0,e.Ik=e.A9=e.n_=e.gM=void 0;let r=n(57537);function i(t){if(!(t instanceof Uint8Array))throw TypeError("b must be a Uint8Array")}function o(t){return i(t),r.Buffer.from(t.buffer,t.byteOffset,t.length)}class a{makeDestinationObject(){return{}}getSpan(t,e){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate(t){let e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}constructor(t,e){if(!Number.isInteger(t))throw TypeError("span must be an integer");this.span=t,this.property=e}}function s(t,e){return e.property?t+"["+e.property+"]":t}class l extends a{isCount(){throw Error("ExternalLayout is abstract")}}class c extends l{isCount(){return this.layout instanceof u||this.layout instanceof h}decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(t,e+this.offset)}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(t,e,n+this.offset)}constructor(t,e=0,n){if(!(t instanceof a))throw TypeError("layout must be a Layout");if(!Number.isInteger(e))throw TypeError("offset must be integer or undefined");super(t.span,n||t.property),this.layout=t,this.offset=e}}class u extends a{decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(t).readUIntLE(e,this.span)}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(e).writeUIntLE(t,n,this.span),this.span}constructor(t,e){if(super(t,e),61&&void 0!==arguments[1]?arguments[1]:0;return o(t).readUIntBE(e,this.span)}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return o(e).writeUIntBE(t,n,this.span),this.span}constructor(t,e){if(super(t,e),61&&void 0!==arguments[1]?arguments[1]:0,n=o(t),r=n.readUInt32LE(e);return f(n.readUInt32LE(e+4),r)}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=d(t),i=o(e);return i.writeUInt32LE(r.lo32,n),i.writeUInt32LE(r.hi32,n+4),8}constructor(t){super(8,t)}}class g extends a{decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=o(t),r=n.readUInt32LE(e);return f(n.readInt32LE(e+4),r)}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=d(t),i=o(e);return i.writeUInt32LE(r.lo32,n),i.writeInt32LE(r.hi32,n+4),8}constructor(t){super(8,t)}}class m extends a{getSpan(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let n=0,r=this.count;if(r instanceof l&&(r=r.decode(t,e)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,i=this.count;for(i instanceof l&&(i=i.decode(t,e));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,i=t.reduce((t,i)=>t+r.encode(i,e,n+t),0);return this.count instanceof l&&this.count.encode(t.length,e,n),i}constructor(t,e,n){if(!(t instanceof a))throw TypeError("elementLayout must be a Layout");if(!(e instanceof l&&e.isCount()||Number.isInteger(e)&&0<=e))throw TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let r=-1;e instanceof l||!(01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,r)=>{let i=r.getSpan(t,e);return e+=i,n+i},0)}catch(t){throw RangeError("indeterminate span")}return n}decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(t);let n=this.makeDestinationObject();for(let r of this.fields)if(void 0!==r.property&&(n[r.property]=r.decode(t,e)),e+=r.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return n}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=n,i=0,o=0;for(let r of this.fields){let a=r.span;if(o=0a&&(a=r.getSpan(e,n)))}i=n,n+=a}return i+o-r}fromArray(t){let e=this.makeDestinationObject();for(let n of this.fields)void 0!==n.property&&0n.span?e=-1:0<=e&&(e+=n.span)}}constructor(t,e,n){if(!(Array.isArray(t)&&t.reduce((t,e)=>t&&e instanceof a,!0)))throw TypeError("fields must be array of Layout instances");for(let r of("boolean"==typeof e&&void 0===n&&(n=e,e=void 0),t))if(0>r.span&&void 0===r.property)throw Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=t.reduce((t,e)=>t+e.getSpan(),0)}catch(t){}super(r,e),this.fields=t,this.decodePrefixes=!!n}}class w{decode(t,e){throw Error("UnionDiscriminator is abstract")}encode(t,e,n){throw Error("UnionDiscriminator is abstract")}constructor(t){this.property=t}}class b extends w{decode(t,e){return this.layout.decode(t,e)}encode(t,e,n){return this.layout.encode(t,e,n)}constructor(t,e){if(!(t instanceof l&&t.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(e||t.property||"variant"),this.layout=t}}class A extends a{getSpan(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let n=this.getVariant(t,e);if(!n)throw Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;let e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||e.property&&Object.prototype.hasOwnProperty.call(t,e.property)))return e}else for(let e in this.registry){let n=this.registry[e];if(n.property&&Object.prototype.hasOwnProperty.call(t,n.property))return n}throw Error("unable to infer src variant")}decode(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator,i=r.decode(t,n),o=this.registry[i];if(void 0===o){let o=this.defaultLayout,a=0;this.usesPrefixDiscriminator&&(a=r.layout.span),(e=this.makeDestinationObject())[r.property]=i,e[o.property]=o.decode(t,n+a)}else e=o.decode(t,n);return e}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getSourceVariant(t);if(void 0===r){let r=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(t[r.property],e,n),o+i.encode(t[i.property],e,n+o)}return r.encode(t,e,n)}addVariant(t,e,n){let r=new E(this,t,e,n);return this.registry[t]=r,r}getVariant(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e=t instanceof Uint8Array?this.discriminator.decode(t,n):t,this.registry[e]}constructor(t,e,n){let r;if(t instanceof u||t instanceof h)r=new b(new c(t));else if(t instanceof l&&t.isCount())r=new b(t);else if(t instanceof w)r=t;else throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===e&&(e=null),!(null===e||e instanceof a))throw TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let i=-1;e&&0<=(i=e.span)&&(t instanceof u||t instanceof h)&&(i+=r.layout.span),super(i,n),this.discriminator=r,this.usesPrefixDiscriminator=t instanceof u||t instanceof h,this.defaultLayout=e,this.registry={};let o=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return o(t)},this.configGetSourceVariant=function(t){o=t.bind(this)}}}class E extends a{getSpan(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(t,e+n)),n+r}decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject();if(this!==this.union.getVariant(t,e))throw Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);let i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw Error("encoded variant overruns containing union");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}constructor(t,e,n,r){if(!(t instanceof A))throw TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof a))throw TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=n.span&&n.span>t.defaultLayout.span)throw Error("variant span exceeds span of containing union");if("string"!=typeof r)throw TypeError("variant must have a String property")}let i=t.span;0>t.span&&0<=(i=n?n.span:0)&&t.usesPrefixDiscriminator&&(i+=t.discriminator.layout.span),super(i,r),this.union=t,this.variant=e,this.layout=n||null}}function C(t){return 0>t&&(t+=4294967296),t}class x extends a{decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject(),r=this.word.decode(t,e);for(let e of(this._packedSetValue(r),this.fields))void 0!==e.property&&(n[e.property]=e.decode(t));return n}encode(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.word.decode(e,n);for(let e of(this._packedSetValue(r),this.fields))if(void 0!==e.property){let n=t[e.property];void 0!==n&&e.encode(n)}return this.word.encode(this._packedGetValue(),e,n)}addField(t,e){let n=new _(this,t,e);return this.fields.push(n),n}addBoolean(t){let e=new M(this,t);return this.fields.push(e),e}fieldFor(t){if("string"!=typeof t)throw TypeError("property must be string");for(let e of this.fields)if(e.property===t)return e}constructor(t,e,n){if(!(t instanceof u||t instanceof h))throw TypeError("word must be a UInt or UIntBE layout");if("string"==typeof e&&void 0===n&&(n=e,e=!1),4>>this.start}encode(t){if("number"!=typeof t||!Number.isInteger(t)||t!==C(t&this.valueMask))throw TypeError(s("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let e=this.container._packedGetValue(),n=C(t<=e)throw TypeError("bits must be positive integer");let r=8*t.span,i=t.fields.reduce((t,e)=>t+e.bits,0);if(e+i>r)throw Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=t,this.bits=e,this.valueMask=(1<n&&(n=this.length.decode(t,e)),n}decode(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(t,e)),o(t).slice(e,e+n)}encode(t,e,n){let r=this.length;if(this.length instanceof l&&(r=t.length),!(t instanceof Uint8Array&&r===t.length))throw TypeError(s("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>e.length)throw RangeError("encoding overruns Uint8Array");let i=o(t);return o(e).write(i.toString("hex"),n,r,"hex"),this.length instanceof l&&this.length.encode(r,e,n),r}constructor(t,e){if(!(t instanceof l&&t.isCount()||Number.isInteger(t)&&0<=t))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;t instanceof l||(n=t),super(n,e),this.length=t}}e.cv=(t,e,n)=>new c(t,e,n),e.u8=t=>new u(1,t),e.KB=t=>new u(2,t),e.Jq=t=>new u(4,t),e._O=t=>new p(t),e.gM=t=>new g(t),e.n_=(t,e,n)=>new y(t,e,n),e.A9=(t,e,n)=>new m(t,e,n),e.Ik=(t,e)=>new B(t,e)},11142:function(t,e,n){"use strict";function r(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function i(t,e){var n={};if("object"==typeof e)!function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={};for(var o in e){var a=e[o],s=[...r,o];"string"==typeof a||"number"==typeof a||null==a?i[o]=n(a,s):"object"!=typeof a||Array.isArray(a)?console.warn('Skipping invalid key "'.concat(s.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"')):i[o]=t(a,n,s)}return i}(e,(e,i)=>{null!=e&&(n[r(function(t,e){var n=t;for(var r of e){if(!(r in n))throw Error("Path ".concat(e.join(" -> ")," does not exist in object"));n=n[r]}return n}(t,i))]=String(e))});else for(var i in t){var o=t[i];null!=o&&(n[r(i)]=o)}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(t=>"".concat(t,":").concat(this[t])).join(";")},writable:!1}),n}n.d(e,{L:function(){return i}})},68708:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;efunction(){for(var e=arguments.length,n=Array(e),r=0;rt.styles)),a=Object.keys(o),s=a.filter(t=>"mappings"in o[t]);return Object.assign(e=>{var n=[],r={},a=i({},e),l=!1;for(var c of s){var u=e[c];if(null!=u)for(var h of(l=!0,o[c].mappings))r[h]=u,null==a[h]&&delete a[h]}var d=l?i(i({},r),a):e;for(var f in d)if("continue"===function(){var t=d[f],e=o[f];try{if(e.mappings)return"continue";if("string"==typeof t||"number"==typeof t)n.push(e.values[t].defaultClass);else if(Array.isArray(t))for(var r=0;rt,s=function(){return o(a)(...arguments)}},19157:function(t,e,n){"use strict";n.d(e,{d:function(){return o},M:function(){return i}});var r=function(t,e){return Object.defineProperty(t,"__recipe__",{value:e,writable:!1}),t};function i(t){var{conditions:e}=t;if(!e)throw Error("Styles have no conditions");return r(function(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t){if(!e.defaultCondition)throw Error("No default condition");return{[e.defaultCondition]:t}}if(Array.isArray(t)){if(!("responsiveArray"in e))throw Error("Responsive arrays are not supported");var n={};for(var r in e.responsiveArray)null!=t[r]&&(n[e.responsiveArray[r]]=t[r]);return n}return t},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:t.conditions}]})}function o(t){var{conditions:e}=t;if(!e)throw Error("Styles have no conditions");var n=i(t);return r(function(t,r){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t){if(!e.defaultCondition)throw Error("No default condition");return r(t,e.defaultCondition)}var i=Array.isArray(t)?n(t):t,o={};for(var a in i)null!=i[a]&&(o[a]=r(i[a],a));return o},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:t.conditions}]})}},62068:function(t,e,n){"use strict";var r=n(40963).Buffer;t.exports=function(t){if(t.length>=255)throw TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,u=new Uint8Array(a);n>>0,u[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw Error("Non-zero carry");o=d,n++}for(var p=a-o;p!==a&&0===u[p];)p++;var g=r.allocUnsafe(i+(a-p));g.fill(0,0,i);for(var m=i;p!==a;)g[m++]=u[p++];return g}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=r.from(e)),!r.isBuffer(e))throw TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,i=0,o=0,a=e.length;o!==a&&0===e[o];)o++,n++;for(var c=(a-o)*u+1>>>0,h=new Uint8Array(c);o!==a;){for(var d=e[o],f=0,p=c-1;(0!==d||f>>0,h[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");i=f,o++}for(var g=c-i;g!==c&&0===h[g];)g++;for(var m=l.repeat(n);g=255)throw TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var u=e[t.charCodeAt(n)];if(255===u)return;for(var h=0,d=o-1;(0!==u||h>>0,c[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;for(var p=new Uint8Array(r+(o-f)),g=r;f!==o;)p[g++]=c[f++];return p}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var l=(o-i)*c+1>>>0,u=new Uint8Array(l);i!==o;){for(var h=e[i],d=0,f=l-1;(0!==h||d>>0,u[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw Error("Non-zero carry");r=d,i++}for(var p=l-r;p!==l&&0===u[p];)p++;for(var g=s.repeat(n);p0?a-4:a;for(n=0;n>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(t,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(e=t[r-1])>>2]+n[e<<4&63]+"=="):2===i&&o.push(n[(e=(t[r-2]<<8)+t[r-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},25655:function(t,e,n){"use strict";var r=n(57537).Buffer;e.oU=function(t){{let e=r.from(t);e.reverse();let n=e.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))}},e.k$=function(t,e){{let n=t.toString(16),i=r.from(n.padStart(2*e,"0").slice(0,2*e),"hex");return i.reverse(),i}}},52776:function(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(n=e,e=10),this._init(t||0,e||10,n||"be"))}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{h=void 0!==window.Buffer?window.Buffer:n(79391).Buffer}catch(t){}function a(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function l(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),l=e;l=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a0?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;a-=3)o=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var r,i=0;i=e;i-=2)r=s(t,e,i)<=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(o-=18,a+=1,this.words[a]|=r>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(t){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?""}var h,d=["","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],p=[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 g(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&l,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;u+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,l=0|u}return 0!==l?n.words[c]=0|l:n.length--,n._strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var n,i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?d[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],u=p[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modrn(u).toString(t);n=(h=h.idivn(u)).isZero()?g+n:d[c-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},h&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(h,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=t.allocUnsafe?t.allocUnsafe(o):new t(o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return(8191&e)==0&&(n+=13,e>>>=13),(127&e)==0&&(n+=7,e>>>=7),(15&e)==0&&(n+=4,e>>>=4),(3&e)==0&&(n+=2,e>>>=2),(1&e)==0&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){this.length>t.length?(e=this,n=t):(e=t,n=this);for(var e,n,r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),e?this.words[n]=this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var e,n,r,i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,n,r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,n=t):(e=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&r;for(;0!==o&&a>26,this.words[a]=67108863&r;if(0===o&&a>>13,f=0|a[1],p=8191&f,g=f>>>13,m=0|a[2],y=8191&m,w=m>>>13,b=0|a[3],A=8191&b,E=b>>>13,C=0|a[4],x=8191&C,_=C>>>13,M=0|a[5],B=8191&M,I=M>>>13,S=0|a[6],O=8191&S,P=S>>>13,k=0|a[7],T=8191&k,R=k>>>13,N=0|a[8],L=8191&N,U=N>>>13,F=0|a[9],j=8191&F,D=F>>>13,H=0|s[0],z=8191&H,q=H>>>13,G=0|s[1],W=8191&G,Q=G>>>13,V=0|s[2],K=8191&V,Z=V>>>13,Y=0|s[3],J=8191&Y,X=Y>>>13,$=0|s[4],tt=8191&$,te=$>>>13,tn=0|s[5],tr=8191&tn,ti=tn>>>13,to=0|s[6],ta=8191&to,ts=to>>>13,tl=0|s[7],tc=8191&tl,tu=tl>>>13,th=0|s[8],td=8191&th,tf=th>>>13,tp=0|s[9],tg=8191&tp,tm=tp>>>13;n.negative=t.negative^e.negative,n.length=19;var ty=(c+(r=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,q))+Math.imul(d,z)|0))<<13)|0;c=((o=Math.imul(d,q))+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(g,z)|0,o=Math.imul(g,q);var tv=(c+(r=r+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,Q)|0)+Math.imul(d,W)|0))<<13)|0;c=((o=o+Math.imul(d,Q)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,r=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(w,z)|0,o=Math.imul(w,q),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,Q)|0;var tw=(c+(r=r+Math.imul(h,K)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,r=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(E,z)|0,o=Math.imul(E,q),r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,Q)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,Z)|0;var tb=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,Q)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,X)|0;var tA=(c+(r=r+Math.imul(h,tt)|0)|0)+((8191&(i=(i=i+Math.imul(h,te)|0)+Math.imul(d,tt)|0))<<13)|0;c=((o=o+Math.imul(d,te)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,r=Math.imul(B,z),i=(i=Math.imul(B,q))+Math.imul(I,z)|0,o=Math.imul(I,q),r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,Q)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Q)|0,r=r+Math.imul(A,K)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(y,J)|0,i=(i=i+Math.imul(y,X)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,X)|0,r=r+Math.imul(p,tt)|0,i=(i=i+Math.imul(p,te)|0)+Math.imul(g,tt)|0,o=o+Math.imul(g,te)|0;var tE=(c+(r=r+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,ti)|0)+Math.imul(d,tr)|0))<<13)|0;c=((o=o+Math.imul(d,ti)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,r=Math.imul(O,z),i=(i=Math.imul(O,q))+Math.imul(P,z)|0,o=Math.imul(P,q),r=r+Math.imul(B,W)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Q)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(A,J)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,X)|0,r=r+Math.imul(y,tt)|0,i=(i=i+Math.imul(y,te)|0)+Math.imul(w,tt)|0,o=o+Math.imul(w,te)|0,r=r+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,ti)|0)+Math.imul(g,tr)|0,o=o+Math.imul(g,ti)|0;var tC=(c+(r=r+Math.imul(h,ta)|0)|0)+((8191&(i=(i=i+Math.imul(h,ts)|0)+Math.imul(d,ta)|0))<<13)|0;c=((o=o+Math.imul(d,ts)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,r=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(R,z)|0,o=Math.imul(R,q),r=r+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,Q)|0,r=r+Math.imul(B,K)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,Z)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(A,tt)|0,i=(i=i+Math.imul(A,te)|0)+Math.imul(E,tt)|0,o=o+Math.imul(E,te)|0,r=r+Math.imul(y,tr)|0,i=(i=i+Math.imul(y,ti)|0)+Math.imul(w,tr)|0,o=o+Math.imul(w,ti)|0,r=r+Math.imul(p,ta)|0,i=(i=i+Math.imul(p,ts)|0)+Math.imul(g,ta)|0,o=o+Math.imul(g,ts)|0;var tx=(c+(r=r+Math.imul(h,tc)|0)|0)+((8191&(i=(i=i+Math.imul(h,tu)|0)+Math.imul(d,tc)|0))<<13)|0;c=((o=o+Math.imul(d,tu)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(U,z)|0,o=Math.imul(U,q),r=r+Math.imul(T,W)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,Q)|0,r=r+Math.imul(O,K)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(P,K)|0,o=o+Math.imul(P,Z)|0,r=r+Math.imul(B,J)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,X)|0,r=r+Math.imul(x,tt)|0,i=(i=i+Math.imul(x,te)|0)+Math.imul(_,tt)|0,o=o+Math.imul(_,te)|0,r=r+Math.imul(A,tr)|0,i=(i=i+Math.imul(A,ti)|0)+Math.imul(E,tr)|0,o=o+Math.imul(E,ti)|0,r=r+Math.imul(y,ta)|0,i=(i=i+Math.imul(y,ts)|0)+Math.imul(w,ta)|0,o=o+Math.imul(w,ts)|0,r=r+Math.imul(p,tc)|0,i=(i=i+Math.imul(p,tu)|0)+Math.imul(g,tc)|0,o=o+Math.imul(g,tu)|0;var t_=(c+(r=r+Math.imul(h,td)|0)|0)+((8191&(i=(i=i+Math.imul(h,tf)|0)+Math.imul(d,td)|0))<<13)|0;c=((o=o+Math.imul(d,tf)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,r=Math.imul(j,z),i=(i=Math.imul(j,q))+Math.imul(D,z)|0,o=Math.imul(D,q),r=r+Math.imul(L,W)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(U,W)|0,o=o+Math.imul(U,Q)|0,r=r+Math.imul(T,K)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(O,J)|0,i=(i=i+Math.imul(O,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(B,tt)|0,i=(i=i+Math.imul(B,te)|0)+Math.imul(I,tt)|0,o=o+Math.imul(I,te)|0,r=r+Math.imul(x,tr)|0,i=(i=i+Math.imul(x,ti)|0)+Math.imul(_,tr)|0,o=o+Math.imul(_,ti)|0,r=r+Math.imul(A,ta)|0,i=(i=i+Math.imul(A,ts)|0)+Math.imul(E,ta)|0,o=o+Math.imul(E,ts)|0,r=r+Math.imul(y,tc)|0,i=(i=i+Math.imul(y,tu)|0)+Math.imul(w,tc)|0,o=o+Math.imul(w,tu)|0,r=r+Math.imul(p,td)|0,i=(i=i+Math.imul(p,tf)|0)+Math.imul(g,td)|0,o=o+Math.imul(g,tf)|0;var tM=(c+(r=r+Math.imul(h,tg)|0)|0)+((8191&(i=(i=i+Math.imul(h,tm)|0)+Math.imul(d,tg)|0))<<13)|0;c=((o=o+Math.imul(d,tm)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,r=Math.imul(j,W),i=(i=Math.imul(j,Q))+Math.imul(D,W)|0,o=Math.imul(D,Q),r=r+Math.imul(L,K)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(U,K)|0,o=o+Math.imul(U,Z)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,X)|0,r=r+Math.imul(O,tt)|0,i=(i=i+Math.imul(O,te)|0)+Math.imul(P,tt)|0,o=o+Math.imul(P,te)|0,r=r+Math.imul(B,tr)|0,i=(i=i+Math.imul(B,ti)|0)+Math.imul(I,tr)|0,o=o+Math.imul(I,ti)|0,r=r+Math.imul(x,ta)|0,i=(i=i+Math.imul(x,ts)|0)+Math.imul(_,ta)|0,o=o+Math.imul(_,ts)|0,r=r+Math.imul(A,tc)|0,i=(i=i+Math.imul(A,tu)|0)+Math.imul(E,tc)|0,o=o+Math.imul(E,tu)|0,r=r+Math.imul(y,td)|0,i=(i=i+Math.imul(y,tf)|0)+Math.imul(w,td)|0,o=o+Math.imul(w,tf)|0;var tB=(c+(r=r+Math.imul(p,tg)|0)|0)+((8191&(i=(i=i+Math.imul(p,tm)|0)+Math.imul(g,tg)|0))<<13)|0;c=((o=o+Math.imul(g,tm)|0)+(i>>>13)|0)+(tB>>>26)|0,tB&=67108863,r=Math.imul(j,K),i=(i=Math.imul(j,Z))+Math.imul(D,K)|0,o=Math.imul(D,Z),r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(U,J)|0,o=o+Math.imul(U,X)|0,r=r+Math.imul(T,tt)|0,i=(i=i+Math.imul(T,te)|0)+Math.imul(R,tt)|0,o=o+Math.imul(R,te)|0,r=r+Math.imul(O,tr)|0,i=(i=i+Math.imul(O,ti)|0)+Math.imul(P,tr)|0,o=o+Math.imul(P,ti)|0,r=r+Math.imul(B,ta)|0,i=(i=i+Math.imul(B,ts)|0)+Math.imul(I,ta)|0,o=o+Math.imul(I,ts)|0,r=r+Math.imul(x,tc)|0,i=(i=i+Math.imul(x,tu)|0)+Math.imul(_,tc)|0,o=o+Math.imul(_,tu)|0,r=r+Math.imul(A,td)|0,i=(i=i+Math.imul(A,tf)|0)+Math.imul(E,td)|0,o=o+Math.imul(E,tf)|0;var tI=(c+(r=r+Math.imul(y,tg)|0)|0)+((8191&(i=(i=i+Math.imul(y,tm)|0)+Math.imul(w,tg)|0))<<13)|0;c=((o=o+Math.imul(w,tm)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,r=Math.imul(j,J),i=(i=Math.imul(j,X))+Math.imul(D,J)|0,o=Math.imul(D,X),r=r+Math.imul(L,tt)|0,i=(i=i+Math.imul(L,te)|0)+Math.imul(U,tt)|0,o=o+Math.imul(U,te)|0,r=r+Math.imul(T,tr)|0,i=(i=i+Math.imul(T,ti)|0)+Math.imul(R,tr)|0,o=o+Math.imul(R,ti)|0,r=r+Math.imul(O,ta)|0,i=(i=i+Math.imul(O,ts)|0)+Math.imul(P,ta)|0,o=o+Math.imul(P,ts)|0,r=r+Math.imul(B,tc)|0,i=(i=i+Math.imul(B,tu)|0)+Math.imul(I,tc)|0,o=o+Math.imul(I,tu)|0,r=r+Math.imul(x,td)|0,i=(i=i+Math.imul(x,tf)|0)+Math.imul(_,td)|0,o=o+Math.imul(_,tf)|0;var tS=(c+(r=r+Math.imul(A,tg)|0)|0)+((8191&(i=(i=i+Math.imul(A,tm)|0)+Math.imul(E,tg)|0))<<13)|0;c=((o=o+Math.imul(E,tm)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,r=Math.imul(j,tt),i=(i=Math.imul(j,te))+Math.imul(D,tt)|0,o=Math.imul(D,te),r=r+Math.imul(L,tr)|0,i=(i=i+Math.imul(L,ti)|0)+Math.imul(U,tr)|0,o=o+Math.imul(U,ti)|0,r=r+Math.imul(T,ta)|0,i=(i=i+Math.imul(T,ts)|0)+Math.imul(R,ta)|0,o=o+Math.imul(R,ts)|0,r=r+Math.imul(O,tc)|0,i=(i=i+Math.imul(O,tu)|0)+Math.imul(P,tc)|0,o=o+Math.imul(P,tu)|0,r=r+Math.imul(B,td)|0,i=(i=i+Math.imul(B,tf)|0)+Math.imul(I,td)|0,o=o+Math.imul(I,tf)|0;var tO=(c+(r=r+Math.imul(x,tg)|0)|0)+((8191&(i=(i=i+Math.imul(x,tm)|0)+Math.imul(_,tg)|0))<<13)|0;c=((o=o+Math.imul(_,tm)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,r=Math.imul(j,tr),i=(i=Math.imul(j,ti))+Math.imul(D,tr)|0,o=Math.imul(D,ti),r=r+Math.imul(L,ta)|0,i=(i=i+Math.imul(L,ts)|0)+Math.imul(U,ta)|0,o=o+Math.imul(U,ts)|0,r=r+Math.imul(T,tc)|0,i=(i=i+Math.imul(T,tu)|0)+Math.imul(R,tc)|0,o=o+Math.imul(R,tu)|0,r=r+Math.imul(O,td)|0,i=(i=i+Math.imul(O,tf)|0)+Math.imul(P,td)|0,o=o+Math.imul(P,tf)|0;var tP=(c+(r=r+Math.imul(B,tg)|0)|0)+((8191&(i=(i=i+Math.imul(B,tm)|0)+Math.imul(I,tg)|0))<<13)|0;c=((o=o+Math.imul(I,tm)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,r=Math.imul(j,ta),i=(i=Math.imul(j,ts))+Math.imul(D,ta)|0,o=Math.imul(D,ts),r=r+Math.imul(L,tc)|0,i=(i=i+Math.imul(L,tu)|0)+Math.imul(U,tc)|0,o=o+Math.imul(U,tu)|0,r=r+Math.imul(T,td)|0,i=(i=i+Math.imul(T,tf)|0)+Math.imul(R,td)|0,o=o+Math.imul(R,tf)|0;var tk=(c+(r=r+Math.imul(O,tg)|0)|0)+((8191&(i=(i=i+Math.imul(O,tm)|0)+Math.imul(P,tg)|0))<<13)|0;c=((o=o+Math.imul(P,tm)|0)+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,r=Math.imul(j,tc),i=(i=Math.imul(j,tu))+Math.imul(D,tc)|0,o=Math.imul(D,tu),r=r+Math.imul(L,td)|0,i=(i=i+Math.imul(L,tf)|0)+Math.imul(U,td)|0,o=o+Math.imul(U,tf)|0;var tT=(c+(r=r+Math.imul(T,tg)|0)|0)+((8191&(i=(i=i+Math.imul(T,tm)|0)+Math.imul(R,tg)|0))<<13)|0;c=((o=o+Math.imul(R,tm)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863,r=Math.imul(j,td),i=(i=Math.imul(j,tf))+Math.imul(D,td)|0,o=Math.imul(D,tf);var tR=(c+(r=r+Math.imul(L,tg)|0)|0)+((8191&(i=(i=i+Math.imul(L,tm)|0)+Math.imul(U,tg)|0))<<13)|0;c=((o=o+Math.imul(U,tm)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863;var tN=(c+(r=Math.imul(j,tg))|0)+((8191&(i=(i=Math.imul(j,tm))+Math.imul(D,tg)|0))<<13)|0;return c=((o=Math.imul(D,tm))+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,l[0]=ty,l[1]=tv,l[2]=tw,l[3]=tb,l[4]=tA,l[5]=tE,l[6]=tC,l[7]=tx,l[8]=t_,l[9]=tM,l[10]=tB,l[11]=tI,l[12]=tS,l[13]=tO,l[14]=tP,l[15]=tk,l[16]=tT,l[17]=tR,l[18]=tN,0!==c&&(l[19]=c,n.length++),n};function y(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function w(t,e){this.x=t,this.y=e}Math.imul||(m=g),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):r<63?g(this,t,e):y(this,t,e)},w.prototype.makeRBT=function(t){for(var e=Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},w.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,n+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var i,o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var u=0|this.words[l];this.words[l]=c<<26-o|u>>>o,c=u&s}return n&&0!==c&&(n.words[n.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;return!(this.length<=n)&&!!(this.words[n]&1<=0);var e=t%26,n=(t-e)/26;return(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)?this:(0!==e&&n++,this.length=Math.min(n,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>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},o.prototype.isubn=function(t){if(r("number"==typeof t),r(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>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n,r=this.length-t.length,i=this.clone(),a=t,s=0|a.words[a.length-1];0!=(r=26-this._countBits(s))&&(a=a.ushln(r),i.iushln(r),s=0|a.words[a.length-1]);var l=i.length-a.length;if("mod"!==e){(n=new o(null)).length=l+1,n.words=Array(n.length);for(var c=0;c=0;h--){var d=(0|i.words[a.length+h])*67108864+(0|i.words[a.length+h-1]);for(d=Math.min(d/s|0,67108863),i._ishlnsubmul(a,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,h),i.isZero()||(i.negative^=1);n&&(n.words[h]=d)}return n&&n._strip(),i._strip(),"div"!==e&&0!==r&&i.iushrn(r),{div:n||null,mod:i}},o.prototype.divmod=function(t,e,n){var i,a,s;return(r(!t.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&t.negative)!=0?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=67108864%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;(e.words[0]&f)==0&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;(n.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(h)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(l)):(n.isub(e),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e,n=this,i=t.clone();n=0!==n.negative?n.umod(t):n.clone();for(var a=new o(1),s=new o(0),l=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;(n.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var h=0,d=1;(i.words[0]&d)==0&&h<26;++h,d<<=1);if(h>0)for(i.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);n.cmp(i)>=0?(n.isub(i),a.isub(s)):(i.isub(n),s.isub(a))}return 0>(e=0===n.cmpn(1)?a:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return -1===this.cmpn(t)},o.prototype.lt=function(t){return -1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function A(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function C(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function B(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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 o(null);return t.words=Array(Math.ceil(this.n/13)),t},A.prototype.ireduce=function(t){var e,n=t;do this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},A.prototype.split=function(t,e){t.iushrn(this.n,0,e)},A.prototype.imulK=function(t){return t.imul(this.k)},i(E,A),E.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(b[t])return b[t];if("k256"===t)e=new E;else if("p224"===t)e=new C;else if("p192"===t)e=new x;else if("p25519"===t)e=new _;else throw Error("Unknown prime "+t);return b[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r((t.negative|e.negative)==0,"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return 0>n.cmpn(0)&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m=0;r--){for(var c=e.words[r],u=l-1;u>=0;u--){var h=c>>u&1;if(i!==n[0]&&(i=this.sqr(i)),0===h&&0===a){s=0;continue}a<<=1,a|=h,(4==++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)}l=26}return i},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new B(t)},i(B,M),B.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},B.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},B.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},B.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},B.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},55117:function(t,e,n){"use strict";var r=n(57537).Buffer,i=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},o=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},a=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},s=function(t){return t&&t.__esModule?t:{default:t}};e.XG=e.vB=e.qC=void 0;let l=s(n(52776)),c=(s(n(14259)),function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e}(n(91203))),u=new("function"!=typeof TextDecoder?c.TextDecoder:TextDecoder)("utf-8",{fatal:!0});class h extends Error{addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}}class d{maybeResize(){this.buf.length<16+this.length&&(this.buf=r.concat([this.buf,r.alloc(1024)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(r.from(new l.default(t).toArray("le",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(r.from(new l.default(t).toArray("le",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(r.from(new l.default(t).toArray("le",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(r.from(new l.default(t).toArray("le",64)))}writeBuffer(t){this.buf=r.concat([r.from(this.buf.subarray(0,this.length)),t,r.alloc(1024)]),this.length+=t.length}writeString(t){this.maybeResize();let e=r.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}writeFixedArray(t){this.writeBuffer(r.from(t))}writeArray(t,e){for(let n of(this.maybeResize(),this.writeU32(t.length),t))this.maybeResize(),e(n)}toArray(){return this.buf.subarray(0,this.length)}constructor(){this.buf=r.alloc(1024),this.length=0}}function f(t,e,n){let r=n.value;n.value=function(){for(var t=arguments.length,e=Array(t),n=0;n=0)throw new h("Reached the end of buffer when deserializing");throw t}}}class p{readU8(){let t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){let t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){let t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){let t=this.readBuffer(8);return new l.default(t,"le")}readU128(){let t=this.readBuffer(16);return new l.default(t,"le")}readU256(){let t=this.readBuffer(32);return new l.default(t,"le")}readU512(){let t=this.readBuffer(64);return new l.default(t,"le")}readBuffer(t){if(this.offset+t>this.buf.length)throw new h("Expected buffer length ".concat(t," isn't within bounds"));let e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}readString(){let t=this.readU32(),e=this.readBuffer(t);try{return u.decode(e)}catch(t){throw new h("Error decoding UTF-8 string: ".concat(t))}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){let e=this.readU32(),n=[];for(let r=0;r{m(t,e,n,r[0],i)})}else if(void 0!==r.kind)switch(r.kind){case"option":null==n?i.writeU8(0):(i.writeU8(1),m(t,e,n,r.type,i));break;case"map":i.writeU32(n.size),n.forEach((n,o)=>{m(t,e,o,r.key,i),m(t,e,n,r.value,i)});break;default:throw new h("FieldType ".concat(r," unrecognized"))}else y(t,n,i)}catch(t){throw t instanceof h&&t.addToFieldPath(e),t}}function y(t,e,n){if("function"==typeof e.borshSerialize){e.borshSerialize(n);return}let r=t.get(e.constructor);if(!r)throw new h("Class ".concat(e.constructor.name," is missing in schema"));if("struct"===r.kind)r.fields.map(r=>{let[i,o]=r;m(t,i,e[i],o,n)});else if("enum"===r.kind){let i=e[r.field];for(let o=0;ow(t,e,n[0],r));{let e=[];for(let i=0;i=r.values.length)throw new h("Enum index: ".concat(i," is out of range"));let[o,a]=r.values[i],s=w(t,o,a,n);return new e({[o]:s})}throw new h("Unexpected schema kind: ".concat(r.kind," for ").concat(e.constructor.name))}a([f],p.prototype,"readU8",null),a([f],p.prototype,"readU16",null),a([f],p.prototype,"readU32",null),a([f],p.prototype,"readU64",null),a([f],p.prototype,"readU128",null),a([f],p.prototype,"readU256",null),a([f],p.prototype,"readU512",null),a([f],p.prototype,"readString",null),a([f],p.prototype,"readFixedArray",null),a([f],p.prototype,"readArray",null),e.qC=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,r=new n;return y(t,e,r),r.toArray()},e.vB=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p,i=new r(n),o=b(t,e,i);if(i.offset3&&void 0!==arguments[3]?arguments[3]:p;return b(t,e,new r(n))}},14259:function(t,e,n){"use strict";var r=n(62068);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},91474:function(t,e,n){"use strict";let r=n(37371);t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},57537:function(t,e,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */let r=n(72748),i=n(62751),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return u(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!s.isEncoding(e))throw TypeError("Unknown encoding: "+e);let n=0|p(t,e),r=a(n),i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(F(t,Uint8Array)){let e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(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(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return s.from(r,e,n);let i=function(t){var e;if(s.isBuffer(t)){let e=0|f(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,n);throw 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 TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return c(t),a(t<0?0:0|f(t))}function h(t){let e=t.length<0?0:0|f(t.length),n=a(e);for(let r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(t).length;default:if(i)return r?-1:N(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,n){let r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=e;r2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return -1;n=t.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){let o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:e<128&&(o=e);break;case 2:(192&(n=t[i+1]))==128&&(l=(31&e)<<6|63&n)>127&&(o=l);break;case 3:n=t[i+1],r=t[i+2],(192&n)==128&&(192&r)==128&&(l=(15&e)<<12|(63&n)<<6|63&r)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(l=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(t){let e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rn)throw RangeError("Trying to access beyond buffer length")}function E(t,e,n,r,i,o){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function C(t,e,n,r,i){P(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function x(t,e,n,r,i){P(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function _(t,e,n,r,i,o){if(n+r>t.length||n<0)throw RangeError("Index out of range")}function M(t,e,n,r,o){return e=+e,n>>>=0,o||_(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function B(t,e,n,r,o){return e=+e,n>>>=0,o||_(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}e.Buffer=s,e.SlowBuffer=function(t){return+t!=t&&(t=0),s.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),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}}),s.poolSize=8192,s.from=function(t,e,n){return l(t,e,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,n){return(c(t),t<=0)?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)},s.allocUnsafe=function(t){return u(t)},s.allocUnsafeSlow=function(t){return u(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(F(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),F(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);ir.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else if(s.isBuffer(e))e.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(t,e,n,r,i){if(F(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return -1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;let o=i-r,a=n-e,l=Math.min(o,a),c=this.slice(r,i),u=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let d=this.length-e;if((void 0===n||n>d)&&(n=d),t.length>0&&(n<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let f=!1;for(;;)switch(r){case"hex":return function(t,e,n,r){let i;n=Number(n)||0;let o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;let a=e.length;for(r>a/2&&(r=a/2),i=0;i>8,i.push(n%256),i.push(r);return i}(t,this.length-u),this,u,h);default:if(f)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){let n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||A(t,e,this.length);let r=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,n||A(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=D(function(t){k(t>>>=0,"offset");let e=this[t],n=this[t+7];(void 0===e||void 0===n)&&T(t,this.length-8);let r=e+256*this[++t]+65536*this[++t]+16777216*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+16777216*n;return BigInt(r)+(BigInt(i)<>>=0,"offset");let e=this[t],n=this[t+7];(void 0===e||void 0===n)&&T(t,this.length-8);let r=16777216*e+65536*this[++t]+256*this[++t]+this[++t],i=16777216*this[++t]+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||A(t,e,this.length);let r=this[t],i=1,o=0;for(;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||A(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return(t>>>=0,e||A(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||A(t,2,this.length);let n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||A(t,2,this.length);let n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||A(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||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=D(function(t){k(t>>>=0,"offset");let e=this[t],n=this[t+7];return(void 0===e||void 0===n)&&T(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24))<>>=0,"offset");let e=this[t],n=this[t+7];return(void 0===e||void 0===n)&&T(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<>>=0,e||A(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||A(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||A(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||A(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;E(this,t,e,n,r,0)}let i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,!r){let r=Math.pow(2,8*n)-1;E(this,t,e,n,r,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||E(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||E(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||E(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||E(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=s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||E(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.writeBigUInt64LE=D(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=D(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return x(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){let r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){let r=Math.pow(2,8*n-1);E(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||E(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||E(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||E(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||E(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,n){return t=+t,e>>>=0,n||E(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.writeBigInt64LE=D(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=D(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return x(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(t,e,n){return M(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return M(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e="_".concat(t.slice(n-3,n)).concat(e);return"".concat(t.slice(0,n)).concat(e)}function P(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?">= 0".concat(i," and < 2").concat(i," ** ").concat((o+1)*8).concat(i):">= -(2".concat(i," ** ").concat((o+1)*8-1).concat(i,") and < 2 ** ")+"".concat((o+1)*8-1).concat(i):">= ".concat(e).concat(i," and <= ").concat(n).concat(i),new I.ERR_OUT_OF_RANGE("value",r,t)}k(i,"offset"),(void 0===r[i]||void 0===r[i+o])&&T(i,r.length-(o+1))}function k(t,e){if("number"!=typeof t)throw new I.ERR_INVALID_ARG_TYPE(e,"number",t)}function T(t,e,n){if(Math.floor(t)!==t)throw k(t,n),new I.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(e),t)}S("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),S("ERR_INVALID_ARG_TYPE",function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(typeof e)},TypeError),S("ERR_OUT_OF_RANGE",function(t,e,n){let r='The value of "'.concat(t,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>4294967296?i=O(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=O(i)),i+="n"),r+=" It must be ".concat(e,". Received ").concat(i)},RangeError);let R=/[^+/0-9A-Za-z-_]/g;function N(t,e){let n;e=e||1/0;let r=t.length,i=null,o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319||a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function L(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){let i;for(i=0;i=e.length)&&!(i>=t.length);++i)e[i+n]=t[i];return i}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}let j=function(){let t="0123456789abcdef",e=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function D(t){return"undefined"==typeof BigInt?H:t}function H(){throw Error("BigInt not supported")}},14701:function(t){"use strict";var e={single_source_shortest_paths:function(t,n,r){var i,o,a,s,l,c,u,h={},d={};d[n]=0;var f=e.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(a in o=(i=f.pop()).value,s=i.cost,l=t[o]||{})l.hasOwnProperty(a)&&(c=s+l[a],u=d[a],(void 0===d[a]||u>c)&&(d[a]=c,f.push(a,c),h[a]=o));if(void 0!==r&&void 0===d[r])throw Error(["Could not find a path from ",n," to ",r,"."].join(""));return h},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var i=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,i={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},20994:function(t){"use strict";t.exports=function(t){for(var e=[],n=t.length,r=0;r=55296&&i<=56319&&n>r+1){var o=t.charCodeAt(r+1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536,r+=1)}if(i<128){e.push(i);continue}if(i<2048){e.push(i>>6|192),e.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128);continue}if(i>=65536&&i<=1114111){e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(63&i|128);continue}e.push(239,191,189)}return new Uint8Array(e).buffer}},78103:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new i(r,o||t,a),l=n?n+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=Array(o);i */e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+t[e+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?5960464477539062e-23:0,f=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?e+=d/l:e+=d*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*g}},53749:function(t,e,n){"use strict";n.r(e),n.d(e,{ErrorCode:function(){return f},FormatError:function(){return tl},IntlMessageFormat:function(){return tg},InvalidValueError:function(){return tc},InvalidValueTypeError:function(){return tu},MissingValueError:function(){return th},PART_TYPE:function(){return p},default:function(){return tm},formatToParts:function(){return tf},isFormatXMLElementFn:function(){return td}});var r,i,o,a,s,l,c,u,h,d,f,p,g=n(85045),m=n(10671);function y(t){return t.type===c.literal}function w(t){return t.type===c.number}function b(t){return t.type===c.date}function A(t){return t.type===c.time}function E(t){return t.type===c.select}function C(t){return t.type===c.plural}function x(t){return t.type===c.tag}function _(t){return!!(t&&"object"==typeof t&&t.type===u.number)}function M(t){return!!(t&&"object"==typeof t&&t.type===u.dateTime)}(r=l||(l={}))[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=c||(c={}))[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(o=u||(u={}))[o.number=0]="number",o[o.dateTime=1]="dateTime";var B=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,I=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,S=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,O=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,P=/^(@+)?(\+|#+)?[rs]?$/g,k=/(\*)(0+)|(#+)(0+)|(0+)/g,T=/^(0+)$/;function R(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(P,function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),e}function N(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function L(t){return N(t)||{}}var U={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},F=new RegExp("^".concat(B.source,"*")),j=new RegExp("".concat(B.source,"*$"));function D(t,e){return{start:t,end:e}}var H=!!String.prototype.startsWith&&"_a".startsWith("a",1),z=!!String.fromCodePoint,q=!!Object.fromEntries,G=!!String.prototype.codePointAt,W=!!String.prototype.trimStart,Q=!!String.prototype.trimEnd,V=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&9007199254740991>=Math.abs(t)},K=!0;try{var Z=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");K=(null===(h=Z.exec("a"))||void 0===h?void 0:h[0])==="a"}catch(t){K=!1}var Y=H?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},J=z?String.fromCodePoint:function(){for(var t,e=[],n=0;no;){if((t=e[o++])>1114111)throw RangeError(t+" is not a valid code point");r+=t<65536?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,t%1024+56320)}return r},X=q?Object.fromEntries:function(t){for(var e={},n=0;n=r)){var i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},tt=W?function(t){return t.trimStart()}:function(t){return t.replace(F,"")},te=Q?function(t){return t.trimEnd()}:function(t){return t.replace(j,"")};function tn(t,e){return new RegExp(t,e)}if(K){var tr=tn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");d=function(t,e){var n;return tr.lastIndex=e,null!==(n=tr.exec(t)[1])&&void 0!==n?n:""}}else d=function(t,e){for(var n=[];;){var r,i=$(t,e);if(void 0===i||ta(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),e+=i>=65536?2:1}return J.apply(void 0,n)};var ti=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(t,n);if(o.err)return o;r.push(o.val)}else if(125===i&&t>0)break;else if(35===i&&("plural"===e||"selectordinal"===e)){var a=this.clonePosition();this.bump(),r.push({type:c.pound,location:D(a,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&to(this.peek()||0)){var o=this.parseTag(t,e);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(t,e);if(o.err)return o;r.push(o.val)}}else{if(!n)return this.error(l.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()));break}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:c.literal,value:"<".concat(r,"/>"),location:D(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(l.INVALID_TAG,D(n,this.clonePosition()));var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(!this.bumpIf(""))?{val:{type:c.tag,value:r,children:o,location:D(n,this.clonePosition())},err:null}:this.error(l.INVALID_TAG,D(a,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(e);if(i){r+=i;continue}var o=this.tryParseUnquoted(t,e);if(o){r+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}var s=D(n,this.clonePosition());return{val:{type:c.literal,value:r,location:s},err:null}},t.prototype.tryParseLeftAngleBracket=function(){var t;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(to(t=this.peek()||0)||47===t)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())e.push(39),this.bump();else{this.bump();break}}else e.push(n);this.bump()}return J.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),J(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(l.EMPTY_ARGUMENT,D(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(l.MALFORMED_ARGUMENT,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:c.argument,value:r,location:D(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));return this.parseArgumentOptions(t,e,r,n);default:return this.error(l.MALFORMED_ARGUMENT,D(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=d(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:D(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(l.EXPECT_ARGUMENT_TYPE,D(o,s));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=te(f.val);if(0===p.length)return this.error(l.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:D(d,this.clonePosition())}}var m=this.tryParseArgumentClose(r);if(m.err)return m;var y=D(r,this.clonePosition());if(h&&Y(null==h?void 0:h.style,"::",0)){var w,b=tt(h.style.slice(2));if("number"===a){var f=this.parseNumberSkeletonFromString(b,h.styleLocation);if(f.err)return f;return{val:{type:c.number,value:n,location:y,style:f.val},err:null}}if(0===b.length)return this.error(l.EXPECT_DATE_TIME_SKELETON,y);var A=b;this.locale&&(A=function(t,e){for(var n="",r=0;r>1),l=function(t){var e,n=t.hourCycle;if(void 0===n&&t.hourCycles&&t.hourCycles.length&&(n=t.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=t.language;return"root"!==r&&(e=t.maximize().region),(U[e||""]||U[r||""]||U["".concat(r,"-001")]||U["001"])[0]}(e);for(("H"==l||"k"==l)&&(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else"J"===i?n+="H":n+=i}return n}(b,this.locale));var p={type:u.dateTime,pattern:A,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(w={},A.replace(I,function(t){var e=t.length;switch(t[0]){case"G":w.era=4===e?"long":5===e?"narrow":"short";break;case"y":w.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":w.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":w.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":w.weekday=4===e?"long":5===e?"narrow":"short";break;case"e":if(e<4)throw RangeError("`e..eee` (weekday) patterns are not supported");w.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");w.weekday=["short","long","narrow","short"][e-4];break;case"a":w.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":w.hourCycle="h12",w.hour=["numeric","2-digit"][e-1];break;case"H":w.hourCycle="h23",w.hour=["numeric","2-digit"][e-1];break;case"K":w.hourCycle="h11",w.hour=["numeric","2-digit"][e-1];break;case"k":w.hourCycle="h24",w.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":w.minute=["numeric","2-digit"][e-1];break;case"s":w.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":w.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),w):{}};return{val:{type:"date"===a?c.date:c.time,value:n,location:y,style:p},err:null}}return{val:{type:"number"===a?c.number:"date"===a?c.date:c.time,value:n,location:y,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(l.EXPECT_SELECT_ARGUMENT_OPTIONS,D(E,(0,g.__assign)({},E)));this.bumpSpace();var C=this.parseIdentifierIfPossible(),x=0;if("select"!==a&&"offset"===C.value){if(!this.bumpIf(":"))return this.error(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,l.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),C=this.parseIdentifierIfPossible(),x=f.val}var _=this.tryParsePluralOrSelectOptions(t,a,e,C);if(_.err)return _;var m=this.tryParseArgumentClose(r);if(m.err)return m;var M=D(r,this.clonePosition());if("select"===a)return{val:{type:c.select,value:n,options:X(_.val),location:M},err:null};return{val:{type:c.plural,value:n,options:X(_.val),offset:x,pluralType:"plural"===a?"cardinal":"ordinal",location:M},err:null};default:return this.error(l.INVALID_ARGUMENT_TYPE,D(o,s))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(l.EXPECT_ARGUMENT_CLOSING_BRACE,D(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(l.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw Error("Number skeleton cannot be empty");for(var e=t.split(S).filter(function(t){return t.length>0}),n=[],r=0;r1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(k,function(t,n,r,i,o,a){if(n)e.minimumIntegerDigits=r.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(T.test(r.stem)){e.minimumIntegerDigits=r.stem.length;continue}if(O.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(O,function(t,n,r,i,o,a){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&a?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+a.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?e=(0,g.__assign)((0,g.__assign)({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=(0,g.__assign)((0,g.__assign)({},e),R(i)));continue}if(P.test(r.stem)){e=(0,g.__assign)((0,g.__assign)({},e),R(r.stem));continue}var o=N(r.stem);o&&(e=(0,g.__assign)((0,g.__assign)({},e),o));var a=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!T.test(t))throw Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(r.stem);a&&(e=(0,g.__assign)((0,g.__assign)({},e),a))}return e}(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var i,o=!1,a=[],s=new Set,c=r.value,u=r.location;;){if(0===c.length){var h=this.clonePosition();if("select"!==e&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(l.EXPECT_PLURAL_ARGUMENT_SELECTOR,l.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=D(h,this.clonePosition()),c=this.message.slice(h.offset,this.offset())}else break}if(s.has(c))return this.error("select"===e?l.DUPLICATE_SELECT_ARGUMENT_SELECTOR:l.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?l.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:l.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,n);if(p.err)return p;var g=this.tryParseArgumentClose(f);if(g.err)return g;a.push([c,{value:p.val,location:D(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===a.length?this.error("select"===e?l.EXPECT_SELECT_ARGUMENT_SELECTOR:l.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(l.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=D(r,this.clonePosition());return i?V(o*=n)?{val:o,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=$(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Y(this.message,t,this.offset())){for(var e=0;e=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ta(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();function to(t){return t>=97&&t<=122||t>=65&&t<=90}function ta(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ts(t,e){void 0===e&&(e={});var n=new ti(t,e=(0,g.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},e)).parse();if(n.err){var r=SyntaxError(l[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==e?void 0:e.captureLocation)||function t(e){e.forEach(function(e){if(delete e.location,E(e)||C(e))for(var n in e.options)delete e.options[n].location,t(e.options[n].value);else w(e)&&_(e.style)?delete e.style.location:(b(e)||A(e))&&M(e.style)?delete e.style.location:x(e)&&t(e.children)})}(n.val),n.val}(a=f||(f={})).MISSING_VALUE="MISSING_VALUE",a.INVALID_VALUE="INVALID_VALUE",a.MISSING_INTL_API="MISSING_INTL_API";var tl=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return(0,g.__extends)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),tc=function(t){function e(e,n,r,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),f.INVALID_VALUE,i)||this}return(0,g.__extends)(e,t),e}(tl),tu=function(t){function e(e,n,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),f.INVALID_VALUE,r)||this}return(0,g.__extends)(e,t),e}(tl),th=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),f.MISSING_VALUE,n)||this}return(0,g.__extends)(e,t),e}(tl);function td(t){return"function"==typeof t}function tf(t,e,n,r,i,o,a){if(1===t.length&&y(t[0]))return[{type:p.literal,value:t[0].value}];for(var s=[],l=0;l0?e[0]:"string"==typeof t?t:t[0])}},t.__parse=ts,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),tm=tg},79167:function(t,e,n){"use strict";let r=n(34409).v4,i=n(64824),o=function(t,e){if(!(this instanceof o))return new o(t,e);e||(e={}),this.options={reviver:void 0!==e.reviver?e.reviver:null,replacer:void 0!==e.replacer?e.replacer:null,generator:void 0!==e.generator?e.generator:function(){return r()},version:void 0!==e.version?e.version:2,notificationIdNull:"boolean"==typeof e.notificationIdNull&&e.notificationIdNull},this.callServer=t};t.exports=o,o.prototype.request=function(t,e,n,r){let o;let a=this,s=null,l=Array.isArray(t)&&"function"==typeof e;if(1===this.options.version&&l)throw TypeError("JSON-RPC 1.0 does not support batching");let c=!l&&t&&"object"==typeof t&&"function"==typeof e;if(l||c)r=e,s=t;else{"function"==typeof n&&(r=n,n=void 0);let o="function"==typeof r;try{s=i(t,e,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(t){if(o)return r(t);throw t}if(!o)return s}try{o=JSON.stringify(s,this.options.replacer)}catch(t){return r(t)}return this.callServer(o,function(t,e){a._parseResponse(t,e,r)}),s},o.prototype._parseResponse=function(t,e,n){let r;if(t){n(t);return}if(!e)return n();try{r=JSON.parse(e,this.options.reviver)}catch(t){return n(t)}if(3===n.length){if(!Array.isArray(r))return n(null,r.error,r.result);{let t=function(t){return void 0!==t.error};return n(null,r.filter(t),r.filter(function(e){return!t(e)}))}}n(null,r)}},64824:function(t,e,n){"use strict";let r=n(34409).v4;t.exports=function(t,e,n,i){if("string"!=typeof t)throw TypeError(t+" must be a string");let o="number"==typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw TypeError(o+" must be 1 or 2");let a={method:t};if(2===o&&(a.jsonrpc="2.0"),e){if("object"!=typeof e&&!Array.isArray(e))throw TypeError(e+" must be an object, array or omitted");a.params=e}if(void 0===n){let t="function"==typeof i.generator?i.generator:function(){return r()};a.id=t(a,i)}else 2===o&&null===n?i.notificationIdNull&&(a.id=null):a.id=n;return a}},71310:function(t,e,n){"use strict";var r=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,h=c||u||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,g=function(){return h.Date.now()};function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function y(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==d.call(e))return r;if(m(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=m(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var c=a.test(t);return c||s.test(t)?l(t.slice(2),c?2:8):o.test(t)?r:+t}t.exports=function(t,e,n){var r,i,o,a,s,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof t)throw TypeError("Expected a function");function w(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n)}function b(t){var n=t-l,r=t-c;return void 0===l||n>=e||n<0||h&&r>=o}function A(){var t,n,r,i=g();if(b(i))return E(i);s=setTimeout(A,(t=i-l,n=i-c,r=e-t,h?p(r,o-n):r))}function E(t){return(s=void 0,d&&r)?w(t):(r=i=void 0,a)}function C(){var t,n=g(),o=b(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return c=t=l,s=setTimeout(A,e),u?w(t):a;if(h)return s=setTimeout(A,e),w(l)}return void 0===s&&(s=setTimeout(A,e)),a}return e=y(e)||0,m(n)&&(u=!!n.leading,o=(h="maxWait"in n)?f(y(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),C.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},C.flush=function(){return void 0===s?a:E(g())},C}},57391:function(t,e){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(t){for(var e=1;e1?n-1:0),a=1;a1?n-1:0),a=1;a1?i-1:0),a=1;a1?i-1:0),a=1;a1?i-1:0),a=1;a1?i-1:0),a=1;a1?i-1:0),a=1;a1?n-1:0),i=1;i1?n-1:0),i=1;it&&a.hasPathnamePrefixed(e,t)?a.unlocalizePathname(t,e):t,[e,t])}},90489:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(89667),i=n(37801),o=n(84567),a=n(83065),s=n(23244),l=n(6963);e.default=function(){let t=r.useRouter(),e=o.default(),n=r.usePathname();return i.useMemo(()=>{function r(t){return function(r,i){let{locale:o,...c}=i||{};s.default(n,e,o);let u=[function(t,r){let i=window.location.pathname,o=l.getBasePath(n);return o&&(i=i.replace(o,"")),a.localizeHref(t,r||e,e,i)}(r,o)];return Object.keys(c).length>0&&u.push(c),t(...u)}}return{...t,push:r(t.push),replace:r(t.replace),prefetch:r(t.prefetch)}},[e,n,t])}},91724:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(57391),i=n(35973),o=n(89667),a=n(37801),s=n(84567),l=n(83065),c=n(23244);function u(t){return t&&t.__esModule?t:{default:t}}var h=u(i),d=u(a);let f=a.forwardRef(function(t,e){let{href:n,locale:i,localePrefix:u,onClick:f,prefetch:p,...g}=t,m=o.usePathname(),y=s.default(),w=i!==y,[b,A]=a.useState(()=>l.isLocalHref(n)&&("never"!==u||w)?l.prefixHref(n,i):n);return a.useEffect(()=>{m&&A(l.localizeHref(n,i,y,m))},[y,n,i,m]),w&&(p=!1),d.default.createElement(h.default,r.extends({ref:e,href:b,hrefLang:w?i:void 0,onClick:function(t){c.default(m,y,i),f&&f(t)},prefetch:p},g))});f.displayName="ClientLink",e.default=f},91118:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(89667),i=n(83065);e.default=function(t){let e="never"===t.localePrefix?t.pathname:i.prefixPathname(t.locale,t.pathname);for(var n=arguments.length,o=Array(n>1?n-1:0),a=1;a1?n-1:0),a=1;a{e.append(n,String(t))}):e.set(n,String(r));return"?"+e.toString()}e.compileLocalizedPathname=function(t){let{pathname:e,locale:n,params:r,pathnames:o,query:a}=t;function s(t){let e=o[t];return e||(e=t),e}function l(t){let e="string"==typeof t?t:t[n];return r&&Object.entries(r).forEach(t=>{let[n,r]=t;e=Array.isArray(r)?e.replace(RegExp("(\\[)?\\[...".concat(n,"\\](\\])?"),"g"),r.map(t=>String(t)).join("/")):e.replace("[".concat(n,"]"),String(r))}),a&&(e+=i(a)),e}if("string"==typeof e)return l(s(e));{let{pathname:t,...n}=e;return{...n,pathname:l(s(t))}}},e.getBasePath=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===t?e:e.replace(t,"")},e.getRoute=function(t){var e;let{locale:n,pathname:i,pathnames:o}=t,a=r.unlocalizePathname(decodeURI(i),n),s=null===(e=Object.entries(o).find(t=>{let[,e]=t,i="string"!=typeof e?e[n]:e;return r.matchesPathname(i,a)}))||void 0===e?void 0:e[0];return s||(s=i),s},e.normalizeNameOrNameWithParams=function(t){return"string"==typeof t?{pathname:t}:t},e.serializeSearchParams=i},25990:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(43940);function i(t,e){return function(){try{return e(...arguments)}catch(t){throw Error(void 0)}}}let o=i(0,r.useTranslations),a=i(0,r.useFormatter);e.useFormatter=a,e.useTranslations=o,Object.keys(r).forEach(function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})},84567:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(89667),i=n(29689),o=n(17549);e.default=function(){let t;let e=r.useParams();try{t=i.useLocale()}catch(n){if("string"!=typeof(null==e?void 0:e[o.LOCALE_SEGMENT_NAME]))throw n;t=e[o.LOCALE_SEGMENT_NAME]}return t}},91259:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(57391),i=n(37801),o=n(32873),a=i&&i.__esModule?i:{default:i};e.default=function(t){let{locale:e,...n}=t;if(!e)throw Error(void 0);return a.default.createElement(o.IntlProvider,r.extends({locale:e},n))}},17549:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COOKIE_LOCALE_NAME="NEXT_LOCALE",e.COOKIE_MAX_AGE=31536e3,e.COOKIE_SAME_SITE="lax",e.HEADER_LOCALE_NAME="X-NEXT-INTL-LOCALE",e.LOCALE_SEGMENT_NAME="locale"},83065:function(t,e){"use strict";function n(t){let e="object"==typeof t?t.pathname:t;return null!=e&&!e.startsWith("/")}function r(t){return"object"==typeof t?null==t.host&&null==t.hostname:!/^[a-z]+:/i.test(t)}function i(t,e){let n;return"string"==typeof t?n=o(e,t):(n={...t},t.pathname&&(n.pathname=o(e,t.pathname))),n}function o(t,e){let n="/"+t;return/^\/(\?.*)?$/.test(e)&&(e=e.slice(1)),n+=e}function a(t,e){let n="/".concat(t);return e===n||e.startsWith("".concat(n,"/"))}function s(t){let e=t.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return new RegExp("^".concat(e,"$"))}Object.defineProperty(e,"__esModule",{value:!0}),e.hasPathnamePrefixed=a,e.isLocalHref=r,e.isRelativeHref=n,e.localizeHref=function(t,e){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(!r(t)||n(t))return t;let l=e!==o,c=null==e||a(e,s);return(l||c)&&null!=e?i(t,e):t},e.matchesPathname=function(t,e){return s(t).test(e)},e.prefixHref=i,e.prefixPathname=o,e.templateToRegex=s,e.unlocalizePathname=function(t,e){return t.replace(new RegExp("^/".concat(e)),"")||"/"}},42363:function(t,e,n){"use strict";n.d(e,{default:function(){return i.a}});var r=n(12387),i=n.n(r)},65696:function(t,e,n){"use strict";n.d(e,{default:function(){return i.a}});var r=n(21066),i=n.n(r)},80936:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return b}});let r=n(19599),i=n(11631),o=n(60505),a=i._(n(37801)),s=r._(n(62143)),l=r._(n(27801)),c=n(8678),u=n(3944),h=n(7467);n(54276);let d=n(28259),f=r._(n(40830)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(t,e,n,r,i,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&i(!0),null==n?void 0:n.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let r=!1,i=!1;n.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,e.preventDefault()},stopPropagation:()=>{i=!0,e.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(t)}}))}function m(t){let[e,n]=a.version.split(".",2),r=parseInt(e,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:t}:{fetchpriority:t}}let y=(0,a.forwardRef)((t,e)=>{let{src:n,srcSet:r,sizes:i,height:s,width:l,decoding:c,className:u,style:h,fetchPriority:d,placeholder:f,loading:p,unoptimized:y,fill:w,onLoadRef:b,onLoadingCompleteRef:A,setBlurComplete:E,setShowAltText:C,onLoad:x,onError:_,...M}=t;return(0,o.jsx)("img",{...M,...m(d),loading:p,width:l,height:s,decoding:c,"data-nimg":w?"fill":"1",className:u,style:h,sizes:i,srcSet:r,src:n,ref:(0,a.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(_&&(t.src=t.src),t.complete&&g(t,f,b,A,E,y))},[n,f,b,A,E,_,y,e]),onLoad:t=>{g(t.currentTarget,f,b,A,E,y)},onError:t=>{C(!0),"empty"!==f&&E(!0),_&&_(t)}})});function w(t){let{isAppRouter:e,imgAttributes:n}=t,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return e&&s.default.preload?(s.default.preload(n.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,a.forwardRef)((t,e)=>{let n=(0,a.useContext)(d.RouterContext),r=(0,a.useContext)(h.ImageConfigContext),i=(0,a.useMemo)(()=>{let t=p||r||u.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),n=t.deviceSizes.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:n}},[r]),{onLoad:s,onLoadingComplete:l}=t,g=(0,a.useRef)(s);(0,a.useEffect)(()=>{g.current=s},[s]);let m=(0,a.useRef)(l);(0,a.useEffect)(()=>{m.current=l},[l]);let[b,A]=(0,a.useState)(!1),[E,C]=(0,a.useState)(!1),{props:x,meta:_}=(0,c.getImgProps)(t,{defaultLoader:f.default,imgConf:i,blurComplete:b,showAltText:E});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...x,unoptimized:_.unoptimized,placeholder:_.placeholder,fill:_.fill,onLoadRef:g,onLoadingCompleteRef:m,setBlurComplete:A,setShowAltText:C,ref:e}),_.priority?(0,o.jsx)(w,{isAppRouter:!n,imgAttributes:x}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},74993:function(t,e){"use strict";Symbol.for("react.fragment")},33035:function(t,e,n){"use strict";n(74993)},4915:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(19599)._(n(37801)).default.createContext({})},60906:function(t,e){"use strict";function n(t){let{ampFirst:e=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===t?{}:t;return e||n&&r}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return n}})},12387:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});let r=n(19599);n(60505),n(37801);let i=r._(n(19018));function o(t,e){let n={loading:t=>{let{error:e,isLoading:n,pastDelay:r}=t;return null}};return"function"==typeof t&&(n.loader=t),(0,i.default)({...n,...e})}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},8678:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return s}}),n(54276);let r=n(5883),i=n(3944);function o(t){return void 0!==t.default}function a(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function s(t,e){var n;let s,l,c,{src:u,sizes:h,unoptimized:d=!1,priority:f=!1,loading:p,className:g,quality:m,width:y,height:w,fill:b=!1,style:A,onLoad:E,onLoadingComplete:C,placeholder:x="empty",blurDataURL:_,fetchPriority:M,layout:B,objectFit:I,objectPosition:S,lazyBoundary:O,lazyRoot:P,...k}=t,{imgConf:T,showAltText:R,blurComplete:N,defaultLoader:L}=e,U=T||i.imageConfigDefault;if("allSizes"in U)s=U;else{let t=[...U.deviceSizes,...U.imageSizes].sort((t,e)=>t-e),e=U.deviceSizes.sort((t,e)=>t-e);s={...U,allSizes:t,deviceSizes:e}}let F=k.loader||L;delete k.loader,delete k.srcSet;let j="__next_img_default"in F;if(j){if("custom"===s.loader)throw Error('Image with src "'+u+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=F;F=e=>{let{config:n,...r}=e;return t(r)}}if(B){"fill"===B&&(b=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[B];t&&(A={...A,...t});let e={responsive:"100vw",fill:"100vw"}[B];e&&!h&&(h=e)}let D="",H=a(y),z=a(w);if("object"==typeof(n=u)&&(o(n)||void 0!==n.src)){let t=o(u)?u.default:u;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(l=t.blurWidth,c=t.blurHeight,_=_||t.blurDataURL,D=t.src,!b){if(H||z){if(H&&!z){let e=H/t.width;z=Math.round(t.height*e)}else if(!H&&z){let e=z/t.height;H=Math.round(t.width*e)}}else H=t.width,z=t.height}}let q=!f&&("lazy"===p||void 0===p);(!(u="string"==typeof u?u:D)||u.startsWith("data:")||u.startsWith("blob:"))&&(d=!0,q=!1),s.unoptimized&&(d=!0),j&&u.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(d=!0),f&&(M="high");let G=a(m),W=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:S}:{},R?{}:{color:"transparent"},A),Q=N||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:H,heightInt:z,blurWidth:l,blurHeight:c,blurDataURL:_||"",objectFit:W.objectFit})+'")':'url("'+x+'")',V=Q?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{},K=function(t){let{config:e,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=t;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(t,e,n){let{deviceSizes:r,allSizes:i}=t;if(n){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let r;r=t.exec(n);r)e.push(parseInt(r[2]));if(e.length){let t=.01*Math.min(...e);return{widths:i.filter(e=>e>=r[0]*t),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof e?{widths:r,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>i.find(e=>e>=t)||i[i.length-1]))],kind:"x"}}(e,i,a),u=l.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:l.map((t,r)=>s({config:e,src:n,quality:o,width:t})+" "+("w"===c?t:r+1)+c).join(", "),src:s({config:e,src:n,quality:o,width:l[u]})}}({config:s,src:u,unoptimized:d,width:H,quality:G,sizes:h,loader:F});return{props:{...k,loading:q?"lazy":p,fetchPriority:M,width:H,height:z,decoding:"async",className:g,style:{...W,...V},sizes:K.sizes,srcSet:K.srcSet,src:K.src},meta:{unoptimized:d,priority:f,placeholder:x,fill:b}}}},27801:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{defaultHead:function(){return h},default:function(){return g}});let r=n(19599),i=n(11631),o=n(60505),a=i._(n(37801)),s=r._(n(76426)),l=n(4915),c=n(2217),u=n(60906);function h(t){void 0===t&&(t=!1);let e=[(0,o.jsx)("meta",{charSet:"utf-8"})];return t||e.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"})),e}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===a.default.Fragment?t.concat(a.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}n(54276);let f=["name","httpEquiv","charSet","itemProp"];function p(t,e){let{inAmpMode:n}=e;return t.reduce(d,[]).reverse().concat(h(n).reverse()).filter(function(){let t=new Set,e=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let e=i.key.slice(i.key.indexOf("$")+1);t.has(e)?o=!1:t.add(e)}switch(i.type){case"title":case"base":e.has(i.type)?o=!1:e.add(i.type);break;case"meta":for(let t=0,e=f.length;t{let r=t.key||e;if(!n&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(e=>t.props.href.startsWith(e))){let e={...t.props||{}};return e["data-href"]=e.href,e.href=void 0,e["data-optimized-fonts"]=!0,a.default.cloneElement(t,e)}return a.default.cloneElement(t,{key:r})})}let g=function(t){let{children:e}=t,n=(0,a.useContext)(l.AmpStateContext),r=(0,a.useContext)(c.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,u.isInAmpMode)(n),children:e})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5883:function(t,e){"use strict";function n(t){let{widthInt:e,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=t,s=r?40*r:e,l=i?40*i:n,c=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},7467:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let r=n(19599)._(n(37801)),i=n(3944),o=r.default.createContext(i.imageConfigDefault)},3944:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},21066:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{getImageProps:function(){return s},default:function(){return l}});let r=n(19599),i=n(8678),o=n(80936),a=r._(n(40830)),s=t=>{let{props:e}=(0,i.getImgProps)(t,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,n]of Object.entries(e))void 0===n&&delete e[t];return{props:e}},l=o.Image},40830:function(t,e){"use strict";function n(t){let{config:e,src:n,width:r,quality:i}=t;return e.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},70365:function(t,e,n){"use strict";function r(t){let{reason:e,children:n}=t;return n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(81029)},19018:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});let r=n(60505),i=n(37801),o=n(70365);function a(t){var e;return{default:null!=(e=null==t?void 0:t.default)?e:t}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(t){let e={...s,...t},n=(0,i.lazy)(()=>e.loader().then(a)),l=e.loading;function c(t){let a=l?(0,r.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,s=e.ssr?(0,r.jsx)(n,{...t}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...t})});return(0,r.jsx)(i.Suspense,{fallback:a,children:s})}return c.displayName="LoadableComponent",c}},76426:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});let r=n(37801),i=r.useLayoutEffect,o=r.useEffect;function a(t){let{headManager:e,reduceComponentsToState:n}=t;function a(){if(e&&e.mountedInstances){let i=r.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(n(i,t))}}return i(()=>{var n;return null==e||null==(n=e.mountedInstances)||n.add(t.children),()=>{var n;null==e||null==(n=e.mountedInstances)||n.delete(t.children)}}),i(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},17349:function(t){"use strict";var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(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(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l=[],c=!1,u=-1;function h(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&d())}function d(){if(!c){var t=s(h);c=!0;for(var e=l.length;e;){for(r=l,l=[];++u1)for(var n=1;n>>7-t%8&1)==1},put:function(t,e){for(let n=0;n>>e-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},10545:function(t){"use strict";function e(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,r){let i=t*this.size+e;this.data[i]=n,r&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},40744:function(t,e,n){"use strict";let r=n(20994),i=n(39721);function o(t){this.mode=i.BYTE,"string"==typeof t&&(t=r(t)),this.data=new Uint8Array(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(let e=0,n=this.data.length;e=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw Error("Unknown EC Level: "+t)}}(t)}catch(t){return n}}},2541:function(t,e,n){let r=n(63232).getSymbolSize;e.getPositions=function(t){let e=r(t);return[[0,0],[e-7,0],[0,e-7]]}},81299:function(t,e,n){let r=n(63232),i=r.getBCHDigit(1335);e.getEncodedBits=function(t,e){let n=t.bit<<3|e,o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),t.put(n,13)}},t.exports=o},19753:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){let e=t.size,r=0,i=0,o=0,a=null,s=null;for(let l=0;l=5&&(r+=n.N1+(i-5)),a=e,i=1),(e=t.get(c,l))===s?o++:(o>=5&&(r+=n.N1+(o-5)),s=e,o=1)}i>=5&&(r+=n.N1+(i-5)),o>=5&&(r+=n.N1+(o-5))}return r},e.getPenaltyN2=function(t){let e=t.size,r=0;for(let n=0;n=10&&(1488===i||93===i)&&r++,o=o<<1&2047|t.get(a,n),a>=10&&(1488===o||93===o)&&r++}return r*n.N3},e.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let n=0;n=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw Error("Unknown mode: "+t)}}(t)}catch(t){return n}}},84207:function(t,e,n){"use strict";let r=n(39721);function i(t){this.mode=r.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,n;for(e=0;e+3<=this.data.length;e+=3)n=parseInt(this.data.substr(e,3),10),t.put(n,10);let r=this.data.length-e;r>0&&(n=parseInt(this.data.substr(e),10),t.put(n,3*r+1))},t.exports=i},52080:function(t,e,n){let r=n(30318);e.mul=function(t,e){let n=new Uint8Array(t.length+e.length-1);for(let i=0;i=0;){let t=n[0];for(let i=0;i>r&1)==1,r<6?t.set(r,8,i,!0):r<8?t.set(r+1,8,i,!0):t.set(o-15+r,8,i,!0),r<8?t.set(8,o-r-1,i,!0):r<9?t.set(8,15-r-1+1,i,!0):t.set(8,15-r-1,i,!0);t.set(o-8,8,1,!0)}e.create=function(t,e){let n,f;if(void 0===t||""===t)throw Error("No input text");let y=i.M;return void 0!==e&&(y=i.from(e.errorCorrectionLevel,i.M),n=d.from(e.version),f=c.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,n,i){let f;if(Array.isArray(t))f=g.fromArray(t);else if("string"==typeof t){let r=e;if(!r){let e=g.rawSplit(t);r=d.getBestVersionForData(e,n)}f=g.fromString(t,r||40)}else throw Error("Invalid data");let y=d.getBestVersionForData(f,n);if(!y)throw Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&e<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===e||6===e)||e>=2&&e<=4&&r>=2&&r<=4?t.set(i+e,o+r,!0,!0):t.set(i+e,o+r,!1,!0))}}(b,e),function(t){let e=t.size;for(let n=8;n=7&&function(t,e){let n,r,i;let o=t.size,a=d.getEncodedBits(e);for(let e=0;e<18;e++)n=Math.floor(e/3),r=e%3+o-8-3,i=(a>>e&1)==1,t.set(n,r,i,!0),t.set(r,n,i,!0)}(b,e),function(t,e){let n=t.size,r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(i,s-n)){let r=!1;a>>o&1)==1),t.set(i,s-n,r),-1==--o&&(a++,o=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(b,w),isNaN(i)&&(i=c.getBestMask(b,m.bind(null,b,n))),c.applyMask(i,b),m(b,n,i),{modules:b,version:e,errorCorrectionLevel:n,maskPattern:i,segments:f}}(t,n,y,f)}},42839:function(t,e,n){"use strict";let r=n(52080);function i(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let n=r.mod(e,this.genPoly),i=this.degree-n.length;if(i>0){let t=new Uint8Array(this.degree);return t.set(n,i),t}return n},t.exports=i},86960:function(t,e){let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=RegExp(r,"g"),e.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=RegExp(i,"g"),e.NUMERIC=RegExp(n,"g"),e.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+r+"$"),a=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return o.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},47744:function(t,e,n){let r=n(39721),i=n(84207),o=n(57090),a=n(40744),s=n(16222),l=n(86960),c=n(63232),u=n(14701);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,n){let r;let i=[];for(;null!==(r=t.exec(n));)i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function f(t){let e,n;let i=d(l.NUMERIC,r.NUMERIC,t),o=d(l.ALPHANUMERIC,r.ALPHANUMERIC,t);return c.isKanjiModeEnabled()?(e=d(l.BYTE,r.BYTE,t),n=d(l.KANJI,r.KANJI,t)):(e=d(l.BYTE_KANJI,r.BYTE,t),n=[]),i.concat(o,e,n).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,e){switch(e){case r.NUMERIC:return i.getBitsLength(t);case r.ALPHANUMERIC:return o.getBitsLength(t);case r.KANJI:return s.getBitsLength(t);case r.BYTE:return a.getBitsLength(t)}}function g(t,e){let n;let l=r.getBestModeForData(t);if((n=r.from(e,l))!==r.BYTE&&n.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?t[t.length-1].data+=e.data:t.push(e),t},[]))},e.rawSplit=function(t){return e.fromArray(f(t,c.isKanjiModeEnabled()))}},63232:function(t,e){let n;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return r[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},5939:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},65846:function(t,e,n){let r=n(63232),i=n(46016),o=n(57572),a=n(39721),s=n(5939),l=r.getBCHDigit(7973);function c(t,e){return a.getCharCountIndicator(t,e)+4}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);let o=(r.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e))*8;if(n===a.MIXED)return o;let l=o-c(n,t);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,n){let r;let i=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let r=1;r<=40;r++)if(function(t,e){let n=0;return t.forEach(function(t){let r=c(t.mode,e);n+=r+t.getBitsLength()}),n}(t,r)<=e.getCapacity(r,n,a.MIXED))return r}(t,i);if(0===t.length)return 1;r=t[0]}else r=t;return function(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}(r.mode,r.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw Error("Invalid QR Code version");let e=t<<12;for(;r.getBCHDigit(e)-l>=0;)e^=7973<':"",h="0&&c>0&&t[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1',d=''+u+h+"\n";return"function"==typeof n&&n(null,d),d}},63200:function(t,e){function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");let n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:r,scale:r?4:i,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+2*n.margin)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,o=n.modules.data,a=e.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let e=0;e=l&&n>=l&&e>>7-t%8&1)==1},put:function(t,e){for(let n=0;n>>e-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},13042:function(t){"use strict";function e(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,n,r){let i=t*this.size+e;this.data[i]=n,r&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},21017:function(t,e,n){"use strict";let r=n(66805);function i(t){this.mode=r.BYTE,"string"==typeof t?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}i.getBitsLength=function(t){return 8*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(let e=0,n=this.data.length;e=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw Error("Unknown EC Level: "+t)}}(t)}catch(t){return n}}},86570:function(t,e,n){let r=n(6274).getSymbolSize;e.getPositions=function(t){let e=r(t);return[[0,0],[e-7,0],[0,e-7]]}},89169:function(t,e,n){let r=n(6274),i=r.getBCHDigit(1335);e.getEncodedBits=function(t,e){let n=t.bit<<3|e,o=n<<10;for(;r.getBCHDigit(o)-i>=0;)o^=1335<=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),t.put(n,13)}},t.exports=o},21183:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){let e=t.size,r=0,i=0,o=0,a=null,s=null;for(let l=0;l=5&&(r+=n.N1+(i-5)),a=e,i=1),(e=t.get(c,l))===s?o++:(o>=5&&(r+=n.N1+(o-5)),s=e,o=1)}i>=5&&(r+=n.N1+(i-5)),o>=5&&(r+=n.N1+(o-5))}return r},e.getPenaltyN2=function(t){let e=t.size,r=0;for(let n=0;n=10&&(1488===i||93===i)&&r++,o=o<<1&2047|t.get(a,n),a>=10&&(1488===o||93===o)&&r++}return r*n.N3},e.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let n=0;n=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw Error("Unknown mode: "+t)}}(t)}catch(t){return n}}},760:function(t,e,n){"use strict";let r=n(66805);function i(t){this.mode=r.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e,n;for(e=0;e+3<=this.data.length;e+=3)n=parseInt(this.data.substr(e,3),10),t.put(n,10);let r=this.data.length-e;r>0&&(n=parseInt(this.data.substr(e),10),t.put(n,3*r+1))},t.exports=i},85915:function(t,e,n){let r=n(89990);e.mul=function(t,e){let n=new Uint8Array(t.length+e.length-1);for(let i=0;i=0;){let t=n[0];for(let i=0;i>r&1)==1,r<6?t.set(r,8,i,!0):r<8?t.set(r+1,8,i,!0):t.set(o-15+r,8,i,!0),r<8?t.set(8,o-r-1,i,!0):r<9?t.set(8,15-r-1+1,i,!0):t.set(8,15-r-1,i,!0);t.set(o-8,8,1,!0)}e.create=function(t,e){let n,f;if(void 0===t||""===t)throw Error("No input text");let y=i.M;return void 0!==e&&(y=i.from(e.errorCorrectionLevel,i.M),n=d.from(e.version),f=c.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,n,i){let f;if(Array.isArray(t))f=g.fromArray(t);else if("string"==typeof t){let r=e;if(!r){let e=g.rawSplit(t);r=d.getBestVersionForData(e,n)}f=g.fromString(t,r||40)}else throw Error("Invalid data");let y=d.getBestVersionForData(f,n);if(!y)throw Error("The amount of data is too big to be stored in a QR Code");if(e){if(e=0&&e<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===e||6===e)||e>=2&&e<=4&&r>=2&&r<=4?t.set(i+e,o+r,!0,!0):t.set(i+e,o+r,!1,!0))}}(b,e),function(t){let e=t.size;for(let n=8;n=7&&function(t,e){let n,r,i;let o=t.size,a=d.getEncodedBits(e);for(let e=0;e<18;e++)n=Math.floor(e/3),r=e%3+o-8-3,i=(a>>e&1)==1,t.set(n,r,i,!0),t.set(r,n,i,!0)}(b,e),function(t,e){let n=t.size,r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!t.isReserved(i,s-n)){let r=!1;a>>o&1)==1),t.set(i,s-n,r),-1==--o&&(a++,o=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(b,w),isNaN(i)&&(i=c.getBestMask(b,m.bind(null,b,n))),c.applyMask(i,b),m(b,n,i),{modules:b,version:e,errorCorrectionLevel:n,maskPattern:i,segments:f}}(t,n,y,f)}},65164:function(t,e,n){"use strict";let r=n(85915);function i(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let n=r.mod(e,this.genPoly),i=this.degree-n.length;if(i>0){let t=new Uint8Array(this.degree);return t.set(n,i),t}return n},t.exports=i},41200:function(t,e){let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=RegExp(r,"g"),e.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=RegExp(i,"g"),e.NUMERIC=RegExp(n,"g"),e.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+r+"$"),a=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return o.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},52370:function(t,e,n){let r=n(66805),i=n(760),o=n(59762),a=n(21017),s=n(52012),l=n(41200),c=n(6274),u=n(14701);function h(t){return unescape(encodeURIComponent(t)).length}function d(t,e,n){let r;let i=[];for(;null!==(r=t.exec(n));)i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function f(t){let e,n;let i=d(l.NUMERIC,r.NUMERIC,t),o=d(l.ALPHANUMERIC,r.ALPHANUMERIC,t);return c.isKanjiModeEnabled()?(e=d(l.BYTE,r.BYTE,t),n=d(l.KANJI,r.KANJI,t)):(e=d(l.BYTE_KANJI,r.BYTE,t),n=[]),i.concat(o,e,n).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,e){switch(e){case r.NUMERIC:return i.getBitsLength(t);case r.ALPHANUMERIC:return o.getBitsLength(t);case r.KANJI:return s.getBitsLength(t);case r.BYTE:return a.getBitsLength(t)}}function g(t,e){let n;let l=r.getBestModeForData(t);if((n=r.from(e,l))!==r.BYTE&&n.bit=0?t[t.length-1]:null;return n&&n.mode===e.mode?t[t.length-1].data+=e.data:t.push(e),t},[]))},e.rawSplit=function(t){return e.fromArray(f(t,c.isKanjiModeEnabled()))}},6274:function(t,e){let n;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return r[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},15047:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},10029:function(t,e,n){let r=n(6274),i=n(88626),o=n(8568),a=n(66805),s=n(15047),l=r.getBCHDigit(7973);function c(t,e){return a.getCharCountIndicator(t,e)+4}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);let o=(r.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e))*8;if(n===a.MIXED)return o;let l=o-c(n,t);switch(n){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,n){let r;let i=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return function(t,n){for(let r=1;r<=40;r++)if(function(t,e){let n=0;return t.forEach(function(t){let r=c(t.mode,e);n+=r+t.getBitsLength()}),n}(t,r)<=e.getCapacity(r,n,a.MIXED))return r}(t,i);if(0===t.length)return 1;r=t[0]}else r=t;return function(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}(r.mode,r.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw Error("Invalid QR Code version");let e=t<<12;for(;r.getBCHDigit(e)-l>=0;)e^=7973<':"",h="0&&c>0&&t[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1',d=''+u+h+"\n";return"function"==typeof n&&n(null,d),d}},26325:function(t,e){function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");let n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:r,scale:r?4:i,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+2*n.margin)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,o=n.modules.data,a=e.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let e=0;e=l&&n>=l&&e