diff --git a/assets/js/paybutton.js b/assets/js/paybutton.js index 7df06d4..57a66f5 100644 --- a/assets/js/paybutton.js +++ b/assets/js/paybutton.js @@ -1,66 +1,155 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).PayButton=t()}(this,function(){"use strict";var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{let n=!1,o=!1,i=!1;for(let s=0;s(LEADING_CAPITAL.lastIndex=0,e.replace(LEADING_CAPITAL,e=>t(e))),postProcess=(e,t)=>(SEPARATORS_AND_IDENTIFIER.lastIndex=0,NUMBERS_AND_IDENTIFIER.lastIndex=0,e.replace(SEPARATORS_AND_IDENTIFIER,(e,r)=>t(r)).replace(NUMBERS_AND_IDENTIFIER,e=>t(e))),camelCase$1=(e,t)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(t={pascalCase:!1,preserveConsecutiveUppercase:!1,...t},e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim(),0===e.length)return"";const r=!1===t.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t.locale),n=!1===t.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(t.locale);if(1===e.length)return t.pascalCase?n(e):r(e);return e!==r(e)&&(e=preserveCamelCase(e,r,n)),e=e.replace(LEADING_SEPARATORS,""),e=t.preserveConsecutiveUppercase?preserveConsecutiveUppercase(e,r):r(e),t.pascalCase&&(e=n(e.charAt(0))+e.slice(1)),postProcess(e,n)};camelcase$1.exports=camelCase$1,camelcase$1.exports.default=camelCase$1;var camelcaseExports=camelcase$1.exports,camelcase=getDefaultExportFromCjs(camelcaseExports),common={black:"#000",white:"#fff"},common$1=common,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,pink={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},pink$1=pink,indigo={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},indigo$1=indigo,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},grey$1=grey;function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?_extends$2({},e):e;return isPlainObject$2(e)&&isPlainObject$2(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(isPlainObject$2(t[o])&&o in e?n[o]=deepmerge(e[o],t[o],r):n[o]=t[o])}),n}function toPrimitive(e,t){if("object"!=_typeof$2(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof$2(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function toPropertyKey(e){var t=toPrimitive(e,"string");return"symbol"==_typeof$2(t)?t:t+""}function _defineProperty$1(e,t,r){return(t=toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function formatMuiErrorMessage(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function hexToRgb(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function hslToRgb(e){var t=(e=decomposeColor(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},a="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",u.push(t[3])),recomposeColor({type:a,values:u})}function decomposeColor(e){if(e.type)return e;if("#"===e.charAt(0))return decomposeColor(hexToRgb(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(formatMuiErrorMessage(3,e));var n=e.substring(t+1,e.length-1).split(",");return n=n.map(function(e){return parseFloat(e)}),{type:r,values:n}}function recomposeColor(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function getContrastRatio(e,t){var r=getLuminance(e),n=getLuminance(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function getLuminance(e){var t="hsl"===(e=decomposeColor(e)).type?decomposeColor(hslToRgb(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function emphasize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return getLuminance(e)>.5?darken(e,t):lighten(e,t)}function alpha(e,t){return e=decomposeColor(e),t=clamp$1(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,recomposeColor(e)}function darken(e,t){if(e=decomposeColor(e),t=clamp$1(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return recomposeColor(e)}function lighten(e,t){if(e=decomposeColor(e),t=clamp$1(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return recomposeColor(e)}function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function _objectWithoutProperties$1(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose$2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n0?n:e)-s/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return r[e]}},a)}function createMixins(e,t,r){var n;return _extends$2({gutters:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),_extends$2({paddingLeft:t(2),paddingRight:t(2)},r,_defineProperty$1({},e.up("sm"),_extends$2({paddingLeft:t(3),paddingRight:t(3)},r[e.up("sm")])))},toolbar:(n={minHeight:56},_defineProperty$1(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),_defineProperty$1(n,e.up("sm"),{minHeight:64}),n)},r)}var light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:grey$1[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:grey$1[800],default:"#303030"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=lighten(e.main,o):"dark"===t&&(e.dark=darken(e.main,i)))}function createPalette(e){var t=e.primary,r=void 0===t?{light:indigo$1[300],main:indigo$1[500],dark:indigo$1[700]}:t,n=e.secondary,o=void 0===n?{light:pink$1.A200,main:pink$1.A400,dark:pink$1.A700}:n,i=e.error,s=void 0===i?{light:red$1[300],main:red$1[500],dark:red$1[700]}:i,a=e.warning,u=void 0===a?{light:orange$1[300],main:orange$1[500],dark:orange$1[700]}:a,c=e.info,l=void 0===c?{light:blue$1[300],main:blue$1[500],dark:blue$1[700]}:c,f=e.success,d=void 0===f?{light:green$1[300],main:green$1[500],dark:green$1[700]}:f,p=e.type,h=void 0===p?"light":p,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,A=void 0===y?.2:y,b=_objectWithoutProperties$1(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function v(e){return getContrastRatio(e,dark.text.primary)>=g?dark.text.primary:light.text.primary}var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=_extends$2({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(formatMuiErrorMessage(4,t));if("string"!=typeof e.main)throw new Error(formatMuiErrorMessage(5,JSON.stringify(e.main)));return addLightOrDark(e,"light",r,A),addLightOrDark(e,"dark",n,A),e.contrastText||(e.contrastText=v(e.main)),e},w={dark:dark,light:light};return deepmerge(_extends$2({common:common$1,type:h,primary:_(r),secondary:_(o,"A400","A200","A700"),error:_(s),warning:_(u),info:_(l),success:_(d),grey:grey$1,contrastThreshold:g,getContrastText:v,augmentColor:_,tonalOffset:A},w[h]),b)}function round$3(e){return Math.round(1e5*e)/1e5}function roundWithDeprecationWarning(e){return round$3(e)}var caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(e,t){var r="function"==typeof t?t(e):t,n=r.fontFamily,o=void 0===n?defaultFontFamily:n,i=r.fontSize,s=void 0===i?14:i,a=r.fontWeightLight,u=void 0===a?300:a,c=r.fontWeightRegular,l=void 0===c?400:c,f=r.fontWeightMedium,d=void 0===f?500:f,p=r.fontWeightBold,h=void 0===p?700:p,m=r.htmlFontSize,g=void 0===m?16:m,y=r.allVariants,A=r.pxToRem,b=_objectWithoutProperties$1(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),v=s/14,_=A||function(e){return"".concat(e/g*v,"rem")},w=function(e,t,r,n,i){return _extends$2({fontFamily:o,fontWeight:e,fontSize:_(t),lineHeight:r},o===defaultFontFamily?{letterSpacing:"".concat(round$3(n/t),"em")}:{},i,y)},S={h1:w(u,96,1.167,-1.5),h2:w(u,60,1.2,-.5),h3:w(l,48,1.167,0),h4:w(l,34,1.235,.25),h5:w(l,24,1.334,0),h6:w(d,20,1.6,.15),subtitle1:w(l,16,1.75,.15),subtitle2:w(d,14,1.57,.1),body1:w(l,16,1.5,.15),body2:w(l,14,1.43,.15),button:w(d,14,1.75,.4,caseAllCaps),caption:w(l,12,1.66,.4),overline:w(l,12,2.66,1,caseAllCaps)};return deepmerge(_extends$2({htmlFontSize:g,pxToRem:_,round:roundWithDeprecationWarning,fontFamily:o,fontSize:s,fontWeightLight:u,fontWeightRegular:l,fontWeightMedium:d,fontWeightBold:h},S),b,{clone:!1})}var shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(shadowKeyUmbraOpacity,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(shadowAmbientShadowOpacity,")")].join(",")}var shadows$1=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$2=shadows$1,shape={borderRadius:4},shape$1=shape;function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r2){if(!aliases[e])return[e];e=aliases[e]}var t=_slicedToArray(e.split(""),2),r=t[0],n=t[1],o=properties[r],i=directions[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),spacingKeys=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function createUnarySpacing(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function getValue(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}function getStyleFromPropValue(e,t){return function(r){return e.reduce(function(e,n){return e[n]=getValue(t,r),e},{})}}function spacing(e){var t=createUnarySpacing(e.theme);return Object.keys(e).map(function(r){if(-1===spacingKeys.indexOf(r))return null;var n=getStyleFromPropValue(getCssProperties(r),t),o=e[r];return handleBreakpoints(e,o,n)}).reduce(merge$3,{})}spacing.propTypes={},spacing.filterProps=spacingKeys;var fontFamily=style$1({prop:"fontFamily",themeKey:"typography"}),fontSize=style$1({prop:"fontSize",themeKey:"typography"}),fontStyle=style$1({prop:"fontStyle",themeKey:"typography"}),fontWeight=style$1({prop:"fontWeight",themeKey:"typography"}),letterSpacing=style$1({prop:"letterSpacing"}),lineHeight=style$1({prop:"lineHeight"}),textAlign=style$1({prop:"textAlign"}),typography=compose(fontFamily,fontSize,fontStyle,fontWeight,letterSpacing,lineHeight,textAlign),typography$1=typography;function createSpacing(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=createUnarySpacing({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.duration,n=void 0===r?duration.standard:r,o=t.easing,i=void 0===o?easing.easeInOut:o,s=t.delay,a=void 0===s?0:s;return _objectWithoutProperties$1(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof n?n:formatMs(n)," ").concat(i," ").concat("string"==typeof a?a:formatMs(a))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},zIndex={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex;function createTheme(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,n=e.mixins,o=void 0===n?{}:n,i=e.palette,s=void 0===i?{}:i,a=e.spacing,u=e.typography,c=void 0===u?{}:u,l=_objectWithoutProperties$1(e,["breakpoints","mixins","palette","spacing","typography"]),f=createPalette(s),d=createBreakpoints(r),p=createSpacing(a),h=deepmerge({breakpoints:d,direction:"ltr",mixins:createMixins(d,p,o),overrides:{},palette:f,props:{},shadows:shadows$2,typography:createTypography(f,c),spacing:p,shape:shape$1,transitions:transitions,zIndex:zIndex$1},l),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,s=void 0===i?"":i,a=""===s?"":"".concat(s,"-"),u=0,c=function(){return u+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==pseudoClasses.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(a).concat(n,"-").concat(e.key);return t.options.theme[nested]&&""===s?"".concat(i,"-").concat(c()):i}return"".concat(a).concat(o).concat(c())}}function createStyles$1(e){return e}function getThemeProps(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},isBrowser="object"===("undefined"==typeof window?"undefined":_typeof$1(window))&&"object"===("undefined"==typeof document?"undefined":_typeof$1(document))&&9===document.nodeType;function _defineProperties$2(e,t){for(var r=0;r<+~=|^:(),"'`\s])/g,nativeEscape="undefined"!=typeof CSS&&CSS.escape,escape$1=function(e){return nativeEscape?nativeEscape(e):e.replace(escapeRegex,"\\$1")},BaseStyleRule=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!n)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var u=this.options.sheet;return u&&u.attached,this},e}(),StyleRule=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,s=n.scoped,a=n.sheet,u=n.generateId;return i?o.selectorText=i:!1!==s&&(o.id=u(_assertThisInitialized$1(_assertThisInitialized$1(o)),a),o.selectorText="."+escape$1(o.id)),o}_inheritsLoose$2(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=toCssValue(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?_extends$2({},e,{allowEmpty:!0}):e;return toCss(this.selectorText,this.style,r)},_createClass$2(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(BaseStyleRule),pluginStyleRule={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new StyleRule(e,t,r)}},defaultToStringOptions={indent:1,children:!0},atRegExp=/@([\w-]+)/,ConditionalRule=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(atRegExp);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new RuleList(_extends$2({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=defaultToStringOptions);var t=getWhitespaceSymbols(e).linebreak;if(null==e.indent&&(e.indent=defaultToStringOptions.indent),null==e.children&&(e.children=defaultToStringOptions.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),keyRegExp=/@container|@media|@supports\s+/,pluginConditionalRule={onCreateRule:function(e,t,r){return keyRegExp.test(e)?new ConditionalRule(e,t,r):null}},defaultToStringOptions$1={indent:1,children:!0},nameRegExp=/@keyframes\s+([\w-]+)/,KeyframesRule=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(nameRegExp);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,s=r.generateId;for(var a in this.id=!1===o?this.name:escape$1(s(this,i)),this.rules=new RuleList(_extends$2({},r,{parent:this})),t)this.rules.add(a,t[a],_extends$2({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=defaultToStringOptions$1);var t=getWhitespaceSymbols(e).linebreak;if(null==e.indent&&(e.indent=defaultToStringOptions$1.indent),null==e.children&&(e.children=defaultToStringOptions$1.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),keyRegExp$1=/@keyframes\s+/,refRegExp$1=/\$([\w-]+)/g,findReferencedKeyframe=function(e,t){return"string"==typeof e?e.replace(refRegExp$1,function(e,r){return r in t?t[r]:e}):e},replaceRef=function(e,t,r){var n=e[t],o=findReferencedKeyframe(n,r);o!==n&&(e[t]=o)},pluginKeyframesRule={onCreateRule:function(e,t,r){return"string"==typeof e&&keyRegExp$1.test(e)?new KeyframesRule(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&replaceRef(e,"animation-name",r.keyframes),"animation"in e&&replaceRef(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return findReferencedKeyframe(e,n.keyframes);default:return e}}},KeyframeRule=function(e){function t(){return e.apply(this,arguments)||this}return _inheritsLoose$2(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?_extends$2({},e,{allowEmpty:!0}):e;return toCss(this.key,this.style,r)},t}(BaseStyleRule),pluginKeyframeRule={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new KeyframeRule(e,t,r):null}},FontFaceRule=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=getWhitespaceSymbols(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n=this.index)t.push(e);else for(var n=0;nr)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=_objectWithoutPropertiesLoose$2(t,["attached"]),o=getWhitespaceSymbols(n).linebreak,i="",s=0;s-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},removeProperty=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},setSelector=function(e,t){return e.selectorText=t,e.selectorText===t},getHead=memoize(function(){return document.querySelector("head")});function findHigherSheet(e,t){for(var r=0;rt.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function findHighestSheet(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function findCommentNode(e){for(var t=getHead(),r=0;r0){var r=findHigherSheet(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if((r=findHighestSheet(t,e))&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=findCommentNode(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}function insertStyle(e,t){var r=t.insertionPoint,n=findPrevNode(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else getHead().appendChild(e)}var getNonce=memoize(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),_insertRule=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},getValidRuleInsertionIndex=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},createStyle=function(){var e=document.createElement("style");return e.textContent="\n",e},DomRenderer=function(){function e(e){this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.hasInsertedRules=!1,this.cssRules=[],e&&sheets.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||createStyle(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=getNonce();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){insertStyle(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r{if("string"!=typeof n&&!Array.isArray(n))throw new TypeError("Expected the input to be `string | string[]`");if(o={pascalCase:!1,preserveConsecutiveUppercase:!1,...o},n=Array.isArray(n)?n.map(e=>e.trim()).filter(e=>e.length).join("-"):n.trim(),0===n.length)return"";const l=!1===o.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(o.locale),u=!1===o.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(o.locale);if(1===n.length)return o.pascalCase?u(n):l(n);return n!==l(n)&&(n=((r,n,o)=>{let i=!1,s=!1,a=!1;for(let l=0;l(r.lastIndex=0,e.replace(r,e=>t(e))))(n,l):l(n),o.pascalCase&&(n=u(n.charAt(0))+n.slice(1)),((e,t)=>(s.lastIndex=0,a.lastIndex=0,e.replace(s,(e,r)=>t(r)).replace(a,e=>t(e))))(n,u)};return camelcase$1.exports=l,camelcase$1.exports.default=l,camelcase$1.exports}var camelcaseExports=requireCamelcase(),camelcase=getDefaultExportFromCjs(camelcaseExports),n$1,l$2,u$3,i$3,r$3,o$2,e$2,f$2,c$2,s$2,a$2,h$1,p$2={},v$1=[],y$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w$2=Array.isArray;function d$1(e,t){for(var r in t)e[r]=t[r];return e}function g$2(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _$2(e,t,r){var n,o,i,s={};for(i in t)"key"==i?n=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?n$1.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return m$1(e,s,n,o,null)}function m$1(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$3:o,__i:-1,__u:0};return null==o&&null!=l$2.vnode&&l$2.vnode(i),i}function b$1(){return{current:null}}function k$2(e){return e.children}function x$3(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var r;ta&&i$3.sort(e$2),e=i$3.shift(),a=i$3.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],s=[],t.__P&&((r=d$1({},n)).__v=n.__v+1,l$2.vnode&&l$2.vnode(r),O$1(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?S(n):o,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,N$1(i,r,s),r.__e!=o&&C$2(r)));$$2.__r=0}function I$1(e,t,r,n,o,i,s,a,l,u,c){var d,f,p,h,m,g,y=n&&n.__k||v$1,A=t.length;for(l=P$3(r,t,y,l,A),d=0;d0?m$1(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!=(u=s.__i=L$1(s,r,l,d))&&(d--,(a=r[u])&&(a.__u|=2)),null==a||null==a.__v?(-1==u&&(o>c?f--:ol?f--:f++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i(c?1:0))for(o=r-1,i=r+1;o>=0||i=0?o--:i++])&&!(2&u.__u)&&a==u.key&&l==u.type)return s;return-1}function T$2(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||y$1.test(t)?r:r+"px"}function j$3(e,t,r,n,o){var i,s;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||T$2(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||T$2(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(f$2,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=c$2,e.addEventListener(t,i?a$2:s$2,i)):e.removeEventListener(t,i?a$2:s$2,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function F$2(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=c$2++;else if(t.t0?e:w$2(e)?e.map(V$2):d$1({},e)}function q$3(e,t,r,n,o,i,s,a,l){var u,c,d,f,p,h,m,g=r.props,y=t.props,A=t.type;if("svg"==A?o="http://www.w3.org/2000/svg":"math"==A?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u2&&(a.children=arguments.length>3?n$1.call(arguments,2):r),m$1(e.type,a,n||e.key,o||e.ref,null)}function Q$1(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,M$1(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+h$1++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}n$1=v$1.slice,l$2={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},u$3=0,x$3.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d$1({},this.state),"function"==typeof e&&(e=e(d$1({},r),this.props)),e&&d$1(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),M$1(this))},x$3.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M$1(this))},x$3.prototype.render=k$2,i$3=[],o$2="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$2=function(e,t){return e.__v.__b-t.__v.__b},$$2.__r=0,f$2=/(PointerCapture)$|Capture$/i,c$2=0,s$2=F$2(!1),a$2=F$2(!0),h$1=0;var t$1,r$2,u$2,i$2,o$1=0,f$1=[],c$1=l$2,e$1=c$1.__b,a$1=c$1.__r,v=c$1.diffed,l$1=c$1.__c,m=c$1.unmount,s$1=c$1.__;function p$1(e,t){c$1.__h&&c$1.__h(r$2,e,o$1||t),o$1=0;var r=r$2.__H||(r$2.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function d(e){return o$1=1,h(D$2,e)}function h(e,t,r){var n=p$1(t$1++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):D$2(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=r$2,!r$2.__f)){var o=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var s=n.__c.props!==e;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),i&&i.call(this,e,t,r)||s};r$2.__f=!0;var i=r$2.shouldComponentUpdate,s=r$2.componentWillUpdate;r$2.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,o(e,t,r),i=n}s&&s.call(this,e,t,r)},r$2.shouldComponentUpdate=o}return n.__N||n.__}function y(e,t){var r=p$1(t$1++,3);!c$1.__s&&C$1(r.__H,t)&&(r.__=e,r.u=t,r$2.__H.__h.push(r))}function _$1(e,t){var r=p$1(t$1++,4);!c$1.__s&&C$1(r.__H,t)&&(r.__=e,r.u=t,r$2.__h.push(r))}function A$1(e){return o$1=5,T$1(function(){return{current:e}},[])}function F$1(e,t,r){o$1=6,_$1(function(){if("function"==typeof e){var r=e(t());return function(){e(null),r&&"function"==typeof r&&r()}}if(e)return e.current=t(),function(){return e.current=null}},null==r?r:r.concat(e))}function T$1(e,t){var r=p$1(t$1++,7);return C$1(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function q$2(e,t){return o$1=8,T$1(function(){return e},t)}function x$2(e){var t=r$2.context[e.__c],r=p$1(t$1++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(r$2)),t.props.value):e.__}function P$2(e,t){c$1.useDebugValue&&c$1.useDebugValue(t?t(e):e)}function b(e){var t=p$1(t$1++,10),r=d();return t.__=e,r$2.componentDidCatch||(r$2.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function g$1(){var e=p$1(t$1++,11);if(!e.__){for(var t=r$2.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function j$2(){for(var e;e=f$1.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(z$2),e.__H.__h.forEach(B$1),e.__H.__h=[]}catch(t){e.__H.__h=[],c$1.__e(t,e.__v)}}c$1.__b=function(e){r$2=null,e$1&&e$1(e)},c$1.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),s$1&&s$1(e,t)},c$1.__r=function(e){a$1&&a$1(e),t$1=0;var t=(r$2=e.__c).__H;t&&(u$2===r$2?(t.__h=[],r$2.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(z$2),t.__h.forEach(B$1),t.__h=[],t$1=0)),u$2=r$2},c$1.diffed=function(e){v&&v(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f$1.push(t)&&i$2===c$1.requestAnimationFrame||((i$2=c$1.requestAnimationFrame)||w$1)(j$2)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),u$2=r$2=null},c$1.__c=function(e,t){t.some(function(e){try{e.__h.forEach(z$2),e.__h=e.__h.filter(function(e){return!e.__||B$1(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],c$1.__e(r,e.__v)}}),l$1&&l$1(e,t)},c$1.unmount=function(e){m&&m(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{z$2(e)}catch(e){t=e}}),r.__H=void 0,t&&c$1.__e(t,r.__v))};var k$1="function"==typeof requestAnimationFrame;function w$1(e){var t,r=function(){clearTimeout(n),k$1&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);k$1&&(t=requestAnimationFrame(r))}function z$2(e){var t=r$2,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),r$2=t}function B$1(e){var t=r$2;e.__c=e.__(),r$2=t}function C$1(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function D$2(e,t){return"function"==typeof t?t(e):t}function g(e,t){for(var r in t)e[r]=t[r];return e}function E(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function C(e,t){var r=t(),n=d({t:{__:r,u:t}}),o=n[0].t,i=n[1];return _$1(function(){o.__=r,o.u=t,x$1(o)&&i({t:o})},[e,r,t]),y(function(){return x$1(o)&&i({t:o}),e(function(){x$1(o)&&i({t:o})})},[e]),r}function x$1(e){var t,r,n=e.u,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(e){return!0}}function R$1(e){e()}function w(e){return e}function k(){return[!1,R$1]}var I=_$1;function N(e,t){this.props=e,this.context=t}function M(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:E(this.props,e)}function n(t){return this.shouldComponentUpdate=r,_$2(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(N.prototype=new x$3).isPureReactComponent=!0,N.prototype.shouldComponentUpdate=function(e,t){return E(this.props,e)||E(this.state,t)};var T=l$2.__b;l$2.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function D$1(e){function t(t){var r=g({},t);return delete r.ref,e(r,t.ref||null)}return t.$$typeof=A,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var L=function(e,t){return null==e?null:H$2(H$2(e).map(t))},O={map:L,forEach:L,count:function(e){return e?H$2(e).length:0},only:function(e){var t=H$2(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:H$2},F=l$2.__e;l$2.__e=function(e,t,r,n){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);F(e,t,r,n)};var U=l$2.unmount;function V$1(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=g({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return V$1(e,t,r)})),e}function W$1(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return W$1(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function P$1(){this.__u=0,this.o=null,this.__b=null}function j$1(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function z$1(e){var t,r,n;function o(o){if(t||(t=e()).then(function(e){r=e.default||e},function(e){n=e}),n)throw n;if(!r)throw t;return _$2(r,o)}return o.displayName="Lazy",o.__f=!0,o}function B(){this.i=null,this.l=null}l$2.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),U&&U(e)},(P$1.prototype=new x$3).__c=function(e,t){var r=t.__c,n=this;null==n.o&&(n.o=[]),n.o.push(r);var o=j$1(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=W$1(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},P$1.prototype.componentWillUnmount=function(){this.o=[]},P$1.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=V$1(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&_$2(k$2,null,e.fallback);return o&&(o.__u&=-33),[_$2(k$2,null,t.__a?null:e.children),o]};var H$1=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),t.h.removeChild(e)}}}G$1(_$2(Z,{context:t.context},e.__v),t.v)}function $$1(e,t){var r=_$2(Y$1,{__v:e,h:t});return r.containerInfo=t,r}(B.prototype=new x$3).__a=function(e){var t=this,r=j$1(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),H$1(t,e,n)):o()};r?r(i):i()}},B.prototype.render=function(e){this.i=null,this.l=new Map;var t=H$2(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){H$1(e,r,t)})};var q$1="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J$1=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X$1=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function nn(e,t,r){return null==t.__k&&(t.textContent=""),G$1(e,t),"function"==typeof r&&r(),e?e.__c:null}function tn(e,t,r){return J$2(e,t),"function"==typeof r&&r(),e?e.__c:null}x$3.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(x$3.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var en=l$2.event;function rn(){}function un(){return this.cancelBubble}function on$1(){return this.defaultPrevented}l$2.event=function(e){return en&&(e=en(e)),e.persist=rn,e.isPropagationStopped=un,e.isDefaultPrevented=on$1,e.nativeEvent=e};var ln$1,cn={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=l$2.vnode;l$2.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},o=-1===r.indexOf("-");for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||Q&&"children"===i&&"noscript"===r||"class"===i||"className"===i)){var a=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"translate"===a&&"no"===s?s=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==r&&"textarea"!==r||X$1(t.type)?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":J$1.test(i)&&(i=a):a=i="oninput":o&&G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===a&&n[i=a]&&(i="oninputCapture"),n[i]=s}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=H$2(t.children).forEach(function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)})),"select"==r&&null!=n.defaultValue&&(n.value=H$2(t.children).forEach(function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value})),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",cn)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=q$1,fn&&fn(e)};var an=l$2.__r;l$2.__r=function(e){an&&an(e),ln$1=e.__c};var sn=l$2.diffed;l$2.diffed=function(e){sn&&sn(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),ln$1=null};var hn={ReactCurrentDispatcher:{current:{readContext:function(e){return ln$1.__n[e.__c].props.value},useCallback:q$2,useContext:x$2,useDebugValue:P$2,useDeferredValue:w,useEffect:y,useId:g$1,useImperativeHandle:F$1,useInsertionEffect:I,useLayoutEffect:_$1,useMemo:T$1,useReducer:h,useRef:A$1,useState:d,useSyncExternalStore:C,useTransition:k}}},vn="18.3.1";function dn(e){return _$2.bind(null,e)}function mn(e){return!!e&&e.$$typeof===q$1}function pn(e){return mn(e)&&e.type===k$2}function yn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _n(e){return mn(e)?K$1.apply(null,arguments):e}function bn(e){return!!e.__k&&(G$1(null,e),!0)}function Sn(e){return e&&(e.base||1===e.nodeType&&e)||null}var gn=function(e,t){return e(t)},En=function(e,t){return e(t)},Cn=k$2,xn=mn,Rn={useState:d,useId:g$1,useReducer:h,useEffect:y,useLayoutEffect:_$1,useInsertionEffect:I,useTransition:k,useDeferredValue:w,useSyncExternalStore:C,startTransition:R$1,useRef:A$1,useImperativeHandle:F$1,useMemo:T$1,useCallback:q$2,useContext:x$2,useDebugValue:P$2,version:"18.3.1",Children:O,render:nn,hydrate:tn,unmountComponentAtNode:bn,createPortal:$$1,createElement:_$2,createContext:Q$1,createFactory:dn,cloneElement:_n,createRef:b$1,Fragment:k$2,isValidElement:mn,isElement:xn,isFragment:pn,isMemo:yn,findDOMNode:Sn,Component:x$3,PureComponent:N,memo:M,forwardRef:D$1,flushSync:En,unstable_batchedUpdates:gn,StrictMode:Cn,Suspense:P$1,SuspenseList:B,lazy:z$1,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hn},React=Object.freeze({__proto__:null,Children:O,Component:x$3,Fragment:k$2,PureComponent:N,StrictMode:Cn,Suspense:P$1,SuspenseList:B,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hn,cloneElement:_n,createContext:Q$1,createElement:_$2,createFactory:dn,createPortal:$$1,createRef:b$1,default:Rn,findDOMNode:Sn,flushSync:En,forwardRef:D$1,hydrate:tn,isElement:xn,isFragment:pn,isMemo:yn,isValidElement:mn,lazy:z$1,memo:M,render:nn,startTransition:R$1,unmountComponentAtNode:bn,unstable_batchedUpdates:gn,useCallback:q$2,useContext:x$2,useDebugValue:P$2,useDeferredValue:w,useEffect:y,useErrorBoundary:b,useId:g$1,useImperativeHandle:F$1,useInsertionEffect:I,useLayoutEffect:_$1,useMemo:T$1,useReducer:h,useRef:A$1,useState:d,useSyncExternalStore:C,useTransition:k,version:vn});const common={black:"#000",white:"#fff"},red={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},purple={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},blue={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},lightBlue={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},green={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},orange={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function formatMuiErrorMessage(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}var THEME_ID="$$material";function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(e,t){for(;--t&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(e,caret()+(t<6&&32==peek()&&32==next()))}function delimiter(e){for(;next();)switch(character){case e:return position;case 34:case 39:34!==e&&39!==e&&delimiter(character);break;case 40:41===e&&delimiter(e);break;case 92:next()}return position}function commenter(e,t){for(;next()&&e+character!==57&&(e+character!==84||47!==peek()););return"/*"+slice(t,position-1)+"*"+from(47===e?e:next())}function identifier(e){for(;!token(peek());)next();return slice(e,position)}function compile(e){return dealloc(parse$1("",null,null,null,[""],e=alloc(e),0,[0],e))}function parse$1(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,h=0,m=1,g=1,y=1,A=0,b="",v=o,w=i,S=n,_=b;g;)switch(h=A,A=next()){case 40:if(108!=h&&58==charat(_,d-1)){-1!=indexof(_+=replace(delimit(A),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:_+=delimit(A);break;case 9:case 10:case 13:case 32:_+=whitespace(h);break;case 92:_+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),t,r),l);break;default:_+="/"}break;case 123*m:a[u++]=strlen(_)*y;case 125*m:case 59:case 0:switch(A){case 0:case 125:g=0;case 59+c:-1==y&&(_=replace(_,/\f/g,"")),p>0&&strlen(_)-d&&append(p>32?declaration(_+";",n,r,d-1):declaration(replace(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(append(S=ruleset(_,t,r,u,c,o,a,b,v=[],w=[],d),i),123===A)if(0===c)parse$1(_,t,S,S,v,i,d,a,w);else switch(99===f&&110===charat(_,3)?100:f){case 100:case 108:case 109:case 115:parse$1(e,S,S,n&&append(ruleset(e,S,S,0,0,o,a,b,o,v=[],d),w),o,w,d,a,n?v:w);break;default:parse$1(_,S,S,S,[""],w,0,a,w)}}u=c=p=0,m=y=1,b=_="",d=s;break;case 58:d=1+strlen(_),p=h;default:if(m<1)if(123==A)--m;else if(125==A&&0==m++&&125==prev$1())continue;switch(_+=from(A),A*m){case 38:y=c>0?1:(_+="\f",-1);break;case 44:a[u++]=(strlen(_)-1)*y,y=1;break;case 64:45===peek()&&(_+=delimit(next())),f=peek(),c=d=strlen(b=_+=identifier(caret())),A++;break;case 45:45===h&&2==strlen(_)&&(m=0)}}return i}function ruleset(e,t,r,n,o,i,s,a,l,u,c){for(var d=o-1,f=0===o?i:[""],p=sizeof(f),h=0,m=0,g=0;h0?f[y]+" "+A:replace(A,/&\f/g,f[y])))&&(l[g++]=b);return node(e,t,r,0===o?RULESET:a,l,u,c)}function comment(e,t,r){return node(e,t,r,COMMENT,from(char()),substr(e,2,-2),0)}function declaration(e,t,r,n){return node(e,t,r,DECLARATION,substr(e,0,n),substr(e,n+1,-1),n)}function serialize(e,t){for(var r="",n=sizeof(e),o=0;o6)switch(charat(e,t+1)){case 109:if(45!==charat(e,t+4))break;case 102:return replace(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch")?prefix(replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat(e,t+1))break;case 6444:switch(charat(e,strlen(e)-3-(~indexof(e,"!important")&&10))){case 107:return replace(e,":",":"+WEBKIT)+e;case 101:return replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(e,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+e}break;case 5936:switch(charat(e,t+11)){case 114:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT+e+MS+e+e}return e}var prefixer=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length);break;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],n);case RULESET:if(e.length)return combine(e.props,function(t){switch(match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(e,{props:[replace(t,/:(read-\w+)/,":"+MOZ+"$1")]})],n);case"::placeholder":return serialize([copy(e,{props:[replace(t,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(t,/:(plac\w+)/,MS+"input-$1")]})],n)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,i=e.stylisPlugins||defaultStylisPlugins,s={},a=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize$1(function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,function(e,t,r){return cursor={name:t,styles:r,next:cursor},t})}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"};function handleInterpolation(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return cursor={name:o.name,styles:o.styles,next:cursor},o.name;var i=r;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)cursor={name:s.name,styles:s.styles,next:cursor},s=s.next;return i.styles+";"}return createStringFromObject(e,t,r);case"function":if(void 0!==e){var a=cursor,l=r(e);return cursor=a,handleInterpolation(e,t,l)}}var u=r;if(null==t)return u;var c=t[u];return void 0!==c?c:u}function createStringFromObject(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Insertion=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return registerStyles(t,r,n),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(t,r,n)}),null},createStyled$1=function e(t,r){var n,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var a=composeShouldForwardProps(t,r,i),l=a||getDefaultShouldForwardProp(s),u=!l("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,h=1;ht(isEmpty$2(e)?r:e):t})} /** - * A better abstraction over CSS. + * @mui/styled-engine v7.3.3 * - * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present - * @website https://github.com/cssinjs/jss * @license MIT - */createJss();var now=Date.now(),fnValuesNs="fnValues"+now,fnRuleNs="fnStyle"+ ++now,functionPlugin=function(){return{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=createRule(e,{},r);return n[fnRuleNs]=t,n},onProcessStyle:function(e,t){if(fnValuesNs in t||fnRuleNs in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[fnValuesNs]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[fnRuleNs];i&&(o.style=i(e)||{});var s=o[fnValuesNs];if(s)for(var a in s)o.prop(a,s[a](e),n)}}},functions=functionPlugin,at$1="@global",atPrefix="@global ",GlobalContainerRule=function(){function e(e,t,r){for(var n in this.type="global",this.at=at$1,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new RuleList(_extends$2({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),GlobalPrefixedRule=function(){function e(e,t,r){this.type="global",this.at=at$1,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(atPrefix.length);this.rule=r.jss.createRule(n,t,_extends$2({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),separatorRegExp$1=/\s*,\s*/g;function addScope(e,t){for(var r=e.split(separatorRegExp$1),n="",o=0;o-1){var o=propMap$1[e];if(!Array.isArray(o))return prefix.js+pascalize(o)in t&&prefix.css+o;if(!n)return!1;for(var i=0;it?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i2&&(s.children=arguments.length>3?n$3.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return m$4(e,s,n,o,null)}function m$4(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$3:o,__i:-1,__u:0};return null==o&&null!=l$4.vnode&&l$4.vnode(i),i}function b$3(){return{current:null}}function k$3(e){return e.children}function x$3(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var r;ta&&i$5.sort(e$3),e=i$5.shift(),a=i$5.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],s=[],t.__P&&((r=d$4({},n)).__v=n.__v+1,l$4.vnode&&l$4.vnode(r),O$1(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?S(n):o,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,N$2(i,r,s),r.__e!=o&&C$2(r)));$$1.__r=0}function I$1(e,t,r,n,o,i,s,a,u,c,l){var f,d,p,h,m,g,y=n&&n.__k||v$4,A=t.length;for(u=P$3(r,t,y,u,A),f=0;f0?m$4(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!=(c=s.__i=L(s,r,u,f))&&(f--,(a=r[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(o>l?d--:ou?d--:d++,s.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(l?1:0))for(o=r-1,i=r+1;o>=0||i=0?o--:i++])&&!(2&c.__u)&&a==c.key&&u==c.type)return s;return-1}function T$2(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||y$3.test(t)?r:r+"px"}function j$3(e,t,r,n,o){var i,s;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||T$2(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||T$2(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(f$3,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=c$4,e.addEventListener(t,i?a$2:s$2,i)):e.removeEventListener(t,i?a$2:s$2,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function F$3(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=c$4++;else if(t.t0?e:w$4(e)?e.map(V$2):d$4({},e)}function q$5(e,t,r,n,o,i,s,a,u){var c,l,f,d,p,h,m,g=r.props,y=t.props,A=t.type;if("svg"==A?o="http://www.w3.org/2000/svg":"math"==A?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c2&&(a.children=arguments.length>3?n$3.call(arguments,2):r),m$4(e.type,a,n||e.key,o||e.ref,null)}function Q$1(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,M$1(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+h$3++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}n$3=v$4.slice,l$4={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},u$3=0,t$3=function(e){return null!=e&&null==e.constructor},x$3.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d$4({},this.state),"function"==typeof e&&(e=e(d$4({},r),this.props)),e&&d$4(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),M$1(this))},x$3.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M$1(this))},x$3.prototype.render=k$3,i$5=[],o$2="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$3=function(e,t){return e.__v.__b-t.__v.__b},$$1.__r=0,f$3=/(PointerCapture)$|Capture$/i,c$4=0,s$2=F$3(!1),a$2=F$3(!0),h$3=0;var preact_module=Object.freeze({__proto__:null,Component:x$3,Fragment:k$3,cloneElement:K$6,createContext:Q$1,createElement:_$2,createRef:b$3,h:_$2,hydrate:J$2,get isValidElement(){return t$3},get options(){return l$4},render:G$2,toChildArray:H$3}),require$$0$3=getAugmentedNamespace(preact_module),t$2,r$4,u$2,i$4,o$1=0,f$2=[],c$3=l$4,e$2=c$3.__b,a$1=c$3.__r,v$3=c$3.diffed,l$3=c$3.__c,m$3=c$3.unmount,s$1=c$3.__;function p$3(e,t){c$3.__h&&c$3.__h(r$4,e,o$1||t),o$1=0;var r=r$4.__H||(r$4.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function d$3(e){return o$1=1,h$2(D$1,e)}function h$2(e,t,r){var n=p$3(t$2++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):D$1(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=r$4,!r$4.__f)){var o=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var s=n.__c.props!==e;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),i&&i.call(this,e,t,r)||s};r$4.__f=!0;var i=r$4.shouldComponentUpdate,s=r$4.componentWillUpdate;r$4.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,o(e,t,r),i=n}s&&s.call(this,e,t,r)},r$4.shouldComponentUpdate=o}return n.__N||n.__}function y$2(e,t){var r=p$3(t$2++,3);!c$3.__s&&C$1(r.__H,t)&&(r.__=e,r.u=t,r$4.__H.__h.push(r))}function _$1(e,t){var r=p$3(t$2++,4);!c$3.__s&&C$1(r.__H,t)&&(r.__=e,r.u=t,r$4.__h.push(r))}function A$3(e){return o$1=5,T$1(function(){return{current:e}},[])}function F$2(e,t,r){o$1=6,_$1(function(){if("function"==typeof e){var r=e(t());return function(){e(null),r&&"function"==typeof r&&r()}}if(e)return e.current=t(),function(){return e.current=null}},null==r?r:r.concat(e))}function T$1(e,t){var r=p$3(t$2++,7);return C$1(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function q$4(e,t){return o$1=8,T$1(function(){return e},t)}function x$2(e){var t=r$4.context[e.__c],r=p$3(t$2++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(r$4)),t.props.value):e.__}function P$2(e,t){c$3.useDebugValue&&c$3.useDebugValue(t?t(e):e)}function b$2(e){var t=p$3(t$2++,10),r=d$3();return t.__=e,r$4.componentDidCatch||(r$4.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function g$3(){var e=p$3(t$2++,11);if(!e.__){for(var t=r$4.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function j$2(){for(var e;e=f$2.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(z$3),e.__H.__h.forEach(B$2),e.__H.__h=[]}catch(t){e.__H.__h=[],c$3.__e(t,e.__v)}}c$3.__b=function(e){r$4=null,e$2&&e$2(e)},c$3.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),s$1&&s$1(e,t)},c$3.__r=function(e){a$1&&a$1(e),t$2=0;var t=(r$4=e.__c).__H;t&&(u$2===r$4?(t.__h=[],r$4.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(z$3),t.__h.forEach(B$2),t.__h=[],t$2=0)),u$2=r$4},c$3.diffed=function(e){v$3&&v$3(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f$2.push(t)&&i$4===c$3.requestAnimationFrame||((i$4=c$3.requestAnimationFrame)||w$3)(j$2)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),u$2=r$4=null},c$3.__c=function(e,t){t.some(function(e){try{e.__h.forEach(z$3),e.__h=e.__h.filter(function(e){return!e.__||B$2(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],c$3.__e(r,e.__v)}}),l$3&&l$3(e,t)},c$3.unmount=function(e){m$3&&m$3(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{z$3(e)}catch(e){t=e}}),r.__H=void 0,t&&c$3.__e(t,r.__v))};var k$2="function"==typeof requestAnimationFrame;function w$3(e){var t,r=function(){clearTimeout(n),k$2&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);k$2&&(t=requestAnimationFrame(r))}function z$3(e){var t=r$4,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),r$4=t}function B$2(e){var t=r$4;e.__c=e.__(),r$4=t}function C$1(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function D$1(e,t){return"function"==typeof t?t(e):t}var hooks_module=Object.freeze({__proto__:null,useCallback:q$4,useContext:x$2,useDebugValue:P$2,useEffect:y$2,useErrorBoundary:b$2,useId:g$3,useImperativeHandle:F$2,useLayoutEffect:_$1,useMemo:T$1,useReducer:h$2,useRef:A$3,useState:d$3}),require$$1$1=getAugmentedNamespace(hooks_module);!function(e){var t=require$$0$3,r=require$$1$1;function n(e,t){for(var r in t)e[r]=t[r];return e}function o(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function i(e,t){var n=t(),o=r.useState({t:{__:n,u:t}}),i=o[0].t,a=o[1];return r.useLayoutEffect(function(){i.__=n,i.u=t,s(i)&&a({t:i})},[e,n,t]),r.useEffect(function(){return s(i)&&a({t:i}),e(function(){s(i)&&a({t:i})})},[e]),n}function s(e){var t,r,n=e.u,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(e){return!0}}function a(e){e()}function u(e){return e}function c(){return[!1,a]}var l=r.useLayoutEffect;function f(e,t){this.props=e,this.context=t}function d(e,r){function n(e){var t=this.props.ref,n=t==e.ref;return!n&&t&&(t.call?t(null):t.current=null),r?!r(this.props,e)||!n:o(this.props,e)}function i(r){return this.shouldComponentUpdate=n,t.createElement(e,r)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(f.prototype=new t.Component).isPureReactComponent=!0,f.prototype.shouldComponentUpdate=function(e,t){return o(this.props,e)||o(this.state,t)};var p=t.options.__b;t.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),p&&p(e)};var h="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function m(e){function t(t){var r=n({},t);return delete r.ref,e(r,t.ref||null)}return t.$$typeof=h,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var g=function(e,r){return null==e?null:t.toChildArray(t.toChildArray(e).map(r))},y={map:g,forEach:g,count:function(e){return e?t.toChildArray(e).length:0},only:function(e){var r=t.toChildArray(e);if(1!==r.length)throw"Children.only";return r[0]},toArray:t.toChildArray},A=t.options.__e;t.options.__e=function(e,t,r,n){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);A(e,t,r,n)};var b=t.options.unmount;function v(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=n({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return v(e,t,r)})),e}function _(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return _(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function w(){this.__u=0,this.o=null,this.__b=null}function S(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function E(e){var r,n,o;function i(i){if(r||(r=e()).then(function(e){n=e.default||e},function(e){o=e}),o)throw o;if(!n)throw r;return t.createElement(n,i)}return i.displayName="Lazy",i.__f=!0,i}function x(){this.i=null,this.l=null}t.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),b&&b(e)},(w.prototype=new t.Component).__c=function(e,t){var r=t.__c,n=this;null==n.o&&(n.o=[]),n.o.push(r);var o=S(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=_(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},w.prototype.componentWillUnmount=function(){this.o=[]},w.prototype.render=function(e,r){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=v(this.__b,n,o.__O=o.__P)}this.__b=null}var i=r.__a&&t.createElement(t.Fragment,null,e.fallback);return i&&(i.__u&=-33),[t.createElement(t.Fragment,null,r.__a?null:e.children),i]};var $=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),r.p.removeChild(e)}}}t.render(t.createElement(k,{context:r.context},e.__v),r.h)}function B(e,r){var n=t.createElement(T,{__v:e,p:r});return n.containerInfo=r,n}(x.prototype=new t.Component).__a=function(e){var t=this,r=S(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),$(t,e,n)):o()};r?r(i):i()}},x.prototype.render=function(e){this.i=null,this.l=new Map;var r=t.toChildArray(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&r.reverse();for(var n=r.length;n--;)this.l.set(r[n],this.i=[1,0,this.i]);return e.children},x.prototype.componentDidUpdate=x.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){$(e,r,t)})};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,O=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,C=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,P=/[A-Z0-9]/g,I="undefined"!=typeof document,N=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function L(e,r,n){return null==r.__k&&(r.textContent=""),t.render(e,r),"function"==typeof n&&n(),e?e.__c:null}function D(e,r,n){return t.hydrate(e,r),"function"==typeof n&&n(),e?e.__c:null}t.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(t.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var M=t.options.event;function U(){}function F(){return this.cancelBubble}function j(){return this.defaultPrevented}t.options.event=function(e){return M&&(e=M(e)),e.persist=U,e.isPropagationStopped=F,e.isDefaultPrevented=j,e.nativeEvent=e};var H,q={enumerable:!1,configurable:!0,get:function(){return this.class}},W=t.options.vnode;t.options.vnode=function(e){"string"==typeof e.type&&function(e){var r=e.props,n=e.type,o={},i=-1===n.indexOf("-");for(var s in r){var a=r[s];if(!("value"===s&&"defaultValue"in r&&null==a||I&&"children"===s&&"noscript"===n||"class"===s||"className"===s)){var u=s.toLowerCase();"defaultValue"===s&&"value"in r&&null==r.value?s="value":"download"===s&&!0===a?a="":"translate"===u&&"no"===a?a=!1:"o"===u[0]&&"n"===u[1]?"ondoubleclick"===u?s="ondblclick":"onchange"!==u||"input"!==n&&"textarea"!==n||N(r.type)?"onfocus"===u?s="onfocusin":"onblur"===u?s="onfocusout":C.test(s)&&(s=u):u=s="oninput":i&&O.test(s)?s=s.replace(P,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===u&&o[s=u]&&(s="oninputCapture"),o[s]=a}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=t.toChildArray(r.children).forEach(function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)})),"select"==n&&null!=o.defaultValue&&(o.value=t.toChildArray(r.children).forEach(function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",q)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),e.props=o}(e),e.$$typeof=R,W&&W(e)};var z=t.options.__r;t.options.__r=function(e){z&&z(e),H=e.__c};var G=t.options.diffed;t.options.diffed=function(e){G&&G(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),H=null};var V={ReactCurrentDispatcher:{current:{readContext:function(e){return H.__n[e.__c].props.value},useCallback:r.useCallback,useContext:r.useContext,useDebugValue:r.useDebugValue,useDeferredValue:u,useEffect:r.useEffect,useId:r.useId,useImperativeHandle:r.useImperativeHandle,useInsertionEffect:l,useLayoutEffect:r.useLayoutEffect,useMemo:r.useMemo,useReducer:r.useReducer,useRef:r.useRef,useState:r.useState,useSyncExternalStore:i,useTransition:c}}};function K(e){return t.createElement.bind(null,e)}function Z(e){return!!e&&e.$$typeof===R}function J(e){return Z(e)&&e.type===t.Fragment}function X(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Q(e){return Z(e)?t.cloneElement.apply(null,arguments):e}function Y(e){return!!e.__k&&(t.render(null,e),!0)}function ee(e){return e&&(e.base||1===e.nodeType&&e)||null}var te=function(e,t){return e(t)},re=function(e,t){return e(t)},ne=t.Fragment,oe=Z,ie={useState:r.useState,useId:r.useId,useReducer:r.useReducer,useEffect:r.useEffect,useLayoutEffect:r.useLayoutEffect,useInsertionEffect:l,useTransition:c,useDeferredValue:u,useSyncExternalStore:i,startTransition:a,useRef:r.useRef,useImperativeHandle:r.useImperativeHandle,useMemo:r.useMemo,useCallback:r.useCallback,useContext:r.useContext,useDebugValue:r.useDebugValue,version:"18.3.1",Children:y,render:L,hydrate:D,unmountComponentAtNode:Y,createPortal:B,createElement:t.createElement,createContext:t.createContext,createFactory:K,cloneElement:Q,createRef:t.createRef,Fragment:t.Fragment,isValidElement:Z,isElement:oe,isFragment:J,isMemo:X,findDOMNode:ee,Component:t.Component,PureComponent:f,memo:d,forwardRef:m,flushSync:re,unstable_batchedUpdates:te,StrictMode:ne,Suspense:w,SuspenseList:x,lazy:E,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:V};Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return t.Component}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return t.Fragment}}),Object.defineProperty(e,"createContext",{enumerable:!0,get:function(){return t.createContext}}),Object.defineProperty(e,"createElement",{enumerable:!0,get:function(){return t.createElement}}),Object.defineProperty(e,"createRef",{enumerable:!0,get:function(){return t.createRef}}),e.Children=y,e.PureComponent=f,e.StrictMode=ne,e.Suspense=w,e.SuspenseList=x,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,e.cloneElement=Q,e.createFactory=K,e.createPortal=B,e.default=ie,e.findDOMNode=ee,e.flushSync=re,e.forwardRef=m,e.hydrate=D,e.isElement=oe,e.isFragment=J,e.isMemo=X,e.isValidElement=Z,e.lazy=E,e.memo=d,e.render=L,e.startTransition=a,e.unmountComponentAtNode=Y,e.unstable_batchedUpdates=te,e.useDeferredValue=u,e.useInsertionEffect=l,e.useSyncExternalStore=i,e.useTransition=c,e.version="18.3.1",Object.keys(r).forEach(function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})}(compat);var p$2=getDefaultExportFromCjs(compat);function mergeClasses(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=_extends$2({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}var multiKeyStore={set:function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},get:function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},delete:function(e,t,r){e.get(t).delete(r)}},multiKeyStore$1=multiKeyStore,ThemeContext=p$2.createContext(null),ThemeContext$1=ThemeContext;function useTheme$1(){return p$2.useContext(ThemeContext$1)}var jss=createJss(jssPreset()),generateClassName=createGenerateClassName(),sheetsManager=new Map,defaultOptions={disableGeneration:!1,generateClassName:generateClassName,jss:jss,sheetsCache:null,sheetsManager:sheetsManager,sheetsRegistry:null},StylesContext=p$2.createContext(defaultOptions),indexCounter=-1e9;function increment(){return indexCounter+=1}var noopTheme={},noopTheme$1=noopTheme;function getStylesCreator(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],s=_extends$2({},o);return Object.keys(i).forEach(function(e){s[e]=deepmerge(s[e],i[e])}),s},options:{}}}function getClasses(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=mergeClasses({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function attach(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,s=e.name;if(!o.disableGeneration){var a=multiKeyStore$1.get(o.sheetsManager,i,n);a||(a={refs:0,staticSheet:null,dynamicStyles:null},multiKeyStore$1.set(o.sheetsManager,i,n,a));var u=_extends$2({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var c=o.sheetsRegistry;if(0===a.refs){var l;o.sheetsCache&&(l=multiKeyStore$1.get(o.sheetsCache,i,n));var f=i.create(n,s);l||((l=o.jss.createStyleSheet(f,_extends$2({link:!1},u))).attach(),o.sheetsCache&&multiKeyStore$1.set(o.sheetsCache,i,n,l)),c&&c.add(l),a.staticSheet=l,a.dynamicStyles=getDynamicStyles(f)}if(a.dynamicStyles){var d=o.jss.createStyleSheet(a.dynamicStyles,_extends$2({link:!0},u));d.update(t),d.attach(),r.dynamicSheet=d,r.classes=mergeClasses({baseClasses:a.staticSheet.classes,newClasses:d.classes}),c&&c.add(d)}else r.classes=a.staticSheet.classes;a.refs+=1}}function update(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function detach(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=multiKeyStore$1.get(n.sheetsManager,o,r);i.refs-=1;var s=n.sheetsRegistry;0===i.refs&&(multiKeyStore$1.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),s&&s.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),s&&s.remove(t.dynamicSheet))}}function useSynchronousEffect(e,t){var r,n=p$2.useRef([]),o=p$2.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),p$2.useEffect(function(){return function(){r&&r()}},[o])}function makeStyles$1(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,s=void 0===i?noopTheme$1:i,a=_objectWithoutProperties$1(t,["name","classNamePrefix","Component","defaultTheme"]),u=getStylesCreator(e),c=r||n||"makeStyles";u.options={index:increment(),name:r,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=useTheme$1()||s,n=_extends$2({},p$2.useContext(StylesContext),a),i=p$2.useRef(),c=p$2.useRef();return useSynchronousEffect(function(){var o={name:r,state:{},stylesCreator:u,stylesOptions:n,theme:t};return attach(o,e),c.current=!1,i.current=o,function(){detach(o)}},[t,u]),p$2.useEffect(function(){c.current&&update(i.current,e),c.current=!0}),getClasses(i.current,e.classes,o)}}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r$3(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=_objectWithoutProperties$1(n,["name"]),s=o,a=makeStyles$1("function"==typeof t?function(e){return{root:function(r){return t(_extends$2({theme:e},r))}}}:{root:t},_extends$2({Component:e,name:o||e.displayName,classNamePrefix:s},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=p$2.forwardRef(function(t,n){var o=t.children,i=t.className,s=t.clone,u=t.component,c=_objectWithoutProperties$1(t,["children","className","clone","component"]),l=clsx(a(t).root,i),f=c;if(r&&(f=omit(f,r)),s)return p$2.cloneElement(o,_extends$2({className:clsx(o.props.className,l)},f));if("function"==typeof o)return o(_extends$2({className:l},f));var d=u||e;return p$2.createElement(d,_extends$2({ref:n,className:l},f),o)});return hoistNonReactStatics$1(u,e),u}}var withStyles$1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,s=t.name,a=_objectWithoutProperties$1(t,["defaultTheme","withTheme","name"]),u=s,c=makeStyles$1(e,_extends$2({defaultTheme:n,Component:r,name:s||r.displayName,classNamePrefix:u},a)),l=p$2.forwardRef(function(e,t){e.classes;var o,a=e.innerRef,u=_objectWithoutProperties$1(e,["classes","innerRef"]),l=c(_extends$2({},r.defaultProps,e)),f=u;return("string"==typeof s||i)&&(o=useTheme$1()||n,s&&(f=getThemeProps({theme:o,name:s,props:u})),i&&!f.theme&&(f.theme=o)),p$2.createElement(r,_extends$2({ref:a||t,classes:l},f))});return hoistNonReactStatics$1(l,r),l}},withStylesWithoutDefault=withStyles$1;function createStyles(e){return createStyles$1(e)}var defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function makeStyles(e){return makeStyles$1(e,_extends$2({defaultTheme:defaultTheme$1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}var styled=function(e){var t=styled$2(e);return function(e,r){return t(e,_extends$2({defaultTheme:defaultTheme$1},r))}},styled$1=styled;function useTheme(){return useTheme$1()||defaultTheme$1}function withStyles(e,t){return withStylesWithoutDefault(e,_extends$2({defaultTheme:defaultTheme$1},t))}function capitalize(e){if("string"!=typeof e)throw new Error(formatMuiErrorMessage(7));return e.charAt(0).toUpperCase()+e.slice(1)}function createChainedFunction$1(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=arguments.length,o=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,s=t.center,a=void 0===s?n||t.pulsate:s,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&d.current)d.current=!1;else{"touchstart"===e.type&&(d.current=!0);var l,f,y,A=c?null:m.current,b=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(b.width/2),f=Math.round(b.height/2);else{var v=e.touches?e.touches[0]:e,_=v.clientX,w=v.clientY;l=Math.round(_-b.left),f=Math.round(w-b.top)}if(a)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var S=2*Math.max(Math.abs((A?A.clientWidth:0)-l),l)+2,E=2*Math.max(Math.abs((A?A.clientHeight:0)-f),f)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(E,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:l,rippleY:f,rippleSize:y,cb:r})},p.current=setTimeout(function(){h.current&&(h.current(),h.current=null)},DELAY_RIPPLE)):g({pulsate:i,rippleX:l,rippleY:f,rippleSize:y,cb:r})}},[n,g]),A=compat.useCallback(function(){y({},{pulsate:!0})},[y]),b=compat.useCallback(function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(p.current=setTimeout(function(){b(e,t)}));h.current=null,c(function(e){return e.length>0?e.slice(1):e}),f.current=t},[]);return compat.useImperativeHandle(t,function(){return{pulsate:A,start:y,stop:b}},[A,y,b]),compat.createElement("span",_extends$2({className:clsx(o.root,i),ref:m},s),compat.createElement(TransitionGroup$1,{component:null,exit:!0},u))}),TouchRipple$1=withStyles(styles$w,{flip:!1,name:"MuiTouchRipple"})(compat.memo(TouchRipple)),styles$v={root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},ButtonBase=compat.forwardRef(function(e,t){var r=e.action,n=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,s=e.children,a=e.classes,u=e.className,c=e.component,l=void 0===c?"button":c,f=e.disabled,d=void 0!==f&&f,p=e.disableRipple,h=void 0!==p&&p,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,A=void 0!==y&&y,b=e.focusVisibleClassName,v=e.onBlur,_=e.onClick,w=e.onFocus,S=e.onFocusVisible,E=e.onKeyDown,x=e.onKeyUp,$=e.onMouseDown,k=e.onMouseLeave,T=e.onMouseUp,B=e.onTouchEnd,R=e.onTouchMove,O=e.onTouchStart,C=e.onDragLeave,P=e.tabIndex,I=void 0===P?0:P,N=e.TouchRippleProps,L=e.type,D=void 0===L?"button":L,M=_objectWithoutProperties$1(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=compat.useRef(null);var F=compat.useRef(null),j=compat.useState(!1),H=j[0],q=j[1];d&&H&&q(!1);var W=useIsFocusVisible(),z=W.isFocusVisible,G=W.onBlurVisible,V=W.ref;function K(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return useEventCallback$1(function(n){return t&&t(n),!r&&F.current&&F.current[e](n),!0})}compat.useImperativeHandle(r,function(){return{focusVisible:function(){q(!0),U.current.focus()}}},[]),compat.useEffect(function(){H&&A&&!h&&F.current.pulsate()},[h,A,H]);var Z=K("start",$),J=K("stop",C),X=K("stop",T),Q=K("stop",function(e){H&&e.preventDefault(),k&&k(e)}),Y=K("start",O),ee=K("stop",B),te=K("stop",R),re=K("stop",function(e){H&&(G(e),q(!1)),v&&v(e)},!1),ne=useEventCallback$1(function(e){U.current||(U.current=e.currentTarget),z(e)&&(q(!0),S&&S(e)),w&&w(e)}),oe=function(){var e=compat.findDOMNode(U.current);return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=compat.useRef(!1),se=useEventCallback$1(function(e){A&&!ie.current&&H&&F.current&&" "===e.key&&(ie.current=!0,e.persist(),F.current.stop(e,function(){F.current.start(e)})),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!d&&(e.preventDefault(),_&&_(e))}),ae=useEventCallback$1(function(e){A&&" "===e.key&&F.current&&H&&!e.defaultPrevented&&(ie.current=!1,e.persist(),F.current.stop(e,function(){F.current.pulsate(e)})),x&&x(e),_&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&_(e)}),ue=l;"button"===ue&&M.href&&(ue="a");var ce={};"button"===ue?(ce.type=D,ce.disabled=d):("a"===ue&&M.href||(ce.role="button"),ce["aria-disabled"]=d);var le=useForkRef(n,t),fe=useForkRef(V,U),de=useForkRef(le,fe),pe=compat.useState(!1),he=pe[0],me=pe[1];compat.useEffect(function(){me(!0)},[]);var ge=he&&!h&&!d;return compat.createElement(ue,_extends$2({className:clsx(a.root,u,H&&[a.focusVisible,b],d&&a.disabled),onBlur:re,onClick:_,onFocus:ne,onKeyDown:se,onKeyUp:ae,onMouseDown:Z,onMouseLeave:Q,onMouseUp:X,onDragLeave:J,onTouchEnd:ee,onTouchMove:te,onTouchStart:Y,ref:de,tabIndex:d?-1:I},ce,M),s,ge?compat.createElement(TouchRipple$1,_extends$2({ref:F,center:i},N)):null)}),ButtonBase$1=withStyles(styles$v,{name:"MuiButtonBase"})(ButtonBase),styles$u={entering:{opacity:1},entered:{opacity:1}},defaultTimeout$2={enter:duration.enteringScreen,exit:duration.leavingScreen},Fade=compat.forwardRef(function(e,t){var r=e.children,n=e.disableStrictModeCompat,o=void 0!==n&&n,i=e.in,s=e.onEnter,a=e.onEntered,u=e.onEntering,c=e.onExit,l=e.onExited,f=e.onExiting,d=e.style,p=e.TransitionComponent,h=void 0===p?Transition$1:p,m=e.timeout,g=void 0===m?defaultTimeout$2:m,y=_objectWithoutProperties$1(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),A=useTheme(),b=A.unstable_strictMode&&!o,v=compat.useRef(null),_=useForkRef(r.ref,t),w=useForkRef(b?v:void 0,_),S=function(e){return function(t,r){if(e){var n=_slicedToArray(b?[v.current,t]:[t,r],2),o=n[0],i=n[1];void 0===i?e(o):e(o,i)}}},E=S(u),x=S(function(e,t){reflow(e);var r=getTransitionProps({style:d,timeout:g},{mode:"enter"});e.style.webkitTransition=A.transitions.create("opacity",r),e.style.transition=A.transitions.create("opacity",r),s&&s(e,t)}),$=S(a),k=S(f),T=S(function(e){var t=getTransitionProps({style:d,timeout:g},{mode:"exit"});e.style.webkitTransition=A.transitions.create("opacity",t),e.style.transition=A.transitions.create("opacity",t),c&&c(e)}),B=S(l);return compat.createElement(h,_extends$2({appear:!0,in:i,nodeRef:b?v:void 0,onEnter:x,onEntered:$,onEntering:E,onExit:T,onExited:B,onExiting:k,timeout:g},y),function(e,t){return compat.cloneElement(r,_extends$2({style:_extends$2({opacity:0,visibility:"exited"!==e||i?void 0:"hidden"},styles$u[e],d,r.props.style),ref:w},t))})}),m=Fade,styles$t={root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Backdrop=compat.forwardRef(function(e,t){var r=e.children,n=e.classes,o=e.className,i=e.invisible,s=void 0!==i&&i,a=e.open,u=e.transitionDuration,c=e.TransitionComponent,l=void 0===c?m:c,f=_objectWithoutProperties$1(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return compat.createElement(l,_extends$2({in:a,timeout:u},f),compat.createElement("div",{className:clsx(n.root,o,s&&n.invisible),"aria-hidden":!0,ref:t},r))}),Backdrop$1=withStyles(styles$t,{name:"MuiBackdrop"})(Backdrop),styleFunction=styleFunctionSx(compose(borders$1,display,flexbox$1,grid$1,positions,palette$1,shadows,sizing$1,spacing,typography$1)),Box=styled$1("div")(styleFunction,{name:"MuiBox"}),l=Box,styles$s=function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}},defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Typography=compat.forwardRef(function(e,t){var r=e.align,n=void 0===r?"inherit":r,o=e.classes,i=e.className,s=e.color,a=void 0===s?"initial":s,u=e.component,c=e.display,l=void 0===c?"initial":c,f=e.gutterBottom,d=void 0!==f&&f,p=e.noWrap,h=void 0!==p&&p,m=e.paragraph,g=void 0!==m&&m,y=e.variant,A=void 0===y?"body1":y,b=e.variantMapping,v=void 0===b?defaultVariantMapping:b,_=_objectWithoutProperties$1(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=u||(g?"p":v[A]||defaultVariantMapping[A])||"span";return compat.createElement(w,_extends$2({className:clsx(o.root,i,"inherit"!==A&&o[A],"initial"!==a&&o["color".concat(capitalize(a))],h&&o.noWrap,d&&o.gutterBottom,g&&o.paragraph,"inherit"!==n&&o["align".concat(capitalize(n))],"initial"!==l&&o["display".concat(capitalize(l))]),ref:t},_))}),t=withStyles(styles$s,{name:"MuiTypography"})(Typography),styles$r=function(e){return{root:_extends$2({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:alpha(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:alpha(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(alpha(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:alpha(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(alpha(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:alpha(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}},Button=compat.forwardRef(function(e,t){var r=e.children,n=e.classes,o=e.className,i=e.color,s=void 0===i?"default":i,a=e.component,u=void 0===a?"button":a,c=e.disabled,l=void 0!==c&&c,f=e.disableElevation,d=void 0!==f&&f,p=e.disableFocusRipple,h=void 0!==p&&p,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,A=void 0!==y&&y,b=e.size,v=void 0===b?"medium":b,_=e.startIcon,w=e.type,S=void 0===w?"button":w,E=e.variant,x=void 0===E?"text":E,$=_objectWithoutProperties$1(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),k=_&&compat.createElement("span",{className:clsx(n.startIcon,n["iconSize".concat(capitalize(v))])},_),T=m&&compat.createElement("span",{className:clsx(n.endIcon,n["iconSize".concat(capitalize(v))])},m);return compat.createElement(ButtonBase$1,_extends$2({className:clsx(n.root,n[x],o,"inherit"===s?n.colorInherit:"default"!==s&&n["".concat(x).concat(capitalize(s))],"medium"!==v&&[n["".concat(x,"Size").concat(capitalize(v))],n["size".concat(capitalize(v))]],d&&n.disableElevation,l&&n.disabled,A&&n.fullWidth),component:u,disabled:l,focusRipple:!h,focusVisibleClassName:clsx(n.focusVisible,g),ref:t,type:S},$),compat.createElement("span",{className:n.label},k,r,T))}),A=withStyles(styles$r,{name:"MuiButton"})(Button),FormControlContext=compat.createContext();function useFormControl$1(){return compat.useContext(FormControlContext)}var FormControlContext$1=FormControlContext;function useFormControl(){return compat.useContext(FormControlContext$1)}var SIZE=44,styles$q=function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}},CircularProgress=compat.forwardRef(function(e,t){var r=e.classes,n=e.className,o=e.color,i=void 0===o?"primary":o,s=e.disableShrink,a=void 0!==s&&s,u=e.size,c=void 0===u?40:u,l=e.style,f=e.thickness,d=void 0===f?3.6:f,p=e.value,h=void 0===p?0:p,m=e.variant,g=void 0===m?"indeterminate":m,y=_objectWithoutProperties$1(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),A={},b={},v={};if("determinate"===g||"static"===g){var _=2*Math.PI*((SIZE-d)/2);A.strokeDasharray=_.toFixed(3),v["aria-valuenow"]=Math.round(h),A.strokeDashoffset="".concat(((100-h)/100*_).toFixed(3),"px"),b.transform="rotate(-90deg)"}return compat.createElement("div",_extends$2({className:clsx(r.root,n,"inherit"!==i&&r["color".concat(capitalize(i))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[g]),style:_extends$2({width:c,height:c},b,l),ref:t,role:"progressbar"},v,y),compat.createElement("svg",{className:r.svg,viewBox:"".concat(SIZE/2," ").concat(SIZE/2," ").concat(SIZE," ").concat(SIZE)},compat.createElement("circle",{className:clsx(r.circle,a&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[g]),style:A,cx:SIZE,cy:SIZE,r:(SIZE-d)/2,fill:"none",strokeWidth:d})))}),c=withStyles(styles$q,{name:"MuiCircularProgress",flip:!1})(CircularProgress);function mapEventPropToEvent(e){return e.substring(2).toLowerCase()}function clickedRootScrollbar(e){return document.documentElement.clientWidth-1;else r=!ownerDocument(l.current).documentElement.contains(e.target)||l.current.contains(e.target);r||!n&&t||s(e)}}),g=function(e){return function(r){d.current=!0;var n=t.props[e];n&&n(r)}},y={ref:h};return!1!==u&&(y[u]=g(u)),compat.useEffect(function(){if(!1!==u){var e=mapEventPropToEvent(u),t=ownerDocument(l.current),r=function(){c.current=!0};return t.addEventListener(e,m),t.addEventListener("touchmove",r),function(){t.removeEventListener(e,m),t.removeEventListener("touchmove",r)}}},[m,u]),!1!==i&&(y[i]=g(i)),compat.useEffect(function(){if(!1!==i){var e=mapEventPropToEvent(i),t=ownerDocument(l.current);return t.addEventListener(e,m),function(){t.removeEventListener(e,m)}}},[m,i]),compat.createElement(compat.Fragment,null,compat.cloneElement(t,y))}function getContainer$1(e){return e="function"==typeof e?e():e,compat.findDOMNode(e)}var useEnhancedEffect$5="undefined"!=typeof window?compat.useLayoutEffect:compat.useEffect,Portal=compat.forwardRef(function(e,t){var r=e.children,n=e.container,o=e.disablePortal,i=void 0!==o&&o,s=e.onRendered,a=compat.useState(null),u=a[0],c=a[1],l=useForkRef(compat.isValidElement(r)?r.ref:null,t);return useEnhancedEffect$5(function(){i||c(getContainer$1(n)||document.body)},[n,i]),useEnhancedEffect$5(function(){if(u&&!i)return setRef(t,u),function(){setRef(t,null)}},[t,u,i]),useEnhancedEffect$5(function(){s&&(u||i)&&s()},[s,u,i]),i?compat.isValidElement(r)?compat.cloneElement(r,{ref:l}):r:u?compat.createPortal(r,u):u}),Portal$1=Portal;function getScrollbarSize(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function isOverflowing(e){var t=ownerDocument(e);return t.body===e?ownerWindow(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ariaHidden(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function getPaddingRight(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ariaHiddenSiblings(e,t,r){var n=arguments.length>4?arguments[4]:void 0,o=[t,r].concat(_toConsumableArray(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&ariaHidden(e,n)})}function findIndexOf(e,t){var r=-1;return e.some(function(e,n){return!!t(e)&&(r=n,!0)}),r}function handleContainer(e,t){var r,n=[],o=[],i=e.container;if(!t.disableScrollLock){if(isOverflowing(i)){var s=getScrollbarSize();n.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(getPaddingRight(i)+s,"px"),r=ownerDocument(i).querySelectorAll(".mui-fixed"),[].forEach.call(r,function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(getPaddingRight(e)+s,"px")})}var a=i.parentElement,u="HTML"===a.nodeName&&"scroll"===window.getComputedStyle(a)["overflow-y"]?a:i;n.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){r&&[].forEach.call(r,function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")}),n.forEach(function(e){var t=e.value,r=e.el,n=e.key;t?r.style.setProperty(n,t):r.style.removeProperty(n)})}}function getHiddenSiblings(e){var t=[];return[].forEach.call(e.children,function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}var ModalManager=function(){function e(){_classCallCheck$1(this,e),this.modals=[],this.containers=[]}return _createClass$2(e,[{key:"add",value:function(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ariaHidden(e.modalRef,!1);var n=getHiddenSiblings(t);ariaHiddenSiblings(t,e.mountNode,e.modalRef,n,!0);var o=findIndexOf(this.containers,function(e){return e.container===t});return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:n}),r)}},{key:"mount",value:function(e,t){var r=findIndexOf(this.containers,function(t){return-1!==t.modals.indexOf(e)}),n=this.containers[r];n.restore||(n.restore=handleContainer(n,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var r=findIndexOf(this.containers,function(t){return-1!==t.modals.indexOf(e)}),n=this.containers[r];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(t,1),0===n.modals.length)n.restore&&n.restore(),e.modalRef&&ariaHidden(e.modalRef,!0),ariaHiddenSiblings(n.container,e.mountNode,e.modalRef,n.hiddenSiblingNodes,!1),this.containers.splice(r,1);else{var o=n.modals[n.modals.length-1];o.modalRef&&ariaHidden(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Unstable_TrapFocus(e){var t=e.children,r=e.disableAutoFocus,n=void 0!==r&&r,o=e.disableEnforceFocus,i=void 0!==o&&o,s=e.disableRestoreFocus,a=void 0!==s&&s,u=e.getDoc,c=e.isEnabled,l=e.open,f=compat.useRef(),d=compat.useRef(null),p=compat.useRef(null),h=compat.useRef(),m=compat.useRef(null),g=compat.useCallback(function(e){m.current=compat.findDOMNode(e)},[]),y=useForkRef(t.ref,g),A=compat.useRef();return compat.useEffect(function(){A.current=l},[l]),!A.current&&l&&"undefined"!=typeof window&&(h.current=u().activeElement),compat.useEffect(function(){if(l){var e=ownerDocument(m.current);n||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!f.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():f.current=!1)},r=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.current&&(f.current=!0,t.shiftKey?p.current.focus():d.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",r,!0);var o=setInterval(function(){t()},50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",r,!0),a||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}},[n,i,a,c,l]),compat.createElement(compat.Fragment,null,compat.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),compat.cloneElement(t,{ref:y}),compat.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var styles$p={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},SimpleBackdrop=compat.forwardRef(function(e,t){var r=e.invisible,n=void 0!==r&&r,o=e.open,i=_objectWithoutProperties$1(e,["invisible","open"]);return o?compat.createElement("div",_extends$2({"aria-hidden":!0,ref:t},i,{style:_extends$2({},styles$p.root,n?styles$p.invisible:{},i.style)})):null}),SimpleBackdrop$1=SimpleBackdrop;function getContainer(e){return e="function"==typeof e?e():e,compat.findDOMNode(e)}function getHasTransition(e){return!!e.children&&e.children.props.hasOwnProperty("in")}var defaultManager=new ModalManager,styles$o=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}},Modal=compat.forwardRef(function(e,t){var r=useTheme$1(),n=getThemeProps({name:"MuiModal",props:_extends$2({},e),theme:r}),o=n.BackdropComponent,i=void 0===o?SimpleBackdrop$1:o,s=n.BackdropProps,a=n.children,u=n.closeAfterTransition,c=void 0!==u&&u,l=n.container,f=n.disableAutoFocus,d=void 0!==f&&f,p=n.disableBackdropClick,h=void 0!==p&&p,m=n.disableEnforceFocus,g=void 0!==m&&m,y=n.disableEscapeKeyDown,A=void 0!==y&&y,b=n.disablePortal,v=void 0!==b&&b,_=n.disableRestoreFocus,w=void 0!==_&&_,S=n.disableScrollLock,E=void 0!==S&&S,x=n.hideBackdrop,$=void 0!==x&&x,k=n.keepMounted,T=void 0!==k&&k,B=n.manager,R=void 0===B?defaultManager:B,O=n.onBackdropClick,C=n.onClose,P=n.onEscapeKeyDown,I=n.onRendered,N=n.open,L=_objectWithoutProperties$1(n,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),D=compat.useState(!0),M=D[0],U=D[1],F=compat.useRef({}),j=compat.useRef(null),H=compat.useRef(null),q=useForkRef(H,t),W=getHasTransition(n),z=function(){return ownerDocument(j.current)},G=function(){return F.current.modalRef=H.current,F.current.mountNode=j.current,F.current},V=function(){R.mount(G(),{disableScrollLock:E}),H.current.scrollTop=0},K=useEventCallback$1(function(){var e=getContainer(l)||z().body;R.add(G(),e),H.current&&V()}),Z=compat.useCallback(function(){return R.isTopModal(G())},[R]),J=useEventCallback$1(function(e){j.current=e,e&&(I&&I(),N&&Z()?V():ariaHidden(H.current,!0))}),X=compat.useCallback(function(){R.remove(G())},[R]);if(compat.useEffect(function(){return function(){X()}},[X]),compat.useEffect(function(){N?K():W&&c||X()},[N,X,W,c,K]),!T&&!N&&(!W||M))return null;var Q=styles$o(r||{zIndex:zIndex$1}),Y={};return void 0===a.props.tabIndex&&(Y.tabIndex=a.props.tabIndex||"-1"),W&&(Y.onEnter=createChainedFunction$1(function(){U(!1)},a.props.onEnter),Y.onExited=createChainedFunction$1(function(){U(!0),c&&X()},a.props.onExited)),compat.createElement(Portal$1,{ref:J,container:l,disablePortal:v},compat.createElement("div",_extends$2({ref:q,onKeyDown:function(e){"Escape"===e.key&&Z()&&(P&&P(e),A||(e.stopPropagation(),C&&C(e,"escapeKeyDown")))},role:"presentation"},L,{style:_extends$2({},Q.root,!N&&M?Q.hidden:{},L.style)}),$?null:compat.createElement(i,_extends$2({open:N,onClick:function(e){e.target===e.currentTarget&&(O&&O(e),!h&&C&&C(e,"backdropClick"))}},s)),compat.createElement(Unstable_TrapFocus,{disableEnforceFocus:g,disableAutoFocus:d,disableRestoreFocus:w,getDoc:z,isEnabled:Z,open:N},compat.cloneElement(a,Y))))}),Modal$1=Modal,styles$n=function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":_defineProperty$1({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":_defineProperty$1({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":_defineProperty$1({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":_defineProperty$1({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":_defineProperty$1({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}},defaultTransitionDuration={enter:duration.enteringScreen,exit:duration.leavingScreen},Dialog=compat.forwardRef(function(e,t){var r=e.BackdropProps,n=e.children,o=e.classes,i=e.className,s=e.disableBackdropClick,a=void 0!==s&&s,u=e.disableEscapeKeyDown,c=void 0!==u&&u,l=e.fullScreen,f=void 0!==l&&l,d=e.fullWidth,p=void 0!==d&&d,h=e.maxWidth,g=void 0===h?"sm":h,y=e.onBackdropClick,A=e.onClose,b=e.onEnter,v=e.onEntered,_=e.onEntering,w=e.onEscapeKeyDown,S=e.onExit,E=e.onExited,x=e.onExiting,$=e.open,k=e.PaperComponent,T=void 0===k?Paper$1:k,B=e.PaperProps,R=void 0===B?{}:B,O=e.scroll,C=void 0===O?"paper":O,P=e.TransitionComponent,I=void 0===P?m:P,N=e.transitionDuration,L=void 0===N?defaultTransitionDuration:N,D=e.TransitionProps,M=e["aria-describedby"],U=e["aria-labelledby"],F=_objectWithoutProperties$1(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),j=compat.useRef();return compat.createElement(Modal$1,_extends$2({className:clsx(o.root,i),BackdropComponent:Backdrop$1,BackdropProps:_extends$2({transitionDuration:L},r),closeAfterTransition:!0},a?{disableBackdropClick:a}:{},{disableEscapeKeyDown:c,onEscapeKeyDown:w,onClose:A,open:$,ref:t},F),compat.createElement(I,_extends$2({appear:!0,in:$,timeout:L,onEnter:b,onEntering:_,onEntered:v,onExit:S,onExiting:x,onExited:E,role:"none presentation"},D),compat.createElement("div",{className:clsx(o.container,o["scroll".concat(capitalize(C))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===j.current&&(j.current=null,y&&y(e),!a&&A&&A(e,"backdropClick"))},onMouseDown:function(e){j.current=e.target}},compat.createElement(T,_extends$2({elevation:24,role:"dialog","aria-describedby":M,"aria-labelledby":U},R,{className:clsx(o.paper,o["paperScroll".concat(capitalize(C))],o["paperWidth".concat(capitalize(String(g)))],R.className,f&&o.paperFullScreen,p&&o.paperFullWidth)}),n))))}),d=withStyles(styles$n,{name:"MuiDialog"})(Dialog);function getTranslateValue(e,t){var r,n=t.getBoundingClientRect();if(t.fakeTransform)r=t.fakeTransform;else{var o=window.getComputedStyle(t);r=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,s=0;if(r&&"none"!==r&&"string"==typeof r){var a=r.split("(")[1].split(")")[0].split(",");i=parseInt(a[4],10),s=parseInt(a[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-n.left,"px)"):"right"===e?"translateX(-".concat(n.left+n.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(s-n.top,"px)"):"translateY(-".concat(n.top+n.height-s,"px)")}function setTranslateValue(e,t){var r=getTranslateValue(e,t);r&&(t.style.webkitTransform=r,t.style.transform=r)}var defaultTimeout$1={enter:duration.enteringScreen,exit:duration.leavingScreen},Slide=compat.forwardRef(function(e,t){var r=e.children,n=e.direction,o=void 0===n?"down":n,i=e.in,s=e.onEnter,a=e.onEntered,u=e.onEntering,c=e.onExit,l=e.onExited,f=e.onExiting,d=e.style,p=e.timeout,h=void 0===p?defaultTimeout$1:p,m=e.TransitionComponent,g=void 0===m?Transition$1:m,y=_objectWithoutProperties$1(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=useTheme(),b=compat.useRef(null),v=compat.useCallback(function(e){b.current=compat.findDOMNode(e)},[]),_=useForkRef(r.ref,v),w=useForkRef(_,t),S=function(e){return function(t){e&&(void 0===t?e(b.current):e(b.current,t))}},E=S(function(e,t){setTranslateValue(o,e),reflow(e),s&&s(e,t)}),x=S(function(e,t){var r=getTransitionProps({timeout:h,style:d},{mode:"enter"});e.style.webkitTransition=A.transitions.create("-webkit-transform",_extends$2({},r,{easing:A.transitions.easing.easeOut})),e.style.transition=A.transitions.create("transform",_extends$2({},r,{easing:A.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",u&&u(e,t)}),$=S(a),k=S(f),T=S(function(e){var t=getTransitionProps({timeout:h,style:d},{mode:"exit"});e.style.webkitTransition=A.transitions.create("-webkit-transform",_extends$2({},t,{easing:A.transitions.easing.sharp})),e.style.transition=A.transitions.create("transform",_extends$2({},t,{easing:A.transitions.easing.sharp})),setTranslateValue(o,e),c&&c(e)}),B=S(function(e){e.style.webkitTransition="",e.style.transition="",l&&l(e)}),R=compat.useCallback(function(){b.current&&setTranslateValue(o,b.current)},[o]);return compat.useEffect(function(){if(!i&&"down"!==o&&"right"!==o){var e=debounce(function(){b.current&&setTranslateValue(o,b.current)});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[o,i]),compat.useEffect(function(){i||R()},[i,R]),compat.createElement(g,_extends$2({nodeRef:b,onEnter:E,onEntered:$,onEntering:x,onExit:T,onExited:B,onExiting:k,appear:!0,in:i,timeout:h},y),function(e,t){return compat.cloneElement(r,_extends$2({ref:w,style:_extends$2({visibility:"exited"!==e||i?void 0:"hidden"},d,r.props.style)},t))})}),Slide$1=Slide;function formControlState(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce(function(e,r){return e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e},{})}function getStyleValue(e,t){return parseInt(e[t],10)||0}var useEnhancedEffect$4="undefined"!=typeof window?compat.useLayoutEffect:compat.useEffect,styles$m={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}},TextareaAutosize=compat.forwardRef(function(e,t){var r=e.onChange,n=e.rows,o=e.rowsMax,i=e.rowsMin,s=e.maxRows,a=e.minRows,u=void 0===a?1:a,c=e.style,l=e.value,f=_objectWithoutProperties$1(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),d=s||o,p=n||i||u,h=compat.useRef(null!=l).current,m=compat.useRef(null),g=useForkRef(t,m),y=compat.useRef(null),A=compat.useRef(0),b=compat.useState({}),v=b[0],_=b[1],w=compat.useCallback(function(){var t=m.current,r=window.getComputedStyle(t),n=y.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var o=r["box-sizing"],i=getStyleValue(r,"padding-bottom")+getStyleValue(r,"padding-top"),s=getStyleValue(r,"border-bottom-width")+getStyleValue(r,"border-top-width"),a=n.scrollHeight-i;n.value="x";var u=n.scrollHeight-i,c=a;p&&(c=Math.max(Number(p)*u,c)),d&&(c=Math.min(Number(d)*u,c));var l=(c=Math.max(c,u))+("border-box"===o?i+s:0),f=Math.abs(c-a)<=1;_(function(e){return A.current<20&&(l>0&&Math.abs((e.outerHeightStyle||0)-l)>1||e.overflow!==f)?(A.current+=1,{overflow:f,outerHeightStyle:l}):e})},[d,p,e.placeholder]);compat.useEffect(function(){var e=debounce(function(){A.current=0,w()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}},[w]),useEnhancedEffect$4(function(){w()}),compat.useEffect(function(){A.current=0},[l]);return compat.createElement(compat.Fragment,null,compat.createElement("textarea",_extends$2({value:l,onChange:function(e){A.current=0,h||w(),r&&r(e)},ref:g,rows:p,style:_extends$2({height:v.outerHeightStyle,overflow:v.overflow?"hidden":null},c)},f)),compat.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:_extends$2({},styles$m.shadow,c)}))}),TextareaAutosize$1=TextareaAutosize;function hasValue(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function isFilled(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(hasValue(e.value)&&""!==e.value||t&&hasValue(e.defaultValue)&&""!==e.defaultValue)}function isAdornedStart(e){return e.startAdornment}var styles$l=function(e){var t="light"===e.palette.type,r={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:_extends$2({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}},useEnhancedEffect$3="undefined"==typeof window?compat.useEffect:compat.useLayoutEffect,InputBase=compat.forwardRef(function(e,t){var r=e["aria-describedby"],n=e.autoComplete,o=e.autoFocus,i=e.classes,s=e.className;e.color;var a=e.defaultValue,u=e.disabled,c=e.endAdornment;e.error;var l=e.fullWidth,f=void 0!==l&&l,d=e.id,p=e.inputComponent,h=void 0===p?"input":p,m=e.inputProps,g=void 0===m?{}:m,y=e.inputRef;e.margin;var A=e.multiline,b=void 0!==A&&A,v=e.name,_=e.onBlur,w=e.onChange,S=e.onClick,E=e.onFocus,x=e.onKeyDown,$=e.onKeyUp,k=e.placeholder,T=e.readOnly,B=e.renderSuffix,R=e.rows,O=e.rowsMax,C=e.rowsMin,P=e.maxRows,I=e.minRows,N=e.startAdornment,L=e.type,D=void 0===L?"text":L,M=e.value,U=_objectWithoutProperties$1(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),F=null!=g.value?g.value:M,j=compat.useRef(null!=F).current,H=compat.useRef(),q=compat.useCallback(function(e){},[]),W=useForkRef(g.ref,q),z=useForkRef(y,W),G=useForkRef(H,z),V=compat.useState(!1),K=V[0],Z=V[1],J=useFormControl$1(),X=formControlState({props:e,muiFormControl:J,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});X.focused=J?J.focused:K,compat.useEffect(function(){!J&&u&&K&&(Z(!1),_&&_())},[J,u,K,_]);var Q=J&&J.onFilled,Y=J&&J.onEmpty,ee=compat.useCallback(function(e){isFilled(e)?Q&&Q():Y&&Y()},[Q,Y]);useEnhancedEffect$3(function(){j&&ee({value:F})},[F,ee,j]);compat.useEffect(function(){ee(H.current)},[]);var te=h,re=_extends$2({},g,{ref:G});"string"!=typeof te?re=_extends$2({inputRef:G,type:D},re,{ref:null}):b?!R||P||I||O||C?(re=_extends$2({minRows:R||I,rowsMax:O,maxRows:P},re),te=TextareaAutosize$1):te="textarea":re=_extends$2({type:D},re);return compat.useEffect(function(){J&&J.setAdornedStart(Boolean(N))},[J,N]),compat.createElement("div",_extends$2({className:clsx(i.root,i["color".concat(capitalize(X.color||"primary"))],s,X.disabled&&i.disabled,X.error&&i.error,f&&i.fullWidth,X.focused&&i.focused,J&&i.formControl,b&&i.multiline,N&&i.adornedStart,c&&i.adornedEnd,"dense"===X.margin&&i.marginDense),onClick:function(e){H.current&&e.currentTarget===e.target&&H.current.focus(),S&&S(e)},ref:t},U),N,compat.createElement(FormControlContext$1.Provider,{value:null},compat.createElement(te,_extends$2({"aria-invalid":X.error,"aria-describedby":r,autoComplete:n,autoFocus:o,defaultValue:a,disabled:X.disabled,id:d,onAnimationStart:function(e){ee("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:v,placeholder:k,readOnly:T,required:X.required,rows:R,value:F,onKeyDown:x,onKeyUp:$},re,{className:clsx(i.input,g.className,X.disabled&&i.disabled,b&&i.inputMultiline,X.hiddenLabel&&i.inputHiddenLabel,N&&i.inputAdornedStart,c&&i.inputAdornedEnd,"search"===D&&i.inputTypeSearch,"dense"===X.margin&&i.inputMarginDense),onBlur:function(e){_&&_(e),g.onBlur&&g.onBlur(e),J&&J.onBlur?J.onBlur(e):Z(!1)},onChange:function(e){if(!j){var t=e.target||H.current;if(null==t)throw new Error(formatMuiErrorMessage(1));ee({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:1,r=parseFloat(e);return"".concat(r/t).concat(String(e).replace(String(r),"")||"px")}function generateGutter(e,t){var r={};return SPACINGS.forEach(function(n){var o=e.spacing(n);0!==o&&(r["spacing-".concat(t,"-").concat(n)]={margin:"-".concat(getOffset(o,2)),width:"calc(100% + ".concat(getOffset(o),")"),"& > $item":{padding:getOffset(o,2)}})}),r}var styles$g=function(e){return _extends$2({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},generateGutter(e,"xs"),e.breakpoints.keys.reduce(function(t,r){return generateGrid(t,e,r),t},{}))},Grid=compat.forwardRef(function(e,t){var r=e.alignContent,n=void 0===r?"stretch":r,o=e.alignItems,i=void 0===o?"stretch":o,s=e.classes,a=e.className,u=e.component,c=void 0===u?"div":u,l=e.container,f=void 0!==l&&l,d=e.direction,p=void 0===d?"row":d,h=e.item,m=void 0!==h&&h,g=e.justify,y=e.justifyContent,A=void 0===y?"flex-start":y,b=e.lg,v=void 0!==b&&b,_=e.md,w=void 0!==_&&_,S=e.sm,E=void 0!==S&&S,x=e.spacing,$=void 0===x?0:x,k=e.wrap,T=void 0===k?"wrap":k,B=e.xl,R=void 0!==B&&B,O=e.xs,C=void 0!==O&&O,P=e.zeroMinWidth,I=void 0!==P&&P,N=_objectWithoutProperties$1(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),L=clsx(s.root,a,f&&[s.container,0!==$&&s["spacing-xs-".concat(String($))]],m&&s.item,I&&s.zeroMinWidth,"row"!==p&&s["direction-xs-".concat(String(p))],"wrap"!==T&&s["wrap-xs-".concat(String(T))],"stretch"!==i&&s["align-items-xs-".concat(String(i))],"stretch"!==n&&s["align-content-xs-".concat(String(n))],"flex-start"!==(g||A)&&s["justify-content-xs-".concat(String(g||A))],!1!==C&&s["grid-xs-".concat(String(C))],!1!==E&&s["grid-sm-".concat(String(E))],!1!==w&&s["grid-md-".concat(String(w))],!1!==v&&s["grid-lg-".concat(String(v))],!1!==R&&s["grid-xl-".concat(String(R))]);return compat.createElement(c,_extends$2({className:L,ref:t},N))}),StyledGrid=withStyles(styles$g,{name:"MuiGrid"})(Grid),o=StyledGrid;function getScale(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var styles$f={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},Grow=compat.forwardRef(function(e,t){var r=e.children,n=e.disableStrictModeCompat,o=void 0!==n&&n,i=e.in,s=e.onEnter,a=e.onEntered,u=e.onEntering,c=e.onExit,l=e.onExited,f=e.onExiting,d=e.style,p=e.timeout,h=void 0===p?"auto":p,m=e.TransitionComponent,g=void 0===m?Transition$1:m,y=_objectWithoutProperties$1(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=compat.useRef(),b=compat.useRef(),v=useTheme(),_=v.unstable_strictMode&&!o,w=compat.useRef(null),S=useForkRef(r.ref,t),E=useForkRef(_?w:void 0,S),x=function(e){return function(t,r){if(e){var n=_slicedToArray(_?[w.current,t]:[t,r],2),o=n[0],i=n[1];void 0===i?e(o):e(o,i)}}},$=x(u),k=x(function(e,t){reflow(e);var r,n=getTransitionProps({style:d,timeout:h},{mode:"enter"}),o=n.duration,i=n.delay;"auto"===h?(r=v.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=o,e.style.transition=[v.transitions.create("opacity",{duration:r,delay:i}),v.transitions.create("transform",{duration:.666*r,delay:i})].join(","),s&&s(e,t)}),T=x(a),B=x(f),R=x(function(e){var t,r=getTransitionProps({style:d,timeout:h},{mode:"exit"}),n=r.duration,o=r.delay;"auto"===h?(t=v.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=n,e.style.transition=[v.transitions.create("opacity",{duration:t,delay:o}),v.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=getScale(.75),c&&c(e)}),O=x(l);return compat.useEffect(function(){return function(){clearTimeout(A.current)}},[]),compat.createElement(g,_extends$2({appear:!0,in:i,nodeRef:_?w:void 0,onEnter:k,onEntered:T,onEntering:$,onExit:R,onExited:O,onExiting:B,addEndListener:function(e,t){var r=_?e:t;"auto"===h&&(A.current=setTimeout(r,b.current||0))},timeout:"auto"===h?null:h},y),function(e,t){return compat.cloneElement(r,_extends$2({style:_extends$2({opacity:0,transform:getScale(.75),visibility:"exited"!==e||i?void 0:"hidden"},styles$f[e],d,r.props.style),ref:E},t))})});Grow.muiSupportAuto=!0;var Grow$1=Grow,styles$e=function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}},Input=compat.forwardRef(function(e,t){var r=e.disableUnderline,n=e.classes,o=e.fullWidth,i=void 0!==o&&o,s=e.inputComponent,a=void 0===s?"input":s,u=e.multiline,c=void 0!==u&&u,l=e.type,f=void 0===l?"text":l,d=_objectWithoutProperties$1(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return compat.createElement(InputBase$1,_extends$2({classes:_extends$2({},n,{root:clsx(n.root,!r&&n.underline),underline:null}),fullWidth:i,inputComponent:a,multiline:c,ref:t,type:f},d))});Input.muiName="Input";var Input$1=withStyles(styles$e,{name:"MuiInput"})(Input),styles$d=function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}},InputLabel=compat.forwardRef(function(e,t){var r=e.classes,n=e.className,o=e.disableAnimation,i=void 0!==o&&o;e.margin;var s=e.shrink;e.variant;var a=_objectWithoutProperties$1(e,["classes","className","disableAnimation","margin","shrink","variant"]),u=useFormControl(),c=s;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);var l=formControlState({props:e,muiFormControl:u,states:["margin","variant"]});return compat.createElement(FormLabel$1,_extends$2({"data-shrink":c,className:clsx(r.root,n,u&&r.formControl,!i&&r.animated,c&&r.shrink,"dense"===l.margin&&r.marginDense,{filled:r.filled,outlined:r.outlined}[l.variant]),classes:{focused:r.focused,disabled:r.disabled,error:r.error,required:r.required,asterisk:r.asterisk},ref:t},a))}),r=withStyles(styles$d,{name:"MuiInputLabel"})(InputLabel),ListContext=compat.createContext({}),ListContext$1=ListContext,styles$c={root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},List=compat.forwardRef(function(e,t){var r=e.children,n=e.classes,o=e.className,i=e.component,s=void 0===i?"ul":i,a=e.dense,u=void 0!==a&&a,c=e.disablePadding,l=void 0!==c&&c,f=e.subheader,d=_objectWithoutProperties$1(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=compat.useMemo(function(){return{dense:u}},[u]);return compat.createElement(ListContext$1.Provider,{value:p},compat.createElement(s,_extends$2({className:clsx(n.root,o,u&&n.dense,!l&&n.padding,f&&n.subheader),ref:t},d),f,r))}),List$1=withStyles(styles$c,{name:"MuiList"})(List),styles$b=function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}},useEnhancedEffect$2="undefined"==typeof window?compat.useEffect:compat.useLayoutEffect,ListItem=compat.forwardRef(function(e,t){var r=e.alignItems,n=void 0===r?"center":r,o=e.autoFocus,i=void 0!==o&&o,s=e.button,a=void 0!==s&&s,u=e.children,c=e.classes,l=e.className,f=e.component,d=e.ContainerComponent,p=void 0===d?"li":d,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=_objectWithoutProperties$1(h,["className"]),y=e.dense,A=void 0!==y&&y,b=e.disabled,v=void 0!==b&&b,_=e.disableGutters,w=void 0!==_&&_,S=e.divider,E=void 0!==S&&S,x=e.focusVisibleClassName,$=e.selected,k=void 0!==$&&$,T=_objectWithoutProperties$1(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),B=compat.useContext(ListContext$1),R={dense:A||B.dense||!1,alignItems:n},O=compat.useRef(null);useEnhancedEffect$2(function(){i&&O.current&&O.current.focus()},[i]);var C=compat.Children.toArray(u),P=C.length&&isMuiElement(C[C.length-1],["ListItemSecondaryAction"]),I=useForkRef(compat.useCallback(function(e){O.current=compat.findDOMNode(e)},[]),t),N=_extends$2({className:clsx(c.root,l,R.dense&&c.dense,!w&&c.gutters,E&&c.divider,v&&c.disabled,a&&c.button,"center"!==n&&c.alignItemsFlexStart,P&&c.secondaryAction,k&&c.selected),disabled:v},T),L=f||"li";return a&&(N.component=f||"div",N.focusVisibleClassName=clsx(c.focusVisible,x),L=ButtonBase$1),P?(L=N.component||f?L:"div","li"===p&&("li"===L?L="div":"li"===N.component&&(N.component="div")),compat.createElement(ListContext$1.Provider,{value:R},compat.createElement(p,_extends$2({className:clsx(c.container,m),ref:I},g),compat.createElement(L,N,C),C.pop()))):compat.createElement(ListContext$1.Provider,{value:R},compat.createElement(L,_extends$2({ref:I},N),C))}),ListItem$1=withStyles(styles$b,{name:"MuiListItem"})(ListItem);function getOffsetTop(e,t){var r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function getOffsetLeft(e,t){var r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function getTransformOriginValue(e){return[e.horizontal,e.vertical].map(function(e){return"number"==typeof e?"".concat(e,"px"):e}).join(" ")}function getScrollParent(e,t){for(var r=t,n=0;r&&r!==e;)n+=(r=r.parentElement).scrollTop;return n}function getAnchorEl(e){return"function"==typeof e?e():e}var styles$a={root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},Popover=compat.forwardRef(function(e,t){var r=e.action,n=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,s=e.anchorPosition,a=e.anchorReference,u=void 0===a?"anchorEl":a,c=e.children,l=e.classes,f=e.className,d=e.container,p=e.elevation,h=void 0===p?8:p,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,A=e.onEnter,b=e.onEntered,v=e.onEntering,_=e.onExit,w=e.onExited,S=e.onExiting,E=e.open,x=e.PaperProps,$=void 0===x?{}:x,k=e.transformOrigin,T=void 0===k?{vertical:"top",horizontal:"left"}:k,B=e.TransitionComponent,R=void 0===B?Grow$1:B,O=e.transitionDuration,C=void 0===O?"auto":O,P=e.TransitionProps,I=void 0===P?{}:P,N=_objectWithoutProperties$1(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),L=compat.useRef(),D=compat.useCallback(function(e){if("anchorPosition"===u)return s;var t=getAnchorEl(n),r=(t&&1===t.nodeType?t:ownerDocument(L.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:r.top+getOffsetTop(r,o),left:r.left+getOffsetLeft(r,i.horizontal)}},[n,i.horizontal,i.vertical,s,u]),M=compat.useCallback(function(e){var t=0;if(m&&"anchorEl"===u){var r=m(e);if(r&&e.contains(r)){var n=getScrollParent(e,r);t=r.offsetTop+r.clientHeight/2-n||0}}return t},[i.vertical,u,m]),U=compat.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:getOffsetTop(e,T.vertical)+t,horizontal:getOffsetLeft(e,T.horizontal)}},[T.horizontal,T.vertical]),F=compat.useCallback(function(e){var t=M(e),r={width:e.offsetWidth,height:e.offsetHeight},o=U(r,t);if("none"===u)return{top:null,left:null,transformOrigin:getTransformOriginValue(o)};var i=D(t),s=i.top-o.vertical,a=i.left-o.horizontal,c=s+r.height,l=a+r.width,f=ownerWindow(getAnchorEl(n)),d=f.innerHeight-y,p=f.innerWidth-y;if(sd){var m=c-d;s-=m,o.vertical+=m}if(ap){var A=l-p;a-=A,o.horizontal+=A}return{top:"".concat(Math.round(s),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:getTransformOriginValue(o)}},[n,u,D,M,U,y]),j=compat.useCallback(function(){var e=L.current;if(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}},[F]),H=compat.useCallback(function(e){L.current=compat.findDOMNode(e)},[]);compat.useEffect(function(){E&&j()}),compat.useImperativeHandle(r,function(){return E?{updatePosition:function(){j()}}:null},[E,j]),compat.useEffect(function(){if(E){var e=debounce(function(){j()});return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}},[E,j]);var q=C;"auto"!==C||R.muiSupportAuto||(q=void 0);var W=d||(n?ownerDocument(getAnchorEl(n)).body:void 0);return compat.createElement(Modal$1,_extends$2({container:W,open:E,ref:t,BackdropProps:{invisible:!0},className:clsx(l.root,f)},N),compat.createElement(R,_extends$2({appear:!0,in:E,onEnter:A,onEntered:b,onExit:_,onExited:w,onExiting:S,timeout:q},I,{onEntering:createChainedFunction$1(function(e,t){v&&v(e,t),j()},I.onEntering)}),compat.createElement(Paper$1,_extends$2({elevation:h,ref:H},$,{className:clsx(l.paper,$.className)}),c)))}),Popover$1=withStyles(styles$a,{name:"MuiPopover"})(Popover);function nextItem(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function previousItem(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function textCriteriaMatches(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function moveFocus(e,t,r,n,o,i){for(var s=!1,a=o(e,t,!!t&&r);a;){if(a===e.firstChild){if(s)return;s=!0}var u=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&textCriteriaMatches(a,i)&&!u)return void a.focus();a=o(e,a,r)}}var useEnhancedEffect$1="undefined"==typeof window?compat.useEffect:compat.useLayoutEffect,MenuList=compat.forwardRef(function(e,t){var r=e.actions,n=e.autoFocus,o=void 0!==n&&n,i=e.autoFocusItem,s=void 0!==i&&i,a=e.children,u=e.className,c=e.disabledItemsFocusable,l=void 0!==c&&c,f=e.disableListWrap,d=void 0!==f&&f,p=e.onKeyDown,h=e.variant,m=void 0===h?"selectedMenu":h,g=_objectWithoutProperties$1(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),y=compat.useRef(null),A=compat.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect$1(function(){o&&y.current.focus()},[o]),compat.useImperativeHandle(r,function(){return{adjustStyleForScrollbar:function(e,t){var r=!y.current.style.width;if(e.clientHeight0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);var a=n&&!o.repeating&&textCriteriaMatches(n,o);o.previousKeyMatched&&(a||moveFocus(t,n,!1,l,nextItem,o))?e.preventDefault():o.previousKeyMatched=!1}p&&p(e)},tabIndex:o?0:-1},g),_)}),MenuList$1=MenuList,RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},styles$9={paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},Menu=compat.forwardRef(function(e,t){var r=e.autoFocus,n=void 0===r||r,o=e.children,i=e.classes,s=e.disableAutoFocusItem,a=void 0!==s&&s,u=e.MenuListProps,c=void 0===u?{}:u,l=e.onClose,f=e.onEntering,d=e.open,p=e.PaperProps,h=void 0===p?{}:p,m=e.PopoverClasses,g=e.transitionDuration,y=void 0===g?"auto":g,A=e.TransitionProps,b=(A=void 0===A?{}:A).onEntering,v=_objectWithoutProperties$1(A,["onEntering"]),_=e.variant,w=void 0===_?"selectedMenu":_,S=_objectWithoutProperties$1(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),E=useTheme(),x=n&&!a&&d,$=compat.useRef(null),k=compat.useRef(null),T=-1;compat.Children.map(o,function(e,t){compat.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===T)&&(T=t))});var B=compat.Children.map(o,function(e,t){return t===T?compat.cloneElement(e,{ref:function(t){k.current=compat.findDOMNode(t),setRef(e.ref,t)}}):e});return compat.createElement(Popover$1,_extends$2({getContentAnchorEl:function(){return k.current},classes:m,onClose:l,TransitionProps:_extends$2({onEntering:function(e,t){$.current&&$.current.adjustStyleForScrollbar(e,E),f&&f(e,t),b&&b(e,t)}},v),anchorOrigin:"rtl"===E.direction?RTL_ORIGIN:LTR_ORIGIN,transformOrigin:"rtl"===E.direction?RTL_ORIGIN:LTR_ORIGIN,PaperProps:_extends$2({},h,{classes:_extends$2({},h.classes,{root:i.paper})}),open:d,ref:t,transitionDuration:y},S),compat.createElement(MenuList$1,_extends$2({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:$,autoFocus:n&&(-1===T||a),autoFocusItem:x,variant:w},c,{className:clsx(i.list,c.className)}),B))}),Menu$1=withStyles(styles$9,{name:"MuiMenu"})(Menu),styles$8=function(e){return{root:_extends$2({},e.typography.body1,_defineProperty$1({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:_extends$2({},e.typography.body2,{minHeight:"auto"})}},MenuItem=compat.forwardRef(function(e,t){var r,n=e.classes,o=e.className,i=e.component,s=void 0===i?"li":i,a=e.disableGutters,u=void 0!==a&&a,c=e.ListItemClasses,l=e.role,f=void 0===l?"menuitem":l,d=e.selected,p=e.tabIndex,h=_objectWithoutProperties$1(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(r=void 0!==p?p:-1),compat.createElement(ListItem$1,_extends$2({button:!0,role:f,tabIndex:r,component:s,selected:d,disableGutters:u,classes:_extends$2({dense:n.dense},c),className:clsx(n.root,o,d&&n.selected,!u&&n.gutters),ref:t},h))}),s=withStyles(styles$8,{name:"MuiMenuItem"})(MenuItem),NativeSelectInput=compat.forwardRef(function(e,t){var r=e.classes,n=e.className,o=e.disabled,i=e.IconComponent,s=e.inputRef,a=e.variant,u=void 0===a?"standard":a,c=_objectWithoutProperties$1(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return compat.createElement(compat.Fragment,null,compat.createElement("select",_extends$2({className:clsx(r.root,r.select,r[u],n,o&&r.disabled),disabled:o,ref:s||t},c)),e.multiple?null:compat.createElement(i,{className:clsx(r.icon,r["icon".concat(capitalize(u))],o&&r.disabled)}))}),NativeSelectInput$1=NativeSelectInput,ArrowDropDownIcon=createSvgIcon(compat.createElement("path",{d:"M7 10l5 5 5-5z"})),styles$7=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},defaultInput=compat.createElement(Input$1,null),NativeSelect=compat.forwardRef(function(e,t){var r=e.children,n=e.classes,o=e.IconComponent,i=void 0===o?ArrowDropDownIcon:o,s=e.input,a=void 0===s?defaultInput:s,u=e.inputProps;e.variant;var c=_objectWithoutProperties$1(e,["children","classes","IconComponent","input","inputProps","variant"]),l=formControlState({props:e,muiFormControl:useFormControl(),states:["variant"]});return compat.cloneElement(a,_extends$2({inputComponent:NativeSelectInput$1,inputProps:_extends$2({children:r,classes:n,IconComponent:i,variant:l.variant,type:void 0},u,a?a.props.inputProps:{}),ref:t},c))});NativeSelect.muiName="Select",withStyles(styles$7,{name:"MuiNativeSelect"})(NativeSelect);var styles$6=function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}},NotchedOutline=compat.forwardRef(function(e,t){e.children;var r=e.classes,n=e.className,o=e.label,i=e.labelWidth,s=e.notched,a=e.style,u=_objectWithoutProperties$1(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===useTheme().direction?"right":"left";if(void 0!==o)return compat.createElement("fieldset",_extends$2({"aria-hidden":!0,className:clsx(r.root,n),ref:t,style:a},u),compat.createElement("legend",{className:clsx(r.legendLabelled,s&&r.legendNotched)},o?compat.createElement("span",null,o):compat.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var l=i>0?.75*i+8:.01;return compat.createElement("fieldset",_extends$2({"aria-hidden":!0,style:_extends$2(_defineProperty$1({},"padding".concat(capitalize(c)),8),a),className:clsx(r.root,n),ref:t},u),compat.createElement("legend",{className:r.legend,style:{width:s?l:.01}},compat.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}),NotchedOutline$1=withStyles(styles$6,{name:"PrivateNotchedOutline"})(NotchedOutline),styles$5=function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}},OutlinedInput=compat.forwardRef(function(e,t){var r=e.classes,n=e.fullWidth,o=void 0!==n&&n,i=e.inputComponent,s=void 0===i?"input":i,a=e.label,u=e.labelWidth,c=void 0===u?0:u,l=e.multiline,f=void 0!==l&&l,d=e.notched,p=e.type,h=void 0===p?"text":p,m=_objectWithoutProperties$1(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return compat.createElement(InputBase$1,_extends$2({renderSuffix:function(e){return compat.createElement(NotchedOutline$1,{className:r.notchedOutline,label:a,labelWidth:c,notched:void 0!==d?d:Boolean(e.startAdornment||e.filled||e.focused)})},classes:_extends$2({},r,{root:clsx(r.root,r.underline),notchedOutline:null}),fullWidth:o,inputComponent:s,multiline:f,ref:t,type:h},m))});OutlinedInput.muiName="Input";var OutlinedInput$1=withStyles(styles$5,{name:"MuiOutlinedInput"})(OutlinedInput);function areEqualValues(e,t){return"object"===_typeof$2(t)&&null!==t?e===t:String(e)===String(t)}function isEmpty(e){return null==e||"string"==typeof e&&!e.trim()}var SelectInput=compat.forwardRef(function(e,t){var r=e["aria-label"],n=e.autoFocus,o=e.autoWidth,i=e.children,s=e.classes,a=e.className,u=e.defaultValue,c=e.disabled,l=e.displayEmpty,f=e.IconComponent,d=e.inputRef,p=e.labelId,h=e.MenuProps,m=void 0===h?{}:h,g=e.multiple,y=e.name,A=e.onBlur,b=e.onChange,v=e.onClose,_=e.onFocus,w=e.onOpen,S=e.open,E=e.readOnly,x=e.renderValue,$=e.SelectDisplayProps,k=void 0===$?{}:$,T=e.tabIndex;e.type;var B=e.value,R=e.variant,O=void 0===R?"standard":R,C=_objectWithoutProperties$1(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),P=_slicedToArray(useControlled({controlled:B,default:u,name:"Select"}),2),I=P[0],N=P[1],L=compat.useRef(null),D=compat.useState(null),M=D[0],U=D[1],F=compat.useRef(null!=S).current,j=compat.useState(),H=j[0],q=j[1],W=compat.useState(!1),z=W[0],G=W[1],V=useForkRef(t,d);compat.useImperativeHandle(V,function(){return{focus:function(){M.focus()},node:L.current,value:I}},[M,I]),compat.useEffect(function(){n&&M&&M.focus()},[n,M]),compat.useEffect(function(){if(M){var e=ownerDocument(M).getElementById(p);if(e){var t=function(){getSelection().isCollapsed&&M.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}},[p,M]);var K,Z,J=function(e,t){e?w&&w(t):v&&v(t),F||(q(o?null:M.clientWidth),G(e))},X=compat.Children.toArray(i),Q=function(e){return function(t){var r;if(g||J(!1,t),g){r=Array.isArray(I)?I.slice():[];var n=I.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;e.props.onClick&&e.props.onClick(t),I!==r&&(N(r),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:r,name:y}}),b(t,e)))}},Y=null!==M&&(F?S:z);delete C["aria-invalid"];var ee=[],te=!1;(isFilled({value:I})||l)&&(x?K=x(I):te=!0);var re=X.map(function(e){if(!compat.isValidElement(e))return null;var t;if(g){if(!Array.isArray(I))throw new Error(formatMuiErrorMessage(2));t=I.some(function(t){return areEqualValues(t,e.props.value)}),t&&te&&ee.push(e.props.children)}else(t=areEqualValues(I,e.props.value))&&te&&(Z=e.props.children);return compat.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:Q(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(K=g?ee.join(", "):Z);var ne,oe=H;!o&&F&&M&&(oe=M.clientWidth),ne=void 0!==T?T:c?null:0;var ie=k.id||(y?"mui-component-select-".concat(y):void 0);return compat.createElement(compat.Fragment,null,compat.createElement("div",_extends$2({className:clsx(s.root,s.select,s.selectMenu,s[O],a,c&&s.disabled),ref:U,tabIndex:ne,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":Y?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[p,ie].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!E){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),J(!0,e))}},onMouseDown:c||E?null:function(e){0===e.button&&(e.preventDefault(),M.focus(),J(!0,e))},onBlur:function(e){!Y&&A&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:y}}),A(e))},onFocus:_},k,{id:ie}),isEmpty(K)?compat.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):K),compat.createElement("input",_extends$2({value:Array.isArray(I)?I.join(","):I,name:y,ref:L,"aria-hidden":!0,onChange:function(e){var t=X.map(function(e){return e.props.value}).indexOf(e.target.value);if(-1!==t){var r=X[t];N(r.props.value),b&&b(e,r)}},tabIndex:-1,className:s.nativeInput,autoFocus:n},C)),compat.createElement(f,{className:clsx(s.icon,s["icon".concat(capitalize(O))],Y&&s.iconOpen,c&&s.disabled)}),compat.createElement(Menu$1,_extends$2({id:"menu-".concat(y||""),anchorEl:M,open:Y,onClose:function(e){J(!1,e)}},m,{MenuListProps:_extends$2({"aria-labelledby":p,role:"listbox",disableListWrap:!0},m.MenuListProps),PaperProps:_extends$2({},m.PaperProps,{style:_extends$2({minWidth:oe},null!=m.PaperProps?m.PaperProps.style:null)})}),re))}),SelectInput$1=SelectInput,styles$4=styles$7,_ref=compat.createElement(Input$1,null),_ref2=compat.createElement(FilledInput$1,null),Select=compat.forwardRef(function e(t,r){var n=t.autoWidth,o=void 0!==n&&n,i=t.children,s=t.classes,a=t.displayEmpty,u=void 0!==a&&a,c=t.IconComponent,l=void 0===c?ArrowDropDownIcon:c,f=t.id,d=t.input,p=t.inputProps,h=t.label,m=t.labelId,g=t.labelWidth,y=void 0===g?0:g,A=t.MenuProps,b=t.multiple,v=void 0!==b&&b,_=t.native,w=void 0!==_&&_,S=t.onClose,E=t.onOpen,x=t.open,$=t.renderValue,k=t.SelectDisplayProps,T=t.variant,B=void 0===T?"standard":T,R=_objectWithoutProperties$1(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),O=w?NativeSelectInput$1:SelectInput$1,C=formControlState({props:t,muiFormControl:useFormControl(),states:["variant"]}).variant||B,P=d||{standard:_ref,outlined:compat.createElement(OutlinedInput$1,{label:h,labelWidth:y}),filled:_ref2}[C];return compat.cloneElement(P,_extends$2({inputComponent:O,inputProps:_extends$2({children:i,IconComponent:l,variant:C,type:void 0,multiple:v},w?{id:f}:{autoWidth:o,displayEmpty:u,labelId:m,MenuProps:A,onClose:S,onOpen:E,open:x,renderValue:$,SelectDisplayProps:_extends$2({id:f},k)},p,{classes:p?mergeClasses({baseClasses:s,newClasses:p.classes,Component:e}):s},d?d.props.inputProps:{}),ref:r},R))});Select.muiName="Select";var i$3=withStyles(styles$4,{name:"MuiSelect"})(Select),variantComponent={standard:Input$1,filled:FilledInput$1,outlined:OutlinedInput$1},styles$3={root:{}},TextField=compat.forwardRef(function(e,t){var n=e.autoComplete,o=e.autoFocus,i=void 0!==o&&o,s=e.children,u=e.classes,c=e.className,l=e.color,f=void 0===l?"primary":l,d=e.defaultValue,p=e.disabled,h=void 0!==p&&p,m=e.error,g=void 0!==m&&m,y=e.FormHelperTextProps,A=e.fullWidth,b=void 0!==A&&A,v=e.helperText,_=e.hiddenLabel,w=e.id,S=e.InputLabelProps,E=e.inputProps,x=e.InputProps,$=e.inputRef,k=e.label,T=e.multiline,B=void 0!==T&&T,R=e.name,O=e.onBlur,C=e.onChange,P=e.onFocus,I=e.placeholder,N=e.required,L=void 0!==N&&N,D=e.rows,M=e.rowsMax,U=e.maxRows,F=e.minRows,j=e.select,H=void 0!==j&&j,q=e.SelectProps,W=e.type,z=e.value,G=e.variant,V=void 0===G?"standard":G,K=_objectWithoutProperties$1(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),Z={};if("outlined"===V&&(S&&void 0!==S.shrink&&(Z.notched=S.shrink),k)){var J,X=null!==(J=null==S?void 0:S.required)&&void 0!==J?J:L;Z.label=compat.createElement(compat.Fragment,null,k,X&&" *")}H&&(q&&q.native||(Z.id=void 0),Z["aria-describedby"]=void 0);var Q=v&&w?"".concat(w,"-helper-text"):void 0,Y=k&&w?"".concat(w,"-label"):void 0,ee=variantComponent[V],te=compat.createElement(ee,_extends$2({"aria-describedby":Q,autoComplete:n,autoFocus:i,defaultValue:d,fullWidth:b,multiline:B,name:R,rows:D,rowsMax:M,maxRows:U,minRows:F,type:W,value:z,id:w,inputRef:$,onBlur:O,onChange:C,onFocus:P,placeholder:I,inputProps:E},Z,x));return compat.createElement(a,_extends$2({className:clsx(u.root,c),disabled:h,error:g,fullWidth:b,hiddenLabel:_,ref:t,required:L,color:f,variant:V},K),k&&compat.createElement(r,_extends$2({htmlFor:w,id:Y},S),k),H?compat.createElement(i$3,_extends$2({"aria-describedby":Q,id:w,labelId:Y,value:z,input:te},q),s):te,v&&compat.createElement(FormHelperText$1,_extends$2({id:Q},y),v))}),n=withStyles(styles$3,{name:"MuiTextField"})(TextField),styles$2={entering:{transform:"none"},entered:{transform:"none"}},defaultTimeout={enter:duration.enteringScreen,exit:duration.leavingScreen},Zoom=compat.forwardRef(function(e,t){var r=e.children,n=e.disableStrictModeCompat,o=void 0!==n&&n,i=e.in,s=e.onEnter,a=e.onEntered,u=e.onEntering,c=e.onExit,l=e.onExited,f=e.onExiting,d=e.style,p=e.timeout,h=void 0===p?defaultTimeout:p,m=e.TransitionComponent,g=void 0===m?Transition$1:m,y=_objectWithoutProperties$1(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=useTheme(),b=A.unstable_strictMode&&!o,v=compat.useRef(null),_=useForkRef(r.ref,t),w=useForkRef(b?v:void 0,_),S=function(e){return function(t,r){if(e){var n=_slicedToArray(b?[v.current,t]:[t,r],2),o=n[0],i=n[1];void 0===i?e(o):e(o,i)}}},E=S(u),x=S(function(e,t){reflow(e);var r=getTransitionProps({style:d,timeout:h},{mode:"enter"});e.style.webkitTransition=A.transitions.create("transform",r),e.style.transition=A.transitions.create("transform",r),s&&s(e,t)}),$=S(a),k=S(f),T=S(function(e){var t=getTransitionProps({style:d,timeout:h},{mode:"exit"});e.style.webkitTransition=A.transitions.create("transform",t),e.style.transition=A.transitions.create("transform",t),c&&c(e)}),B=S(l);return compat.createElement(g,_extends$2({appear:!0,in:i,nodeRef:b?v:void 0,onEnter:x,onEntered:$,onEntering:E,onExit:T,onExited:B,onExiting:k,timeout:h},y),function(e,t){return compat.cloneElement(r,_extends$2({style:_extends$2({transform:"scale(0)",visibility:"exited"!==e||i?void 0:"hidden"},styles$2[e],d,r.props.style),ref:w},t))})}),u=Zoom,inherits_browser={exports:{}};"function"==typeof Object.create?inherits_browser.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var inherits_browserExports=inherits_browser.exports,safeBuffer={exports:{}},global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lookup$3=[],revLookup$1=[],Arr$1="undefined"!=typeof Uint8Array?Uint8Array:Array,inited=!1;function init$1(){inited=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)lookup$3[t]=e[t],revLookup$1[e.charCodeAt(t)]=t;revLookup$1["-".charCodeAt(0)]=62,revLookup$1["_".charCodeAt(0)]=63}function toByteArray$1(e){var t,r,n,o,i,s;inited||init$1();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new Arr$1(3*a/4-i),n=i>0?a-4:a;var u=0;for(t=0,r=0;t>16&255,s[u++]=o>>8&255,s[u++]=255&o;return 2===i?(o=revLookup$1[e.charCodeAt(t)]<<2|revLookup$1[e.charCodeAt(t+1)]>>4,s[u++]=255&o):1===i&&(o=revLookup$1[e.charCodeAt(t)]<<10|revLookup$1[e.charCodeAt(t+1)]<<4|revLookup$1[e.charCodeAt(t+2)]>>2,s[u++]=o>>8&255,s[u++]=255&o),s}function tripletToBase64$1(e){return lookup$3[e>>18&63]+lookup$3[e>>12&63]+lookup$3[e>>6&63]+lookup$3[63&e]}function encodeChunk$1(e,t,r){for(var n,o=[],i=t;iu?u:a+s));return 1===n?(t=e[r-1],o+=lookup$3[t>>2],o+=lookup$3[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=lookup$3[t>>10],o+=lookup$3[t>>4&63],o+=lookup$3[t<<2&63],o+="="),i.push(o),i.join("")}function read(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<>1,l=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)}function write(e,t,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=h,a/=256,o-=8);for(s=s<0;e[r+p]=255&s,p+=h,s/=256,c-=8);e[r+p-h]|=128*m}var toString$4={}.toString,isArray$4=Array.isArray||function(e){return"[object Array]"==toString$4.call(e)},INSPECT_MAX_BYTES=50;Buffer$f.TYPED_ARRAY_SUPPORT=void 0===global$1.TYPED_ARRAY_SUPPORT||global$1.TYPED_ARRAY_SUPPORT;var _kMaxLength=kMaxLength();function kMaxLength(){return Buffer$f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,t){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function SlowBuffer(e){return+e!=e&&(e=0),Buffer$f.alloc(+e)}function internalIsBuffer(e){return!(null==e||!e._isBuffer)}function byteLength$2(e,t){if(internalIsBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(n)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),n=!0}}function slowToString(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,r);case"utf8":case"utf-8":return utf8Slice(this,t,r);case"ascii":return asciiSlice(this,t,r);case"latin1":case"binary":return latin1Slice(this,t,r);case"base64":return base64Slice(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function swap(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function bidirectionalIndexOf(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Buffer$f.from(t,n)),internalIsBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,r,n,o);if("number"==typeof t)return t&=255,Buffer$f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,o){var i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=r;ia&&(r=a-u),i=r;i>=0;i--){for(var f=!0,d=0;do&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return decodeCodePointsArray(n)}Buffer$f.poolSize=8192,Buffer$f._augment=function(e){return e.__proto__=Buffer$f.prototype,e},Buffer$f.from=function(e,t,r){return from(null,e,t,r)},Buffer$f.TYPED_ARRAY_SUPPORT&&(Buffer$f.prototype.__proto__=Uint8Array.prototype,Buffer$f.__proto__=Uint8Array),Buffer$f.alloc=function(e,t,r){return alloc(null,e,t,r)},Buffer$f.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer$f.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer$f.isBuffer=isBuffer$3,Buffer$f.compare=function(e,t){if(!internalIsBuffer(e)||!internalIsBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},Buffer$f.prototype.compare=function(e,t,r,n,o){if(!internalIsBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(n,o),c=e.slice(t,r),l=0;lo)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return hexWrite(this,e,t,r);case"utf8":case"utf-8":return utf8Write(this,e,t,r);case"ascii":return asciiWrite(this,e,t,r);case"latin1":case"binary":return latin1Write(this,e,t,r);case"base64":return base64Write(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Buffer$f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var o="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,o,i){if(!internalIsBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o>>8*(n?o:1-o)}function objectWriteUInt32(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o>>8*(n?o:3-o)&255}function checkIEEE754(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(e,t,r,n,o){return o||checkIEEE754(e,t,r,4),write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,o){return o||checkIEEE754(e,t,r,8),write(e,t,r,n,52,8),r+8}Buffer$f.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(o*=256);)n+=this[e+--t]*o;return n},Buffer$f.prototype.readUInt8=function(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer$f.prototype.readUInt16LE=function(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer$f.prototype.readUInt16BE=function(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer$f.prototype.readUInt32LE=function(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer$f.prototype.readUInt32BE=function(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer$f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},Buffer$f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Buffer$f.prototype.readInt8=function(e,t){return t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer$f.prototype.readInt16LE=function(e,t){t||checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer$f.prototype.readInt16BE=function(e,t){t||checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer$f.prototype.readInt32LE=function(e,t){return t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer$f.prototype.readInt32BE=function(e,t){return t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer$f.prototype.readFloatLE=function(e,t){return t||checkOffset(e,4,this.length),read(this,e,!0,23,4)},Buffer$f.prototype.readFloatBE=function(e,t){return t||checkOffset(e,4,this.length),read(this,e,!1,23,4)},Buffer$f.prototype.readDoubleLE=function(e,t){return t||checkOffset(e,8,this.length),read(this,e,!0,52,8)},Buffer$f.prototype.readDoubleBE=function(e,t){return t||checkOffset(e,8,this.length),read(this,e,!1,52,8)},Buffer$f.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||checkInt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Buffer$f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,1,255,0),Buffer$f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer$f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,65535,0),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer$f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,65535,0),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer$f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,4294967295,0),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):objectWriteUInt32(this,e,t,!0),t+4},Buffer$f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,4294967295,0),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer$f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);checkInt(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s|0)-a&255;return t+r},Buffer$f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,1,127,-128),Buffer$f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer$f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,32767,-32768),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer$f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,32767,-32768),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer$f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,2147483647,-2147483648),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):objectWriteUInt32(this,e,t,!0),t+4},Buffer$f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer$f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer$f.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer$f.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer$f.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer$f.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer$f.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(i<1e3||!Buffer$f.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function asciiToBytes(e){for(var t=[],r=0;r>8,o=r%256,i.push(o),i.push(n);return i}function base64ToBytes(e){return toByteArray$1(base64clean(e))}function blitBuffer(e,t,r,n){for(var o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function isnan(e){return e!=e}function isBuffer$3(e){return null!=e&&(!!e._isBuffer||isFastBuffer(e)||isSlowBuffer(e))}function isFastBuffer(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&isFastBuffer(e.slice(0,0))}var bufferEs6=Object.freeze({__proto__:null,Buffer:Buffer$f,INSPECT_MAX_BYTES:INSPECT_MAX_BYTES,SlowBuffer:SlowBuffer,isBuffer:isBuffer$3,kMaxLength:_kMaxLength}),require$$0$2=getAugmentedNamespace(bufferEs6); -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -safeBuffer.exports,function(e,t){var r=require$$0$2,n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(safeBuffer,safeBuffer.exports);var safeBufferExports=safeBuffer.exports,readableBrowser={exports:{}},domain;function EventHandlers(){}function EventEmitter(){EventEmitter.init.call(this)}function $getMaxListeners(e){return void 0===e._maxListeners?EventEmitter.defaultMaxListeners:e._maxListeners}function emitNone(e,t,r){if(t)e.call(r);else for(var n=e.length,o=arrayClone(e,n),i=0;i0&&s.length>o){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,emitWarning(a)}}else s=i[t]=r,++e._eventsCount;return e}function emitWarning(e){"function"==typeof console.warn?console.warn(e):console.log(e)}function _onceWrap(e,t,r){var n=!1;function o(){e.removeListener(t,o),n||(n=!0,r.apply(e,arguments))}return o.listener=r,o}function listenerCount$1(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function spliceOne(e,t){for(var r=t,n=r+1,o=e.length;n0;)if(r[i]===t||r[i].listener&&r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;if(1===r.length){if(r[0]=void 0,0===--this._eventsCount)return this._events=new EventHandlers,this;delete n[e]}else spliceOne(r,o);n.removeListener&&this.emit("removeListener",e,s||t)}return this},EventEmitter.prototype.removeAllListeners=function(e){var t,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new EventHandlers,this._eventsCount=0):r[e]&&(0===--this._eventsCount?this._events=new EventHandlers:delete r[e]),this;if(0===arguments.length){for(var n,o=Object.keys(r),i=0;i0?Reflect.ownKeys(this._events):[]};var events=Object.freeze({__proto__:null,default:EventEmitter,EventEmitter:EventEmitter}),require$$0$1=getAugmentedNamespace(events),streamBrowser=require$$0$1.EventEmitter;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var cachedSetTimeout=defaultSetTimout,cachedClearTimeout=defaultClearTimeout;function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}"function"==typeof global$1.setTimeout&&(cachedSetTimeout=setTimeout),"function"==typeof global$1.clearTimeout&&(cachedClearTimeout=clearTimeout);var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex1)for(var r=1;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),isBoolean$2(t)?r.showHidden=t:t&&_extend(r,t),isUndefined$2(r.showHidden)&&(r.showHidden=!1),isUndefined$2(r.depth)&&(r.depth=2),isUndefined$2(r.colors)&&(r.colors=!1),isUndefined$2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=stylizeWithColor),formatValue(r,e,r.depth)}function stylizeWithColor(e,t){var r=inspect.styles[t];return r?"["+inspect.colors[r][0]+"m"+e+"["+inspect.colors[r][1]+"m":e}function stylizeNoColor(e,t){return e}function arrayToHash(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function formatValue(e,t,r){if(e.customInspect&&t&&isFunction$2(t.inspect)&&t.inspect!==inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return isString$2(n)||(n=formatValue(e,n,r)),n}var o=formatPrimitive(e,t);if(o)return o;var i=Object.keys(t),s=arrayToHash(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),isError(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return formatError(t);if(0===i.length){if(isFunction$2(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(isRegExp$2(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(isDate$2(t))return e.stylize(Date.prototype.toString.call(t),"date");if(isError(t))return formatError(t)}var u,c="",l=!1,f=["{","}"];(isArray$3(t)&&(l=!0,f=["[","]"]),isFunction$2(t))&&(c=" [Function"+(t.name?": "+t.name:"")+"]");return isRegExp$2(t)&&(c=" "+RegExp.prototype.toString.call(t)),isDate$2(t)&&(c=" "+Date.prototype.toUTCString.call(t)),isError(t)&&(c=" "+formatError(t)),0!==i.length||l&&0!=t.length?r<0?isRegExp$2(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=l?formatArray(e,t,r,s,i):i.map(function(n){return formatProperty(e,t,r,s,n,l)}),e.seen.pop(),reduceToSingleString(u,c,f)):f[0]+c+f[1]}function formatPrimitive(e,t){if(isUndefined$2(t))return e.stylize("undefined","undefined");if(isString$2(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return isNumber$2(t)?e.stylize(""+t,"number"):isBoolean$2(t)?e.stylize(""+t,"boolean"):isNull(t)?e.stylize("null","null"):void 0}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatArray(e,t,r,n,o){for(var i=[],s=0,a=t.length;s-1&&(a=i?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),isUndefined$2(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function reduceToSingleString(e,t,r){var n=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function isArray$3(e){return Array.isArray(e)}function isBoolean$2(e){return"boolean"==typeof e}function isNull(e){return null===e}function isNullOrUndefined(e){return null==e}function isNumber$2(e){return"number"==typeof e}function isString$2(e){return"string"==typeof e}function isSymbol(e){return"symbol"==typeof e}function isUndefined$2(e){return void 0===e}function isRegExp$2(e){return isObject$3(e)&&"[object RegExp]"===objectToString(e)}function isObject$3(e){return"object"==typeof e&&null!==e}function isDate$2(e){return isObject$3(e)&&"[object Date]"===objectToString(e)}function isError(e){return isObject$3(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction$2(e){return"function"==typeof e}function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function isBuffer$2(e){return Buffer$f.isBuffer(e)}function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return e<10?"0"+e.toString(10):e.toString(10)}inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var e=new Date,t=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),months[e.getMonth()],t].join(" ")}function log$1(){console.log("%s - %s",timestamp(),format$1.apply(null,arguments))}function _extend(e,t){if(!t||!isObject$3(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function hasOwnProperty$2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var util$7={inherits:inherits$e,_extend:_extend,log:log$1,isBuffer:isBuffer$2,isPrimitive:isPrimitive,isFunction:isFunction$2,isError:isError,isDate:isDate$2,isObject:isObject$3,isRegExp:isRegExp$2,isUndefined:isUndefined$2,isSymbol:isSymbol,isString:isString$2,isNumber:isNumber$2,isNullOrUndefined:isNullOrUndefined,isNull:isNull,isBoolean:isBoolean$2,isArray:isArray$3,inspect:inspect,deprecate:deprecate$1,format:format$1,debuglog:debuglog},util$8=Object.freeze({__proto__:null,format:format$1,deprecate:deprecate$1,debuglog:debuglog,inspect:inspect,isArray:isArray$3,isBoolean:isBoolean$2,isNull:isNull,isNullOrUndefined:isNullOrUndefined,isNumber:isNumber$2,isString:isString$2,isSymbol:isSymbol,isUndefined:isUndefined$2,isRegExp:isRegExp$2,isObject:isObject$3,isDate:isDate$2,isError:isError,isFunction:isFunction$2,isPrimitive:isPrimitive,isBuffer:isBuffer$2,log:log$1,inherits:inherits$e,_extend:_extend,default:util$7}),require$$3=getAugmentedNamespace(util$8),buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var n=1;n0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),r=this.head,n=0;r;)u(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0===(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,s),0===(e-=s)){s===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(s));break}++n}return this.length-=n,t}},{key:a,value:function(e,r){return s(this,t(t({},r),{},{depth:0,customInspect:!1}))}}],o&&n(r.prototype,o),c&&n(r,c),Object.defineProperty(r,"prototype",{writable:!1}),e}(),buffer_list}function destroy(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return n||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,e)):process.nextTick(emitErrorNT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?process.nextTick(emitCloseNT,r):(r._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,r,e)):process.nextTick(emitErrorAndCloseNT,r,e):t?(process.nextTick(emitCloseNT,r),t(e)):process.nextTick(emitCloseNT,r)}),this)}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t),emitCloseNT(e)}function emitCloseNT(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var destroy_1={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy},errorsBrowser={};function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var codes={};function createErrorType(e,t,r){r||(r=Error);var n=function(e){function r(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return _inheritsLoose$1(r,e),r}(r);n.prototype.name=r.name,n.prototype.code=e,codes[e]=n}function oneOf(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function startsWith(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function endsWith$2(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function includes(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}createErrorType("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,o;if("string"==typeof t&&startsWith(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",endsWith$2(e," argument"))o="The ".concat(e," ").concat(n," ").concat(oneOf(t,"type"));else{var i=includes(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(n," ").concat(oneOf(t,"type"))}return o+=". Received type ".concat(typeof r)},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function getHighWaterMark(e,t,r,n){var o=highWaterMarkFrom(t,n,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new ERR_INVALID_OPT_VALUE(n?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}var state={getHighWaterMark:getHighWaterMark},browser$2=deprecate,_stream_writable,hasRequired_stream_writable,_stream_duplex,hasRequired_stream_duplex;function deprecate(e,t){if(config$1("noDeprecation"))return e;var r=!1;return function(){if(!r){if(config$1("throwDeprecation"))throw new Error(t);config$1("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function config$1(e){try{if(!commonjsGlobal.localStorage)return!1}catch(e){return!1}var t=commonjsGlobal.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var t;hasRequired_stream_writable=1,_stream_writable=_,_.WritableState=v;var r={deprecate:browser$2},n=streamBrowser,o=require$$0$2.Buffer,i=(void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,a=destroy_1,u=state.getHighWaterMark,c=errorsBrowser.codes,l=c.ERR_INVALID_ARG_TYPE,f=c.ERR_METHOD_NOT_IMPLEMENTED,d=c.ERR_MULTIPLE_CALLBACK,p=c.ERR_STREAM_CANNOT_PIPE,h=c.ERR_STREAM_DESTROYED,m=c.ERR_STREAM_NULL_VALUES,g=c.ERR_STREAM_WRITE_AFTER_END,y=c.ERR_UNKNOWN_ENCODING,A=a.errorOrDestroy;function b(){}function v(r,n,o){t=t||require_stream_duplex(),r=r||{},"boolean"!=typeof o&&(o=n instanceof t),this.objectMode=!!r.objectMode,o&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=u(this,r,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===r.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new d;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(process.nextTick(o,n),process.nextTick(k,e,t),e._writableState.errorEmitted=!0,A(e,n)):(o(n),e._writableState.errorEmitted=!0,A(e,n),k(e,t))}(e,r,n,t,o);else{var i=x(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||E(e,r),n?process.nextTick(S,e,r,i,o):S(e,r,i,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function _(e){var r=this instanceof(t=t||require_stream_duplex());if(!r&&!s.call(_,this))return new _(e);this._writableState=new v(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),n.call(this)}function w(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new h("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function S(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function E(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var o=r.bufferedRequestCount,i=new Array(o),s=r.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,w(t,r,!0,r.length,i,"",s.finish),r.pendingcb++,r.lastBufferedRequest=null,s.next?(r.corkedRequestsFree=s.next,s.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(w(t,r,!1,r.objectMode?1:c.length,c,l,f),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function $(e,t){e._final(function(r){t.pendingcb--,r&&A(e,r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var r=x(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick($,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}return inherits_browserExports(_,n),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===_&&(e&&e._writableState instanceof v)}})):s=function(e){return e instanceof this},_.prototype.pipe=function(){A(this,new p)},_.prototype.write=function(e,t,r){var n,s=this._writableState,a=!1,u=!s.objectMode&&(n=e,o.isBuffer(n)||n instanceof i);return u&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(r=t,t=null),u?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof r&&(r=b),s.ending?function(e,t){var r=new g;A(e,r),process.nextTick(t,r)}(this,r):(u||function(e,t,r,n){var o;return null===r?o=new m:"string"==typeof r||t.objectMode||(o=new l("chunk",["string","Buffer"],r)),!o||(A(e,o),process.nextTick(n,o),!1)}(this,s,e,r))&&(s.pendingcb++,a=function(e,t,r,n,i,s){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var u=t.objectMode?1:n.length;t.length+=u;var c=t.length-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new f("_write()"))},_.prototype._writev=null,_.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=a.destroy,_.prototype._undestroy=a.undestroy,_.prototype._destroy=function(e,t){t(e)},_stream_writable}function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};_stream_duplex=s;var t=require_stream_readable(),r=require_stream_writable();inherits_browserExports(s,t);for(var n=e(r.prototype),o=0;o>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function i(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function a(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function c(e){return e.toString(this.encoding)}function l(e){return e&&e.length?this.write(e):""}return string_decoder.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--o=0)return i>0&&(e.lastNeed=i-2),i;if(--o=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var o=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},string_decoder}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o0)if("string"==typeof t||c.objectMode||Object.getPrototypeOf(t)===n.prototype||(t=function(e){return n.from(e)}(t)),s)c.endEmitted?A(e,new y):S(e,c,t,!0);else if(c.ended)A(e,new m);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?S(e,c,t,!1):T(e,c)):S(e,c,t,!1)}else s||(c.reading=!1,T(e,c));return!c.ended&&(c.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function $(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(k,e))}function k(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function T(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){i("readable nexttick read 0"),e.read(0)}function C(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function N(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(L,t,e))}function L(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function D(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):$(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e0?I(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},_.prototype._read=function(e){A(this,new g("_read()"))},_.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,r);var s=(!r||!1!==r.end)&&e!==process.stdout&&e!==process.stderr?u:m;function a(t,r){i("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,i("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",a),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",f),l=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function u(){i("onend"),e.end()}o.endEmitted?process.nextTick(s):n.once("end",s),e.on("unpipe",a);var c=function(e){return function(){var r=e._readableState;i("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&t(e,"data")&&(r.flowing=!0,P(e))}}(n);e.on("drain",c);var l=!1;function f(t){i("ondata");var r=e.write(t);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==D(o.pipes,e))&&!l&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function d(r){i("onerror",r),m(),e.removeListener("error",d),0===t(e,"error")&&A(e,r)}function p(){e.removeListener("finish",h),m()}function h(){i("onfinish"),e.removeListener("close",p),m()}function m(){i("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,i("on readable",o.length,o.reading),o.length?$(this):o.reading||process.nextTick(O,this))),n},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(R,this),n},_.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(R,this),t},_.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(C,e,t))}(this,e)),e.paused=!1,this},_.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){(i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s0,function(e){n||(n=e),e&&i.forEach(call),s||(i.forEach(call),o(n))})});return t.reduce(pipe)}var pipeline_1=pipeline;readableBrowser.exports,function(e,t){(t=e.exports=require_stream_readable()).Stream=t,t.Readable=t,t.Writable=require_stream_writable(),t.Duplex=require_stream_duplex(),t.Transform=_stream_transform,t.PassThrough=_stream_passthrough,t.finished=endOfStream,t.pipeline=pipeline_1}(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,Buffer$e=safeBufferExports.Buffer,Transform$2=readableBrowserExports.Transform,inherits$c=inherits_browserExports;function throwIfNotStringOrBuffer(e,t){if(!Buffer$e.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}function HashBase$2(e){Transform$2.call(this),this._block=Buffer$e.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$c(HashBase$2,Transform$2),HashBase$2.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},HashBase$2.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},HashBase$2.prototype.update=function(e,t){if(throwIfNotStringOrBuffer(e,"Data"),this._finalized)throw new Error("Digest already called");Buffer$e.isBuffer(e)||(e=Buffer$e.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var o=this._blockOffset;o0;++i)this._length[i]+=s,(s=this._length[i]/4294967296|0)>0&&(this._length[i]-=4294967296*s);return this},HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")},HashBase$2.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$b=inherits_browserExports,HashBase$1=hashBase,Buffer$d=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$1(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function rotl$1(e,t){return e<>>32-t}function fnF(e,t,r,n,o,i,s){return rotl$1(e+(t&r|~t&n)+o+i|0,s)+t|0}function fnG(e,t,r,n,o,i,s){return rotl$1(e+(t&n|r&~n)+o+i|0,s)+t|0}function fnH(e,t,r,n,o,i,s){return rotl$1(e+(t^r^n)+o+i|0,s)+t|0}function fnI(e,t,r,n,o,i,s){return rotl$1(e+(r^(t|~n))+o+i|0,s)+t|0}inherits$b(MD5$1,HashBase$1),MD5$1.prototype._update=function(){for(var e=ARRAY16$1,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,o=this._c,i=this._d;r=fnF(r,n,o,i,e[0],3614090360,7),i=fnF(i,r,n,o,e[1],3905402710,12),o=fnF(o,i,r,n,e[2],606105819,17),n=fnF(n,o,i,r,e[3],3250441966,22),r=fnF(r,n,o,i,e[4],4118548399,7),i=fnF(i,r,n,o,e[5],1200080426,12),o=fnF(o,i,r,n,e[6],2821735955,17),n=fnF(n,o,i,r,e[7],4249261313,22),r=fnF(r,n,o,i,e[8],1770035416,7),i=fnF(i,r,n,o,e[9],2336552879,12),o=fnF(o,i,r,n,e[10],4294925233,17),n=fnF(n,o,i,r,e[11],2304563134,22),r=fnF(r,n,o,i,e[12],1804603682,7),i=fnF(i,r,n,o,e[13],4254626195,12),o=fnF(o,i,r,n,e[14],2792965006,17),r=fnG(r,n=fnF(n,o,i,r,e[15],1236535329,22),o,i,e[1],4129170786,5),i=fnG(i,r,n,o,e[6],3225465664,9),o=fnG(o,i,r,n,e[11],643717713,14),n=fnG(n,o,i,r,e[0],3921069994,20),r=fnG(r,n,o,i,e[5],3593408605,5),i=fnG(i,r,n,o,e[10],38016083,9),o=fnG(o,i,r,n,e[15],3634488961,14),n=fnG(n,o,i,r,e[4],3889429448,20),r=fnG(r,n,o,i,e[9],568446438,5),i=fnG(i,r,n,o,e[14],3275163606,9),o=fnG(o,i,r,n,e[3],4107603335,14),n=fnG(n,o,i,r,e[8],1163531501,20),r=fnG(r,n,o,i,e[13],2850285829,5),i=fnG(i,r,n,o,e[2],4243563512,9),o=fnG(o,i,r,n,e[7],1735328473,14),r=fnH(r,n=fnG(n,o,i,r,e[12],2368359562,20),o,i,e[5],4294588738,4),i=fnH(i,r,n,o,e[8],2272392833,11),o=fnH(o,i,r,n,e[11],1839030562,16),n=fnH(n,o,i,r,e[14],4259657740,23),r=fnH(r,n,o,i,e[1],2763975236,4),i=fnH(i,r,n,o,e[4],1272893353,11),o=fnH(o,i,r,n,e[7],4139469664,16),n=fnH(n,o,i,r,e[10],3200236656,23),r=fnH(r,n,o,i,e[13],681279174,4),i=fnH(i,r,n,o,e[0],3936430074,11),o=fnH(o,i,r,n,e[3],3572445317,16),n=fnH(n,o,i,r,e[6],76029189,23),r=fnH(r,n,o,i,e[9],3654602809,4),i=fnH(i,r,n,o,e[12],3873151461,11),o=fnH(o,i,r,n,e[15],530742520,16),r=fnI(r,n=fnH(n,o,i,r,e[2],3299628645,23),o,i,e[0],4096336452,6),i=fnI(i,r,n,o,e[7],1126891415,10),o=fnI(o,i,r,n,e[14],2878612391,15),n=fnI(n,o,i,r,e[5],4237533241,21),r=fnI(r,n,o,i,e[12],1700485571,6),i=fnI(i,r,n,o,e[3],2399980690,10),o=fnI(o,i,r,n,e[10],4293915773,15),n=fnI(n,o,i,r,e[1],2240044497,21),r=fnI(r,n,o,i,e[8],1873313359,6),i=fnI(i,r,n,o,e[15],4264355552,10),o=fnI(o,i,r,n,e[6],2734768916,15),n=fnI(n,o,i,r,e[13],1309151649,21),r=fnI(r,n,o,i,e[4],4149444226,6),i=fnI(i,r,n,o,e[11],3174756917,10),o=fnI(o,i,r,n,e[2],718787259,15),n=fnI(n,o,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+i|0},MD5$1.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$d.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};var md5_js=MD5$1,Buffer$c=require$$0$2.Buffer,inherits$a=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$1(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function rotl(e,t){return e<>>32-t}function fn1(e,t,r,n,o,i,s,a){return rotl(e+(t^r^n)+i+s|0,a)+o|0}function fn2(e,t,r,n,o,i,s,a){return rotl(e+(t&r|~t&n)+i+s|0,a)+o|0}function fn3(e,t,r,n,o,i,s,a){return rotl(e+((t|~r)^n)+i+s|0,a)+o|0}function fn4(e,t,r,n,o,i,s,a){return rotl(e+(t&n|r&~n)+i+s|0,a)+o|0}function fn5(e,t,r,n,o,i,s,a){return rotl(e+(t^(r|~n))+i+s|0,a)+o|0}inherits$a(RIPEMD160$1,HashBase),RIPEMD160$1.prototype._update=function(){for(var e=ARRAY16,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,s=0|this._e,a=0|this._a,u=0|this._b,c=0|this._c,l=0|this._d,f=0|this._e,d=0;d<80;d+=1){var p,h;d<16?(p=fn1(r,n,o,i,s,e[zl[d]],hl[0],sl[d]),h=fn5(a,u,c,l,f,e[zr[d]],hr[0],sr[d])):d<32?(p=fn2(r,n,o,i,s,e[zl[d]],hl[1],sl[d]),h=fn4(a,u,c,l,f,e[zr[d]],hr[1],sr[d])):d<48?(p=fn3(r,n,o,i,s,e[zl[d]],hl[2],sl[d]),h=fn3(a,u,c,l,f,e[zr[d]],hr[2],sr[d])):d<64?(p=fn4(r,n,o,i,s,e[zl[d]],hl[3],sl[d]),h=fn2(a,u,c,l,f,e[zr[d]],hr[3],sr[d])):(p=fn5(r,n,o,i,s,e[zl[d]],hl[4],sl[d]),h=fn1(a,u,c,l,f,e[zr[d]],hr[4],sr[d])),r=s,s=i,i=rotl(o,10),o=n,n=p,a=f,f=l,l=rotl(c,10),c=u,u=h}var m=this._b+o+l|0;this._b=this._c+i+f|0,this._c=this._d+s+a|0,this._d=this._e+r+u|0,this._e=this._a+n+c|0,this._a=m},RIPEMD160$1.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Buffer$c.alloc?Buffer$c.alloc(20):new Buffer$c(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};var ripemd160$1=RIPEMD160$1,sha_js={exports:{}},toString$3={}.toString,isarray=Array.isArray||function(e){return"[object Array]"==toString$3.call(e)},type=TypeError,esObjectAtoms=Object,esErrors=Error,_eval=EvalError,range=RangeError,ref=ReferenceError,syntax=SyntaxError,uri=URIError,abs$2=Math.abs,floor$2=Math.floor,max$3=Math.max,min$2=Math.min,pow$2=Math.pow,round$2=Math.round,_isNaN=Number.isNaN||function(e){return e!=e},$isNaN=_isNaN,sign$2=function(e){return $isNaN(e)||0===e?e:e<0?-1:1},gOPD=Object.getOwnPropertyDescriptor,$gOPD$1=gOPD;if($gOPD$1)try{$gOPD$1([],"length")}catch(e){$gOPD$1=null}var gopd=$gOPD$1,$defineProperty$1=Object.defineProperty||!1;if($defineProperty$1)try{$defineProperty$1({},"a",{value:1})}catch(e){$defineProperty$1=!1}var esDefineProperty=$defineProperty$1,shams$1,hasRequiredShams$1,hasSymbols$1,hasRequiredHasSymbols,Reflect_getPrototypeOf,hasRequiredReflect_getPrototypeOf,Object_getPrototypeOf,hasRequiredObject_getPrototypeOf;function requireShams$1(){return hasRequiredShams$1?shams$1:(hasRequiredShams$1=1,shams$1=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0})}function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols$1;hasRequiredHasSymbols=1;var e="undefined"!=typeof Symbol&&Symbol,t=requireShams$1();return hasSymbols$1=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf?Reflect_getPrototypeOf:(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function requireObject_getPrototypeOf(){return hasRequiredObject_getPrototypeOf?Object_getPrototypeOf:(hasRequiredObject_getPrototypeOf=1,Object_getPrototypeOf=esObjectAtoms.getPrototypeOf||null)}var ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr=Object.prototype.toString,max$2=Math.max,funcType="[object Function]",concatty=function(e,t){for(var r=[],n=0;n1&&"boolean"!=typeof t)throw new $TypeError$1('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,e))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=stringToPath(e),n=r.length>0?r[0]:"",o=getBaseIntrinsic("%"+n+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(n=u[0],$spliceApply(r,$concat([0,1],u)));for(var c=1,l=!0;c=r.length){var h=$gOPD(s,f);s=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:s[f]}else l=hasOwn(s,f),s=s[f];l&&!a&&(INTRINSICS[i]=s)}}return s},GetIntrinsic=getIntrinsic,callBindBasic=callBindApplyHelpers,$indexOf=callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]),callBound$1=function(e,t){var r=GetIntrinsic(e,!!t);return"function"==typeof r&&$indexOf(e,".prototype.")>-1?callBindBasic([r]):r},isCallable,hasRequiredIsCallable,forEach$3,hasRequiredForEach,possibleTypedArrayNames,hasRequiredPossibleTypedArrayNames,availableTypedArrays,hasRequiredAvailableTypedArrays;function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e,t,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},n(function(){throw 42},null,e)}catch(e){e!==t&&(n=null)}else n=null;var o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var f=document.all;a.call(f)===a.call(document.all)&&(l=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=a.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}return isCallable=n?function(r){if(l(r))return!0;if(!r)return!1;if("function"!=typeof r&&"object"!=typeof r)return!1;try{n(r,null,e)}catch(e){if(e!==t)return!1}return!i(r)&&s(r)}:function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(i(e))return!1;var t=a.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)},isCallable}function requireForEach(){if(hasRequiredForEach)return forEach$3;hasRequiredForEach=1;var e=requireIsCallable(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty;return forEach$3=function(n,o,i){if(!e(o))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=i),function(e){return"[object Array]"===t.call(e)}(n)?function(e,t,n){for(var o=0,i=e.length;o3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new r("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!n&&n(o,i);if(e)e(o,i,{configurable:null===c&&f?f.configurable:!c,enumerable:null===a&&f?f.enumerable:!a,value:s,writable:null===u&&f?f.writable:!u});else{if(!l&&(a||u||c))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");o[i]=s}},defineDataProperty}function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var e=esDefineProperty,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(e){return!0}},hasPropertyDescriptors_1=t}function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=getIntrinsic,t=requireDefineDataProperty(),r=requireHasPropertyDescriptors()(),n=gopd,o=type,i=e("%Math.floor%");return setFunctionLength=function(e,s){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof s||s<0||s>4294967295||i(s)!==s)throw new o("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],u=!0,c=!0;if("length"in e&&n){var l=n(e,"length");l&&!l.configurable&&(u=!1),l&&!l.writable&&(c=!1)}return(u||c||!a)&&(r?t(e,"length",s,!0,!0):t(e,"length",s)),e},setFunctionLength}function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var e=functionBind,t=requireFunctionApply(),r=actualApply;return applyBind=function(){return r(e,t,arguments)},applyBind}function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var t=requireSetFunctionLength(),r=esDefineProperty,n=callBindApplyHelpers,o=requireApplyBind();e.exports=function(e){var r=n(arguments),o=e.length-(arguments.length-1);return t(r,1+(o>0?o:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(callBind)),callBind.exports}function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var e=requireShams$1();return shams=function(){return e()&&!!Symbol.toStringTag}}function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),t=requireAvailableTypedArrays(),r=requireCallBind(),n=callBound$1,o=gopd,i=requireGetProto(),s=n("Object.prototype.toString"),a=requireShams()(),u="undefined"==typeof globalThis?commonjsGlobal:globalThis,c=t(),l=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1?r:"Object"===r&&function(t){var r=!1;return e(d,function(e,n){if(!r)try{e(t),r=l(n,1)}catch(e){}}),r}(t)}return o?function(t){var r=!1;return e(d,function(e,n){if(!r)try{"$"+e(t)===n&&(r=l(n,1))}catch(e){}}),r}(t):null},whichTypedArray}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray$3;hasRequiredIsTypedArray=1;var e=requireWhichTypedArray();return isTypedArray$3=function(t){return!!e(t)},isTypedArray$3}callBind.exports;var $TypeError=type,callBound=callBound$1,$typedArrayBuffer=callBound("TypedArray.prototype.buffer",!0),isTypedArray$2=requireIsTypedArray(),typedArrayBuffer$1=$typedArrayBuffer||function(e){if(!isTypedArray$2(e))throw new $TypeError("Not a Typed Array");return e.buffer},Buffer$b=safeBufferExports.Buffer,isArray$2=isarray,typedArrayBuffer=typedArrayBuffer$1,isView$2=ArrayBuffer.isView||function(e){try{return typedArrayBuffer(e),!0}catch(e){return!1}},useUint8Array$1="undefined"!=typeof Uint8Array,useArrayBuffer$1="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,useFromArrayBuffer=useArrayBuffer$1&&(Buffer$b.prototype instanceof Uint8Array||Buffer$b.TYPED_ARRAY_SUPPORT),toBuffer$2=function(e,t){if(e instanceof Buffer$b)return e;if("string"==typeof e)return Buffer$b.from(e,t);if(useArrayBuffer$1&&isView$2(e)){if(0===e.byteLength)return Buffer$b.alloc(0);if(useFromArrayBuffer){var r=Buffer$b.from(e.buffer,e.byteOffset,e.byteLength);if(r.byteLength===e.byteLength)return r}var n=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o=Buffer$b.from(n);if(o.length===e.byteLength)return o}if(useUint8Array$1&&e instanceof Uint8Array)return Buffer$b.from(e);var i=isArray$2(e);if(i)for(var s=0;s255||~~a!==a)throw new RangeError("Array items must be numbers in the range 0-255.")}if(i||Buffer$b.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return Buffer$b.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Buffer$a=safeBufferExports.Buffer,toBuffer$1=toBuffer$2;function Hash$7(e,t){this._block=Buffer$a.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash$7.prototype.update=function(e,t){e=toBuffer$1(e,t||"utf8");for(var r=this._block,n=this._blockSize,o=e.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash=Hash$7,inherits$9=inherits_browserExports,Hash$6=hash,Buffer$9=safeBufferExports.Buffer,K$5=[1518500249,1859775393,-1894007588,-899497514],W$7=new Array(80);function Sha(){this.init(),this._w=W$7,Hash$6.call(this,64,56)}function rotl5$1(e){return e<<5|e>>>27}function rotl30$1(e){return e<<30|e>>>2}function ft$2(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}inherits$9(Sha,Hash$6),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,s=0|this._e,a=0;a<16;++a)t[a]=e.readInt32BE(4*a);for(;a<80;++a)t[a]=t[a-3]^t[a-8]^t[a-14]^t[a-16];for(var u=0;u<80;++u){var c=~~(u/20),l=rotl5$1(r)+ft$2(c,n,o,i)+s+t[u]+K$5[c]|0;s=i,i=o,o=rotl30$1(n),n=r,r=l}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0},Sha.prototype._hash=function(){var e=Buffer$9.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var sha$1=Sha,inherits$8=inherits_browserExports,Hash$5=hash,Buffer$8=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$6=new Array(80);function Sha1(){this.init(),this._w=W$6,Hash$5.call(this,64,56)}function rotl1(e){return e<<1|e>>>31}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft$1(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}inherits$8(Sha1,Hash$5),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,s=0|this._e,a=0;a<16;++a)t[a]=e.readInt32BE(4*a);for(;a<80;++a)t[a]=rotl1(t[a-3]^t[a-8]^t[a-14]^t[a-16]);for(var u=0;u<80;++u){var c=~~(u/20),l=rotl5(r)+ft$1(c,n,o,i)+s+t[u]+K$4[c]|0;s=i,i=o,o=rotl30(n),n=r,r=l}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0},Sha1.prototype._hash=function(){var e=Buffer$8.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e};var sha1$1=Sha1,inherits$7=inherits_browserExports,Hash$4=hash,Buffer$7=safeBufferExports.Buffer,K$3=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$5=new Array(64);function Sha256$1(){this.init(),this._w=W$5,Hash$4.call(this,64,56)}function ch(e,t,r){return r^e&(t^r)}function maj$1(e,t,r){return e&t|r&(e|t)}function sigma0$1(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function sigma1$1(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function gamma0(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function gamma1(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}inherits$7(Sha256$1,Hash$4),Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Sha256$1.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,s=0|this._e,a=0|this._f,u=0|this._g,c=0|this._h,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<64;++l)t[l]=gamma1(t[l-2])+t[l-7]+gamma0(t[l-15])+t[l-16]|0;for(var f=0;f<64;++f){var d=c+sigma1$1(s)+ch(s,a,u)+K$3[f]+t[f]|0,p=sigma0$1(r)+maj$1(r,n,o)|0;c=u,u=a,a=s,s=i+d|0,i=o,o=n,n=r,r=d+p|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=a+this._f|0,this._g=u+this._g|0,this._h=c+this._h|0},Sha256$1.prototype._hash=function(){var e=Buffer$7.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var sha256$3=Sha256$1,inherits$6=inherits_browserExports,Sha256=sha256$3,Hash$3=hash,Buffer$6=safeBufferExports.Buffer,W$4=new Array(64);function Sha224(){this.init(),this._w=W$4,Hash$3.call(this,64,56)}inherits$6(Sha224,Sha256),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var e=Buffer$6.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var sha224$1=Sha224,inherits$5=inherits_browserExports,Hash$2=hash,Buffer$5=safeBufferExports.Buffer,K$2=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$3=new Array(160);function Sha512(){this.init(),this._w=W$3,Hash$2.call(this,128,112)}function Ch(e,t,r){return r^e&(t^r)}function maj(e,t,r){return e&t|r&(e|t)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Gamma0(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Gamma0l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Gamma1(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gamma1l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function getCarry(e,t){return e>>>0>>0?1:0}inherits$5(Sha512,Hash$2),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Sha512.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,i=0|this._dh,s=0|this._eh,a=0|this._fh,u=0|this._gh,c=0|this._hh,l=0|this._al,f=0|this._bl,d=0|this._cl,p=0|this._dl,h=0|this._el,m=0|this._fl,g=0|this._gl,y=0|this._hl,A=0;A<32;A+=2)t[A]=e.readInt32BE(4*A),t[A+1]=e.readInt32BE(4*A+4);for(;A<160;A+=2){var b=t[A-30],v=t[A-30+1],_=Gamma0(b,v),w=Gamma0l(v,b),S=Gamma1(b=t[A-4],v=t[A-4+1]),E=Gamma1l(v,b),x=t[A-14],$=t[A-14+1],k=t[A-32],T=t[A-32+1],B=w+$|0,R=_+x+getCarry(B,w)|0;R=(R=R+S+getCarry(B=B+E|0,E)|0)+k+getCarry(B=B+T|0,T)|0,t[A]=R,t[A+1]=B}for(var O=0;O<160;O+=2){R=t[O],B=t[O+1];var C=maj(r,n,o),P=maj(l,f,d),I=sigma0(r,l),N=sigma0(l,r),L=sigma1(s,h),D=sigma1(h,s),M=K$2[O],U=K$2[O+1],F=Ch(s,a,u),j=Ch(h,m,g),H=y+D|0,q=c+L+getCarry(H,y)|0;q=(q=(q=q+F+getCarry(H=H+j|0,j)|0)+M+getCarry(H=H+U|0,U)|0)+R+getCarry(H=H+B|0,B)|0;var W=N+P|0,z=I+C+getCarry(W,N)|0;c=u,y=g,u=a,g=m,a=s,m=h,s=i+q+getCarry(h=p+H|0,p)|0,i=o,p=d,o=n,d=f,n=r,f=l,r=q+z+getCarry(l=H+W|0,H)|0}this._al=this._al+l|0,this._bl=this._bl+f|0,this._cl=this._cl+d|0,this._dl=this._dl+p|0,this._el=this._el+h|0,this._fl=this._fl+m|0,this._gl=this._gl+g|0,this._hl=this._hl+y|0,this._ah=this._ah+r+getCarry(this._al,l)|0,this._bh=this._bh+n+getCarry(this._bl,f)|0,this._ch=this._ch+o+getCarry(this._cl,d)|0,this._dh=this._dh+i+getCarry(this._dl,p)|0,this._eh=this._eh+s+getCarry(this._el,h)|0,this._fh=this._fh+a+getCarry(this._fl,m)|0,this._gh=this._gh+u+getCarry(this._gl,g)|0,this._hh=this._hh+c+getCarry(this._hl,y)|0},Sha512.prototype._hash=function(){var e=Buffer$5.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var sha512$1=Sha512,inherits$4=inherits_browserExports,SHA512$1=sha512$1,Hash$1=hash,Buffer$4=safeBufferExports.Buffer,W$2=new Array(160);function Sha384(){this.init(),this._w=W$2,Hash$1.call(this,128,112)}inherits$4(Sha384,SHA512$1),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){var e=Buffer$4.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var sha384$1=Sha384;sha_js.exports,function(e){e.exports=function(t){var r=t.toLowerCase(),n=e.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n},e.exports.sha=sha$1,e.exports.sha1=sha1$1,e.exports.sha224=sha224$1,e.exports.sha256=sha256$3,e.exports.sha384=sha384$1,e.exports.sha512=sha512$1}(sha_js);var sha_jsExports=sha_js.exports;function BufferList(){this.head=null,this.tail=null,this.length=0}BufferList.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},BufferList.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},BufferList.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},BufferList.prototype.clear=function(){this.head=this.tail=null,this.length=0},BufferList.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},BufferList.prototype.concat=function(e){if(0===this.length)return Buffer$f.alloc(0);if(1===this.length)return this.head.data;for(var t=Buffer$f.allocUnsafe(e>>>0),r=this.head,n=0;r;)r.data.copy(t,n),n+=r.data.length,r=r.next;return t};var isBufferEncoding=Buffer$f.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function assertEncoding(e){if(e&&!isBufferEncoding(e))throw new Error("Unknown encoding: "+e)}function StringDecoder$1(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer$f(6),this.charReceived=0,this.charLength=0}function passThroughWrite(e){return e.toString(this.encoding)}function utf16DetectIncompleteChar(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}StringDecoder$1.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&o<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var o;n=(t+=e.toString(this.encoding,0,n)).length-1;if((o=t.charCodeAt(n))>=55296&&o<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,n)}return t},StringDecoder$1.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},StringDecoder$1.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,o=this.encoding;t+=n.slice(0,r).toString(o)}return t};var stringDecoder=Object.freeze({__proto__:null,StringDecoder:StringDecoder$1});Readable.ReadableState=ReadableState;var debug=debuglog("stream");function prependListener(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function listenerCount(e,t){return e.listeners(t).length}function ReadableState(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Duplex&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new BufferList,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new StringDecoder$1(e.encoding),this.encoding=e.encoding)}function Readable(e){if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),EventEmitter.call(this)}function readableAddChunk(e,t,r,n,o){var i=chunkInvalid(t,r);if(i)e.emit("error",i);else if(null===r)t.reading=!1,onEofChunk(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&o){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var u;!t.decoder||o||n||(r=t.decoder.write(r),u=!t.objectMode&&0===r.length),o||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&emitReadable(e))),maybeReadMore(e,t)}else o||(t.reading=!1);return needMoreData(t)}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=MAX_HWM?e=MAX_HWM:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function howMuchToRead(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=computeNewHighWaterMark(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function chunkInvalid(e,t){var r=null;return Buffer$f.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function onEofChunk(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,emitReadable(e)}}function emitReadable(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(debug("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?nextTick$1(emitReadable_,e):emitReadable_(e))}function emitReadable_(e){debug("emit readable"),e.emit("readable"),flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,nextTick$1(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=fromListPartial(e,t.buffer,t.decoder),r);var r}function fromListPartial(e,t,r){var n;return ei.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++n}return t.length-=n,o}function copyFromBuffer(e,t){var r=Buffer$f.allocUnsafe(e),n=t.head,o=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,s),0===(e-=s)){s===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++o}return t.length-=o,r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,nextTick$1(endReadableNT,t,e))}function endReadableNT(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function forEach$2(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return debug("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,t))&&t.ended)return 0===t.length&&endReadable(this),null;var n,o=t.needReadable;return debug("need readable",o),(0===t.length||t.length-e0?fromList(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&endReadable(this)),null!==n&&this.emit("data",n),n},Readable.prototype._read=function(e){this.emit("error",new Error("not implemented"))},Readable.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,debug("pipe count=%d opts=%j",n.pipesCount,t);var o=!t||!1!==t.end?s:c;function i(e){debug("onunpipe"),e===r&&c()}function s(){debug("onend"),e.end()}n.endEmitted?nextTick$1(o):r.once("end",o),e.on("unpipe",i);var a=pipeOnDrain(r);e.on("drain",a);var u=!1;function c(){debug("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",a),e.removeListener("error",d),e.removeListener("unpipe",i),r.removeListener("end",s),r.removeListener("end",c),r.removeListener("data",f),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||a()}var l=!1;function f(t){debug("ondata"),l=!1,!1!==e.write(t)||l||((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==indexOf(n.pipes,e))&&!u&&(debug("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,l=!0),r.pause())}function d(t){debug("onerror",t),m(),e.removeListener("error",d),0===listenerCount(e,"error")&&e.emit("error",t)}function p(){e.removeListener("finish",h),m()}function h(){debug("onfinish"),e.removeListener("close",p),m()}function m(){debug("unpipe"),r.unpipe(e)}return r.on("data",f),prependListener(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",r),n.flowing||(debug("pipe resume"),r.resume()),e},Readable.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Writable.prototype._write=function(e,t,r){r(new Error("not implemented"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||endWritable(this,n,r)},inherits$e(Duplex,Readable);for(var keys=Object.keys(Writable.prototype),v=0;v=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,c=new Uint8Array(i);r255)return;var f=t[l];if(255===f)return;for(var d=0,p=i-1;(0!==f||d>>0,c[p]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");o=d,r++}for(var h=i-o;h!==i&&0===c[h];)h++;var m=_Buffer.allocUnsafe(n+(i-h));m.fill(0,0,n);for(var g=n;h!==i;)m[g++]=c[h++];return m}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=_Buffer.from(t)),!_Buffer.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,o=0,i=t.length;o!==i&&0===t[o];)o++,r++;for(var u=(i-o)*c+1>>>0,l=new Uint8Array(u);o!==i;){for(var f=t[o],d=0,p=u-1;(0!==f||d>>0,l[p]=f%s>>>0,f=f/s>>>0;if(0!==f)throw new Error("Non-zero carry");n=d,o++}for(var h=u-n;h!==u&&0===l[h];)h++;for(var m=a.repeat(r);h{t[r]=deepClone(e[r])}),t}function deepmerge(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return isPlainObject$1(e)&&isPlainObject$1(t)&&Object.keys(t).forEach(o=>{mn(t[o])||reactIsExports.isValidElementType(t[o])?n[o]=t[o]:isPlainObject$1(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&isPlainObject$1(e[o])?n[o]=deepmerge(e[o],t[o],r):r.clone?n[o]=isPlainObject$1(t[o])?deepClone(t[o]):t[o]:n[o]=t[o]}),n}const sortBreakpointsValues=e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function createBreakpoints(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=sortBreakpointsValues(t),s=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-n/100}${r})`}return{keys:s,values:i,up:a,down:l,between:u,only:function(e){return s.indexOf(e)+1e.startsWith("@container")).sort((e,t)=>{const r=/min-width:\s*([0-9.]+)/;return+(e.match(r)?.[1]||0)-+(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{const n=t[r];return delete e[r],e[r]=n,e},{...t}):t}function isCqShorthand(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function getContainerQuery(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function cssContainerQueries(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{const o=t(e.breakpoints.not(...r),n);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const n={},o=e=>(r(n,e),n);return r(o),{...e,containerQueries:o}}const shape={borderRadius:4};function merge$2(e,t){return t?deepmerge(e,t,{clone:!1}):e}const values$1={xs:0,sm:600,md:900,lg:1200,xl:1536},defaultBreakpoints={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${values$1[e]}px)`},defaultContainerQueries={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:values$1[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function handleBreakpoints(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||defaultBreakpoints;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||defaultBreakpoints;return Object.keys(t).reduce((o,i)=>{if(isCqShorthand(e.keys,i)){const e=getContainerQuery(n.containerQueries?n:defaultContainerQueries,i);e&&(o[e]=r(t[i],i))}else if(Object.keys(e.values||values$1).includes(i)){o[e.up(i)]=r(t[i],i)}else{const e=i;o[e]=t[e]}return o},{})}return r(t)}function createEmptyBreakpointObject(e={}){const t=e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{});return t||{}}function removeUnusedBreakpoints(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function capitalize(e){if("string"!=typeof e)throw new Error(formatMuiErrorMessage(7));return e.charAt(0).toUpperCase()+e.slice(1)}function getPath(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function getStyleValue$1(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:getPath(e,r)||n,t&&(o=t(o,n,e)),o}function style$1(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],s=getPath(e.theme,n)||{};return handleBreakpoints(e,i,e=>{let n=getStyleValue$1(s,o,e);return e===n&&"string"==typeof e&&(n=getStyleValue$1(s,o,`${t}${"default"===e?"":capitalize(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}function memoize(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(e=>{if(e.length>2){if(!aliases[e])return[e];e=aliases[e]}const[t,r]=e.split(""),n=properties[t],o=directions[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function createUnaryUnit(e,t,r,n){const o=getPath(e,t,!0)??r;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),r=o[t];return e>=0?r:"number"==typeof r?-r:"string"==typeof r&&r.startsWith("var(")?`calc(-1 * ${r})`:`-${r}`}:"function"==typeof o?o:()=>{}}function createUnarySpacing(e){return createUnaryUnit(e,"spacing",8)}function getValue(e,t){return"string"==typeof t||null==t?t:e(t)}function getStyleFromPropValue(e,t){return r=>e.reduce((e,n)=>(e[n]=getValue(t,r),e),{})}function resolveCssProperty(e,t,r,n){if(!t.includes(r))return null;const o=getStyleFromPropValue(getCssProperties(r),n);return handleBreakpoints(e,e[r],o)}function style(e,t){const r=createUnarySpacing(e.theme);return Object.keys(e).map(n=>resolveCssProperty(e,t,n,r)).reduce(merge$2,{})}function margin(e){return style(e,marginKeys)}function padding(e){return style(e,paddingKeys)}function createSpacing(e=8,t=createUnarySpacing({spacing:e})){if(e.mui)return e;const r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}function compose(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?merge$2(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function borderTransform(e){return"number"!=typeof e?e:`${e}px solid`}function createBorderStyle(e,t){return style$1({prop:e,themeKey:"borders",transform:t})}margin.propTypes={},margin.filterProps=marginKeys,padding.propTypes={},padding.filterProps=paddingKeys;const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=createUnaryUnit(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:getValue(t,e)});return handleBreakpoints(e,e.borderRadius,r)}return null};borderRadius.propTypes={},borderRadius.filterProps=["borderRadius"],compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=e=>{if(void 0!==e.gap&&null!==e.gap){const t=createUnaryUnit(e.theme,"spacing",8),r=e=>({gap:getValue(t,e)});return handleBreakpoints(e,e.gap,r)}return null};gap.propTypes={},gap.filterProps=["gap"];const columnGap=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=createUnaryUnit(e.theme,"spacing",8),r=e=>({columnGap:getValue(t,e)});return handleBreakpoints(e,e.columnGap,r)}return null};columnGap.propTypes={},columnGap.filterProps=["columnGap"];const rowGap=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=createUnaryUnit(e.theme,"spacing",8),r=e=>({rowGap:getValue(t,e)});return handleBreakpoints(e,e.rowGap,r)}return null};rowGap.propTypes={},rowGap.filterProps=["rowGap"];const gridColumn=style$1({prop:"gridColumn"}),gridRow=style$1({prop:"gridRow"}),gridAutoFlow=style$1({prop:"gridAutoFlow"}),gridAutoColumns=style$1({prop:"gridAutoColumns"}),gridAutoRows=style$1({prop:"gridAutoRows"}),gridTemplateColumns=style$1({prop:"gridTemplateColumns"}),gridTemplateRows=style$1({prop:"gridTemplateRows"}),gridTemplateAreas=style$1({prop:"gridTemplateAreas"}),gridArea=style$1({prop:"gridArea"});function paletteTransform(e,t){return"grey"===t?t:e}compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);const color=style$1({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$1({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$1({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});function sizingTransform(e){return e<=1&&0!==e?100*e+"%":e}compose(color,bgcolor,backgroundColor);const width=style$1({prop:"width",transform:sizingTransform}),maxWidth=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const r=e.theme?.breakpoints?.values?.[t]||values$1[t];return r?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:sizingTransform(t)}};return handleBreakpoints(e,e.maxWidth,t)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$1({prop:"minWidth",transform:sizingTransform}),height=style$1({prop:"height",transform:sizingTransform}),maxHeight=style$1({prop:"maxHeight",transform:sizingTransform}),minHeight=style$1({prop:"minHeight",transform:sizingTransform});style$1({prop:"size",cssProperty:"width",transform:sizingTransform}),style$1({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$1({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function objectsHaveSameKeys(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}function callIfFn(e,t){return"function"==typeof e?e(t):e}function unstable_createStyleFunctionSx(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:s=e,themeKey:a,transform:l,style:u}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const c=getPath(r,a)||{};if(u)return u(o);return handleBreakpoints(o,t,t=>{let r=getStyleValue$1(c,l,t);return t===r&&"string"==typeof t&&(r=getStyleValue$1(c,l,`${e}${"default"===t?"":capitalize(t)}`,t)),!1===s?r:{[s]:r}})}return function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const s=o.unstable_sxConfig??defaultSxConfig;function a(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;const a=createEmptyBreakpointObject(o.breakpoints),l=Object.keys(a);let u=a;return Object.keys(n).forEach(r=>{const i=callIfFn(n[r],o);if(null!=i)if("object"==typeof i)if(s[r])u=merge$2(u,e(r,i,o,s));else{const e=handleBreakpoints({theme:o},i,e=>({[r]:e}));objectsHaveSameKeys(e,i)?u[r]=t({sx:i,theme:o,nested:!0}):u=merge$2(u,e)}else u=merge$2(u,e(r,i,o,s))}),!i&&o.modularCssLayers?{"@layer sx":sortContainerQueries(o,removeUnusedBreakpoints(l,u))}:sortContainerQueries(o,removeUnusedBreakpoints(l,u))}return Array.isArray(n)?n.map(a):a(n)}}const styleFunctionSx=unstable_createStyleFunctionSx();function applyStyles$2(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||"function"!=typeof r.getColorSchemeSelector)return{};let n=r.getColorSchemeSelector(e);return"&"===n?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function createTheme$1(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...s}=e;let a=deepmerge({breakpoints:createBreakpoints(r),direction:"ltr",components:{},palette:{mode:"light",...n},spacing:createSpacing(o),shape:{...shape,...i}},s);return a=cssContainerQueries(a),a.applyStyles=applyStyles$2,a=t.reduce((e,t)=>deepmerge(e,t),a),a.unstable_sxConfig={...defaultSxConfig,...s?.unstable_sxConfig},a.unstable_sx=function(e){return styleFunctionSx({sx:e,theme:this})},a}function isObjectEmpty$2(e){return 0===Object.keys(e).length}function useTheme$2(e=null){const t=x$2(ThemeContext);return!t||isObjectEmpty$2(t)?e:t}styleFunctionSx.filterProps=["sx"];const systemDefaultTheme$1=createTheme$1();function useTheme$1(e=systemDefaultTheme$1){return useTheme$2(e)}function wrapGlobalLayer(e){const t=internal_serializeStyles(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function GlobalStyles$1({styles:e,themeId:t,defaultTheme:r={}}){const n=useTheme$1(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>wrapGlobalLayer("function"==typeof e?e(o):e)):wrapGlobalLayer(i)),u$1(GlobalStyles$2,{styles:i})}const splitProps=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??defaultSxConfig;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function extendSxProp$1(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=splitProps(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return isPlainObject$1(r)?{...n,...r}:n}:{...n,...t},{...o,sx:i}}const defaultGenerator=e=>e,createClassNameGenerator=()=>{let e=defaultGenerator;return{configure(t){e=t},generate:t=>e(t),reset(){e=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator();function r$1(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t"theme"!==e&&"sx"!==e&&"as"!==e})(styleFunctionSx),s=D$1(function(e,s){const a=useTheme$1(r),{className:l,component:u="div",...c}=extendSxProp$1(e);return u$1(i,{as:u,ref:s,className:clsx$1(l,o?o(n):n),theme:t&&a[t]||a,...c})});return s}const globalStateClasses={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(e,t,r="Mui"){const n=globalStateClasses[t];return n?`${r}-${n}`:`${ClassNameGenerator.generate(e)}-${t}`}function generateUtilityClasses(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=generateUtilityClass(e,t,r)}),n}function preprocessStyles(e){const{variants:t,...r}=e,n={variants:t,style:internal_serializeStyles(r),isProcessed:!0};return n.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=internal_serializeStyles(e.style))}),n}const systemDefaultTheme=createTheme$1();function shouldForwardProp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function shallowLayer(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function defaultOverridesResolver(e){return e?(t,r)=>r[e]:null}function attachTheme(e,t,r){e.theme=isObjectEmpty$1(e.theme)?r:e.theme[t]||e.theme}function processStyle(e,t,r){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>processStyle(e,t,r));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=r?shallowLayer(n.style,r):n.style;else{const{variants:e,...o}=n;t=r?shallowLayer(internal_serializeStyles(o),r):o}return processStyleVariants(e,n.variants,[t],r)}return n?.isProcessed?r?shallowLayer(internal_serializeStyles(n.style),r):n.style:r?shallowLayer(internal_serializeStyles(n),r):n}function processStyleVariants(e,t,r=[],n=void 0){let o;e:for(let i=0;i{internal_mutateStyles(e,e=>e.filter(e=>e!==styleFunctionSx));const{name:r,slot:s,skipVariantsResolver:a,skipSx:l,overridesResolver:u=defaultOverridesResolver(lowercaseFirstLetter(s)),...c}=t,d=r&&r.startsWith("Mui")||s?"components":"custom",f=void 0!==a?a:s&&"Root"!==s&&"root"!==s||!1,p=l||!1;let h=shouldForwardProp;"Root"===s||"root"===s?h=n:s?h=o:isStringTag(e)&&(h=void 0);const m=styled$1(e,{shouldForwardProp:h,label:generateStyledLabel(),...c}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return processStyle(t,e,t.theme.modularCssLayers?d:void 0)};if(isPlainObject$1(e)){const t=preprocessStyles(e);return function(e){return t.variants?processStyle(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?shallowLayer(t.style,d):t.style}}return e},y=(...t)=>{const n=[],o=t.map(g),s=[];if(n.push(i),r&&u&&s.push(function(e){const t=e.theme,n=t.components?.[r]?.styleOverrides;if(!n)return null;const o={};for(const t in n)o[t]=processStyle(e,n[t],e.theme.modularCssLayers?"theme":void 0);return u(e,o)}),r&&!f&&s.push(function(e){const t=e.theme,n=t?.components?.[r]?.variants;return n?processStyleVariants(e,n,[],e.theme.modularCssLayers?"theme":void 0):null}),p||s.push(styleFunctionSx),Array.isArray(o[0])){const e=o.shift(),t=new Array(n.length).fill(""),r=new Array(s.length).fill("");let i;i=[...t,...e,...r],i.raw=[...t,...e.raw,...r],n.unshift(i)}const a=[...n,...o,...s],l=m(...a);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(y.withConfig=m.withConfig),y}}function generateStyledLabel(e,t){}function isObjectEmpty$1(e){for(const t in e)return!1;return!0}function isStringTag(e){return"string"==typeof e&&e.charCodeAt(0)>96}function lowercaseFirstLetter(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function resolveProps(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if("components"===i||"slots"===i)n[i]={...e[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const o=e[i],s=t[i];if(s)if(o){n[i]={...s};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;n[i][t]=resolveProps(o[t],s[t],r)}}else n[i]=s;else n[i]=o||{}}else"className"===i&&r&&t.className?n.className=clsx$1(e?.className,t?.className):"style"===i&&r&&t.style?n.style={...e?.style,...t?.style}:void 0===n[i]&&(n[i]=e[i])}return n}const useEnhancedEffect$1="undefined"!=typeof window?_$1:y;function clamp$2(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function clampWrapper(e,t=0,r=1){return clamp$2(e,t,r)}function hexToRgb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(e){if(e.type)return e;if("#"===e.charAt(0))return decomposeColor(hexToRgb(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(formatMuiErrorMessage(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw new Error(formatMuiErrorMessage(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const colorChannel=e=>{const t=decomposeColor(e);return t.values.slice(0,3).map((e,r)=>t.type.includes("hsl")&&0!==r?`${e}%`:e).join(" ")},private_safeColorChannel=(e,t)=>{try{return colorChannel(e)}catch(t){return e}};function recomposeColor(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=t.includes("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function hslToRgb(e){e=decomposeColor(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const l=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(a+="a",l.push(t[3])),recomposeColor({type:a,values:l})}function getLuminance(e){let t="hsl"===(e=decomposeColor(e)).type||"hsla"===e.type?decomposeColor(hslToRgb(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function getContrastRatio(e,t){const r=getLuminance(e),n=getLuminance(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function alpha(e,t){return e=decomposeColor(e),t=clampWrapper(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,recomposeColor(e)}function private_safeAlpha(e,t,r){try{return alpha(e,t)}catch(t){return e}}function darken(e,t){if(e=decomposeColor(e),t=clampWrapper(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return recomposeColor(e)}function private_safeDarken(e,t,r){try{return darken(e,t)}catch(t){return e}}function lighten(e,t){if(e=decomposeColor(e),t=clampWrapper(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return recomposeColor(e)}function private_safeLighten(e,t,r){try{return lighten(e,t)}catch(t){return e}}function emphasize(e,t=.15){return getLuminance(e)>.5?darken(e,t):lighten(e,t)}function private_safeEmphasize(e,t,r){try{return emphasize(e,t)}catch(t){return e}}const RtlContext=Q$1(),useRtl=()=>x$2(RtlContext)??!1,PropsContext=Q$1(void 0);function getThemeProps(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?resolveProps(o.defaultProps,n,t.components.mergeClassNameAndStyle):o.styleOverrides||o.variants?n:resolveProps(o,n,t.components.mergeClassNameAndStyle)}function useDefaultProps$1({props:e,name:t}){return getThemeProps({props:e,name:t,theme:{components:x$2(PropsContext)}})}let globalId=0;function useGlobalId(e){const[t,r]=d(e),n=e||t;return y(()=>{null==t&&(globalId+=1,r(`mui-${globalId}`))},[t]),n}const safeReact={...React},maybeReactUseId=safeReact.useId;function useId(e){if(void 0!==maybeReactUseId){const t=maybeReactUseId();return e??t}return useGlobalId(e)}const arg={theme:void 0};function unstable_memoTheme(e){let t,r;return function(n){let o=t;return void 0!==o&&n.theme===r||(arg.theme=n.theme,o=preprocessStyles(e(arg)),t=o,r=n.theme),o}}function createGetCssVar$1(e=""){function t(...r){if(!r.length)return"";const n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}return(r,...n)=>`var(--${e?`${e}-`:""}${r}${t(...n)})`}const assignNestedKeys=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},walkObjectDeep=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,s])=>{(!r||r&&!r([...o,n]))&&null!=s&&("object"==typeof s&&Object.keys(s).length>0?e(s,[...o,n],Array.isArray(s)?[...i,n]:i):t([...o,n],s,i))})}(e)},getCssValue=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;return e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`}return t};function cssVarsParser(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},s={};return walkObjectDeep(e,(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||n&&n(e,t))){const n=`--${r?`${r}-`:""}${e.join("-")}`,l=getCssValue(e,t);Object.assign(o,{[n]:l}),assignNestedKeys(i,e,`var(${n})`,a),assignNestedKeys(s,e,`var(${n}, ${l})`,a)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:s}}function prepareCssVars(e,t={}){const{getSelector:r=y,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=cssVarsParser(u,t);let p=f;const h={},{[l]:m,...g}=s;if(Object.entries(g||{}).forEach(([e,r])=>{const{vars:n,css:o,varsWithDefaults:i}=cssVarsParser(r,t);p=deepmerge(p,i),h[e]={css:o,vars:n}}),m){const{css:e,vars:r,varsWithDefaults:n}=cssVarsParser(m,t);p=deepmerge(p,n),h[l]={css:e,vars:r}}function y(t,r){let n=o;if("class"===o&&(n=".%s"),"data"===o&&(n="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(n=`[${o}="%s"]`),t){if("media"===n){if(e.defaultColorScheme===t)return":root";const n=s[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${n})`]:{":root":r}}}if(n)return e.defaultColorScheme===t?`:root, ${n.replace("%s",String(t))}`:n.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=deepmerge(e,t)}),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function a(e,r){Object.keys(r).length&&t.push("string"==typeof e?{[e]:{...r}}:e)}a(r(void 0,{...d}),d);const{[o]:l,...u}=h;if(l){const{css:e}=l,t=s[o]?.palette?.mode,i=!n&&t?{colorScheme:t,...e}:{...e};a(r(o,{...i}),i)}return Object.entries(u).forEach(([e,{css:t}])=>{const o=s[e]?.palette?.mode,i=!n&&o?{colorScheme:o,...t}:{...t};a(r(e,{...i}),i)}),i&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}function createGetColorSchemeSelector(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function composeClasses(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let s="",a=!0;for(let e=0;e=r?dark.text.primary:light.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:s=700})=>{if(!(e={...e}).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(formatMuiErrorMessage(12,t?` (${t})`:"",JSON.stringify(e.main)));return o?(mixLightOrDark(o,e,"light",i,n),mixLightOrDark(o,e,"dark",s,n)):(addLightOrDark(e,"light",i,n),addLightOrDark(e,"dark",s,n)),e.contrastText||(e.contrastText=f(e.main)),e};let h;"light"===t?h=getLight():"dark"===t&&(h=getDark());return deepmerge({common:{...common},mode:t,primary:p({color:s,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:grey,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n,...h},i)}function prepareTypographyVars(e){const t={};return Object.entries(e).forEach(e=>{const[r,n]=e;"object"==typeof n&&(t[r]=`${n.fontStyle?`${n.fontStyle} `:""}${n.fontVariant?`${n.fontVariant} `:""}${n.fontWeight?`${n.fontWeight} `:""}${n.fontStretch?`${n.fontStretch} `:""}${n.fontSize||""}${n.lineHeight?`/${n.lineHeight} `:""}${n.fontFamily||""}`)}),t}function createMixins(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function round$4(e){return Math.round(1e5*e)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(e,t){const{fontFamily:r=defaultFontFamily,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}="function"==typeof t?t(e):t,f=n/14,p=c||(e=>e/l*f+"rem"),h=(e,t,n,o,i)=>({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n,...r===defaultFontFamily?{letterSpacing:`${round$4(o/t)}em`}:{},...i,...u}),m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,caseAllCaps),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...m},d,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs$1(e){return`${Math.round(e)}ms`}function getAutoHeightDuration(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function createTransitions(e){const t={...easing,...e.easing},r={...duration,...e.duration};return{getAutoHeightDuration:getAutoHeightDuration,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:s=0,...a}=n;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:formatMs$1(o)} ${i} ${"string"==typeof s?s:formatMs$1(s)}`).join(",")},...e,easing:t,duration:r}}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function isSerializable(e){return isPlainObject$1(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function stringifyTheme(e={}){const t={...e};return function e(t){const r=Object.entries(t);for(let n=0;n{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let e=0;edeepmerge(e,t),p),p.unstable_sxConfig={...defaultSxConfig,...c?.unstable_sxConfig},p.unstable_sx=function(e){return styleFunctionSx({sx:e,theme:this})},p.toRuntimeSource=stringifyTheme,attachColorManipulators(p),p}function getOverlayAlpha(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const defaultDarkOverlays=[...Array(25)].map((e,t)=>{if(0===t)return"none";const r=getOverlayAlpha(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function getOpacity(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function getOverlays(e){return"dark"===e?defaultDarkOverlays:[]}function createColorScheme(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,s=createPalette({...t,colorSpace:o});return{palette:s,opacity:{...getOpacity(s.mode),...r},overlays:n||getOverlays(s.mode),...i}}function shouldSkipGeneratingVar(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const excludeVariablesFromRoot=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`];var defaultGetSelector=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return excludeVariablesFromRoot(e.cssVarPrefix).forEach(e=>{o[e]=r[e],delete r[e]}),"media"===i?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:i?{[i.replace("%s",t)]:o,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...o}}}if(i&&"media"!==i)return`${n}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function assignNode(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function setColor(e,t,r){!e[t]&&r&&(e[t]=r)}function toRgb(e){return"string"==typeof e&&e.startsWith("hsl")?hslToRgb(e):e}function setColorChannel(e,t){`${t}Channel`in e||(e[`${t}Channel`]=private_safeColorChannel(toRgb(e[t])))}function getSpacingVal(e){return"number"==typeof e?`${e}px`:"string"==typeof e||"function"==typeof e||Array.isArray(e)?e:"8px"}const silent=e=>{try{return e()}catch(e){}},createGetCssVar=(e="mui")=>createGetCssVar$1(e);function attachColorScheme$1(e,t,r,n,o){if(!r)return;r=!0===r?{}:r;const i="dark"===o?"dark":"light";if(!n)return void(t[o]=createColorScheme({...r,palette:{mode:i,...r?.palette},colorSpace:e}));const{palette:s,...a}=createThemeNoVars({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...getOpacity(i),...r?.opacity},overlays:r?.overlays||getOverlays(i)},a}function createThemeWithVars(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=shouldSkipGeneratingVar,colorSchemeSelector:l=(r.light&&r.dark?"media":void 0),rootSelector:u=":root",...c}=e,d=Object.keys(r)[0],f=n||(r.light&&"light"!==d?"light":d),p=createGetCssVar(i),{[f]:h,light:m,dark:g,...y}=r,A={...y};let b,v=h;if(("dark"===f&&!("dark"in r)||"light"===f&&!("light"in r))&&(v=!0),!v)throw new Error(formatMuiErrorMessage(21,f));s&&(b="oklch");const w=attachColorScheme$1(b,A,v,c,f);m&&!A.light&&attachColorScheme$1(b,A,m,void 0,"light"),g&&!A.dark&&attachColorScheme$1(b,A,g,void 0,"dark");let S={defaultColorScheme:f,...w,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:A,font:{...prepareTypographyVars(w.typography),...w.font},spacing:getSpacingVal(c.spacing)};Object.keys(S.colorSchemes).forEach(e=>{const t=S.colorSchemes[e].palette,r=e=>{const r=e.split("-"),n=r[1],o=r[2];return p(e,t[n][o])};function n(e,t,r){if(b){let n;return e===private_safeAlpha&&(n=`transparent ${(100*(1-r)).toFixed(0)}%`),e===private_safeDarken&&(n=`#000 ${(100*r).toFixed(0)}%`),e===private_safeLighten&&(n=`#fff ${(100*r).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${n})`}return e(t,r)}if("light"===t.mode&&(setColor(t.common,"background","#fff"),setColor(t.common,"onBackground","#000")),"dark"===t.mode&&(setColor(t.common,"background","#000"),setColor(t.common,"onBackground","#fff")),assignNode(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){setColor(t.Alert,"errorColor",n(private_safeDarken,t.error.light,.6)),setColor(t.Alert,"infoColor",n(private_safeDarken,t.info.light,.6)),setColor(t.Alert,"successColor",n(private_safeDarken,t.success.light,.6)),setColor(t.Alert,"warningColor",n(private_safeDarken,t.warning.light,.6)),setColor(t.Alert,"errorFilledBg",r("palette-error-main")),setColor(t.Alert,"infoFilledBg",r("palette-info-main")),setColor(t.Alert,"successFilledBg",r("palette-success-main")),setColor(t.Alert,"warningFilledBg",r("palette-warning-main")),setColor(t.Alert,"errorFilledColor",silent(()=>t.getContrastText(t.error.main))),setColor(t.Alert,"infoFilledColor",silent(()=>t.getContrastText(t.info.main))),setColor(t.Alert,"successFilledColor",silent(()=>t.getContrastText(t.success.main))),setColor(t.Alert,"warningFilledColor",silent(()=>t.getContrastText(t.warning.main))),setColor(t.Alert,"errorStandardBg",n(private_safeLighten,t.error.light,.9)),setColor(t.Alert,"infoStandardBg",n(private_safeLighten,t.info.light,.9)),setColor(t.Alert,"successStandardBg",n(private_safeLighten,t.success.light,.9)),setColor(t.Alert,"warningStandardBg",n(private_safeLighten,t.warning.light,.9)),setColor(t.Alert,"errorIconColor",r("palette-error-main")),setColor(t.Alert,"infoIconColor",r("palette-info-main")),setColor(t.Alert,"successIconColor",r("palette-success-main")),setColor(t.Alert,"warningIconColor",r("palette-warning-main")),setColor(t.AppBar,"defaultBg",r("palette-grey-100")),setColor(t.Avatar,"defaultBg",r("palette-grey-400")),setColor(t.Button,"inheritContainedBg",r("palette-grey-300")),setColor(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),setColor(t.Chip,"defaultBorder",r("palette-grey-400")),setColor(t.Chip,"defaultAvatarColor",r("palette-grey-700")),setColor(t.Chip,"defaultIconColor",r("palette-grey-700")),setColor(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),setColor(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),setColor(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),setColor(t.LinearProgress,"primaryBg",n(private_safeLighten,t.primary.main,.62)),setColor(t.LinearProgress,"secondaryBg",n(private_safeLighten,t.secondary.main,.62)),setColor(t.LinearProgress,"errorBg",n(private_safeLighten,t.error.main,.62)),setColor(t.LinearProgress,"infoBg",n(private_safeLighten,t.info.main,.62)),setColor(t.LinearProgress,"successBg",n(private_safeLighten,t.success.main,.62)),setColor(t.LinearProgress,"warningBg",n(private_safeLighten,t.warning.main,.62)),setColor(t.Skeleton,"bg",b?n(private_safeAlpha,t.text.primary,.11):`rgba(${r("palette-text-primaryChannel")} / 0.11)`),setColor(t.Slider,"primaryTrack",n(private_safeLighten,t.primary.main,.62)),setColor(t.Slider,"secondaryTrack",n(private_safeLighten,t.secondary.main,.62)),setColor(t.Slider,"errorTrack",n(private_safeLighten,t.error.main,.62)),setColor(t.Slider,"infoTrack",n(private_safeLighten,t.info.main,.62)),setColor(t.Slider,"successTrack",n(private_safeLighten,t.success.main,.62)),setColor(t.Slider,"warningTrack",n(private_safeLighten,t.warning.main,.62));const e=b?n(private_safeDarken,t.background.default,.6825):private_safeEmphasize(t.background.default,.8);setColor(t.SnackbarContent,"bg",e),setColor(t.SnackbarContent,"color",silent(()=>b?dark.text.primary:t.getContrastText(e))),setColor(t.SpeedDialAction,"fabHoverBg",private_safeEmphasize(t.background.paper,.15)),setColor(t.StepConnector,"border",r("palette-grey-400")),setColor(t.StepContent,"border",r("palette-grey-400")),setColor(t.Switch,"defaultColor",r("palette-common-white")),setColor(t.Switch,"defaultDisabledColor",r("palette-grey-100")),setColor(t.Switch,"primaryDisabledColor",n(private_safeLighten,t.primary.main,.62)),setColor(t.Switch,"secondaryDisabledColor",n(private_safeLighten,t.secondary.main,.62)),setColor(t.Switch,"errorDisabledColor",n(private_safeLighten,t.error.main,.62)),setColor(t.Switch,"infoDisabledColor",n(private_safeLighten,t.info.main,.62)),setColor(t.Switch,"successDisabledColor",n(private_safeLighten,t.success.main,.62)),setColor(t.Switch,"warningDisabledColor",n(private_safeLighten,t.warning.main,.62)),setColor(t.TableCell,"border",n(private_safeLighten,n(private_safeAlpha,t.divider,1),.88)),setColor(t.Tooltip,"bg",n(private_safeAlpha,t.grey[700],.92))}if("dark"===t.mode){setColor(t.Alert,"errorColor",n(private_safeLighten,t.error.light,.6)),setColor(t.Alert,"infoColor",n(private_safeLighten,t.info.light,.6)),setColor(t.Alert,"successColor",n(private_safeLighten,t.success.light,.6)),setColor(t.Alert,"warningColor",n(private_safeLighten,t.warning.light,.6)),setColor(t.Alert,"errorFilledBg",r("palette-error-dark")),setColor(t.Alert,"infoFilledBg",r("palette-info-dark")),setColor(t.Alert,"successFilledBg",r("palette-success-dark")),setColor(t.Alert,"warningFilledBg",r("palette-warning-dark")),setColor(t.Alert,"errorFilledColor",silent(()=>t.getContrastText(t.error.dark))),setColor(t.Alert,"infoFilledColor",silent(()=>t.getContrastText(t.info.dark))),setColor(t.Alert,"successFilledColor",silent(()=>t.getContrastText(t.success.dark))),setColor(t.Alert,"warningFilledColor",silent(()=>t.getContrastText(t.warning.dark))),setColor(t.Alert,"errorStandardBg",n(private_safeDarken,t.error.light,.9)),setColor(t.Alert,"infoStandardBg",n(private_safeDarken,t.info.light,.9)),setColor(t.Alert,"successStandardBg",n(private_safeDarken,t.success.light,.9)),setColor(t.Alert,"warningStandardBg",n(private_safeDarken,t.warning.light,.9)),setColor(t.Alert,"errorIconColor",r("palette-error-main")),setColor(t.Alert,"infoIconColor",r("palette-info-main")),setColor(t.Alert,"successIconColor",r("palette-success-main")),setColor(t.Alert,"warningIconColor",r("palette-warning-main")),setColor(t.AppBar,"defaultBg",r("palette-grey-900")),setColor(t.AppBar,"darkBg",r("palette-background-paper")),setColor(t.AppBar,"darkColor",r("palette-text-primary")),setColor(t.Avatar,"defaultBg",r("palette-grey-600")),setColor(t.Button,"inheritContainedBg",r("palette-grey-800")),setColor(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),setColor(t.Chip,"defaultBorder",r("palette-grey-700")),setColor(t.Chip,"defaultAvatarColor",r("palette-grey-300")),setColor(t.Chip,"defaultIconColor",r("palette-grey-300")),setColor(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),setColor(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),setColor(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),setColor(t.LinearProgress,"primaryBg",n(private_safeDarken,t.primary.main,.5)),setColor(t.LinearProgress,"secondaryBg",n(private_safeDarken,t.secondary.main,.5)),setColor(t.LinearProgress,"errorBg",n(private_safeDarken,t.error.main,.5)),setColor(t.LinearProgress,"infoBg",n(private_safeDarken,t.info.main,.5)),setColor(t.LinearProgress,"successBg",n(private_safeDarken,t.success.main,.5)),setColor(t.LinearProgress,"warningBg",n(private_safeDarken,t.warning.main,.5)),setColor(t.Skeleton,"bg",b?n(private_safeAlpha,t.text.primary,.13):`rgba(${r("palette-text-primaryChannel")} / 0.13)`),setColor(t.Slider,"primaryTrack",n(private_safeDarken,t.primary.main,.5)),setColor(t.Slider,"secondaryTrack",n(private_safeDarken,t.secondary.main,.5)),setColor(t.Slider,"errorTrack",n(private_safeDarken,t.error.main,.5)),setColor(t.Slider,"infoTrack",n(private_safeDarken,t.info.main,.5)),setColor(t.Slider,"successTrack",n(private_safeDarken,t.success.main,.5)),setColor(t.Slider,"warningTrack",n(private_safeDarken,t.warning.main,.5));const e=b?n(private_safeLighten,t.background.default,.985):private_safeEmphasize(t.background.default,.98);setColor(t.SnackbarContent,"bg",e),setColor(t.SnackbarContent,"color",silent(()=>b?light.text.primary:t.getContrastText(e))),setColor(t.SpeedDialAction,"fabHoverBg",private_safeEmphasize(t.background.paper,.15)),setColor(t.StepConnector,"border",r("palette-grey-600")),setColor(t.StepContent,"border",r("palette-grey-600")),setColor(t.Switch,"defaultColor",r("palette-grey-300")),setColor(t.Switch,"defaultDisabledColor",r("palette-grey-600")),setColor(t.Switch,"primaryDisabledColor",n(private_safeDarken,t.primary.main,.55)),setColor(t.Switch,"secondaryDisabledColor",n(private_safeDarken,t.secondary.main,.55)),setColor(t.Switch,"errorDisabledColor",n(private_safeDarken,t.error.main,.55)),setColor(t.Switch,"infoDisabledColor",n(private_safeDarken,t.info.main,.55)),setColor(t.Switch,"successDisabledColor",n(private_safeDarken,t.success.main,.55)),setColor(t.Switch,"warningDisabledColor",n(private_safeDarken,t.warning.main,.55)),setColor(t.TableCell,"border",n(private_safeDarken,n(private_safeAlpha,t.divider,1),.68)),setColor(t.Tooltip,"bg",n(private_safeAlpha,t.grey[700],.92))}setColorChannel(t.background,"default"),setColorChannel(t.background,"paper"),setColorChannel(t.common,"background"),setColorChannel(t.common,"onBackground"),setColorChannel(t,"divider"),Object.keys(t).forEach(e=>{const r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&setColor(t[e],"mainChannel",private_safeColorChannel(toRgb(r.main))),r.light&&setColor(t[e],"lightChannel",private_safeColorChannel(toRgb(r.light))),r.dark&&setColor(t[e],"darkChannel",private_safeColorChannel(toRgb(r.dark))),r.contrastText&&setColor(t[e],"contrastTextChannel",private_safeColorChannel(toRgb(r.contrastText))),"text"===e&&(setColorChannel(t[e],"primary"),setColorChannel(t[e],"secondary")),"action"===e&&(r.active&&setColorChannel(t[e],"active"),r.selected&&setColorChannel(t[e],"selected")))})}),S=t.reduce((e,t)=>deepmerge(e,t),S);const _={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:defaultGetSelector(S),enableContrastVars:s},{vars:x,generateThemeVars:E,generateStyleSheets:k}=prepareCssVars(S,_);return S.vars=x,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=E,S.generateStyleSheets=k,S.generateSpacing=function(){return createSpacing(c.spacing,createUnarySpacing(this))},S.getColorSchemeSelector=createGetColorSchemeSelector(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...defaultSxConfig,...c?.unstable_sxConfig},S.unstable_sx=function(e){return styleFunctionSx({sx:e,theme:this})},S.toRuntimeSource=stringifyTheme,S}function attachColorScheme(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:createPalette({...!0===r?{}:r.palette,mode:t})})}function createTheme(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=(r?void 0:{light:!0}),defaultColorScheme:i=r?.mode,...s}=e,a=i||"light",l=o?.[a],u={...o,...r?{[a]:{..."boolean"!=typeof l&&l,palette:r}}:void 0};if(!1===n){if(!("colorSchemes"in e))return createThemeNoVars(e,...t);let n=r;"palette"in e||u[a]&&(!0!==u[a]?n=u[a].palette:"dark"===a&&(n={mode:"dark"}));const o=createThemeNoVars({...e,palette:n},...t);return o.defaultColorScheme=a,o.colorSchemes=u,"light"===o.palette.mode&&(o.colorSchemes.light={...!0!==u.light&&u.light,palette:o.palette},attachColorScheme(o,"dark",u.dark)),"dark"===o.palette.mode&&(o.colorSchemes.dark={...!0!==u.dark&&u.dark,palette:o.palette},attachColorScheme(o,"light",u.light)),o}return r||"light"in u||"light"!==a||(u.light=!0),createThemeWithVars({...s,colorSchemes:u,defaultColorScheme:a,..."boolean"!=typeof n&&n},...t)}const defaultTheme$1=createTheme();function useTheme(){const e=useTheme$1(defaultTheme$1);return e[THEME_ID]||e}function slotShouldForwardProp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const rootShouldForwardProp=e=>slotShouldForwardProp(e)&&"classes"!==e,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp:rootShouldForwardProp});function createChainedFunction$1(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function GlobalStyles(e){return u$1(GlobalStyles$1,{...e,defaultTheme:defaultTheme$1,themeId:THEME_ID})}function globalCss(e){return function(t){return u$1(GlobalStyles,{styles:"function"==typeof e?r=>e({theme:r,...t}):e})}}function internal_createExtendSxProp(){return extendSxProp$1}const memoTheme=unstable_memoTheme;function useDefaultProps(e){return useDefaultProps$1(e)}function getSvgIconUtilityClass(e){return generateUtilityClass("MuiSvgIcon",e)}generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const useUtilityClasses$r=e=>{const{color:t,fontSize:r,classes:n}=e;return composeClasses({root:["root","inherit"!==t&&`color${capitalize(t)}`,`fontSize${capitalize(r)}`]},getSvgIconUtilityClass,n)},SvgIconRoot=styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${capitalize(r.color)}`],t[`fontSize${capitalize(r.fontSize)}`]]}})(memoTheme(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),SvgIcon$1=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:s="svg",fontSize:a="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=r,p=mn(n)&&"svg"===n.type,h={...r,color:i,component:s,fontSize:a,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},m={};u||(m.viewBox=d);const g=useUtilityClasses$r(h);return u$1(SvgIconRoot,{as:s,className:clsx$1(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...m,...f,...p&&n.props,ownerState:h,children:[p?n.props.children:n,c?u$1("title",{children:c}):null]})});function createSvgIcon(e,t){function r(t,r){return u$1(SvgIcon$1,{"data-testid":void 0,ref:r,...t,children:e})}return r.muiName=SvgIcon$1.muiName,M(D$1(r))}function debounce$2(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function ownerDocument$1(e){return e&&e.ownerDocument||document}function ownerWindow$1(e){return ownerDocument$1(e).defaultView||window}function setRef$1(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function useControlled(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:i}=A$1(void 0!==t),[s,a]=d(r);return[i?t:s,q$2(e=>{i||a(e)},[])]}function useEventCallback$1(e){const t=A$1(e);return useEnhancedEffect$1(()=>{t.current=e}),A$1((...e)=>(0,t.current)(...e)).current}function useForkRef$1(...e){const t=A$1(void 0),r=q$2(t=>{const r=e.map(e=>{if(null==e)return null;if("function"==typeof e){const r=e,n=r(t);return"function"==typeof n?n:()=>{r(null)}}return e.current=t,()=>{e.current=null}});return()=>{r.forEach(e=>e?.())}},e);return T$1(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=r(e))},e)}function isEventHandler(e,t){const r=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&r>=65&&r<=90&&"function"==typeof t}function mergeSlotProps$1(e,t){if(!e)return t;function r(e,t){const r={};return Object.keys(t).forEach(n=>{isEventHandler(n,t[n])&&"function"==typeof e[n]&&(r[n]=(...r)=>{e[n](...r),t[n](...r)})}),r}if("function"==typeof e||"function"==typeof t)return n=>{const o="function"==typeof t?t(n):t,i="function"==typeof e?e({...n,...o}):e,s=clsx$1(n?.className,o?.className,i?.className),a=r(i,o);return{...o,...i,...a,...!!s&&{className:s},...o?.style&&i?.style&&{style:{...o.style,...i.style}},...o?.sx&&i?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(i.sx)?i.sx:[i.sx]]}}};const n=t,o=r(e,n),i=clsx$1(n?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}SvgIcon$1.muiName="SvgIcon";var config$1={disabled:!1},TransitionGroupContext=Rn.createContext(null),forceReflow=function(e){return e.scrollTop},UNMOUNTED$1="unmounted",EXITED$1="exited",ENTERING$1="entering",ENTERED$1="entered",EXITING$1="exiting",Transition$1=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=EXITED$1,n.appearStatus=ENTERING$1):o=ENTERED$1:o=t.unmountOnExit||t.mountOnEnter?UNMOUNTED$1:EXITED$1,n.state={status:o},n.nextCallback=null,n}_inheritsLoose$1(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===UNMOUNTED$1?{status:EXITED$1}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ENTERING$1&&r!==ENTERED$1&&(t=ENTERING$1):r!==ENTERING$1&&r!==ENTERED$1||(t=EXITING$1)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ENTERING$1){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Rn.findDOMNode(this);r&&forceReflow(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED$1&&this.setState({status:UNMOUNTED$1})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Rn.findDOMNode(this),n],i=o[0],s=o[1],a=this.getTimeouts(),l=n?a.appear:a.enter;!e&&!r||config$1.disabled?this.safeSetState({status:ENTERED$1},function(){t.props.onEntered(i)}):(this.props.onEnter(i,s),this.safeSetState({status:ENTERING$1},function(){t.props.onEntering(i,s),t.onTransitionEnd(l,function(){t.safeSetState({status:ENTERED$1},function(){t.props.onEntered(i,s)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Rn.findDOMNode(this);t&&!config$1.disabled?(this.props.onExit(n),this.safeSetState({status:EXITING$1},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:EXITED$1},function(){e.props.onExited(n)})})})):this.safeSetState({status:EXITED$1},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Rn.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===UNMOUNTED$1)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=_objectWithoutPropertiesLoose$1(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Rn.createElement(TransitionGroupContext.Provider,{value:null},"function"==typeof r?r(e,n):Rn.cloneElement(Rn.Children.only(r),n))},t}(Rn.Component);function noop$4(){}function _assertThisInitialized$1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function getChildMapping(e,t){var r=Object.create(null);return e&&O.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&mn(e)?t(e):e}(e)}),r}function mergeChildMappings(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var s in e)s in t?i.length&&(o[s]=i,i=[]):i.push(s);var a={};for(var l in t){if(o[l])for(n=0;n{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function useTimeout(){const e=useLazyRef(Timeout.create).current;return useOnMount(e.disposeEffect),e}const reflow$1=e=>e.scrollTop;function getTransitionProps$1(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof r?r:r[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof n?n[t.mode]:n),delay:o.transitionDelay}}function getPaperUtilityClass(e){return generateUtilityClass("MuiPaper",e)}generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const useUtilityClasses$q=e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return composeClasses({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},getPaperUtilityClass,o)},PaperRoot=styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(memoTheme(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Paper=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiPaper"}),n=useTheme(),{className:o,component:i="div",elevation:s=1,square:a=!1,variant:l="elevation",...u}=r,c={...r,component:i,elevation:s,square:a,variant:l},d=useUtilityClasses$q(c);return u$1(PaperRoot,{as:i,ownerState:c,className:clsx$1(d.root,o),ref:t,...u,style:{..."elevation"===l&&{"--Paper-shadow":(n.vars||n).shadows[s],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[s]},...!n.vars&&"dark"===n.palette.mode&&{"--Paper-overlay":`linear-gradient(${alpha("#fff",getOverlayAlpha(s))}, ${alpha("#fff",getOverlayAlpha(s))})`}},...u.style}})});function isHostComponent(e){return"string"==typeof e}function appendOwnerState(e,t,r){return void 0===e||isHostComponent(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function resolveComponentProps(e,t,r){return"function"==typeof e?e(t,r):e}function extractEventHandlers(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function omitEventHandlers(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function mergeSlotProps(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=clsx$1(r?.className,i,o?.className,n?.className),t={...r?.style,...o?.style,...n?.style},s={...r,...o,...n};return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=extractEventHandlers({...o,...n}),a=omitEventHandlers(n),l=omitEventHandlers(o),u=t(s),c=clsx$1(u?.className,r?.className,i,o?.className,n?.className),d={...u?.style,...r?.style,...o?.style,...n?.style},f={...u,...r,...l,...a};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function useSlot(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=c[e]||n,h=resolveComponentProps(d[e],o),{props:{component:m,...g},internalRef:y}=mergeSlotProps({className:r,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h}),A=useForkRef$1(y,h?.ref,t.ref),b="root"===e?m||u:m;return[p,appendOwnerState(p,{..."root"===e&&!u&&!c[e]&&s,..."root"!==e&&!c[e]&&s,...g,...b&&!a&&{as:b},...b&&a&&{component:b},ref:A},o)]}function isFocusVisible(e){try{return e.matches(":focus-visible")}catch(e){}return!1}class LazyRipple{static create(){return new LazyRipple}static use(){const e=useLazyRef(LazyRipple.create).current,[t,r]=d(!1);return e.shouldMount=t,e.setShouldMount=r,y(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=createControlledPromise(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function useLazyRipple(){return LazyRipple.use()}function createControlledPromise(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}function Ripple(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,f]=d(!1),p=clsx$1(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:s,height:s,top:-s/2+i,left:-s/2+o},m=clsx$1(r.child,c&&r.childLeaving,n&&r.childPulsate);return a||c||f(!0),y(()=>{if(!a&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,a,u]),u$1("span",{className:p,style:h,children:u$1("span",{className:m})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,exitKeyframe=keyframes` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,pulsateKeyframe=keyframes` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,TouchRippleRoot=styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),TouchRippleRipple=styled(Ripple,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${touchRippleClasses.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${enterKeyframe}; + animation-duration: ${DURATION}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${touchRippleClasses.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${touchRippleClasses.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${touchRippleClasses.childLeaving} { + opacity: 0; + animation-name: ${exitKeyframe}; + animation-duration: ${DURATION}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${touchRippleClasses.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${pulsateKeyframe}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,TouchRipple=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i,...s}=r,[a,l]=d([]),u=A$1(0),c=A$1(null);y(()=>{c.current&&(c.current(),c.current=null)},[a]);const f=A$1(!1),p=useTimeout(),h=A$1(null),m=A$1(null),g=q$2(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:s}=e;l(e=>[...e,u$1(TouchRippleRipple,{classes:{ripple:clsx$1(o.ripple,touchRippleClasses.ripple),rippleVisible:clsx$1(o.rippleVisible,touchRippleClasses.rippleVisible),ripplePulsate:clsx$1(o.ripplePulsate,touchRippleClasses.ripplePulsate),child:clsx$1(o.child,touchRippleClasses.child),childLeaving:clsx$1(o.childLeaving,touchRippleClasses.childLeaving),childPulsate:clsx$1(o.childPulsate,touchRippleClasses.childPulsate)},timeout:DURATION,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)]),u.current+=1,c.current=s},[o]),A=q$2((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===e?.type&&f.current)return void(f.current=!1);"touchstart"===e?.type&&(f.current=!0);const a=s?null:m.current,l=a?a.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((a?a.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((a?a.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}e?.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},p.start(DELAY_RIPPLE,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},[n,g,p]),b=q$2(()=>{A({},{pulsate:!0})},[A]),v=q$2((e,t)=>{if(p.clear(),"touchend"===e?.type&&h.current)return h.current(),h.current=null,void p.start(0,()=>{v(e,t)});h.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return F$1(t,()=>({pulsate:b,start:A,stop:v}),[b,A,v]),u$1(TouchRippleRoot,{className:clsx$1(touchRippleClasses.root,o.root,i),ref:m,...s,children:u$1(TransitionGroup,{component:null,exit:!0,children:a})})});function getButtonBaseUtilityClass(e){return generateUtilityClass("MuiButtonBase",e)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),useUtilityClasses$p=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=composeClasses({root:["root",t&&"disabled",r&&"focusVisible"]},getButtonBaseUtilityClass,o);return r&&n&&(i.root+=` ${n}`),i},ButtonBaseRoot=styled("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:s,component:a="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:m,onClick:g,onContextMenu:A,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:S,onKeyUp:_,onMouseDown:x,onMouseLeave:E,onMouseUp:k,onTouchEnd:T,onTouchMove:R,onTouchStart:C,tabIndex:B=0,TouchRippleProps:O,touchRippleRef:I,type:P,...$}=r,N=A$1(null),M=useLazyRipple(),L=useForkRef$1(M.ref,I),[D,q]=d(!1);l&&D&&q(!1),F$1(n,()=>({focusVisible:()=>{q(!0),N.current.focus()}}),[]);const U=M.shouldMount&&!u&&!l;y(()=>{D&&f&&!u&&M.pulsate()},[u,f,D,M]);const F=useRippleHandler(M,"start",x,c),j=useRippleHandler(M,"stop",A,c),H=useRippleHandler(M,"stop",b,c),z=useRippleHandler(M,"stop",k,c),W=useRippleHandler(M,"stop",e=>{D&&e.preventDefault(),E&&E(e)},c),V=useRippleHandler(M,"start",C,c),G=useRippleHandler(M,"stop",T,c),K=useRippleHandler(M,"stop",R,c),Z=useRippleHandler(M,"stop",e=>{isFocusVisible(e.target)||q(!1),m&&m(e)},!1),J=useEventCallback$1(e=>{N.current||(N.current=e.currentTarget),isFocusVisible(e.target)&&(q(!0),w&&w(e)),v&&v(e)}),X=()=>{const e=N.current;return a&&"button"!==a&&!("A"===e.tagName&&e.href)},Q=useEventCallback$1(e=>{f&&!e.repeat&&D&&" "===e.key&&M.stop(e,()=>{M.start(e)}),e.target===e.currentTarget&&X()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&X()&&"Enter"===e.key&&!l&&(e.preventDefault(),g&&g(e))}),Y=useEventCallback$1(e=>{f&&" "===e.key&&D&&!e.defaultPrevented&&M.stop(e,()=>{M.pulsate(e)}),_&&_(e),g&&e.target===e.currentTarget&&X()&&" "===e.key&&!e.defaultPrevented&&g(e)});let ee=a;"button"===ee&&($.href||$.to)&&(ee=h);const te={};"button"===ee?(te.type=void 0===P?"button":P,te.disabled=l):($.href||$.to||(te.role="button"),l&&(te["aria-disabled"]=l));const re=useForkRef$1(t,N),ne={...r,centerRipple:o,component:a,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:f,tabIndex:B,focusVisible:D},oe=useUtilityClasses$p(ne);return u$1(ButtonBaseRoot,{as:ee,className:clsx$1(oe.root,s),ownerState:ne,onBlur:Z,onClick:g,onContextMenu:j,onFocus:J,onKeyDown:Q,onKeyUp:Y,onMouseDown:F,onMouseLeave:W,onMouseUp:z,onDragLeave:H,onTouchEnd:G,onTouchMove:K,onTouchStart:V,ref:re,tabIndex:l?-1:B,type:P,...te,...$,children:[i,U?u$1(TouchRipple,{ref:L,center:o,...O}):null]})});function useRippleHandler(e,t,r,n=!1){return useEventCallback$1(o=>(r&&r(o),n||e[t](o),!0))}function hasCorrectMainProperty(e){return"string"==typeof e.main}function checkSimplePaletteColorValues(e,t=[]){if(!hasCorrectMainProperty(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}function createSimplePaletteValueFilter(e=[]){return([,t])=>t&&checkSimplePaletteColorValues(t,e)}function getCircularProgressUtilityClass(e){return generateUtilityClass("MuiCircularProgress",e)}generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const SIZE=44,circularRotateKeyframe=keyframes` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,circularDashKeyframe=keyframes` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: -126px; + } +`,rotateAnimation="string"!=typeof circularRotateKeyframe?css` + animation: ${circularRotateKeyframe} 1.4s linear infinite; + `:null,dashAnimation="string"!=typeof circularDashKeyframe?css` + animation: ${circularDashKeyframe} 1.4s ease-in-out infinite; + `:null,useUtilityClasses$o=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e;return composeClasses({root:["root",r,`color${capitalize(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${capitalize(r)}`,o&&"circleDisableShrink"]},getCircularProgressUtilityClass,t)},CircularProgressRoot=styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${capitalize(r.color)}`]]}})(memoTheme(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rotateAnimation||{animation:`${circularRotateKeyframe} 1.4s linear infinite`}},...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),CircularProgressSVG=styled("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),CircularProgressCircle=styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${capitalize(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(memoTheme(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:dashAnimation||{animation:`${circularDashKeyframe} 1.4s ease-in-out infinite`}}]}))),CircularProgressTrack=styled("circle",{name:"MuiCircularProgress",slot:"Track"})(memoTheme(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),CircularProgress=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:i=!1,enableTrackSlot:s=!1,size:a=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate",...f}=r,p={...r,color:o,disableShrink:i,size:a,thickness:u,value:c,variant:d,enableTrackSlot:s},h=useUtilityClasses$o(p),m={},g={},y={};if("determinate"===d){const e=2*Math.PI*((SIZE-u)/2);m.strokeDasharray=e.toFixed(3),y["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return u$1(CircularProgressRoot,{className:clsx$1(h.root,n),style:{width:a,height:a,...g,...l},ownerState:p,ref:t,role:"progressbar",...y,...f,children:u$1(CircularProgressSVG,{className:h.svg,ownerState:p,viewBox:`${SIZE/2} ${SIZE/2} ${SIZE} ${SIZE}`,children:[s?u$1(CircularProgressTrack,{className:h.track,ownerState:p,cx:SIZE,cy:SIZE,r:(SIZE-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,u$1(CircularProgressCircle,{className:h.circle,style:m,ownerState:p,cx:SIZE,cy:SIZE,r:(SIZE-u)/2,fill:"none",strokeWidth:u})]})})});function getIconButtonUtilityClass(e){return generateUtilityClass("MuiIconButton",e)}const iconButtonClasses=generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),useUtilityClasses$n=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:s}=e;return composeClasses({root:["root",s&&"loading",r&&"disabled","default"!==n&&`color${capitalize(n)}`,o&&`edge${capitalize(o)}`,`size${capitalize(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},getIconButtonUtilityClass,t)},IconButtonRoot=styled(ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,"default"!==r.color&&t[`color${capitalize(r.color)}`],r.edge&&t[`edge${capitalize(r.edge)}`],t[`size${capitalize(r.size)}`]]}})(memoTheme(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),memoTheme(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${iconButtonClasses.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${iconButtonClasses.loading}`]:{color:"transparent"}}))),IconButtonLoadingIndicator=styled("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),IconButton=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:s="default",disabled:a=!1,disableFocusRipple:l=!1,size:u="medium",id:c,loading:d=null,loadingIndicator:f,...p}=r,h=useId(c),m=f??u$1(CircularProgress,{"aria-labelledby":h,color:"inherit",size:16}),g={...r,edge:n,color:s,disabled:a,disableFocusRipple:l,loading:d,loadingIndicator:m,size:u},y=useUtilityClasses$n(g);return u$1(IconButtonRoot,{id:d?h:c,className:clsx$1(y.root,i),centerRipple:!0,focusRipple:!l,disabled:a||d,ref:t,...p,ownerState:g,children:["boolean"==typeof d&&u$1("span",{className:y.loadingWrapper,style:{display:"contents"},children:u$1(IconButtonLoadingIndicator,{className:y.loadingIndicator,ownerState:g,children:d&&m})}),o]})});function getTypographyUtilityClass(e){return generateUtilityClass("MuiTypography",e)}generateUtilityClasses("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const v6Colors={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},extendSxProp=internal_createExtendSxProp(),useUtilityClasses$m=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:s}=e;return composeClasses({root:["root",i,"inherit"!==e.align&&`align${capitalize(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},getTypographyUtilityClass,s)},TypographyRoot=styled("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${capitalize(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(memoTheme(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${capitalize(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),defaultVariantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Typography=D$1(function(e,t){const{color:r,...n}=useDefaultProps({props:e,name:"MuiTypography"}),o=!v6Colors[r],i=extendSxProp({...n,...o&&{color:r}}),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=defaultVariantMapping,...h}=i,m={...i,align:s,color:r,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p},g=l||(d?"p":p[f]||defaultVariantMapping[f])||"span",y=useUtilityClasses$m(m);return u$1(TypographyRoot,{as:g,ref:t,className:clsx$1(y.root,a),...h,ownerState:m,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...h.style}})});var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(e,t){return e.concat([t+"-"+start,t+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement$1(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];isHTMLElement$1(o)&&getNodeName(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})}function effect$2(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});isHTMLElement$1(n)&&getNodeName(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max$2=Math.max,min$2=Math.min,round$3=Math.round;function getUAString(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&isHTMLElement$1(e)&&(o=e.offsetWidth>0&&round$3(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&round$3(n.height)/e.offsetHeight||1);var s=(isElement(e)?getWindow(e):window).visualViewport,a=!isLayoutViewport()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/o,u=(n.top+(a&&s?s.offsetTop:0))/i,c=n.width/o,d=n.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function getLayoutRect(e){var t=getBoundingClientRect(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement$1(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function getContainingBlock(e){var t=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement$1(e)&&"fixed"===getComputedStyle(e).position)return null;var r=getParentNode(e);for(isShadowRoot(r)&&(r=r.host);isHTMLElement$1(r)&&["html","body"].indexOf(getNodeName(r))<0;){var n=getComputedStyle(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),r=getTrueOffsetParent(e);r&&isTableElement(r)&&"static"===getComputedStyle(r).position;)r=getTrueOffsetParent(r);return r&&("html"===getNodeName(r)||"body"===getNodeName(r)&&"static"===getComputedStyle(r).position)?t:r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,r){return max$2(e,min$2(t,r))}function withinMaxClamp(e,t,r){var n=within(e,t,r);return n>r?r:n}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var toPaddingObject=function(e,t){return mergePaddingObject("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,basePlacements))};function arrow(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=getBasePlacement(r.placement),l=getMainAxisFromPlacement(a),u=[left,right].indexOf(a)>=0?"height":"width";if(i&&s){var c=toPaddingObject(o.padding,r),d=getLayoutRect(i),f="y"===l?top:left,p="y"===l?bottom:right,h=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],m=s[l]-r.rects.reference[l],g=getOffsetParent(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,A=h/2-m/2,b=c[f],v=y-d[u]-c[p],w=y/2-d[u]/2+A,S=within(b,w,v),_=l;r.modifiersData[n]=((t={})[_]=S,t.centerOffset=S-w,t)}}function effect$1(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&contains(t.elements.popper,n)&&(t.elements.arrow=n)}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:round$3(r*o)/o||0,y:round$3(n*o)/o||0}}function mapToStyles(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=void 0===f?0:f,h=s.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),b=left,v=top,w=window;if(u){var S=getOffsetParent(r),_="clientHeight",x="clientWidth";if(S===getWindow(r)&&"static"!==getComputedStyle(S=getDocumentElement(r)).position&&"absolute"===a&&(_="scrollHeight",x="scrollWidth"),o===top||(o===left||o===right)&&i===end)v=bottom,m-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[_])-n.height,m*=l?1:-1;if(o===left||(o===top||o===bottom)&&i===end)b=right,p-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[x])-n.width,p*=l?1:-1}var E,k=Object.assign({position:a},u&&unsetSides),T=!0===c?roundOffsetsByDPR({x:p,y:m},getWindow(r)):{x:p,y:m};return p=T.x,m=T.y,l?Object.assign({},k,((E={})[v]=A?"0":"",E[b]=y?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},k,((t={})[v]=A?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,s=void 0===i||i,a=r.roundOffsets,l=void 0===a||a,u={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,s=n.resize,a=void 0===s||s,l=getWindow(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(e){e.addEventListener("scroll",r.update,passive)}),a&&l.addEventListener("resize",r.update,passive),function(){i&&u.forEach(function(e){e.removeEventListener("scroll",r.update,passive)}),a&&l.removeEventListener("resize",r.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect,data:{}},hash$2={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,function(e){return hash$2[e]})}var hash$1={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,function(e){return hash$1[e]})}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e,t){var r=getWindow(e),n=getDocumentElement(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=isLayoutViewport();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+getWindowScrollBarX(e),y:l}}function getDocumentRect(e){var t,r=getDocumentElement(e),n=getWindowScroll(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=max$2(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=max$2(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+getWindowScrollBarX(e),l=-n.scrollTop;return"rtl"===getComputedStyle(o||r).direction&&(a+=max$2(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement$1(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;void 0===t&&(t=[]);var n=getScrollParent(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=getWindow(n),s=o?[i].concat(i.visualViewport||[],isScrollParent(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(listScrollParents(getParentNode(s)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e,t){var r=getBoundingClientRect(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function getClientRectFromMixedType(e,t,r){return t===viewport?rectToClientRect(getViewportRect(e,r)):isElement(t)?getInnerBoundingClientRect(t,r):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e)),r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0&&isHTMLElement$1(e)?getOffsetParent(e):e;return isElement(r)?t.filter(function(e){return isElement(e)&&contains(e,r)&&"body"!==getNodeName(e)}):[]}function getClippingRect(e,t,r,n){var o="clippingParents"===t?getClippingParents(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(t,r){var o=getClientRectFromMixedType(e,r,n);return t.top=max$2(o.top,t.top),t.right=min$2(o.right,t.right),t.bottom=min$2(o.bottom,t.bottom),t.left=max$2(o.left,t.left),t},getClientRectFromMixedType(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function computeOffsets(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?getBasePlacement(o):null,s=o?getVariation(o):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case top:t={x:a,y:r.y-n.height};break;case bottom:t={x:a,y:r.y+r.height};break;case right:t={x:r.x+r.width,y:l};break;case left:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=i?getMainAxisFromPlacement(i):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case start:t[u]=t[u]-(r[c]/2-n[c]/2);break;case end:t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,s=void 0===i?e.strategy:i,a=r.boundary,l=void 0===a?clippingParents:a,u=r.rootBoundary,c=void 0===u?viewport:u,d=r.elementContext,f=void 0===d?popper:d,p=r.altBoundary,h=void 0!==p&&p,m=r.padding,g=void 0===m?0:m,y=mergePaddingObject("number"!=typeof g?g:expandToHashMap(g,basePlacements)),A=f===popper?reference:popper,b=e.rects.popper,v=e.elements[h?A:f],w=getClippingRect(isElement(v)?v:v.contextElement||getDocumentElement(e.elements.popper),l,c,s),S=getBoundingClientRect(e.elements.reference),_=computeOffsets({reference:S,element:b,placement:o}),x=rectToClientRect(Object.assign({},b,_)),E=f===popper?x:S,k={top:w.top-E.top+y.top,bottom:E.bottom-w.bottom+y.bottom,left:w.left-E.left+y.left,right:E.right-w.right+y.right},T=e.modifiersData.offset;if(f===popper&&T){var R=T[o];Object.keys(k).forEach(function(e){var t=[right,bottom].indexOf(e)>=0?1:-1,r=[top,bottom].indexOf(e)>=0?"y":"x";k[e]+=R[r]*t})}return k}function computeAutoPlacement(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?placements:l,c=getVariation(n),d=c?a?variationPlacements:variationPlacements.filter(function(e){return getVariation(e)===c}):basePlacements,f=d.filter(function(e){return u.indexOf(e)>=0});0===f.length&&(f=d);var p=f.reduce(function(t,r){return t[r]=detectOverflow(e,{placement:r,boundary:o,rootBoundary:i,padding:s})[getBasePlacement(r)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0===s||s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,g=t.options.placement,y=getBasePlacement(g),A=l||(y===g||!h?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g)),b=[g].concat(A).reduce(function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):r)},[]),v=t.rects.reference,w=t.rects.popper,S=new Map,_=!0,x=b[0],E=0;E=0,B=C?"width":"height",O=detectOverflow(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),I=C?R?right:left:R?bottom:top;v[B]>w[B]&&(I=getOppositePlacement(I));var P=getOppositePlacement(I),$=[];if(i&&$.push(O[T]<=0),a&&$.push(O[I]<=0,O[P]<=0),$.every(function(e){return e})){x=k,_=!1;break}S.set(k,$)}if(_)for(var N=function(e){var t=b.find(function(t){var r=S.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},M=h?3:1;M>0;M--){if("break"===N(M))break}t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some(function(t){return e[t]>=0})}function hide(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=detectOverflow(t,{elementContext:"reference"}),a=detectOverflow(t,{altBoundary:!0}),l=getSideOffsets(s,n),u=getSideOffsets(a,o,i),c=isAnySideFullyClipped(l),d=isAnySideFullyClipped(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e),o=[left,top].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[left,right].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function offset(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,s=placements.reduce(function(e,r){return e[r]=distanceAndSkiddingToXY(r,t.rects,i),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return"x"===e?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,s=r.altAxis,a=void 0!==s&&s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,m=void 0===h?0:h,g=detectOverflow(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=getBasePlacement(t.placement),A=getVariation(t.placement),b=!A,v=getMainAxisFromPlacement(y),w=getAltAxis(v),S=t.modifiersData.popperOffsets,_=t.rects.reference,x=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(i){var C,B="y"===v?top:left,O="y"===v?bottom:right,I="y"===v?"height":"width",P=S[v],$=P+g[B],N=P-g[O],M=p?-x[I]/2:0,L=A===start?_[I]:x[I],D=A===start?-x[I]:-_[I],q=t.elements.arrow,U=p&&q?getLayoutRect(q):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject(),j=F[B],H=F[O],z=within(0,_[I],U[I]),W=b?_[I]/2-M-z-j-k.mainAxis:L-z-j-k.mainAxis,V=b?-_[I]/2+M+z+H+k.mainAxis:D+z+H+k.mainAxis,G=t.elements.arrow&&getOffsetParent(t.elements.arrow),K=G?"y"===v?G.clientTop||0:G.clientLeft||0:0,Z=null!=(C=null==T?void 0:T[v])?C:0,J=P+V-Z,X=within(p?min$2($,P+W-Z-K):$,P,p?max$2(N,J):N);S[v]=X,R[v]=X-P}if(a){var Q,Y="x"===v?top:left,ee="x"===v?bottom:right,te=S[w],re="y"===w?"height":"width",ne=te+g[Y],oe=te-g[ee],ie=-1!==[top,left].indexOf(y),se=null!=(Q=null==T?void 0:T[w])?Q:0,ae=ie?ne:te-_[re]-x[re]-se+k.altAxis,le=ie?te+_[re]+x[re]-se-k.altAxis:oe,ue=p&&ie?withinMaxClamp(ae,te,le):within(p?ae:ne,te,p?le:oe);S[w]=ue,R[w]=ue-te}t.modifiersData[n]=R}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement$1(e)?getHTMLElementScroll(e):getWindowScroll(e)}function isElementScaled(e){var t=e.getBoundingClientRect(),r=round$3(t.width)/e.offsetWidth||1,n=round$3(t.height)/e.offsetHeight||1;return 1!==r||1!==n}function getCompositeRect(e,t,r){void 0===r&&(r=!1);var n=isHTMLElement$1(t),o=isHTMLElement$1(t)&&isElementScaled(t),i=getDocumentElement(t),s=getBoundingClientRect(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==getNodeName(t)||isScrollParent(i))&&(a=getNodeScroll(t)),isHTMLElement$1(t)?((l=getBoundingClientRect(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=getWindowScrollBarX(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function order(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}function debounce$1(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mergeByName(e){var t=e.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r=19?e?.props?.ref||null:e?.ref||null}function getContainer$1(e){return"function"==typeof e?e():e}const Portal=D$1(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,s]=d(null),a=useForkRef$1(mn(r)?getReactElementRef(r):null,t);if(useEnhancedEffect$1(()=>{o||s(getContainer$1(n)||document.body)},[n,o]),useEnhancedEffect$1(()=>{if(i&&!o)return setRef$1(t,i),()=>{setRef$1(t,null)}},[t,i,o]),o){if(mn(r)){return _n(r,{ref:a})}return r}return i?$$1(r,i):i});function getPopperUtilityClass(e){return generateUtilityClass("MuiPopper",e)}function flipPlacement(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function resolveAnchorEl$1(e){return"function"==typeof e?e():e}function isHTMLElement(e){return void 0!==e.nodeType}generateUtilityClasses("MuiPopper",["root"]);const useUtilityClasses$l=e=>{const{classes:t}=e;return composeClasses({root:["root"]},getPopperUtilityClass,t)},defaultPopperOptions={},PopperTooltip=D$1(function(e,t){const{anchorEl:r,children:n,direction:o,disablePortal:i,modifiers:s,open:a,placement:l,popperOptions:u,popperRef:c,slotProps:f={},slots:p={},TransitionProps:h,ownerState:m,...g}=e,A=A$1(null),b=useForkRef$1(A,t),v=A$1(null),w=useForkRef$1(v,c),S=A$1(w);useEnhancedEffect$1(()=>{S.current=w},[w]),F$1(c,()=>v.current,[]);const _=flipPlacement(l,o),[x,E]=d(_),[k,T]=d(resolveAnchorEl$1(r));y(()=>{v.current&&v.current.forceUpdate()}),y(()=>{r&&T(resolveAnchorEl$1(r))},[r]),useEnhancedEffect$1(()=>{if(!k||!a)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=s&&(e=e.concat(s)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=createPopper(k,A.current,{placement:_,...u,modifiers:e});return S.current(t),()=>{t.destroy(),S.current(null)}},[k,i,s,a,u,_]);const R={placement:x};null!==h&&(R.TransitionProps=h);const C=useUtilityClasses$l(e),B=p.root??"div";return u$1(B,{...useSlotProps({elementType:B,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:C.root}),children:"function"==typeof n?n(R):n})}),Popper$1=D$1(function(e,t){const{anchorEl:r,children:n,container:o,direction:i="ltr",disablePortal:s=!1,keepMounted:a=!1,modifiers:l,open:u,placement:c="bottom",popperOptions:f=defaultPopperOptions,popperRef:p,style:h,transition:m=!1,slotProps:g={},slots:y={},...A}=e,[b,v]=d(!0);if(!a&&!u&&(!m||b))return null;let w;if(o)w=o;else if(r){const e=resolveAnchorEl$1(r);w=e&&isHTMLElement(e)?ownerDocument$1(e).body:ownerDocument$1(null).body}return u$1(Portal,{disablePortal:s,container:w,children:u$1(PopperTooltip,{anchorEl:r,direction:i,disablePortal:s,modifiers:l,ref:t,open:m?!b:u,placement:c,popperOptions:f,popperRef:p,slotProps:g,slots:y,...A,style:{position:"fixed",top:0,left:0,display:u||!a||m&&!b?void 0:"none",...h},TransitionProps:m?{in:u,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0,children:n})})}),PopperRoot=styled(Popper$1,{name:"MuiPopper",slot:"Root"})({}),Popper=D$1(function(e,t){const r=useRtl(),n=useDefaultProps({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:s,componentsProps:a,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,transition:g,slots:y,slotProps:A,...b}=n,v={anchorEl:o,container:l,disablePortal:u,keepMounted:c,modifiers:d,open:f,placement:p,popperOptions:h,popperRef:m,transition:g,...b};return u$1(PopperRoot,{as:i,direction:r?"rtl":"ltr",slots:{root:y?.root??s?.Root},slotProps:A??a,...v,ref:t})});function getStyleValue(e){return parseInt(e,10)||0}const styles$5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function isObjectEmpty(e){for(const t in e)return!1;return!0}function isEmpty$1(e){return isObjectEmpty(e)||0===e.outerHeightStyle&&!e.overflowing}const TextareaAutosize=D$1(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:s,...a}=e,{current:l}=A$1(null!=s),u=A$1(null),c=useForkRef$1(t,u),d=A$1(null),f=A$1(null),p=q$2(()=>{const t=u.current,r=f.current;if(!t||!r)return;const i=ownerWindow$1(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const s=i.boxSizing,a=getStyleValue(i.paddingBottom)+getStyleValue(i.paddingTop),l=getStyleValue(i.borderBottomWidth)+getStyleValue(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=c;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===s?a+l:0),overflowing:Math.abs(p-c)<=1}},[n,o,e.placeholder]),h=useEventCallback$1(()=>{const e=u.current,t=p();if(!e||!t||isEmpty$1(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=q$2(()=>{const e=u.current,t=p();if(!e||!t||isEmpty$1(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[p]),g=A$1(-1);useEnhancedEffect$1(()=>{const e=debounce$2(m),t=u?.current;if(!t)return;const r=ownerWindow$1(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[p,m,h]),useEnhancedEffect$1(()=>{m()});return u$1(k$2,{children:[u$1("textarea",{value:s,onChange:e=>{l||m();const t=e.target,n=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===n;o&&i&&t.setSelectionRange(n,n),r&&r(e)},ref:c,rows:o,style:i,...a}),u$1("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...styles$5.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function formControlState({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const FormControlContext=Q$1(void 0);function useFormControl(){return x$2(FormControlContext)}function hasValue(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function isFilled(e,t=!1){return e&&(hasValue(e.value)&&""!==e.value||t&&hasValue(e.defaultValue)&&""!==e.defaultValue)}function isAdornedStart(e){return e.startAdornment}function getInputBaseUtilityClass(e){return generateUtilityClass("MuiInputBase",e)}const inputBaseClasses=generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _InputGlobalStyles;const rootOverridesResolver=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${capitalize(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},inputOverridesResolver=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},useUtilityClasses$k=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e;return composeClasses({root:["root",`color${capitalize(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&"medium"!==f&&`size${capitalize(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},getInputBaseUtilityClass,t)},InputBaseRoot=styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:rootOverridesResolver})(memoTheme(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${inputBaseClasses.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),InputBaseInput=styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:e})=>{const t="light"===e.palette.mode,r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${inputBaseClasses.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${inputBaseClasses.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),InputGlobalStyles=globalCss({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),InputBase=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiInputBase"}),{"aria-describedby":n,autoComplete:o,autoFocus:i,className:s,color:a,components:l={},componentsProps:u={},defaultValue:c,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,error:m,fullWidth:g=!1,id:A,inputComponent:b="input",inputProps:v={},inputRef:w,margin:S,maxRows:_,minRows:x,multiline:E=!1,name:k,onBlur:T,onChange:R,onClick:C,onFocus:B,onKeyDown:O,onKeyUp:I,placeholder:P,readOnly:$,renderSuffix:N,rows:M,size:L,slotProps:D={},slots:q={},startAdornment:U,type:F="text",value:j,...H}=r,z=null!=v.value?v.value:j,{current:W}=A$1(null!=z),V=A$1(),G=q$2(e=>{},[]),K=useForkRef$1(V,w,v.ref,G),[Z,J]=d(!1),X=useFormControl(),Q=formControlState({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:Z,y(()=>{!X&&f&&Z&&(J(!1),T&&T())},[X,f,Z,T]);const Y=X&&X.onFilled,ee=X&&X.onEmpty,te=q$2(e=>{isFilled(e)?Y&&Y():ee&&ee()},[Y,ee]);useEnhancedEffect$1(()=>{W&&te({value:z})},[z,te,W]);y(()=>{te(V.current)},[]);let re=b,ne=v;E&&"input"===re&&(ne=M?{type:void 0,minRows:M,maxRows:M,...ne}:{type:void 0,maxRows:_,minRows:x,...ne},re=TextareaAutosize);y(()=>{X&&X.setAdornedStart(Boolean(U))},[X,U]);const oe={...r,color:Q.color||"primary",disabled:Q.disabled,endAdornment:h,error:Q.error,focused:Q.focused,formControl:X,fullWidth:g,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:U,type:F},ie=useUtilityClasses$k(oe),se=q.root||l.Root||InputBaseRoot,ae=D.root||u.root||{},le=q.input||l.Input||InputBaseInput;return ne={...ne,...D.input??u.input},u$1(k$2,{children:[!p&&"function"==typeof InputGlobalStyles&&(_InputGlobalStyles||(_InputGlobalStyles=u$1(InputGlobalStyles,{}))),u$1(se,{...ae,ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),C&&C(e)},...H,...!isHostComponent(se)&&{ownerState:{...oe,...ae.ownerState}},className:clsx$1(ie.root,ae.className,s,$&&"MuiInputBase-readOnly"),children:[U,u$1(FormControlContext.Provider,{value:null,children:u$1(le,{"aria-invalid":Q.error,"aria-describedby":n,autoComplete:o,autoFocus:i,defaultValue:c,disabled:Q.disabled,id:A,onAnimationStart:e=>{te("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:k,placeholder:P,readOnly:$,required:Q.required,rows:M,value:z,onKeyDown:O,onKeyUp:I,type:F,...ne,...!isHostComponent(le)&&{as:re,ownerState:{...oe,...ne.ownerState}},ref:K,className:clsx$1(ie.input,ne.className,$&&"MuiInputBase-readOnly"),onBlur:e=>{T&&T(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||V.current;if(null==t)throw new Error(formatMuiErrorMessage(1));te({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{B&&B(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):J(!0)}})}),h,N?N({...Q,startAdornment:U}):null]})]})});function getInputUtilityClass(e){return generateUtilityClass("MuiInput",e)}const inputClasses={...inputBaseClasses,...generateUtilityClasses("MuiInput",["root","underline","input"])};function getOutlinedInputUtilityClass(e){return generateUtilityClass("MuiOutlinedInput",e)}const outlinedInputClasses={...inputBaseClasses,...generateUtilityClasses("MuiOutlinedInput",["root","notchedOutline","input"])};function getFilledInputUtilityClass(e){return generateUtilityClass("MuiFilledInput",e)}const filledInputClasses={...inputBaseClasses,...generateUtilityClasses("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};var ArrowDropDownIcon=createSvgIcon(u$1("path",{d:"M7 10l5 5 5-5z"}));const styles$4={entering:{opacity:1},entered:{opacity:1}},Fade=D$1(function(e,t){const r=useTheme(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:a,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g=n,TransitionComponent:y=Transition$1,...A}=e,b=A$1(null),v=useForkRef$1(b,getReactElementRef(s),t),w=e=>t=>{if(e){const r=b.current;void 0===t?e(r):e(r,t)}},S=w(d),_=w((e,t)=>{reflow$1(e);const n=getTransitionProps$1({style:m,timeout:g,easing:a},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),x=w(c),E=w(h),k=w(e=>{const t=getTransitionProps$1({style:m,timeout:g,easing:a},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)}),T=w(p);return u$1(y,{appear:i,in:l,nodeRef:b,onEnter:_,onEntered:x,onEntering:S,onExit:k,onExited:T,onExiting:E,addEndListener:e=>{o&&o(b.current,e)},timeout:g,...A,children:(e,{ownerState:t,...r})=>_n(s,{style:{opacity:0,visibility:"exited"!==e||l?void 0:"hidden",...styles$4[e],...m,...s.props.style},ref:v,...r})})});function getBackdropUtilityClass(e){return generateUtilityClass("MuiBackdrop",e)}generateUtilityClasses("MuiBackdrop",["root","invisible"]);const useUtilityClasses$j=e=>{const{classes:t,invisible:r}=e;return composeClasses({root:["root",r&&"invisible"]},getBackdropUtilityClass,t)},BackdropRoot=styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Backdrop=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiBackdrop"}),{children:n,className:o,component:i="div",invisible:s=!1,open:a,components:l={},componentsProps:u={},slotProps:c={},slots:d={},TransitionComponent:f,transitionDuration:p,...h}=r,m={...r,component:i,invisible:s},g=useUtilityClasses$j(m),y={component:i,slots:{transition:f,root:l.Root,...d},slotProps:{...u,...c}},[A,b]=useSlot("root",{elementType:BackdropRoot,externalForwardedProps:y,className:clsx$1(g.root,o),ownerState:m}),[v,w]=useSlot("transition",{elementType:Fade,externalForwardedProps:y,ownerState:m});return u$1(v,{in:a,timeout:p,...h,...w,children:u$1(A,{"aria-hidden":!0,...b,classes:g,ref:t,children:n})})}),boxClasses=generateUtilityClasses("MuiBox",["root"]),defaultTheme=createTheme(),Box=createBox({themeId:THEME_ID,defaultTheme:defaultTheme,defaultClassName:boxClasses.root,generateClassName:ClassNameGenerator.generate});function getButtonUtilityClass(e){return generateUtilityClass("MuiButton",e)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ButtonGroupContext=Q$1({}),ButtonGroupButtonContext=Q$1(void 0),useUtilityClasses$i=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=e,u=composeClasses({root:["root",s&&"loading",i,`${i}${capitalize(t)}`,`size${capitalize(o)}`,`${i}Size${capitalize(o)}`,`color${capitalize(t)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${capitalize(a)}`],startIcon:["icon","startIcon",`iconSize${capitalize(o)}`],endIcon:["icon","endIcon",`iconSize${capitalize(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},getButtonUtilityClass,l);return{...l,...u}},commonIconStyles=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ButtonRoot=styled(ButtonBase,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${capitalize(r.color)}`],t[`size${capitalize(r.size)}`],t[`${r.variant}Size${capitalize(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(memoTheme(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],r="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${buttonClasses.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${buttonClasses.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${buttonClasses.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${buttonClasses.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${buttonClasses.loading}`]:{color:"transparent"}}}]}})),ButtonStartIcon=styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${capitalize(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...commonIconStyles]})),ButtonEndIcon=styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${capitalize(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...commonIconStyles]})),ButtonLoadingIndicator=styled("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ButtonLoadingIconPlaceholder=styled("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Button=D$1(function(e,t){const r=x$2(ButtonGroupContext),n=x$2(ButtonGroupButtonContext),o=useDefaultProps({props:resolveProps(r,e),name:"MuiButton"}),{children:i,color:s="primary",component:a="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:h=!1,id:m,loading:g=null,loadingIndicator:y,loadingPosition:A="center",size:b="medium",startIcon:v,type:w,variant:S="text",..._}=o,x=useId(m),E=y??u$1(CircularProgress,{"aria-labelledby":x,color:"inherit",size:16}),k={...o,color:s,component:a,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,loading:g,loadingIndicator:E,loadingPosition:A,size:b,type:w,variant:S},T=useUtilityClasses$i(k),R=(v||g&&"start"===A)&&u$1(ButtonStartIcon,{className:T.startIcon,ownerState:k,children:v||u$1(ButtonLoadingIconPlaceholder,{className:T.loadingIconPlaceholder,ownerState:k})}),C=(f||g&&"end"===A)&&u$1(ButtonEndIcon,{className:T.endIcon,ownerState:k,children:f||u$1(ButtonLoadingIconPlaceholder,{className:T.loadingIconPlaceholder,ownerState:k})}),B=n||"",O="boolean"==typeof g?u$1("span",{className:T.loadingWrapper,style:{display:"contents"},children:g&&u$1(ButtonLoadingIndicator,{className:T.loadingIndicator,ownerState:k,children:E})}):null;return u$1(ButtonRoot,{ownerState:k,className:clsx$1(r.className,T.root,l,B),component:a,disabled:u||g,focusRipple:!d,focusVisibleClassName:clsx$1(T.focusVisible,p),ref:t,type:w,id:g?x:m,..._,classes:T,children:[R,"end"!==A&&O,i,"end"===A&&O,C]})});function getScrollbarSize(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function isOverflowing(e){const t=ownerDocument$1(e);return t.body===e?ownerWindow$1(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ariaHidden(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function getPaddingRight(e){return parseInt(ownerWindow$1(e).getComputedStyle(e).paddingRight,10)||0}function isAriaHiddenForbiddenOnElement(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}function ariaHiddenSiblings(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=!i.includes(e),r=!isAriaHiddenForbiddenOnElement(e);t&&r&&ariaHidden(e,o)})}function findIndexOf(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function handleContainer(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(isOverflowing(n)){const e=getScrollbarSize(ownerWindow$1(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${getPaddingRight(n)+e}px`;const t=ownerDocument$1(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${getPaddingRight(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=ownerDocument$1(n).body;else{const t=n.parentElement,r=ownerWindow$1(n);e="HTML"===t?.nodeName&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}function getHiddenSiblings(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}class ModalManager{constructor(){this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ariaHidden(e.modalRef,!1);const n=getHiddenSiblings(t);ariaHiddenSiblings(t,e.mount,e.modalRef,n,!0);const o=findIndexOf(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=findIndexOf(this.containers,t=>t.modals.includes(e)),n=this.containers[r];n.restore||(n.restore=handleContainer(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=findIndexOf(this.containers,t=>t.modals.includes(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ariaHidden(e.modalRef,t),ariaHiddenSiblings(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ariaHidden(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const candidatesSelector=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function getTabIndex(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}function isNonTabbableRadio(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function isNodeMatchingSelectorFocusable(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||isNonTabbableRadio(e))}function defaultGetTabbable(e){const t=[],r=[];return Array.from(e.querySelectorAll(candidatesSelector)).forEach((e,n)=>{const o=getTabIndex(e);-1!==o&&isNodeMatchingSelectorFocusable(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function defaultIsEnabled(){return!0}function FocusTrap(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=defaultGetTabbable,isEnabled:s=defaultIsEnabled,open:a}=e,l=A$1(!1),u=A$1(null),c=A$1(null),d=A$1(null),f=A$1(null),p=A$1(!1),h=A$1(null),m=useForkRef$1(getReactElementRef(t),h),g=A$1(null);y(()=>{a&&h.current&&(p.current=!r)},[r,a]),y(()=>{if(!a||!h.current)return;const e=ownerDocument$1(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),y(()=>{if(!a||!h.current)return;const e=ownerDocument$1(h.current),t=t=>{g.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!s()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){const e=Boolean(g.current?.shiftKey&&"Tab"===g.current?.key),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,s,a,i]);const A=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return u$1(k$2,{children:[u$1("div",{tabIndex:a?0:-1,onFocus:A,ref:u,"data-testid":"sentinelStart"}),_n(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),u$1("div",{tabIndex:a?0:-1,onFocus:A,ref:c,"data-testid":"sentinelEnd"})]})}function getContainer(e){return"function"==typeof e?e():e}function getHasTransition(e){return!!e&&e.props.hasOwnProperty("in")}const noop$3=()=>{},manager=new ModalManager;function useModal(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:u,rootRef:c}=e,f=A$1({}),p=A$1(null),h=A$1(null),m=useForkRef$1(h,c),[g,A]=d(!u),b=getHasTransition(a);let v=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(v=!1);const w=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),S=()=>{manager.mount(w(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},_=useEventCallback$1(()=>{const e=getContainer(t)||ownerDocument$1(p.current).body;manager.add(w(),e),h.current&&S()}),x=()=>manager.isTopModal(w()),E=useEventCallback$1(e=>{p.current=e,e&&(u&&x()?S():h.current&&ariaHidden(h.current,v))}),k=q$2(()=>{manager.remove(w(),v)},[v]);y(()=>()=>{k()},[k]),y(()=>{u?_():b&&o||k()},[u,k,b,o,_]);const T=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&x()&&(r||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const r=extractEventHandlers(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n={...r,...t};return{role:"presentation",...n,onKeyDown:T(n),ref:m}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:u}},getTransitionProps:()=>({onEnter:createChainedFunction$1(()=>{A(!1),i&&i()},a?.props.onEnter??noop$3),onExited:createChainedFunction$1(()=>{A(!0),s&&s(),o&&k()},a?.props.onExited??noop$3)}),rootRef:m,portalRef:E,isTopModal:x,exited:g,hasTransition:b}}function getModalUtilityClass(e){return generateUtilityClass("MuiModal",e)}generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const useUtilityClasses$h=e=>{const{open:t,exited:r,classes:n}=e;return composeClasses({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,n)},ModalRoot=styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(memoTheme(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),ModalBackdrop=styled(Backdrop,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Modal=D$1(function(e,t){const r=useDefaultProps({name:"MuiModal",props:e}),{BackdropComponent:n=ModalBackdrop,BackdropProps:o,classes:i,className:s,closeAfterTransition:a=!1,children:l,container:u,component:c,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:g=!1,disableRestoreFocus:y=!1,disableScrollLock:A=!1,hideBackdrop:b=!1,keepMounted:v=!1,onClose:w,onTransitionEnter:S,onTransitionExited:_,open:x,slotProps:E={},slots:k={},theme:T,...R}=r,C={...r,closeAfterTransition:a,disableAutoFocus:p,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:g,disableRestoreFocus:y,disableScrollLock:A,hideBackdrop:b,keepMounted:v},{getRootProps:B,getBackdropProps:O,getTransitionProps:I,portalRef:P,isTopModal:$,exited:N,hasTransition:M}=useModal({...C,rootRef:t}),L={...C,exited:N},D=useUtilityClasses$h(L),q={};if(void 0===l.props.tabIndex&&(q.tabIndex="-1"),M){const{onEnter:e,onExited:t}=I();q.onEnter=e,q.onExited=t}const U={slots:{root:d.Root,backdrop:d.Backdrop,...k},slotProps:{...f,...E}},[F,j]=useSlot("root",{ref:t,elementType:ModalRoot,externalForwardedProps:{...U,...R,component:c},getSlotProps:B,ownerState:L,className:clsx$1(s,D?.root,!L.open&&L.exited&&D?.hidden)}),[H,z]=useSlot("backdrop",{ref:o?.ref,elementType:n,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:clsx$1(o?.className,D?.backdrop),ownerState:L});return v||x||M&&!N?u$1(Portal,{ref:P,container:u,disablePortal:g,children:u$1(F,{...j,children:[!b&&n?u$1(H,{...z}):null,u$1(FocusTrap,{disableEnforceFocus:h,disableAutoFocus:p,disableRestoreFocus:y,isEnabled:$,open:x,children:_n(l,q)})]})}):null});function getDialogUtilityClass(e){return generateUtilityClass("MuiDialog",e)}const dialogClasses=generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),DialogContext=Q$1({}),DialogBackdrop=styled(Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),useUtilityClasses$g=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e;return composeClasses({root:["root"],container:["container",`scroll${capitalize(r)}`],paper:["paper",`paperScroll${capitalize(r)}`,`paperWidth${capitalize(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]},getDialogUtilityClass,t)},DialogRoot=styled(Modal,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),DialogContainer=styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${capitalize(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),DialogPaper=styled(Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${capitalize(r.scroll)}`],t[`paperWidth${capitalize(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(memoTheme(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${dialogClasses.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${dialogClasses.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dialogClasses.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Dialog=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiDialog"}),n=useTheme(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,"aria-modal":a=!0,BackdropComponent:l,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:h=!1,maxWidth:m="sm",onClick:g,onClose:y,open:A,PaperComponent:b=Paper,PaperProps:v={},scroll:w="paper",slots:S={},slotProps:_={},TransitionComponent:x=Fade,transitionDuration:E=o,TransitionProps:k,...T}=r,R={...r,disableEscapeKeyDown:f,fullScreen:p,fullWidth:h,maxWidth:m,scroll:w},C=useUtilityClasses$g(R),B=A$1(),O=useId(s),I=T$1(()=>({titleId:O}),[O]),P={slots:{transition:x,...S},slotProps:{transition:k,paper:v,backdrop:u,..._}},[$,N]=useSlot("root",{elementType:DialogRoot,shouldForwardComponentProp:!0,externalForwardedProps:P,ownerState:R,className:clsx$1(C.root,d),ref:t}),[M,L]=useSlot("backdrop",{elementType:DialogBackdrop,shouldForwardComponentProp:!0,externalForwardedProps:P,ownerState:R}),[D,q]=useSlot("paper",{elementType:DialogPaper,shouldForwardComponentProp:!0,externalForwardedProps:P,ownerState:R,className:clsx$1(C.paper,v.className)}),[U,F]=useSlot("container",{elementType:DialogContainer,externalForwardedProps:P,ownerState:R,className:C.container}),[j,H]=useSlot("transition",{elementType:Fade,externalForwardedProps:P,ownerState:R,additionalProps:{appear:!0,in:A,timeout:E,role:"presentation"}});return u$1($,{closeAfterTransition:!0,slots:{backdrop:M},slotProps:{backdrop:{transitionDuration:E,as:l,...L}},disableEscapeKeyDown:f,onClose:y,open:A,onClick:e=>{g&&g(e),B.current&&(B.current=null,y&&y(e,"backdropClick"))},...N,...T,children:u$1(j,{...H,children:u$1(U,{onMouseDown:e=>{B.current=e.target===e.currentTarget},...F,children:u$1(D,{as:b,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":O,"aria-modal":a,...q,children:u$1(DialogContext.Provider,{value:I,children:c})})})})})}),dividerClasses=generateUtilityClasses("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),useUtilityClasses$f=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=e,l=composeClasses({root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd","small"===i&&`size${capitalize(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},getFilledInputUtilityClass,t);return{...t,...l}},FilledInputRoot=styled(InputBaseRoot,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...rootOverridesResolver(e,t),!r.disableUnderline&&t.underline]}})(memoTheme(({theme:e})=>{const t="light"===e.palette.mode,r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${filledInputClasses.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${filledInputClasses.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${filledInputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${filledInputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${filledInputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),FilledInputInput=styled(InputBaseInput,{name:"MuiFilledInput",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),FilledInput=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiFilledInput"}),{disableUnderline:n=!1,components:o={},componentsProps:i,fullWidth:s=!1,hiddenLabel:a,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:f="text",...p}=r,h={...r,disableUnderline:n,fullWidth:s,inputComponent:l,multiline:u,type:f},m=useUtilityClasses$f(r),g={root:{ownerState:h},input:{ownerState:h}},y=c??i?deepmerge(g,c??i):g,A=d.root??o.Root??FilledInputRoot,b=d.input??o.Input??FilledInputInput;return u$1(InputBase,{slots:{root:A,input:b},slotProps:y,fullWidth:s,inputComponent:l,multiline:u,ref:t,type:f,...p,classes:m})});function getFormControlUtilityClasses(e){return generateUtilityClass("MuiFormControl",e)}FilledInput.muiName="Input",generateUtilityClasses("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const useUtilityClasses$e=e=>{const{classes:t,margin:r,fullWidth:n}=e;return composeClasses({root:["root","none"!==r&&`margin${capitalize(r)}`,n&&"fullWidth"]},getFormControlUtilityClasses,t)},FormControlRoot=styled("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${capitalize(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),FormControl=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiFormControl"}),{children:n,className:o,color:i="primary",component:s="div",disabled:a=!1,error:l=!1,focused:u,fullWidth:c=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:m="medium",variant:g="outlined",...y}=r,A={...r,color:i,component:s,disabled:a,error:l,fullWidth:c,hiddenLabel:f,margin:p,required:h,size:m,variant:g},b=useUtilityClasses$e(A),[v,w]=d(()=>{let e=!1;return n&&O.forEach(n,t=>{if(!isMuiElement(t,["Input","Select"]))return;const r=isMuiElement(t,["Select"])?t.props.input:t;r&&isAdornedStart(r.props)&&(e=!0)}),e}),[S,_]=d(()=>{let e=!1;return n&&O.forEach(n,t=>{isMuiElement(t,["Input","Select"])&&(isFilled(t.props,!0)||isFilled(t.props.inputProps,!0))&&(e=!0)}),e}),[x,E]=d(!1);a&&x&&E(!1);const k=void 0===u||a?x:u;let T;A$1(!1);const R=q$2(()=>{_(!0)},[]),C=q$2(()=>{_(!1)},[]),B=T$1(()=>({adornedStart:v,setAdornedStart:w,color:i,disabled:a,error:l,filled:S,focused:k,fullWidth:c,hiddenLabel:f,size:m,onBlur:()=>{E(!1)},onFocus:()=>{E(!0)},onEmpty:C,onFilled:R,registerEffect:T,required:h,variant:g}),[v,i,a,l,S,k,c,f,T,C,R,h,m,g]);return u$1(FormControlContext.Provider,{value:B,children:u$1(FormControlRoot,{as:s,ownerState:A,className:clsx$1(b.root,o),ref:t,...y,children:n})})});function getFormHelperTextUtilityClasses(e){return generateUtilityClass("MuiFormHelperText",e)}const formHelperTextClasses=generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _span$2;const useUtilityClasses$d=e=>{const{classes:t,contained:r,size:n,disabled:o,error:i,filled:s,focused:a,required:l}=e;return composeClasses({root:["root",o&&"disabled",i&&"error",n&&`size${capitalize(n)}`,r&&"contained",a&&"focused",s&&"filled",l&&"required"]},getFormHelperTextUtilityClasses,t)},FormHelperTextRoot=styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${capitalize(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(memoTheme(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${formHelperTextClasses.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${formHelperTextClasses.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),FormHelperText=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:i="p",disabled:s,error:a,filled:l,focused:u,margin:c,required:d,variant:f,...p}=r,h=formControlState({props:r,muiFormControl:useFormControl(),states:["variant","size","disabled","error","filled","focused","required"]}),m={...r,component:i,contained:"filled"===h.variant||"outlined"===h.variant,variant:h.variant,size:h.size,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required};delete m.ownerState;const g=useUtilityClasses$d(m);return u$1(FormHelperTextRoot,{as:i,className:clsx$1(g.root,o),ref:t,...p,ownerState:m,children:" "===n?_span$2||(_span$2=u$1("span",{className:"notranslate","aria-hidden":!0,children:"​"})):n})});function getFormLabelUtilityClasses(e){return generateUtilityClass("MuiFormLabel",e)}const formLabelClasses=generateUtilityClasses("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),useUtilityClasses$c=e=>{const{classes:t,color:r,focused:n,disabled:o,error:i,filled:s,required:a}=e;return composeClasses({root:["root",`color${capitalize(r)}`,o&&"disabled",i&&"error",s&&"filled",n&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]},getFormLabelUtilityClasses,t)},FormLabelRoot=styled("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled]}})(memoTheme(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{[`&.${formLabelClasses.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${formLabelClasses.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${formLabelClasses.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),AsteriskComponent=styled("span",{name:"MuiFormLabel",slot:"Asterisk"})(memoTheme(({theme:e})=>({[`&.${formLabelClasses.error}`]:{color:(e.vars||e).palette.error.main}}))),FormLabel=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiFormLabel"}),{children:n,className:o,color:i,component:s="label",disabled:a,error:l,filled:u,focused:c,required:d,...f}=r,p=formControlState({props:r,muiFormControl:useFormControl(),states:["color","required","focused","disabled","error","filled"]}),h={...r,color:p.color||"primary",component:s,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},m=useUtilityClasses$c(h);return u$1(FormLabelRoot,{as:s,ownerState:h,className:clsx$1(m.root,o),ref:t,...f,children:[n,p.required&&u$1(AsteriskComponent,{ownerState:h,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})});function getScale(e){return`scale(${e}, ${e**2})`}const styles$3={entering:{opacity:1,transform:getScale(1)},entered:{opacity:1,transform:"none"}},isWebKit154="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Grow=D$1(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:s,onEnter:a,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:f,style:p,timeout:h="auto",TransitionComponent:m=Transition$1,...g}=e,y=useTimeout(),A=A$1(),b=useTheme(),v=A$1(null),w=useForkRef$1(v,getReactElementRef(o),t),S=e=>t=>{if(e){const r=v.current;void 0===t?e(r):e(r,t)}},_=S(u),x=S((e,t)=>{reflow$1(e);const{duration:r,delay:n,easing:o}=getTransitionProps$1({style:p,timeout:h,easing:i},{mode:"enter"});let s;"auto"===h?(s=b.transitions.getAutoHeightDuration(e.clientHeight),A.current=s):s=r,e.style.transition=[b.transitions.create("opacity",{duration:s,delay:n}),b.transitions.create("transform",{duration:isWebKit154?s:.666*s,delay:n,easing:o})].join(","),a&&a(e,t)}),E=S(l),k=S(f),T=S(e=>{const{duration:t,delay:r,easing:n}=getTransitionProps$1({style:p,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=b.transitions.getAutoHeightDuration(e.clientHeight),A.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:r}),b.transitions.create("transform",{duration:isWebKit154?o:.666*o,delay:isWebKit154?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=getScale(.75),c&&c(e)}),R=S(d);return u$1(m,{appear:n,in:s,nodeRef:v,onEnter:x,onEntered:E,onEntering:_,onExit:T,onExited:R,onExiting:k,addEndListener:e=>{"auto"===h&&y.start(A.current||0,e),r&&r(v.current,e)},timeout:"auto"===h?null:h,...g,children:(e,{ownerState:t,...r})=>_n(o,{style:{opacity:0,transform:getScale(.75),visibility:"exited"!==e||s?void 0:"hidden",...styles$3[e],...p,...o.props.style},ref:w,...r})})});Grow&&(Grow.muiSupportAuto=!0);const useUtilityClasses$b=e=>{const{classes:t,disableUnderline:r}=e,n=composeClasses({root:["root",!r&&"underline"],input:["input"]},getInputUtilityClass,t);return{...t,...n}},InputRoot=styled(InputBaseRoot,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...rootOverridesResolver(e,t),!r.disableUnderline&&t.underline]}})(memoTheme(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${inputClasses.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${inputClasses.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${inputClasses.disabled}, .${inputClasses.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${inputClasses.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),InputInput=styled(InputBaseInput,{name:"MuiInput",slot:"Input",overridesResolver:inputOverridesResolver})({}),Input=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiInput"}),{disableUnderline:n=!1,components:o={},componentsProps:i,fullWidth:s=!1,inputComponent:a="input",multiline:l=!1,slotProps:u,slots:c={},type:d="text",...f}=r,p=useUtilityClasses$b(r),h={root:{ownerState:{disableUnderline:n}}},m=u??i?deepmerge(u??i,h):h,g=c.root??o.Root??InputRoot,y=c.input??o.Input??InputInput;return u$1(InputBase,{slots:{root:g,input:y},slotProps:m,fullWidth:s,inputComponent:a,multiline:l,ref:t,type:d,...f,classes:p})});function getInputLabelUtilityClasses(e){return generateUtilityClass("MuiInputLabel",e)}Input.muiName="Input",generateUtilityClasses("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const useUtilityClasses$a=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:i,variant:s,required:a}=e,l=composeClasses({root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n&&"medium"!==n&&`size${capitalize(n)}`,s],asterisk:[a&&"asterisk"]},getInputLabelUtilityClasses,t);return{...t,...l}},InputLabelRoot=styled(FormLabel,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${formLabelClasses.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(memoTheme(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:r})=>"filled"===e&&t.shrink&&"small"===r,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),InputLabel=D$1(function(e,t){const r=useDefaultProps({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,margin:o,shrink:i,variant:s,className:a,...l}=r,u=useFormControl();let c=i;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);const d=formControlState({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),f={...r,disableAnimation:n,formControl:u,shrink:c,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=useUtilityClasses$a(f);return u$1(InputLabelRoot,{"data-shrink":c,ref:t,className:clsx$1(p.root,a),...l,ownerState:f,classes:p})}),ListContext=Q$1({});function getListUtilityClass(e){return generateUtilityClass("MuiList",e)}generateUtilityClasses("MuiList",["root","padding","dense","subheader"]);const useUtilityClasses$9=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return composeClasses({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},getListUtilityClass,t)},ListRoot=styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),List=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:s=!1,disablePadding:a=!1,subheader:l,...u}=r,c=T$1(()=>({dense:s}),[s]),d={...r,component:i,dense:s,disablePadding:a},f=useUtilityClasses$9(d);return u$1(ListContext.Provider,{value:c,children:u$1(ListRoot,{as:i,className:clsx$1(f.root,o),ref:t,ownerState:d,...u,children:[l,n]})})}),listItemIconClasses=generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]),listItemTextClasses=generateUtilityClasses("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function nextItem(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function previousItem(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function textCriteriaMatches(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join("")))}function moveFocus(e,t,r,n,o,i){let s=!1,a=o(e,t,!!t&&r);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!n&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&textCriteriaMatches(a,i)&&!t)return a.focus(),!0;a=o(e,a,r)}return!1}const MenuList=D$1(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:a=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu",...d}=e,f=A$1(null),p=A$1({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});useEnhancedEffect$1(()=>{n&&f.current.focus()},[n]),F$1(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight{mn(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=O.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),_n(e,t)}return e});return u$1(List,{role:"menu",ref:h,className:s,onKeyDown:e=>{const t=f.current,r=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const n=ownerDocument$1(t).activeElement;if("ArrowDown"===r)e.preventDefault(),moveFocus(t,n,l,a,nextItem);else if("ArrowUp"===r)e.preventDefault(),moveFocus(t,n,l,a,previousItem);else if("Home"===r)e.preventDefault(),moveFocus(t,null,l,a,nextItem);else if("End"===r)e.preventDefault(),moveFocus(t,null,l,a,previousItem);else if(1===r.length){const o=p.current,i=r.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(i);const l=n&&!o.repeating&&textCriteriaMatches(n,o);o.previousKeyMatched&&(l||moveFocus(t,n,!1,a,nextItem,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1,...d,children:g})});function getPopoverUtilityClass(e){return generateUtilityClass("MuiPopover",e)}function getOffsetTop(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function getOffsetLeft(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function getTransformOriginValue(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function resolveAnchorEl(e){return"function"==typeof e?e():e}generateUtilityClasses("MuiPopover",["root","paper"]);const useUtilityClasses$8=e=>{const{classes:t}=e;return composeClasses({root:["root"],paper:["paper"]},getPopoverUtilityClass,t)},PopoverRoot=styled(Modal,{name:"MuiPopover",slot:"Root"})({}),PopoverPaper=styled(Paper,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Popover=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiPopover"}),{action:n,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:a="anchorEl",children:l,className:u,container:c,elevation:f=8,marginThreshold:p=16,open:h,PaperProps:m={},slots:g={},slotProps:A={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:w="auto",TransitionProps:S={},disableScrollLock:_=!1,...x}=r,E=A$1(),k={...r,anchorOrigin:i,anchorReference:a,elevation:f,marginThreshold:p,transformOrigin:b,TransitionComponent:v,transitionDuration:w,TransitionProps:S},T=useUtilityClasses$8(k),R=q$2(()=>{if("anchorPosition"===a)return s;const e=resolveAnchorEl(o),t=(e&&1===e.nodeType?e:ownerDocument$1(E.current).body).getBoundingClientRect();return{top:t.top+getOffsetTop(t,i.vertical),left:t.left+getOffsetLeft(t,i.horizontal)}},[o,i.horizontal,i.vertical,s,a]),C=q$2(e=>({vertical:getOffsetTop(e,b.vertical),horizontal:getOffsetLeft(e,b.horizontal)}),[b.horizontal,b.vertical]),B=q$2(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=C(t);if("none"===a)return{top:null,left:null,transformOrigin:getTransformOriginValue(r)};const n=R();let i=n.top-r.vertical,s=n.left-r.horizontal;const l=i+t.height,u=s+t.width,c=ownerWindow$1(resolveAnchorEl(o)),d=c.innerHeight-p,f=c.innerWidth-p;if(null!==p&&id){const e=l-d;i-=e,r.vertical+=e}if(null!==p&&sf){const e=u-f;s-=e,r.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(s)}px`,transformOrigin:getTransformOriginValue(r)}},[o,a,R,C,p]),[O,I]=d(h),P=q$2(()=>{const e=E.current;if(!e)return;const t=B(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)},[B]);y(()=>(_&&window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P)),[o,_,P]);y(()=>{h&&P()}),F$1(n,()=>h?{updatePosition:()=>{P()}}:null,[h,P]),y(()=>{if(!h)return;const e=debounce$2(()=>{P()}),t=ownerWindow$1(resolveAnchorEl(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,h,P]);let $=w;const N={slots:{transition:v,...g},slotProps:{transition:S,paper:m,...A}},[M,L]=useSlot("transition",{elementType:Grow,externalForwardedProps:N,ownerState:k,getSlotProps:e=>({...e,onEntering:(t,r)=>{e.onEntering?.(t,r),P()},onExited:t=>{e.onExited?.(t),I(!1)}}),additionalProps:{appear:!0,in:h}});"auto"!==w||M.muiSupportAuto||($=void 0);const D=c||(o?ownerDocument$1(resolveAnchorEl(o)).body:void 0),[q,{slots:U,slotProps:F,...j}]=useSlot("root",{ref:t,elementType:PopoverRoot,externalForwardedProps:{...N,...x},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:mergeSlotProps$1("function"==typeof A.backdrop?A.backdrop(k):A.backdrop,{invisible:!0})},container:D,open:h},ownerState:k,className:clsx$1(T.root,u)}),[H,z]=useSlot("paper",{ref:E,className:T.paper,elementType:PopoverPaper,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:O?void 0:{opacity:0}},ownerState:k});return u$1(q,{...j,...!isHostComponent(q)&&{slots:U,slotProps:F,disableScrollLock:_},children:u$1(M,{...L,timeout:$,children:u$1(H,{...z,children:l})})})});function getMenuUtilityClass(e){return generateUtilityClass("MuiMenu",e)}generateUtilityClasses("MuiMenu",["root","paper","list"]);const RTL_ORIGIN={vertical:"top",horizontal:"right"},LTR_ORIGIN={vertical:"top",horizontal:"left"},useUtilityClasses$7=e=>{const{classes:t}=e;return composeClasses({root:["root"],paper:["paper"],list:["list"]},getMenuUtilityClass,t)},MenuRoot=styled(Popover,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),MenuPaper=styled(PopoverPaper,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MenuMenuList=styled(MenuList,{name:"MuiMenu",slot:"List"})({outline:0}),Menu=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiMenu"}),{autoFocus:n=!0,children:o,className:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:f="auto",TransitionProps:{onEntering:p,...h}={},variant:m="selectedMenu",slots:g={},slotProps:y={},...A}=r,b=useRtl(),v={...r,autoFocus:n,disableAutoFocusItem:s,MenuListProps:a,onEntering:p,PaperProps:c,transitionDuration:f,TransitionProps:h,variant:m},w=useUtilityClasses$7(v),S=n&&!s&&u,_=A$1(null);let x=-1;O.map(o,(e,t)=>{mn(e)&&(e.props.disabled||("selectedMenu"===m&&e.props.selected||-1===x)&&(x=t))});const E={slots:g,slotProps:{list:a,transition:h,paper:c,...y}},k=useSlotProps({elementType:g.root,externalSlotProps:y.root,ownerState:v,className:[w.root,i]}),[T,R]=useSlot("paper",{className:w.paper,elementType:MenuPaper,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:v}),[C,B]=useSlot("list",{className:clsx$1(w.list,a.className),elementType:MenuMenuList,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:v}),I="function"==typeof E.slotProps.transition?E.slotProps.transition(v):E.slotProps.transition;return u$1(MenuRoot,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?RTL_ORIGIN:LTR_ORIGIN,slots:{root:g.root,paper:T,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:k,paper:R,backdrop:"function"==typeof y.backdrop?y.backdrop(v):y.backdrop,transition:{...I,onEntering:(...e)=>{((e,t)=>{_.current&&_.current.adjustStyleForScrollbar(e,{direction:b?"rtl":"ltr"}),p&&p(e,t)})(...e),I?.onEntering?.(...e)}}},open:u,ref:t,transitionDuration:f,ownerState:v,...A,classes:d,children:u$1(C,{actions:_,autoFocus:n&&(-1===x||s),autoFocusItem:S,variant:m,...B,children:o})})});function getMenuItemUtilityClass(e){return generateUtilityClass("MuiMenuItem",e)}const menuItemClasses=generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),overridesResolver=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},useUtilityClasses$6=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:s}=e,a=composeClasses({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},getMenuItemUtilityClass,s);return{...s,...a}},MenuItemRoot=styled(ButtonBase,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:overridesResolver})(memoTheme(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${menuItemClasses.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${menuItemClasses.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${menuItemClasses.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${menuItemClasses.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dividerClasses.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dividerClasses.inset}`]:{marginLeft:52},[`& .${listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${listItemIconClasses.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${listItemIconClasses.root} svg`]:{fontSize:"1.25rem"}}}]}))),MenuItem=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:a=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d,...f}=r,p=x$2(ListContext),h=T$1(()=>({dense:i||p.dense||!1,disableGutters:a}),[p.dense,i,a]),m=A$1(null);useEnhancedEffect$1(()=>{n&&m.current&&m.current.focus()},[n]);const g={...r,dense:h.dense,divider:s,disableGutters:a},y=useUtilityClasses$6(r),A=useForkRef$1(m,t);let b;return r.disabled||(b=void 0!==c?c:-1),u$1(ListContext.Provider,{value:h,children:u$1(MenuItemRoot,{ref:A,role:u,tabIndex:b,component:o,focusVisibleClassName:clsx$1(y.focusVisible,l),className:clsx$1(y.root,d),...f,ownerState:g,classes:y})})});function getNativeSelectUtilityClasses(e){return generateUtilityClass("MuiNativeSelect",e)}const nativeSelectClasses=generateUtilityClasses("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),useUtilityClasses$5=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:s}=e;return composeClasses({select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${capitalize(r)}`,i&&"iconOpen",n&&"disabled"]},getNativeSelectUtilityClasses,t)},StyledSelectSelect=styled("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${nativeSelectClasses.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),NativeSelectSelect=styled(StyledSelectSelect,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rootShouldForwardProp,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${nativeSelectClasses.multiple}`]:t.multiple}]}})({}),StyledSelectIcon=styled("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${nativeSelectClasses.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),NativeSelectIcon=styled(StyledSelectIcon,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${capitalize(r.variant)}`],r.open&&t.iconOpen]}})({}),NativeSelectInput=D$1(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:s,variant:a="standard",...l}=e,u={...e,disabled:n,variant:a,error:o},c=useUtilityClasses$5(u);return u$1(k$2,{children:[u$1(NativeSelectSelect,{ownerState:u,className:clsx$1(c.select,r),disabled:n,ref:s||t,...l}),e.multiple?null:u$1(NativeSelectIcon,{as:i,ownerState:u,className:c.icon})]})});var _span$1;const NotchedOutlineRoot$1=styled("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:rootShouldForwardProp})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),NotchedOutlineLegend=styled("legend",{name:"MuiNotchedOutlined",shouldForwardProp:rootShouldForwardProp})(memoTheme(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function NotchedOutline(e){const{children:t,classes:r,className:n,label:o,notched:i,...s}=e,a=null!=o&&""!==o,l={...e,notched:i,withLabel:a};return u$1(NotchedOutlineRoot$1,{"aria-hidden":!0,className:n,ownerState:l,...s,children:u$1(NotchedOutlineLegend,{ownerState:l,children:a?u$1("span",{children:o}):_span$1||(_span$1=u$1("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const useUtilityClasses$4=e=>{const{classes:t}=e,r=composeClasses({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},getOutlinedInputUtilityClass,t);return{...t,...r}},OutlinedInputRoot=styled(InputBaseRoot,{shouldForwardProp:e=>rootShouldForwardProp(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:rootOverridesResolver})(memoTheme(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${outlinedInputClasses.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),NotchedOutlineRoot=styled(NotchedOutline,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(memoTheme(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),OutlinedInputInput=styled(InputBaseInput,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:inputOverridesResolver})(memoTheme(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),OutlinedInput=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiOutlinedInput"}),{components:n={},fullWidth:o=!1,inputComponent:i="input",label:s,multiline:a=!1,notched:l,slots:u={},slotProps:c={},type:d="text",...f}=r,p=useUtilityClasses$4(r),h=useFormControl(),m=formControlState({props:r,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:o,hiddenLabel:m.hiddenLabel,multiline:a,size:m.size,type:d},y=u.root??n.Root??OutlinedInputRoot,A=u.input??n.Input??OutlinedInputInput,[b,v]=useSlot("notchedOutline",{elementType:NotchedOutlineRoot,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:u,slotProps:c},additionalProps:{label:null!=s&&""!==s&&m.required?u$1(k$2,{children:[s," ","*"]}):s}});return u$1(InputBase,{slots:{root:y,input:A},slotProps:c,renderSuffix:e=>u$1(b,{...v,notched:void 0!==l?l:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:a,ref:t,type:d,...f,classes:{...p,notchedOutline:null}})});function getSelectUtilityClasses(e){return generateUtilityClass("MuiSelect",e)}OutlinedInput.muiName="Input";const selectClasses=generateUtilityClasses("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _span;const SelectSelect=styled(StyledSelectSelect,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${selectClasses.select}`]:t.select},{[`&.${selectClasses.select}`]:t[r.variant]},{[`&.${selectClasses.error}`]:t.error},{[`&.${selectClasses.multiple}`]:t.multiple}]}})({[`&.${selectClasses.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SelectIcon=styled(StyledSelectIcon,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${capitalize(r.variant)}`],r.open&&t.iconOpen]}})({}),SelectNativeInput=styled("input",{shouldForwardProp:e=>slotShouldForwardProp(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function areEqualValues(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function isEmpty(e){return null==e||"string"==typeof e&&!e.trim()}const useUtilityClasses$3=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:s}=e;return composeClasses({select:["select",r,n&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${capitalize(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},getSelectUtilityClasses,t)},SelectInput=D$1(function(e,t){const{"aria-describedby":r,"aria-label":n,autoFocus:o,autoWidth:i,children:s,className:a,defaultOpen:l,defaultValue:u,disabled:c,displayEmpty:f,error:p=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:A={},multiple:b,name:v,onBlur:w,onChange:S,onClose:_,onFocus:x,onOpen:E,open:k,readOnly:T,renderValue:R,required:C,SelectDisplayProps:B={},tabIndex:I,type:P,value:$,variant:N="standard",...M}=e,[L,D]=useControlled({controlled:$,default:u,name:"Select"}),[q,U]=useControlled({controlled:k,default:l,name:"Select"}),F=A$1(null),j=A$1(null),[H,z]=d(null),{current:W}=A$1(null!=k),[V,G]=d(),K=useForkRef$1(t,m),Z=q$2(e=>{j.current=e,e&&z(e)},[]),J=H?.parentNode;F$1(K,()=>({focus:()=>{j.current.focus()},node:F.current,value:L}),[L]),y(()=>{l&&q&&H&&!W&&(G(i?null:J.clientWidth),j.current.focus())},[H,i]),y(()=>{o&&j.current.focus()},[o]),y(()=>{if(!g)return;const e=ownerDocument$1(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const X=(e,t)=>{e?E&&E(t):_&&_(t),W||(G(i?null:J.clientWidth),U(e))},Q=O.toArray(s),Y=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(D(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:v}}),S(o,e)}b||X(!1,t)}},ee=null!==H&&q;let te,re;delete M["aria-invalid"];const ne=[];let oe=!1;(isFilled({value:L})||f)&&(R?te=R(L):oe=!0);const ie=Q.map(e=>{if(!mn(e))return null;let t;if(b){if(!Array.isArray(L))throw new Error(formatMuiErrorMessage(2));t=L.some(t=>areEqualValues(t,e.props.value)),t&&oe&&ne.push(e.props.children)}else t=areEqualValues(L,e.props.value),t&&oe&&(re=e.props.children);return _n(e,{"aria-selected":t?"true":"false",onClick:Y(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});oe&&(te=b?0===ne.length?null:ne.reduce((e,t,r)=>(e.push(t),r{if(!T){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),X(!0,e))}},onMouseDown:c||T?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),X(!0,e))},onBlur:e=>{!ee&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:v}}),w(e))},onFocus:x,...B,ownerState:ue,className:clsx$1(B.className,ce.select,a),id:le,children:isEmpty(te)?_span||(_span=u$1("span",{className:"notranslate","aria-hidden":!0,children:"​"})):te}),u$1(SelectNativeInput,{"aria-invalid":p,value:Array.isArray(L)?L.join(","):L,name:v,ref:F,"aria-hidden":!0,onChange:e=>{const t=Q.find(t=>t.props.value===e.target.value);void 0!==t&&(D(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:c,className:ce.nativeInput,autoFocus:o,required:C,...M,ownerState:ue}),u$1(SelectIcon,{as:h,className:ce.icon,ownerState:ue}),u$1(Menu,{id:`menu-${v||""}`,anchorEl:J,open:ee,onClose:e=>{X(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...A,slotProps:{...A.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:pe,...fe},paper:{...de,style:{minWidth:ae,...null!=de?de.style:null}}},children:ie})]})}),useUtilityClasses$2=e=>{const{classes:t}=e,r=composeClasses({root:["root"]},getSelectUtilityClasses,t);return{...t,...r}},styledRootConfig={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>rootShouldForwardProp(e)&&"variant"!==e},StyledInput=styled(Input,styledRootConfig)(""),StyledOutlinedInput=styled(OutlinedInput,styledRootConfig)(""),StyledFilledInput=styled(FilledInput,styledRootConfig)(""),Select=D$1(function(e,t){const r=useDefaultProps({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:s,defaultOpen:a=!1,displayEmpty:l=!1,IconComponent:u=ArrowDropDownIcon,id:c,input:d,inputProps:f,label:p,labelId:h,MenuProps:m,multiple:g=!1,native:y=!1,onClose:A,onOpen:b,open:v,renderValue:w,SelectDisplayProps:S,variant:_="outlined",...x}=r,E=y?NativeSelectInput:SelectInput,k=formControlState({props:r,muiFormControl:useFormControl(),states:["variant","error"]}),T=k.variant||_,R={...r,variant:T,classes:i},C=useUtilityClasses$2(R),{root:B,...O}=C,I=d||{standard:u$1(StyledInput,{ownerState:R}),outlined:u$1(StyledOutlinedInput,{label:p,ownerState:R}),filled:u$1(StyledFilledInput,{ownerState:R})}[T],P=useForkRef$1(t,getReactElementRef(I));return u$1(k$2,{children:_n(I,{inputComponent:E,inputProps:{children:o,error:k.error,IconComponent:u,variant:T,type:void 0,multiple:g,...y?{id:c}:{autoWidth:n,defaultOpen:a,displayEmpty:l,labelId:h,MenuProps:m,onClose:A,onOpen:b,open:v,renderValue:w,SelectDisplayProps:{id:c,...S}},...f,classes:f?deepmerge(O,f.classes):O,...d?d.props.inputProps:{}},...(g&&y||l)&&"outlined"===T?{notched:!0}:{},ref:P,className:clsx$1(I.props.className,s,C.root),...!d&&{variant:T},...x})})});Select.muiName="Select";const styles$2={entering:{transform:"none"},entered:{transform:"none"}},Zoom=D$1(function(e,t){const r=useTheme(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:a,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g=n,TransitionComponent:y=Transition$1,...A}=e,b=A$1(null),v=useForkRef$1(b,getReactElementRef(s),t),w=e=>t=>{if(e){const r=b.current;void 0===t?e(r):e(r,t)}},S=w(d),_=w((e,t)=>{reflow$1(e);const n=getTransitionProps$1({style:m,timeout:g,easing:a},{mode:"enter"});e.style.webkitTransition=r.transitions.create("transform",n),e.style.transition=r.transitions.create("transform",n),u&&u(e,t)}),x=w(c),E=w(h),k=w(e=>{const t=getTransitionProps$1({style:m,timeout:g,easing:a},{mode:"exit"});e.style.webkitTransition=r.transitions.create("transform",t),e.style.transition=r.transitions.create("transform",t),f&&f(e)}),T=w(p);return u$1(y,{appear:i,in:l,nodeRef:b,onEnter:_,onEntered:x,onEntering:S,onExit:k,onExited:T,onExiting:E,addEndListener:e=>{o&&o(b.current,e)},timeout:g,...A,children:(e,{ownerState:t,...r})=>_n(s,{style:{transform:"scale(0)",visibility:"exited"!==e||l?void 0:"hidden",...styles$2[e],...m,...s.props.style},ref:v,...r})})});function getTooltipUtilityClass(e){return generateUtilityClass("MuiTooltip",e)}const tooltipClasses=generateUtilityClasses("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function round$2(e){return Math.round(1e5*e)/1e5}const useUtilityClasses$1=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e;return composeClasses({popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${capitalize(i.split("-")[0])}`],arrow:["arrow"]},getTooltipUtilityClass,t)},TooltipPopper=styled(Popper,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(memoTheme(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${tooltipClasses.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tooltipClasses.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${tooltipClasses.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${tooltipClasses.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),TooltipTooltip=styled("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${capitalize(r.placement.split("-")[0])}`]]}})(memoTheme(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${round$2(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${tooltipClasses.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${tooltipClasses.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),TooltipArrow=styled("span",{name:"MuiTooltip",slot:"Arrow"})(memoTheme(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hystersisOpen=!1;const hystersisTimer=new Timeout;let cursorPosition={x:0,y:0};function composeEventHandler(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Tooltip=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:o,classes:i,components:s={},componentsProps:a={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:c=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:h=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:A=!1,id:b,leaveDelay:v=0,leaveTouchDelay:w=1500,onClose:S,onOpen:_,open:x,placement:E="bottom",PopperComponent:k,PopperProps:T={},slotProps:R={},slots:C={},title:B,TransitionComponent:O,TransitionProps:I,...P}=r,$=mn(o)?o:u$1("span",{children:o}),N=useTheme(),M=useRtl(),[L,D]=d(),[q,U]=d(null),F=A$1(!1),j=f||A,H=useTimeout(),z=useTimeout(),W=useTimeout(),V=useTimeout(),[G,K]=useControlled({controlled:x,default:!1,name:"Tooltip",state:"open"});let Z=G;const J=useId(b),X=A$1(),Q=useEventCallback$1(()=>{void 0!==X.current&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),V.clear()});y(()=>Q,[Q]);const Y=e=>{hystersisTimer.clear(),hystersisOpen=!0,K(!0),_&&!Z&&_(e)},ee=useEventCallback$1(e=>{hystersisTimer.start(800+v,()=>{hystersisOpen=!1}),K(!1),S&&Z&&S(e),H.start(N.transitions.duration.shortest,()=>{F.current=!1})}),te=e=>{F.current&&"touchstart"!==e.type||(L&&L.removeAttribute("title"),z.clear(),W.clear(),h||hystersisOpen&&m?z.start(hystersisOpen?m:h,()=>{Y(e)}):Y(e))},re=e=>{z.clear(),W.start(v,()=>{ee(e)})},[,ne]=d(!1),oe=e=>{isFocusVisible(e.target)||(ne(!1),re(e))},ie=e=>{L||D(e.currentTarget),isFocusVisible(e.target)&&(ne(!0),te(e))},se=e=>{F.current=!0;const t=$.props;t.onTouchStart&&t.onTouchStart(e)},ae=e=>{se(e),W.clear(),H.clear(),Q(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",V.start(g,()=>{document.body.style.WebkitUserSelect=X.current,te(e)})},le=e=>{$.props.onTouchEnd&&$.props.onTouchEnd(e),Q(),W.start(w,()=>{ee(e)})};y(()=>{if(Z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}},[ee,Z]);const ue=useForkRef$1(getReactElementRef($),D,t);B||0===B||(Z=!1);const ce=A$1(),de={},fe="string"==typeof B;l?(de.title=Z||!fe||c?null:B,de["aria-describedby"]=Z?J:null):(de["aria-label"]=fe?B:null,de["aria-labelledby"]=Z&&!fe?J:null);const pe={...de,...P,...$.props,className:clsx$1(P.className,$.props.className),onTouchStart:se,ref:ue,...A?{onMouseMove:e=>{const t=$.props;t.onMouseMove&&t.onMouseMove(e),cursorPosition={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}},he={};p||(pe.onTouchStart=ae,pe.onTouchEnd=le),c||(pe.onMouseOver=composeEventHandler(te,pe.onMouseOver),pe.onMouseLeave=composeEventHandler(re,pe.onMouseLeave),j||(he.onMouseOver=te,he.onMouseLeave=re)),u||(pe.onFocus=composeEventHandler(ie,pe.onFocus),pe.onBlur=composeEventHandler(oe,pe.onBlur),j||(he.onFocus=ie,he.onBlur=oe));const me={...r,isRtl:M,arrow:n,disableInteractive:j,placement:E,PopperComponentProp:k,touch:F.current},ge="function"==typeof R.popper?R.popper(me):R.popper,ye=T$1(()=>{let e=[{name:"arrow",enabled:Boolean(q),options:{element:q,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),ge?.popperOptions?.modifiers&&(e=e.concat(ge.popperOptions.modifiers)),{...T.popperOptions,...ge?.popperOptions,modifiers:e}},[q,T.popperOptions,ge?.popperOptions]),Ae=useUtilityClasses$1(me),be="function"==typeof R.transition?R.transition(me):R.transition,ve={slots:{popper:s.Popper,transition:s.Transition??O,tooltip:s.Tooltip,arrow:s.Arrow,...C},slotProps:{arrow:R.arrow??a.arrow,popper:{...T,...ge??a.popper},tooltip:R.tooltip??a.tooltip,transition:{...I,...be??a.transition}}},[we,Se]=useSlot("popper",{elementType:TooltipPopper,externalForwardedProps:ve,ownerState:me,className:clsx$1(Ae.popper,T?.className)}),[_e,xe]=useSlot("transition",{elementType:Grow,externalForwardedProps:ve,ownerState:me}),[Ee,ke]=useSlot("tooltip",{elementType:TooltipTooltip,className:Ae.tooltip,externalForwardedProps:ve,ownerState:me}),[Te,Re]=useSlot("arrow",{elementType:TooltipArrow,className:Ae.arrow,externalForwardedProps:ve,ownerState:me,ref:U});return u$1(k$2,{children:[_n($,pe),u$1(we,{as:k??Popper,placement:E,anchorEl:A?{getBoundingClientRect:()=>({top:cursorPosition.y,left:cursorPosition.x,right:cursorPosition.x,bottom:cursorPosition.y,width:0,height:0})}:L,popperRef:ce,open:!!L&&Z,id:J,transition:!0,...he,...Se,popperOptions:ye,children:({TransitionProps:e})=>u$1(_e,{timeout:N.transitions.duration.shorter,...e,...xe,children:u$1(Ee,{...ke,children:[B,n?u$1(Te,{...Re}):null]})})})]})});function getTextFieldUtilityClass(e){return generateUtilityClass("MuiTextField",e)}generateUtilityClasses("MuiTextField",["root"]);const variantComponent={standard:Input,filled:FilledInput,outlined:OutlinedInput},useUtilityClasses=e=>{const{classes:t}=e;return composeClasses({root:["root"]},getTextFieldUtilityClass,t)},TextFieldRoot=styled(FormControl,{name:"MuiTextField",slot:"Root"})({}),TextField=D$1(function(e,t){const r=useDefaultProps({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:i,className:s,color:a="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:h,InputLabelProps:m,inputProps:g,InputProps:y,inputRef:A,label:b,maxRows:v,minRows:w,multiline:S=!1,name:_,onBlur:x,onChange:E,onFocus:k,placeholder:T,required:R=!1,rows:C,select:B=!1,SelectProps:O,slots:I={},slotProps:P={},type:$,value:N,variant:M="outlined",...L}=r,D={...r,autoFocus:o,color:a,disabled:u,error:c,fullWidth:f,multiline:S,required:R,select:B,variant:M},q=useUtilityClasses(D),U=useId(h),F=p&&U?`${U}-helper-text`:void 0,j=b&&U?`${U}-label`:void 0,H=variantComponent[M],z={slots:I,slotProps:{input:y,inputLabel:m,htmlInput:g,formHelperText:d,select:O,...P}},W={},V=z.slotProps.inputLabel;"outlined"===M&&(V&&void 0!==V.shrink&&(W.notched=V.shrink),W.label=b),B&&(O&&O.native||(W.id=void 0),W["aria-describedby"]=void 0);const[G,K]=useSlot("root",{elementType:TextFieldRoot,shouldForwardComponentProp:!0,externalForwardedProps:{...z,...L},ownerState:D,className:clsx$1(q.root,s),ref:t,additionalProps:{disabled:u,error:c,fullWidth:f,required:R,color:a,variant:M}}),[Z,J]=useSlot("input",{elementType:H,externalForwardedProps:z,additionalProps:W,ownerState:D}),[X,Q]=useSlot("inputLabel",{elementType:InputLabel,externalForwardedProps:z,ownerState:D}),[Y,ee]=useSlot("htmlInput",{elementType:"input",externalForwardedProps:z,ownerState:D}),[te,re]=useSlot("formHelperText",{elementType:FormHelperText,externalForwardedProps:z,ownerState:D}),[ne,oe]=useSlot("select",{elementType:Select,externalForwardedProps:z,ownerState:D}),ie=u$1(Z,{"aria-describedby":F,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:S,name:_,rows:C,maxRows:v,minRows:w,type:$,value:N,id:U,inputRef:A,onBlur:x,onChange:E,onFocus:k,placeholder:T,inputProps:ee,slots:{input:I.htmlInput?Y:void 0},...J});return u$1(G,{...K,children:[null!=b&&""!==b&&u$1(X,{htmlFor:U,id:j,...Q,children:b}),B?u$1(ne,{"aria-describedby":F,id:U,labelId:j,value:N,input:ie,...oe,children:i}):ie,p&&u$1(te,{id:F,...re,children:p})]})});var inherits_browser={exports:{}},hasRequiredInherits_browser;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,"function"==typeof Object.create?inherits_browser.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),inherits_browser.exports}var safeBuffer$2={exports:{}},buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=function(e){var t=i(e),r=t[0],n=t[1];return 3*(r+n)/4-n},base64Js.toByteArray=function(e){var n,o,s=i(e),a=s[0],l=s[1],u=new r(function(e,t,r){return 3*(t+r)/4-r}(0,a,l)),c=0,d=l>0?a-4:a;for(o=0;o>16&255,u[c++]=n>>8&255,u[c++]=255&n;2===l&&(n=t[e.charCodeAt(o)]<<2|t[e.charCodeAt(o+1)]>>4,u[c++]=255&n);1===l&&(n=t[e.charCodeAt(o)]<<10|t[e.charCodeAt(o+1)]<<4|t[e.charCodeAt(o+2)]>>2,u[c++]=n>>8&255,u[c++]=255&n);return u},base64Js.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],s=16383,l=0,u=n-o;lu?u:l+s));1===o?(r=t[n-1],i.push(e[r>>2]+e[r<<4&63]+"==")):2===o&&(r=(t[n-2]<<8)+t[n-1],i.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"="));return i.join("")};for(var e=[],t=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;function i(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,r){for(var n,o=[],i=t;i */function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,l=(1<>1,c=-7,d=r?o-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+d],d+=f,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=u}return(p?-1:1)*s*Math.pow(2,i-n)},ieee754.write=function(e,t,r,n,o,i){var s,a,l,u=8*i-o-1,c=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=h,a/=256,o-=8);for(s=s<0;e[r+p]=255&s,p+=h,s/=256,u-=8);e[r+p-h]|=128*m}),ieee754} +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(e){const t=requireBase64Js(),r=requireIeee754(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|p(e,t);let n=i(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);const o=function(e){if(s.isBuffer(e)){const t=0|f(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?i(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),i(e<0?0:0|f(e))}function c(e){const t=e.length<0?0:0|f(e.length),r=i(t);for(let n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(o)return n?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){let i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let n=-1;for(i=r;ia&&(r=a-l),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function _(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function x(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(t+=" ... "),""},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(G(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const l=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":case"latin1":case"binary":return v(this,e,t,r);case"base64":return w(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function k(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function I(e,t,r,n,o){U(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function P(e,t,r,n,o){U(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function $(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,n,o,i){return t=+t,n>>>=0,i||$(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function M(e,t,n,o,i){return t=+t,n>>>=0,i||$(e,0,n,8),r.write(e,t,n,o,52,8),n+8}s.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||B(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||B(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=J(function(e){F(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||j(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||j(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||B(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=J(function(e){F(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||j(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||j(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||B(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){O(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){O(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=J(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=J(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);O(this,e,t,r,n-1,-n)}let o=0,i=1,s=0;for(this[t]=255&e;++o>>=0,!n){const n=Math.pow(2,8*r-1);O(this,e,t,r,n-1,-n)}let o=r-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=J(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=J(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function U(e,t,r,n,o,i){if(e>r||e= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`,new L.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){F(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||j(t,e.length-(r+1))}(n,o,i)}function F(e,t){if("number"!=typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,"number",e)}function j(e,t,r){if(Math.floor(e)!==e)throw F(e,r),new L.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}D("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),D("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),D("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=q(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=q(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function z(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let s=0;s55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function W(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}}(buffer)),buffer} +/*! safe-buffer. MIT License. Feross Aboukhadijeh */function requireSafeBuffer$2(){return hasRequiredSafeBuffer$2||(hasRequiredSafeBuffer$2=1,function(e,t){var r=requireBuffer(),n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(safeBuffer$2,safeBuffer$2.exports)),safeBuffer$2.exports}function requireIsarray$1(){if(hasRequiredIsarray$1)return isarray$1;hasRequiredIsarray$1=1;var e={}.toString;return isarray$1=Array.isArray||function(t){return"[object Array]"==e.call(t)}}function requireType(){return hasRequiredType?type:(hasRequiredType=1,type=TypeError)}function requireEsObjectAtoms(){return hasRequiredEsObjectAtoms?esObjectAtoms:(hasRequiredEsObjectAtoms=1,esObjectAtoms=Object)}function requireEsErrors(){return hasRequiredEsErrors?esErrors:(hasRequiredEsErrors=1,esErrors=Error)}function require_eval(){return hasRequired_eval?_eval:(hasRequired_eval=1,_eval=EvalError)}function requireRange(){return hasRequiredRange?range:(hasRequiredRange=1,range=RangeError)}function requireRef(){return hasRequiredRef?ref:(hasRequiredRef=1,ref=ReferenceError)}function requireSyntax(){return hasRequiredSyntax?syntax:(hasRequiredSyntax=1,syntax=SyntaxError)}function requireUri(){return hasRequiredUri?uri:(hasRequiredUri=1,uri=URIError)}function requireAbs(){return hasRequiredAbs?abs$1:(hasRequiredAbs=1,abs$1=Math.abs)}function requireFloor(){return hasRequiredFloor?floor$1:(hasRequiredFloor=1,floor$1=Math.floor)}function requireMax(){return hasRequiredMax?max$1:(hasRequiredMax=1,max$1=Math.max)}function requireMin(){return hasRequiredMin?min$1:(hasRequiredMin=1,min$1=Math.min)}function requirePow(){return hasRequiredPow?pow$1:(hasRequiredPow=1,pow$1=Math.pow)}function requireRound(){return hasRequiredRound?round$1:(hasRequiredRound=1,round$1=Math.round)}function require_isNaN(){return hasRequired_isNaN||(hasRequired_isNaN=1,_isNaN=Number.isNaN||function(e){return e!=e}),_isNaN}function requireSign(){if(hasRequiredSign)return sign$1;hasRequiredSign=1;var e=require_isNaN();return sign$1=function(t){return e(t)||0===t?t:t<0?-1:1}}function requireGOPD(){return hasRequiredGOPD?gOPD:(hasRequiredGOPD=1,gOPD=Object.getOwnPropertyDescriptor)}function requireGopd(){if(hasRequiredGopd)return gopd;hasRequiredGopd=1;var e=requireGOPD();if(e)try{e([],"length")}catch(t){e=null}return gopd=e}function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return esDefineProperty=e}function requireShams$1(){return hasRequiredShams$1?shams$1:(hasRequiredShams$1=1,shams$1=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0})}function requireHasSymbols(){if(hasRequiredHasSymbols)return hasSymbols;hasRequiredHasSymbols=1;var e="undefined"!=typeof Symbol&&Symbol,t=requireShams$1();return hasSymbols=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function requireReflect_getPrototypeOf(){return hasRequiredReflect_getPrototypeOf?Reflect_getPrototypeOf:(hasRequiredReflect_getPrototypeOf=1,Reflect_getPrototypeOf="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function requireObject_getPrototypeOf(){return hasRequiredObject_getPrototypeOf?Object_getPrototypeOf:(hasRequiredObject_getPrototypeOf=1,Object_getPrototypeOf=requireEsObjectAtoms().getPrototypeOf||null)}function requireImplementation(){if(hasRequiredImplementation)return implementation;hasRequiredImplementation=1;var e=Object.prototype.toString,t=Math.max,r=function(e,t){for(var r=[],n=0;n1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=q(e,0,1),r=q(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return D(e,F,function(e,t,r,o){n[n.length]=r?D(o,j,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=H("%"+n+"%",t),i=o.name,l=o.value,u=!1,c=o.alias;c&&(n=c[0],L(r,M([0,1],c)));for(var d=1,f=!0;d=r.length){var g=A(l,p);l=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[p]}else f=N(l,p),l=l[p];f&&!u&&(B[i]=l)}}return l},getIntrinsic}function requireCallBound(){if(hasRequiredCallBound)return callBound;hasRequiredCallBound=1;var e=requireGetIntrinsic(),t=requireCallBindApplyHelpers(),r=t([e("%String.prototype.indexOf%")]);return callBound=function(n,o){var i=e(n,!!o);return"function"==typeof i&&r(n,".prototype.")>-1?t([i]):i}}function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e,t,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},n(function(){throw 42},null,e)}catch(e){e!==t&&(n=null)}else n=null;var o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}},a=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),c=function(){return!1};if("object"==typeof document){var d=document.all;a.call(d)===a.call(document.all)&&(c=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=a.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}return isCallable=n?function(r){if(c(r))return!0;if(!r)return!1;if("function"!=typeof r&&"object"!=typeof r)return!1;try{n(r,null,e)}catch(e){if(e!==t)return!1}return!i(r)&&s(r)}:function(e){if(c(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return s(e);if(i(e))return!1;var t=a.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)},isCallable}function requireForEach(){if(hasRequiredForEach)return forEach$1;hasRequiredForEach=1;var e=requireIsCallable(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty;return forEach$1=function(n,o,i){if(!e(o))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=i),function(e){return"[object Array]"===t.call(e)}(n)?function(e,t,n){for(var o=0,i=e.length;o3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new r("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!n&&n(o,i);if(e)e(o,i,{configurable:null===u&&d?d.configurable:!u,enumerable:null===a&&d?d.enumerable:!a,value:s,writable:null===l&&d?d.writable:!l});else{if(!c&&(a||l||u))throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");o[i]=s}},defineDataProperty}function requireHasPropertyDescriptors(){if(hasRequiredHasPropertyDescriptors)return hasPropertyDescriptors_1;hasRequiredHasPropertyDescriptors=1;var e=requireEsDefineProperty(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return 1!==e([],"length",{value:1}).length}catch(e){return!0}},hasPropertyDescriptors_1=t}function requireSetFunctionLength(){if(hasRequiredSetFunctionLength)return setFunctionLength;hasRequiredSetFunctionLength=1;var e=requireGetIntrinsic(),t=requireDefineDataProperty(),r=requireHasPropertyDescriptors()(),n=requireGopd(),o=requireType(),i=e("%Math.floor%");return setFunctionLength=function(e,s){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof s||s<0||s>4294967295||i(s)!==s)throw new o("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],l=!0,u=!0;if("length"in e&&n){var c=n(e,"length");c&&!c.configurable&&(l=!1),c&&!c.writable&&(u=!1)}return(l||u||!a)&&(r?t(e,"length",s,!0,!0):t(e,"length",s)),e},setFunctionLength}function requireApplyBind(){if(hasRequiredApplyBind)return applyBind;hasRequiredApplyBind=1;var e=requireFunctionBind(),t=requireFunctionApply(),r=requireActualApply();return applyBind=function(){return r(e,t,arguments)},applyBind}function requireCallBind(){return hasRequiredCallBind||(hasRequiredCallBind=1,function(e){var t=requireSetFunctionLength(),r=requireEsDefineProperty(),n=requireCallBindApplyHelpers(),o=requireApplyBind();e.exports=function(e){var r=n(arguments),o=e.length-(arguments.length-1);return t(r,1+(o>0?o:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(callBind)),callBind.exports}function requireShams(){if(hasRequiredShams)return shams;hasRequiredShams=1;var e=requireShams$1();return shams=function(){return e()&&!!Symbol.toStringTag}}function requireWhichTypedArray(){if(hasRequiredWhichTypedArray)return whichTypedArray;hasRequiredWhichTypedArray=1;var e=requireForEach(),t=requireAvailableTypedArrays(),r=requireCallBind(),n=requireCallBound(),o=requireGopd(),i=requireGetProto(),s=n("Object.prototype.toString"),a=requireShams()(),l="undefined"==typeof globalThis?commonjsGlobal:globalThis,u=t(),c=n("String.prototype.slice"),d=n("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1?r:"Object"===r&&function(t){var r=!1;return e(f,function(e,n){if(!r)try{e(t),r=c(n,1)}catch(e){}}),r}(t)}return o?function(t){var r=!1;return e(f,function(e,n){if(!r)try{"$"+e(t)===n&&(r=c(n,1))}catch(e){}}),r}(t):null},whichTypedArray}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray$1;hasRequiredIsTypedArray=1;var e=requireWhichTypedArray();return isTypedArray$1=function(t){return!!e(t)},isTypedArray$1}function requireTypedArrayBuffer(){if(hasRequiredTypedArrayBuffer)return typedArrayBuffer;hasRequiredTypedArrayBuffer=1;var e=requireType(),t=requireCallBound()("TypedArray.prototype.buffer",!0),r=requireIsTypedArray();return typedArrayBuffer=t||function(t){if(!r(t))throw new e("Not a Typed Array");return t.buffer},typedArrayBuffer}function requireToBuffer$1(){if(hasRequiredToBuffer$1)return toBuffer;hasRequiredToBuffer$1=1;var e=requireSafeBuffer$2().Buffer,t=requireIsarray$1(),r=requireTypedArrayBuffer(),n=ArrayBuffer.isView||function(e){try{return r(e),!0}catch(e){return!1}},o="undefined"!=typeof Uint8Array,i="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,s=i&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return toBuffer=function(r,a){if(e.isBuffer(r))return r.constructor&&!("isBuffer"in r)?e.from(r):r;if("string"==typeof r)return e.from(r,a);if(i&&n(r)){if(0===r.byteLength)return e.alloc(0);if(s){var l=e.from(r.buffer,r.byteOffset,r.byteLength);if(l.byteLength===r.byteLength)return l}var u=r instanceof Uint8Array?r:new Uint8Array(r.buffer,r.byteOffset,r.byteLength),c=e.from(u);if(c.length===r.byteLength)return c}if(o&&r instanceof Uint8Array)return e.from(r);var d=t(r);if(d)for(var f=0;f255||~~p!==p)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||e.isBuffer(r)&&r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r))return e.from(r);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},toBuffer}function requireToBuffer(){if(hasRequiredToBuffer)return toBuffer_1;hasRequiredToBuffer=1;var e=requireSafeBuffer$2().Buffer,t=requireToBuffer$1(),r="undefined"!=typeof Uint8Array,n=r&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;return toBuffer_1=function(o,i){if("string"==typeof o||e.isBuffer(o)||r&&o instanceof Uint8Array||n&&n(o))return t(o,i);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}}var readableBrowser={exports:{}},browser$3={exports:{}},hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$3.exports;hasRequiredBrowser$3=1;var e,t,r=browser$3.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{t="function"==typeof clearTimeout?clearTimeout:o}catch(e){t=o}}();var s,a=[],l=!1,u=-1;function c(){l&&s&&(l=!1,s.length?a=s.concat(a):u=-1,a.length&&d())}function d(){if(!l){var e=i(c);l=!0;for(var r=a.length;r;){for(s=a,a=[];++u1)for(var r=1;r0&&l.length>o&&!l.warned){l.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=l.length,u=c,console&&console.warn&&console.warn(u)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=u.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=p(l,u);for(n=0;n=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},events.exports}function requireStreamBrowser$1(){return hasRequiredStreamBrowser$1?streamBrowser$1:(hasRequiredStreamBrowser$1=1,streamBrowser$1=requireEvents().EventEmitter)}var safeBuffer$1={exports:{}},hasRequiredSafeBuffer$1;function requireSafeBuffer$1(){return hasRequiredSafeBuffer$1||(hasRequiredSafeBuffer$1=1,function(e,t){var r=requireBuffer(),n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(safeBuffer$1,safeBuffer$1.exports)),safeBuffer$1.exports}var util={},hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;function e(e){return Object.prototype.toString.call(e)}return hasRequiredUtil=1,util.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},util.isBoolean=function(e){return"boolean"==typeof e},util.isNull=function(e){return null===e},util.isNullOrUndefined=function(e){return null==e},util.isNumber=function(e){return"number"==typeof e},util.isString=function(e){return"string"==typeof e},util.isSymbol=function(e){return"symbol"==typeof e},util.isUndefined=function(e){return void 0===e},util.isRegExp=function(t){return"[object RegExp]"===e(t)},util.isObject=function(e){return"object"==typeof e&&null!==e},util.isDate=function(t){return"[object Date]"===e(t)},util.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},util.isFunction=function(e){return"function"==typeof e},util.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},util.isBuffer=requireBuffer().Buffer.isBuffer,util}var _nodeResolve_empty={},_nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty}),require$$0=getAugmentedNamespace(_nodeResolve_empty$1),BufferList={exports:{}},hasRequiredBufferList,destroy_1$1,hasRequiredDestroy$1,browser$2,hasRequiredBrowser$2,_stream_writable$1,hasRequired_stream_writable$1,_stream_duplex$1,hasRequired_stream_duplex$1;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(e){var t=requireSafeBuffer$1().Buffer,r=require$$0;function n(e,t,r){e.copy(t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return t.alloc(0);for(var r=t.allocUnsafe(e>>>0),o=this.head,i=0;o;)n(o.data,r,i),i+=o.data.length,o=o.next;return r},e}(),r&&r.inspect&&r.inspect.custom&&(e.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})}(BufferList)),BufferList.exports}function requireDestroy$1(){if(hasRequiredDestroy$1)return destroy_1$1;hasRequiredDestroy$1=1;var e=requireProcessNextickArgs();function t(e,t){e.emit("error",t)}return destroy_1$1={destroy:function(r,n){var o=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(n?n(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(t,this,r)):e.nextTick(t,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(r){!n&&r?o._writableState?o._writableState.errorEmitted||(o._writableState.errorEmitted=!0,e.nextTick(t,o,r)):e.nextTick(t,o,r):n&&n(r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}}function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$2;function e(e){try{if(!commonjsGlobal.localStorage)return!1}catch(e){return!1}var t=commonjsGlobal.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}return hasRequiredBrowser$2=1,browser$2=function(t,r){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return t.apply(this,arguments)}},browser$2}function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1;var e=requireProcessNextickArgs();function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}_stream_writable$1=p;var r,n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:e.nextTick;p.WritableState=f;var o=Object.create(requireUtil());o.inherits=requireInherits_browser();var i={deprecate:requireBrowser$2()},s=requireStreamBrowser$1(),a=requireSafeBuffer$1().Buffer,l=(void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,c=requireDestroy$1();function d(){}function f(o,i){r=r||require_stream_duplex$1(),o=o||{};var s=i instanceof r;this.objectMode=!!o.objectMode,s&&(this.objectMode=this.objectMode||!!o.writableObjectMode);var a=o.highWaterMark,l=o.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:s&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===o.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,r){var o=t._writableState,i=o.sync,s=o.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(o),r)!function(t,r,n,o,i){--r.pendingcb,n?(e.nextTick(i,o),e.nextTick(b,t,r),t._writableState.errorEmitted=!0,t.emit("error",o)):(i(o),t._writableState.errorEmitted=!0,t.emit("error",o),b(t,r))}(t,o,i,r,s);else{var a=y(o);a||o.corked||o.bufferProcessing||!o.bufferedRequest||g(t,o),i?n(m,t,o,a,s):m(t,o,a,s)}}(i,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function p(e){if(r=r||require_stream_duplex$1(),!(u.call(p,this)||this instanceof r))return new p(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function h(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function m(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),b(e,t)}function g(e,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(e._writev&&n&&n.next){var o=r.bufferedRequestCount,i=new Array(o),s=r.corkedRequestsFree;s.entry=n;for(var a=0,l=!0;n;)i[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;i.allBuffers=l,h(e,r,!0,r.length,i,"",s.finish),r.pendingcb++,r.lastBufferedRequest=null,s.next?(r.corkedRequestsFree=s.next,s.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(h(e,r,!1,r.objectMode?1:u.length,u,c,d),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function y(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),b(e,t)})}function b(t,r){var n=y(r);return n&&(!function(t,r){r.prefinished||r.finalCalled||("function"==typeof t._final?(r.pendingcb++,r.finalCalled=!0,e.nextTick(A,t,r)):(r.prefinished=!0,t.emit("prefinish")))}(t,r),0===r.pendingcb&&(r.finished=!0,t.emit("finish"))),n}return o.inherits(p,s),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(p,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===p&&(e&&e._writableState instanceof f)}})):u=function(e){return e instanceof this},p.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},p.prototype.write=function(t,r,n){var o,i=this._writableState,s=!1,u=!i.objectMode&&(o=t,a.isBuffer(o)||o instanceof l);return u&&!a.isBuffer(t)&&(t=function(e){return a.from(e)}(t)),"function"==typeof r&&(n=r,r=null),u?r="buffer":r||(r=i.defaultEncoding),"function"!=typeof n&&(n=d),i.ended?function(t,r){var n=new Error("write after end");t.emit("error",n),e.nextTick(r,n)}(this,n):(u||function(t,r,n,o){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||r.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),e.nextTick(o,s),i=!1),i}(this,i,t,n))&&(i.pendingcb++,s=function(e,t,r,n,o,i){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,o);n!==s&&(r=!0,o="buffer",n=s)}var l=t.objectMode?1:n.length;t.length+=l;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),p.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},p.prototype._writev=null,p.prototype.end=function(t,r,n){var o=this._writableState;"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),null!=t&&this.write(t,r),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,r,n){r.ending=!0,b(t,r),n&&(r.finished?e.nextTick(n):t.once("finish",n));r.ended=!0,t.writable=!1}(this,o,n)},Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),p.prototype.destroy=c.destroy,p.prototype._undestroy=c.undestroy,p.prototype._destroy=function(e,t){this.end(),t(e)},_stream_writable$1}function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var e=requireProcessNextickArgs(),t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};_stream_duplex$1=l;var r=Object.create(requireUtil());r.inherits=requireInherits_browser();var n=require_stream_readable$1(),o=require_stream_writable$1();r.inherits(l,n);for(var i=t(o.prototype),s=0;s>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function i(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function a(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return string_decoder$1.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--o=0)return i>0&&(e.lastNeed=i-2),i;if(--o=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var o=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},string_decoder$1}function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1;var e=requireProcessNextickArgs();_stream_readable$1=m;var t,r=requireIsarray();m.ReadableState=h,requireEvents().EventEmitter;var n=function(e,t){return e.listeners(t).length},o=requireStreamBrowser$1(),i=requireSafeBuffer$1().Buffer,s=(void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var a=Object.create(requireUtil());a.inherits=requireInherits_browser();var l=require$$0,u=void 0;u=l&&l.debuglog?l.debuglog("stream"):function(){};var c,d=requireBufferList(),f=requireDestroy$1();a.inherits(m,o);var p=["error","close","destroy","pause","resume"];function h(e,r){e=e||{};var n=r instanceof(t=t||require_stream_duplex$1());this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,i=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(i||0===i)?i:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(c||(c=requireString_decoder$1().StringDecoder),this.decoder=new c(e.encoding),this.encoding=e.encoding)}function m(e){if(t=t||require_stream_duplex$1(),!(this instanceof m))return new m(e);this._readableState=new h(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function g(e,t,r,n,o){var a,l=e._readableState;null===t?(l.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,v(e)}(e,l)):(o||(a=function(e,t){var r;n=t,i.isBuffer(n)||n instanceof s||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(l,t)),a?e.emit("error",a):l.objectMode||t&&t.length>0?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===i.prototype||(t=function(e){return i.from(e)}(t)),n?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):y(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?y(e,l,t,!1):S(e,l)):y(e,l,t,!1))):n||(l.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function v(t){var r=t._readableState;r.needReadable=!1,r.emittedReadable||(u("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?e.nextTick(w,t):w(t))}function w(e){u("emit readable"),e.emit("readable"),k(e)}function S(t,r){r.readingMore||(r.readingMore=!0,e.nextTick(_,t,r))}function _(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;ei.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++n}return t.length-=n,o}(e,t):function(e,t){var r=i.allocUnsafe(e),n=t.head,o=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var s=n.data,a=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,a),0===(e-=a)){a===s.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(a));break}++o}return t.length-=o,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function R(t){var r=t._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,e.nextTick(C,r,t))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):v(this),null;if(0===(e=b(e,t))&&t.ended)return 0===t.length&&R(this),null;var n,o=t.needReadable;return u("need readable",o),(0===t.length||t.length-e0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(t,o){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1,u("pipe count=%d opts=%j",s.pipesCount,o);var a=(!o||!1!==o.end)&&t!==process.stdout&&t!==process.stderr?c:A;function l(e,r){u("onunpipe"),e===i&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,u("cleanup"),t.removeListener("close",g),t.removeListener("finish",y),t.removeListener("drain",d),t.removeListener("error",m),t.removeListener("unpipe",l),i.removeListener("end",c),i.removeListener("end",A),i.removeListener("data",h),f=!0,!s.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function c(){u("onend"),t.end()}s.endEmitted?e.nextTick(a):i.once("end",a),t.on("unpipe",l);var d=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&n(e,"data")&&(t.flowing=!0,k(e))}}(i);t.on("drain",d);var f=!1;var p=!1;function h(e){u("ondata"),p=!1,!1!==t.write(e)||p||((1===s.pipesCount&&s.pipes===t||s.pipesCount>1&&-1!==B(s.pipes,t))&&!f&&(u("false write response, pause",s.awaitDrain),s.awaitDrain++,p=!0),i.pause())}function m(e){u("onerror",e),A(),t.removeListener("error",m),0===n(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",y),A()}function y(){u("onfinish"),t.removeListener("close",g),A()}function A(){u("unpipe"),i.unpipe(t)}return i.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?r(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(t,"error",m),t.once("close",g),t.once("finish",y),t.emit("pipe",i),s.flowing||(u("pipe resume"),i.resume()),t},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i=this._blockSize;){for(var s=this._blockOffset;s0;++a)this._length[a]+=l,(l=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*l);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},hashBase=n}function requireMd5_js(){if(hasRequiredMd5_js)return md5_js;hasRequiredMd5_js=1;var e=requireInherits_browser(),t=requireHashBase(),r=requireSafeBuffer$2().Buffer,n=new Array(16);function o(){t.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function i(e,t){return e<>>32-t}function s(e,t,r,n,o,s,a){return i(e+(t&r|~t&n)+o+s|0,a)+t|0}function a(e,t,r,n,o,s,a){return i(e+(t&n|r&~n)+o+s|0,a)+t|0}function l(e,t,r,n,o,s,a){return i(e+(t^r^n)+o+s|0,a)+t|0}function u(e,t,r,n,o,s,a){return i(e+(r^(t|~n))+o+s|0,a)+t|0}return e(o,t),o.prototype._update=function(){for(var e=n,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,o=this._b,i=this._c,c=this._d;r=s(r,o,i,c,e[0],3614090360,7),c=s(c,r,o,i,e[1],3905402710,12),i=s(i,c,r,o,e[2],606105819,17),o=s(o,i,c,r,e[3],3250441966,22),r=s(r,o,i,c,e[4],4118548399,7),c=s(c,r,o,i,e[5],1200080426,12),i=s(i,c,r,o,e[6],2821735955,17),o=s(o,i,c,r,e[7],4249261313,22),r=s(r,o,i,c,e[8],1770035416,7),c=s(c,r,o,i,e[9],2336552879,12),i=s(i,c,r,o,e[10],4294925233,17),o=s(o,i,c,r,e[11],2304563134,22),r=s(r,o,i,c,e[12],1804603682,7),c=s(c,r,o,i,e[13],4254626195,12),i=s(i,c,r,o,e[14],2792965006,17),r=a(r,o=s(o,i,c,r,e[15],1236535329,22),i,c,e[1],4129170786,5),c=a(c,r,o,i,e[6],3225465664,9),i=a(i,c,r,o,e[11],643717713,14),o=a(o,i,c,r,e[0],3921069994,20),r=a(r,o,i,c,e[5],3593408605,5),c=a(c,r,o,i,e[10],38016083,9),i=a(i,c,r,o,e[15],3634488961,14),o=a(o,i,c,r,e[4],3889429448,20),r=a(r,o,i,c,e[9],568446438,5),c=a(c,r,o,i,e[14],3275163606,9),i=a(i,c,r,o,e[3],4107603335,14),o=a(o,i,c,r,e[8],1163531501,20),r=a(r,o,i,c,e[13],2850285829,5),c=a(c,r,o,i,e[2],4243563512,9),i=a(i,c,r,o,e[7],1735328473,14),r=l(r,o=a(o,i,c,r,e[12],2368359562,20),i,c,e[5],4294588738,4),c=l(c,r,o,i,e[8],2272392833,11),i=l(i,c,r,o,e[11],1839030562,16),o=l(o,i,c,r,e[14],4259657740,23),r=l(r,o,i,c,e[1],2763975236,4),c=l(c,r,o,i,e[4],1272893353,11),i=l(i,c,r,o,e[7],4139469664,16),o=l(o,i,c,r,e[10],3200236656,23),r=l(r,o,i,c,e[13],681279174,4),c=l(c,r,o,i,e[0],3936430074,11),i=l(i,c,r,o,e[3],3572445317,16),o=l(o,i,c,r,e[6],76029189,23),r=l(r,o,i,c,e[9],3654602809,4),c=l(c,r,o,i,e[12],3873151461,11),i=l(i,c,r,o,e[15],530742520,16),r=u(r,o=l(o,i,c,r,e[2],3299628645,23),i,c,e[0],4096336452,6),c=u(c,r,o,i,e[7],1126891415,10),i=u(i,c,r,o,e[14],2878612391,15),o=u(o,i,c,r,e[5],4237533241,21),r=u(r,o,i,c,e[12],1700485571,6),c=u(c,r,o,i,e[3],2399980690,10),i=u(i,c,r,o,e[10],4293915773,15),o=u(o,i,c,r,e[1],2240044497,21),r=u(r,o,i,c,e[8],1873313359,6),c=u(c,r,o,i,e[15],4264355552,10),i=u(i,c,r,o,e[6],2734768916,15),o=u(o,i,c,r,e[13],1309151649,21),r=u(r,o,i,c,e[4],4149444226,6),c=u(c,r,o,i,e[11],3174756917,10),i=u(i,c,r,o,e[2],718787259,15),o=u(o,i,c,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+o|0,this._c=this._c+i|0,this._d=this._d+c|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},md5_js=o}function requireRipemd160$1(){if(hasRequiredRipemd160$1)return ripemd160$2;hasRequiredRipemd160$1=1;var e=requireBuffer().Buffer,t=requireInherits_browser(),r=requireHashBase(),n=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],s=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],a=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],u=[1352829926,1548603684,1836072691,2053994217,0];function c(e,t){return e<>>32-t}function d(e,t,r,n,o,i,s,a){return c(e+(t^r^n)+i+s|0,a)+o|0}function f(e,t,r,n,o,i,s,a){return c(e+(t&r|~t&n)+i+s|0,a)+o|0}function p(e,t,r,n,o,i,s,a){return c(e+((t|~r)^n)+i+s|0,a)+o|0}function h(e,t,r,n,o,i,s,a){return c(e+(t&n|r&~n)+i+s|0,a)+o|0}function m(e,t,r,n,o,i,s,a){return c(e+(t^(r|~n))+i+s|0,a)+o|0}function g(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}return t(g,r),g.prototype._update=function(){for(var e=n,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,g=0|this._b,y=0|this._c,A=0|this._d,b=0|this._e,v=0|this._a,w=0|this._b,S=0|this._c,_=0|this._d,x=0|this._e,E=0;E<80;E+=1){var k,T;E<16?(k=d(r,g,y,A,b,e[o[E]],l[0],s[E]),T=m(v,w,S,_,x,e[i[E]],u[0],a[E])):E<32?(k=f(r,g,y,A,b,e[o[E]],l[1],s[E]),T=h(v,w,S,_,x,e[i[E]],u[1],a[E])):E<48?(k=p(r,g,y,A,b,e[o[E]],l[2],s[E]),T=p(v,w,S,_,x,e[i[E]],u[2],a[E])):E<64?(k=h(r,g,y,A,b,e[o[E]],l[3],s[E]),T=f(v,w,S,_,x,e[i[E]],u[3],a[E])):(k=m(r,g,y,A,b,e[o[E]],l[4],s[E]),T=d(v,w,S,_,x,e[i[E]],u[4],a[E])),r=b,b=A,A=c(y,10),y=g,g=k,v=x,x=_,_=c(S,10),S=w,w=T}var R=this._b+y+_|0;this._b=this._c+A+x|0,this._c=this._d+b+v|0,this._d=this._e+r+w|0,this._e=this._a+g+S|0,this._a=R},g.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=e.alloc?e.alloc(20):new e(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},ripemd160$2=g}var sha_js={exports:{}},hash,hasRequiredHash,sha,hasRequiredSha,sha1$2,hasRequiredSha1$1,sha256$3,hasRequiredSha256$2,sha224$2,hasRequiredSha224$1,sha512$2,hasRequiredSha512$1,sha384$2,hasRequiredSha384$1,hasRequiredSha_js,streamBrowser,hasRequiredStreamBrowser,buffer_list,hasRequiredBuffer_list,destroy_1,hasRequiredDestroy;function requireHash(){if(hasRequiredHash)return hash;hasRequiredHash=1;var e=requireSafeBuffer$2().Buffer,t=requireToBuffer$1();function r(t,r){this._block=e.alloc(t),this._finalSize=r,this._blockSize=t,this._len=0}return r.prototype.update=function(e,r){e=t(e,r||"utf8");for(var n=this._block,o=this._blockSize,i=e.length,s=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},hash=r}function requireSha(){if(hasRequiredSha)return sha;hasRequiredSha=1;var e=requireInherits_browser(),t=requireHash(),r=requireSafeBuffer$2().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function i(){this.init(),this._w=o,t.call(this,64,56)}function s(e){return e<<5|e>>>27}function a(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}return e(i,t),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._a,o=0|this._b,i=0|this._c,u=0|this._d,c=0|this._e,d=0;d<16;++d)t[d]=e.readInt32BE(4*d);for(;d<80;++d)t[d]=t[d-3]^t[d-8]^t[d-14]^t[d-16];for(var f=0;f<80;++f){var p=~~(f/20),h=s(r)+l(p,o,i,u)+c+t[f]+n[p]|0;c=u,u=i,i=a(o),o=r,r=h}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0},i.prototype._hash=function(){var e=r.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},sha=i}function requireSha1$1(){if(hasRequiredSha1$1)return sha1$2;hasRequiredSha1$1=1;var e=requireInherits_browser(),t=requireHash(),r=requireSafeBuffer$2().Buffer,n=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function i(){this.init(),this._w=o,t.call(this,64,56)}function s(e){return e<<1|e>>>31}function a(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}return e(i,t),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._a,o=0|this._b,i=0|this._c,c=0|this._d,d=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=s(t[f-3]^t[f-8]^t[f-14]^t[f-16]);for(var p=0;p<80;++p){var h=~~(p/20),m=a(r)+u(h,o,i,c)+d+t[p]+n[h]|0;d=c,c=i,i=l(o),o=r,r=m}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=c+this._d|0,this._e=d+this._e|0},i.prototype._hash=function(){var e=r.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},sha1$2=i}function requireSha256$2(){if(hasRequiredSha256$2)return sha256$3;hasRequiredSha256$2=1;var e=requireInherits_browser(),t=requireHash(),r=requireSafeBuffer$2().Buffer,n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function i(){this.init(),this._w=o,t.call(this,64,56)}function s(e,t,r){return r^e&(t^r)}function a(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function u(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function c(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function d(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}return e(i,t),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._a,o=0|this._b,i=0|this._c,f=0|this._d,p=0|this._e,h=0|this._f,m=0|this._g,g=0|this._h,y=0;y<16;++y)t[y]=e.readInt32BE(4*y);for(;y<64;++y)t[y]=d(t[y-2])+t[y-7]+c(t[y-15])+t[y-16]|0;for(var A=0;A<64;++A){var b=g+u(p)+s(p,h,m)+n[A]+t[A]|0,v=l(r)+a(r,o,i)|0;g=m,m=h,h=p,p=f+b|0,f=i,i=o,o=r,r=b+v|0}this._a=r+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=p+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},i.prototype._hash=function(){var e=r.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},sha256$3=i}function requireSha224$1(){if(hasRequiredSha224$1)return sha224$2;hasRequiredSha224$1=1;var e=requireInherits_browser(),t=requireSha256$2(),r=requireHash(),n=requireSafeBuffer$2().Buffer,o=new Array(64);function i(){this.init(),this._w=o,r.call(this,64,56)}return e(i,t),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var e=n.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},sha224$2=i}function requireSha512$1(){if(hasRequiredSha512$1)return sha512$2;hasRequiredSha512$1=1;var e=requireInherits_browser(),t=requireHash(),r=requireSafeBuffer$2().Buffer,n=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function i(){this.init(),this._w=o,t.call(this,128,112)}function s(e,t,r){return r^e&(t^r)}function a(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function u(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function c(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function f(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function h(e,t){return e>>>0>>0?1:0}return e(i,t),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},i.prototype._update=function(e){for(var t=this._w,r=0|this._ah,o=0|this._bh,i=0|this._ch,m=0|this._dh,g=0|this._eh,y=0|this._fh,A=0|this._gh,b=0|this._hh,v=0|this._al,w=0|this._bl,S=0|this._cl,_=0|this._dl,x=0|this._el,E=0|this._fl,k=0|this._gl,T=0|this._hl,R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){var C=t[R-30],B=t[R-30+1],O=c(C,B),I=d(B,C),P=f(C=t[R-4],B=t[R-4+1]),$=p(B,C),N=t[R-14],M=t[R-14+1],L=t[R-32],D=t[R-32+1],q=I+M|0,U=O+N+h(q,I)|0;U=(U=U+P+h(q=q+$|0,$)|0)+L+h(q=q+D|0,D)|0,t[R]=U,t[R+1]=q}for(var F=0;F<160;F+=2){U=t[F],q=t[F+1];var j=a(r,o,i),H=a(v,w,S),z=l(r,v),W=l(v,r),V=u(g,x),G=u(x,g),K=n[F],Z=n[F+1],J=s(g,y,A),X=s(x,E,k),Q=T+G|0,Y=b+V+h(Q,T)|0;Y=(Y=(Y=Y+J+h(Q=Q+X|0,X)|0)+K+h(Q=Q+Z|0,Z)|0)+U+h(Q=Q+q|0,q)|0;var ee=W+H|0,te=z+j+h(ee,W)|0;b=A,T=k,A=y,k=E,y=g,E=x,g=m+Y+h(x=_+Q|0,_)|0,m=i,_=S,i=o,S=w,o=r,w=v,r=Y+te+h(v=Q+ee|0,Q)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+_|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+k|0,this._hl=this._hl+T|0,this._ah=this._ah+r+h(this._al,v)|0,this._bh=this._bh+o+h(this._bl,w)|0,this._ch=this._ch+i+h(this._cl,S)|0,this._dh=this._dh+m+h(this._dl,_)|0,this._eh=this._eh+g+h(this._el,x)|0,this._fh=this._fh+y+h(this._fl,E)|0,this._gh=this._gh+A+h(this._gl,k)|0,this._hh=this._hh+b+h(this._hl,T)|0},i.prototype._hash=function(){var e=r.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},sha512$2=i}function requireSha384$1(){if(hasRequiredSha384$1)return sha384$2;hasRequiredSha384$1=1;var e=requireInherits_browser(),t=requireSha512$1(),r=requireHash(),n=requireSafeBuffer$2().Buffer,o=new Array(160);function i(){this.init(),this._w=o,r.call(this,128,112)}return e(i,t),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){var e=n.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},sha384$2=i}function requireSha_js(){return hasRequiredSha_js||(hasRequiredSha_js=1,function(e){e.exports=function(t){var r=t.toLowerCase(),n=e.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n},e.exports.sha=requireSha(),e.exports.sha1=requireSha1$1(),e.exports.sha224=requireSha224$1(),e.exports.sha256=requireSha256$2(),e.exports.sha384=requireSha384$1(),e.exports.sha512=requireSha512$1()}(sha_js)),sha_js.exports}function requireStreamBrowser(){return hasRequiredStreamBrowser?streamBrowser:(hasRequiredStreamBrowser=1,streamBrowser=requireEvents().EventEmitter)}function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var n=1;n0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),r=this.head,n=0;r;)l(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return eo.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0===(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,s),0===(e-=s)){s===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(s));break}++n}return this.length-=n,t}},{key:a,value:function(e,r){return s(this,t(t({},r),{},{depth:0,customInspect:!1}))}}]),e}(),buffer_list}function requireDestroy(){if(hasRequiredDestroy)return destroy_1;function e(e,n){r(e,n),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}return hasRequiredDestroy=1,destroy_1={destroy:function(n,o){var i=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(o?o(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,n)):process.nextTick(r,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(r){!o&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(t,i):(i._writableState.errorEmitted=!0,process.nextTick(e,i,r)):process.nextTick(e,i,r):o?(process.nextTick(t,i),o(r)):process.nextTick(t,i)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}var errorsBrowser={},hasRequiredErrorsBrowser,state,hasRequiredState,_stream_writable,hasRequired_stream_writable,_stream_duplex,hasRequired_stream_duplex;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;var e={};function t(t,r,n){n||(n=Error);var o=function(e){var t,n;function o(t,n,o){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,o))||this}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o}(n);o.prototype.name=n.name,o.prototype.code=t,e[t]=o}function r(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}return t("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(e,t,n){var o,i,s;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(o," ").concat(r(t,"type"));else{var a=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(a," ").concat(o," ").concat(r(t,"type"))}return s+=". Received type ".concat(typeof n)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=e,errorsBrowser}function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var e=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;return state={getHighWaterMark:function(t,r,n,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(r,o,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new e(o?n:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}}function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var t;hasRequired_stream_writable=1,_stream_writable=w,w.WritableState=v;var r={deprecate:requireBrowser$2()},n=requireStreamBrowser(),o=requireBuffer().Buffer,i=(void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,a=requireDestroy(),l=requireState().getHighWaterMark,u=requireErrorsBrowser().codes,c=u.ERR_INVALID_ARG_TYPE,d=u.ERR_METHOD_NOT_IMPLEMENTED,f=u.ERR_MULTIPLE_CALLBACK,p=u.ERR_STREAM_CANNOT_PIPE,h=u.ERR_STREAM_DESTROYED,m=u.ERR_STREAM_NULL_VALUES,g=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,A=a.errorOrDestroy;function b(){}function v(r,n,o){t=t||require_stream_duplex(),r=r||{},"boolean"!=typeof o&&(o=n instanceof t),this.objectMode=!!r.objectMode,o&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=l(this,r,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===r.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new f;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(process.nextTick(o,n),process.nextTick(T,e,t),e._writableState.errorEmitted=!0,A(e,n)):(o(n),e._writableState.errorEmitted=!0,A(e,n),T(e,t))}(e,r,n,t,o);else{var i=E(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),n?process.nextTick(_,e,r,i,o):_(e,r,i,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function w(e){var r=this instanceof(t=t||require_stream_duplex());if(!r&&!s.call(w,this))return new w(e);this._writableState=new v(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),n.call(this)}function S(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new h("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function x(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var o=r.bufferedRequestCount,i=new Array(o),s=r.corkedRequestsFree;s.entry=n;for(var a=0,l=!0;n;)i[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;i.allBuffers=l,S(t,r,!0,r.length,i,"",s.finish),r.pendingcb++,r.lastBufferedRequest=null,s.next?(r.corkedRequestsFree=s.next,s.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(S(t,r,!1,r.objectMode?1:u.length,u,c,d),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(r){t.pendingcb--,r&&A(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)})}function T(e,t){var r=E(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(k,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}return requireInherits_browser()(w,n),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===w&&(e&&e._writableState instanceof v)}})):s=function(e){return e instanceof this},w.prototype.pipe=function(){A(this,new p)},w.prototype.write=function(e,t,r){var n,s=this._writableState,a=!1,l=!s.objectMode&&(n=e,o.isBuffer(n)||n instanceof i);return l&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(r=t,t=null),l?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof r&&(r=b),s.ending?function(e,t){var r=new g;A(e,r),process.nextTick(t,r)}(this,r):(l||function(e,t,r,n){var o;return null===r?o=new m:"string"==typeof r||t.objectMode||(o=new c("chunk",["string","Buffer"],r)),!o||(A(e,o),process.nextTick(n,o),!1)}(this,s,e,r))&&(s.pendingcb++,a=function(e,t,r,n,i,s){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var l=t.objectMode?1:n.length;t.length+=l;var u=t.length-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,r){r(new d("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=a.destroy,w.prototype._undestroy=a.undestroy,w.prototype._destroy=function(e,t){t(e)},_stream_writable}function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};_stream_duplex=s;var t=require_stream_readable(),r=require_stream_writable();requireInherits_browser()(s,t);for(var n=e(r.prototype),o=0;o>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function i(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function a(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}return string_decoder.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--o=0)return i>0&&(e.lastNeed=i-2),i;if(--o=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var o=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},string_decoder}function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var e=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return endOfStream=function r(n,o,i){if("function"==typeof o)return r(n,null,o);o||(o={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===n.prototype||(t=function(e){return n.from(e)}(t)),s)u.endEmitted?A(e,new y):_(e,u,t,!0);else if(u.ended)A(e,new m);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?_(e,u,t,!1):R(e,u)):_(e,u,t,!1)}else s||(u.reading=!1,R(e,u));return!u.ended&&(u.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(T,e))}function T(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function R(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O(e){i("readable nexttick read 0"),e.read(0)}function I(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function $(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function N(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(M,t,e))}function M(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function L(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):k(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e0?$(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},w.prototype._read=function(e){A(this,new g("_read()"))},w.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,r);var s=(!r||!1!==r.end)&&e!==process.stdout&&e!==process.stderr?l:m;function a(t,r){i("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,i("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",m),n.removeListener("data",d),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){i("onend"),e.end()}o.endEmitted?process.nextTick(s):n.once("end",s),e.on("unpipe",a);var u=function(e){return function(){var r=e._readableState;i("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&t(e,"data")&&(r.flowing=!0,P(e))}}(n);e.on("drain",u);var c=!1;function d(t){i("ondata");var r=e.write(t);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!c&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function f(r){i("onerror",r),m(),e.removeListener("error",f),0===t(e,"error")&&A(e,r)}function p(){e.removeListener("finish",h),m()}function h(){i("onfinish"),e.removeListener("close",p),m()}function m(){i("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",p),e.once("finish",h),e.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,i("on readable",o.length,o.reading),o.length?k(this):o.reading||process.nextTick(O,this))),n},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(B,this),n},w.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(B,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(I,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){(i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s0,function(e){u||(u=e),e&&d.forEach(i),o||(d.forEach(i),c(u))})});return a.reduce(s)},pipeline_1}function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=t;var e=requireEvents().EventEmitter;function t(){e.call(this)}return requireInherits_browser()(t,e),t.Readable=require_stream_readable(),t.Writable=require_stream_writable(),t.Duplex=require_stream_duplex(),t.Transform=require_stream_transform(),t.PassThrough=require_stream_passthrough(),t.finished=requireEndOfStream(),t.pipeline=requirePipeline(),t.Stream=t,t.prototype.pipe=function(t,r){var n=this;function o(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),t.on("drain",i),t._isStdio||r&&!1===r.end||(n.on("end",a),n.on("close",l));var s=!1;function a(){s||(s=!0,t.end())}function l(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(c(),0===e.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",o),t.removeListener("drain",i),n.removeListener("end",a),n.removeListener("close",l),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t},streamBrowserify}function requireCipherBase(){if(hasRequiredCipherBase)return cipherBase;hasRequiredCipherBase=1;var e=requireSafeBuffer$2().Buffer,t=requireStreamBrowserify().Transform,r=requireString_decoder$1().StringDecoder,n=requireInherits_browser(),o=requireToBuffer$1();function i(e){t.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}return n(i,t),i.prototype.update=function(e,t,r){var n=o(e,t),i=this._update(n);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},i.prototype.setAutoPadding=function(){},i.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},i.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},i.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},i.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},i.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},i.prototype._finalOrDigest=function(t){var r=this.__final()||e.alloc(0);return t&&(r=this._toString(r,t,!0)),r},i.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new r(t),this._encoding=t),this._encoding!==t)throw new Error("can’t switch encodings");var o=this._decoder.write(e);return n&&(o+=this._decoder.end()),o},cipherBase=i}function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$1;hasRequiredBrowser$1=1;var e=requireInherits_browser(),t=requireMd5_js(),r=requireRipemd160$1(),n=requireSha_js(),o=requireCipherBase();function i(e){o.call(this,"digest"),this._hash=e}return e(i,o),i.prototype._update=function(e){this._hash.update(e)},i.prototype._final=function(){return this._hash.digest()},browser$1=function(e){return"md5"===(e=e.toLowerCase())?new t:"rmd160"===e||"ripemd160"===e?new r:new i(n(e))}}function requireSrc$2(){if(hasRequiredSrc$2)return src$2;hasRequiredSrc$2=1;var e=requireSafeBuffer$2().Buffer;return src$2=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(s);n255)return;var f=r[d];if(255===f)return;for(var p=0,h=s-1;(0!==f||p>>0,c[h]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");i=p,n++}for(var m=s-i;m!==s&&0===c[m];)m++;var g=e.allocUnsafe(o+(s-m));g.fill(0,0,o);for(var y=o;m!==s;)g[y++]=c[m++];return g}return{encode:function(r){if((Array.isArray(r)||r instanceof Uint8Array)&&(r=e.from(r)),!e.isBuffer(r))throw new TypeError("Expected Buffer");if(0===r.length)return"";for(var n=0,o=0,i=0,s=r.length;i!==s&&0===r[i];)i++,n++;for(var u=(s-i)*c+1>>>0,d=new Uint8Array(u);i!==s;){for(var f=r[i],p=0,h=u-1;(0!==f||p>>0,d[h]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");o=p,i++}for(var m=u-o;m!==u&&0===d[m];)m++;for(var g=l.repeat(n);m>t===0,"Invalid value: "+o+"."),u=u<=r;)c-=r,s[a]=u>>c&i,++a}return n?validate$3(c0&&(s[a]=u<0?Math.floor(e):Math.ceil(e)}function m(e,t){var n,o,i=e.length,s=t.length,a=new Array(i),u=0,c=r;for(o=0;o=c?1:0,a[o]=n-u*c;for(;o0&&a.push(u),a}function g(e,t){return e.length>=t.length?m(e,t):m(t,e)}function y(e,t){var n,o,i=e.length,s=new Array(i),a=r;for(o=0;o0;)s[o++]=t%a,t=Math.floor(t/a);return s}function A(e,t){var n,o,i=e.length,s=t.length,a=new Array(i),u=0,c=r;for(n=0;n0;)s[o++]=u%a,u=Math.floor(u/a);return s}function w(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function S(e,t){var r=Math.max(e.length,t.length);if(r<=30)return v(e,t);r=Math.ceil(r/2);var n=e.slice(r),o=e.slice(0,r),i=t.slice(r),s=t.slice(0,r),a=S(o,s),u=S(n,i),c=S(g(o,n),g(s,i)),l=g(g(a,w(A(A(c,a),u),r)),w(u,2*r));return d(l),l}function E(e,t,n){return new a(e=0;--n)i=(s=i*c+e[n])-(o=h(s/t))*t,u[n]=0|o;return[u,0|i]}function k(e,t){var n,o,i=K(t),c=e.value,m=i.value;if(0===m)throw new Error("Cannot divide by zero");if(e.isSmall)return i.isSmall?[new u(h(c/m)),new u(c%m)]:[s[0],e];if(i.isSmall){if(1===m)return[e,s[0]];if(-1==m)return[e.negate(),s[0]];var g=Math.abs(m);if(g=0;o--){for(n=h-1,A[o+d]!==g&&(n=Math.floor((A[o+d]*h+A[o+d-1])/g)),i=0,s=0,u=b.length,a=0;ac&&(i=(i+1)*h),n=Math.ceil(i/s);do{if(T(a=_(t,n),p)<=0)break;n--}while(n);l.push(n),p=A(p,a)}return l.reverse(),[f(l),f(p)]}(c,m),o=n[0];var v=e.sign!==i.sign,w=n[1],S=e.sign;return"number"==typeof o?(v&&(o=-o),o=new u(o)):o=new a(o,v),"number"==typeof w?(S&&(w=-w),w=new u(w)):w=new a(w,S),[o,w]}function T(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function B(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function R(e,r){for(var n,o,i,a=e.prev(),u=a,c=0;u.isEven();)u=u.divide(2),c++;e:for(o=0;o=0?n=A(e,t):(n=A(t,e),r=!r),"number"==typeof(n=f(n))?(r&&(n=-n),new u(n)):new a(n,r)}(r,n,this.sign)},a.prototype.minus=a.prototype.subtract,u.prototype.subtract=function(e){var t=K(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new u(r-n):b(n,Math.abs(r),r>=0)},u.prototype.minus=u.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},u.prototype.negate=function(){var e=this.sign,t=new u(-this.value);return t.sign=!e,t},a.prototype.abs=function(){return new a(this.value,!1)},u.prototype.abs=function(){return new u(Math.abs(this.value))},a.prototype.multiply=function(e){var t,n,o,i=K(e),u=this.value,c=i.value,f=this.sign!==i.sign;if(i.isSmall){if(0===c)return s[0];if(1===c)return this;if(-1===c)return this.negate();if((t=Math.abs(c))0?S(u,c):v(u,c),f)},a.prototype.times=a.prototype.multiply,u.prototype._multiplyBySmall=function(e){return c(e.value*this.value)?new u(e.value*this.value):E(Math.abs(e.value),l(Math.abs(this.value)),this.sign!==e.sign)},a.prototype._multiplyBySmall=function(e){return 0===e.value?s[0]:1===e.value?this:-1===e.value?this.negate():E(Math.abs(e.value),this.value,this.sign!==e.sign)},u.prototype.multiply=function(e){return K(e)._multiplyBySmall(this)},u.prototype.times=u.prototype.multiply,a.prototype.square=function(){return new a(x(this.value),!1)},u.prototype.square=function(){var e=this.value*this.value;return c(e)?new u(e):new a(x(l(Math.abs(this.value))),!1)},a.prototype.divmod=function(e){var t=k(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(e){return k(this,e)[0]},u.prototype.over=u.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(e){return k(this,e)[1]},u.prototype.remainder=u.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(e){var t,r,n,o=K(e),i=this.value,a=o.value;if(0===a)return s[1];if(0===i)return s[0];if(1===i)return s[1];if(-1===i)return o.isEven()?s[1]:s[-1];if(o.sign)return s[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&c(t=Math.pow(i,a)))return new u(h(t));for(r=this,n=s[1];!0&a&&(n=n.times(r),--a),0!==a;)a/=2,r=r.square();return n},u.prototype.pow=a.prototype.pow,a.prototype.modPow=function(e,t){if(e=K(e),(t=K(t)).isZero())throw new Error("Cannot take modPow with modulus 0");for(var r=s[1],n=this.mod(t);e.isPositive();){if(n.isZero())return s[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},u.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(e){var t=K(e),r=this.value,n=t.value;return t.isSmall?1:T(r,n)},u.prototype.compareAbs=function(e){var t=K(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},a.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=K(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:T(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=K(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},u.prototype.compareTo=u.prototype.compare,a.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return!(1&this.value[0])},u.prototype.isEven=function(){return!(1&this.value)},a.prototype.isOdd=function(){return!(1&~this.value[0])},u.prototype.isOdd=function(){return!(1&~this.value)},a.prototype.isPositive=function(){return!this.sign},u.prototype.isPositive=function(){return this.value>0},a.prototype.isNegative=function(){return this.sign},u.prototype.isNegative=function(){return this.value<0},a.prototype.isUnit=function(){return!1},u.prototype.isUnit=function(){return 1===Math.abs(this.value)},a.prototype.isZero=function(){return!1},u.prototype.isZero=function(){return 0===this.value},a.prototype.isDivisibleBy=function(e){var t=K(e),r=t.value;return 0!==r&&(1===r||(2===r?this.isEven():this.mod(t).equals(s[0])))},u.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(r){var n=B(this);if(n!==e)return n;var o=this.abs(),i=o.bitLength();if(i<=64)return R(o,[2,325,9375,28178,450775,9780504,1795265022]);for(var s=Math.log(2)*i,a=Math.ceil(!0===r?2*Math.pow(s,2):s),u=[],c=0;c-n?new u(e-1):new a(o,!0)};for(var O=[1];2*O[O.length-1]<=r;)O.push(2*O[O.length-1]);var C=O.length,P=O[C-1];function I(e){return("number"==typeof e||"string"==typeof e)&&+Math.abs(e)<=r||e instanceof a&&e.value.length<=1}function N(e,r,n){r=K(r);for(var o=e.isNegative(),i=r.isNegative(),s=o?e.not():e,a=i?r.not():r,u=0,c=0,l=null,f=null,d=[];!s.isZero()||!a.isZero();)u=(l=k(s,P))[1].toJSNumber(),o&&(u=P-1-u),c=(f=k(a,P))[1].toJSNumber(),i&&(c=P-1-c),s=l[0],a=f[0],d.push(n(u,c));for(var p=0!==n(o?1:0,i?1:0)?t(-1):t(0),h=d.length-1;h>=0;h-=1)p=p.multiply(P).add(t(d[h]));return p}a.prototype.shiftLeft=function(e){if(!I(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftRight(-e);var t=this;if(t.isZero())return t;for(;e>=C;)t=t.multiply(P),e-=C-1;return t.multiply(O[e])},u.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(e){var t;if(!I(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftLeft(-e);for(var r=this;e>=C;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=k(r,P))[1].isNegative()?t[0].prev():t[0],e-=C-1}return(t=k(r,O[e]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},u.prototype.not=a.prototype.not,a.prototype.and=function(e){return N(this,e,function(e,t){return e&t})},u.prototype.and=a.prototype.and,a.prototype.or=function(e){return N(this,e,function(e,t){return e|t})},u.prototype.or=a.prototype.or,a.prototype.xor=function(e){return N(this,e,function(e,t){return e^t})},u.prototype.xor=a.prototype.xor;var L=1<<30;function D(e){var t=e.value,n="number"==typeof t?t|L:t[0]+t[1]*r|1073758208;return n&-n}function M(e,r){if(r.compareTo(e)<=0){var n=M(e,r.square(r)),o=n.p,i=n.e,s=o.multiply(r);return s.compareTo(e)<=0?{p:s,e:2*i+1}:{p:o,e:2*i}}return{p:t(1),e:0}}function U(e,t){return e=K(e),t=K(t),e.greater(t)?e:t}function F(e,t){return e=K(e),t=K(t),e.lesser(t)?e:t}function j(e,t){if(e=K(e).abs(),t=K(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,o=s[1];e.isEven()&&t.isEven();)r=Math.min(D(e),D(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(D(e));do{for(;t.isEven();)t=t.divide(D(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}a.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),0===e.compareTo(t(0))?t(0):t(M(e,t(2)).e).add(t(1))},u.prototype.bitLength=a.prototype.bitLength;var H=function(e,t){for(var r=e.length,n=Math.abs(t),o=0;o=n){if("1"===l&&1===n)continue;throw new Error(l+" is not a valid digit in base "+t+".")}if(l.charCodeAt(0)-87>=n)throw new Error(l+" is not a valid digit in base "+t+".")}}if(2<=t&&t<=36&&r<=i/Math.log(t)){var s=parseInt(e,t);if(isNaN(s))throw new Error(l+" is not a valid digit in base "+t+".");return new u(parseInt(e,t))}t=K(t);var a=[],c="-"===e[0];for(o=c?1:0;o"!==e[o]);a.push(K(e.slice(d+1,o)))}}return q(a,t,c)};function q(e,t,r){var n,o=s[0],i=s[1];for(n=e.length-1;n>=0;n--)o=o.add(e[n].times(i)),i=i.times(t);return r?o.negate():o}function W(e){return e<=35?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e):"<"+e+">"}function z(e,r){if((r=t(r)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(r.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e)).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(+e-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var o=!1;if(e.isNegative()&&r.isPositive()&&(o=!0,e=e.abs()),r.equals(1))return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(+e)).map(Number.prototype.valueOf,1),isNegative:o};for(var i,s=[],a=e;a.isNegative()||a.compareAbs(r)>=0;){i=a.divmod(r),a=i.quotient;var u=i.remainder;u.isNegative()&&(u=r.minus(u).abs(),a=a.next()),s.push(u.toJSNumber())}return s.push(a.toJSNumber()),{value:s.reverse(),isNegative:o}}function G(e,t){var r=z(e,t);return(r.isNegative?"-":"")+r.value.map(W).join("")}function V(e){if(c(+e)){var t=+e;if(t===h(t))return new u(t);throw new Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var o=n[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==h(o)||!c(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var i=n[0],s=i.indexOf(".");if(s>=0&&(o-=i.length-s-1,i=i.slice(0,s)+i.slice(s+1)),o<0)throw new Error("Cannot include negative exponent part for integers");e=i+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);for(var l=[],f=e.length,p=f-7;f>0;)l.push(+e.slice(p,f)),(p-=7)<0&&(p=0),f-=7;return d(l),new a(l,r)}function K(e){return"number"==typeof e?function(e){if(c(e)){if(e!==h(e))throw new Error(e+" is not an integer.");return new u(e)}return V(e.toString())}(e):"string"==typeof e?V(e):e}a.prototype.toArray=function(e){return z(this,e)},u.prototype.toArray=function(e){return z(this,e)},a.prototype.toString=function(t){if(t===e&&(t=10),10!==t)return G(this,t);for(var r,n=this.value,o=n.length,i=String(n[--o]);--o>=0;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},u.prototype.toString=function(t){return t===e&&(t=10),10!=t?G(this,t):String(this.value)},a.prototype.toJSON=u.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,u.prototype.valueOf=function(){return this.value},u.prototype.toJSNumber=u.prototype.valueOf;for(var Z=0;Z<1e3;Z++)s[Z]=new u(Z),Z>0&&(s[-Z]=new u(-Z));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=U,s.min=F,s.gcd=j,s.lcm=function(e,t){return e=K(e).abs(),t=K(t).abs(),e.divide(j(e,t)).multiply(t)},s.isInstance=function(e){return e instanceof a||e instanceof u},s.randBetween=function(e,t){var n=F(e=K(e),t=K(t)),o=U(e,t).subtract(n).add(1);if(o.isSmall)return n.add(Math.floor(Math.random()*o));for(var i=[],s=!0,c=o.value.length-1;c>=0;c--){var l=s?o.value[c]:r,d=h(Math.random()*l);i.unshift(d),d>t===0,"Invalid value: "+i+"."),u=u<=n;)c-=n,a[l]=u>>c&s,++l}o?r(c0&&(a[l]=u<0?Math.floor(e):Math.ceil(e)}function m(e,t){var n,o,i=e.length,s=t.length,a=new Array(i),l=0,u=r;for(o=0;o=u?1:0,a[o]=n-l*u;for(;o0&&a.push(l),a}function g(e,t){return e.length>=t.length?m(e,t):m(t,e)}function y(e,t){var n,o,i=e.length,s=new Array(i),a=r;for(o=0;o0;)s[o++]=t%a,t=Math.floor(t/a);return s}function A(e,t){var n,o,i=e.length,s=t.length,a=new Array(i),l=0,u=r;for(n=0;n0;)s[o++]=l%a,l=Math.floor(l/a);return s}function S(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function _(e,t){var r=Math.max(e.length,t.length);if(r<=30)return v(e,t);r=Math.ceil(r/2);var n=e.slice(r),o=e.slice(0,r),i=t.slice(r),s=t.slice(0,r),a=_(o,s),l=_(n,i),u=_(g(o,n),g(s,i)),c=g(g(a,S(A(A(u,a),l),r)),S(l,2*r));return f(c),c}function x(e,t,n){return new a(e=0;--n)i=(s=i*u+e[n])-(o=h(s/t))*t,l[n]=0|o;return[l,0|i]}function T(e,t){var n,o,i=K(t),u=e.value,m=i.value;if(0===m)throw new Error("Cannot divide by zero");if(e.isSmall)return i.isSmall?[new l(h(u/m)),new l(u%m)]:[s[0],e];if(i.isSmall){if(1===m)return[e,s[0]];if(-1==m)return[e.negate(),s[0]];var g=Math.abs(m);if(g=0;o--){for(n=h-1,A[o+f]!==g&&(n=Math.floor((A[o+f]*h+A[o+f-1])/g)),i=0,s=0,l=b.length,a=0;au&&(i=(i+1)*h),n=Math.ceil(i/s);do{if(R(a=w(t,n),p)<=0)break;n--}while(n);c.push(n),p=A(p,a)}return c.reverse(),[d(c),d(p)]}(u,m),o=n[0];var v=e.sign!==i.sign,S=n[1],_=e.sign;return"number"==typeof o?(v&&(o=-o),o=new l(o)):o=new a(o,v),"number"==typeof S?(_&&(S=-S),S=new l(S)):S=new a(S,_),[o,S]}function R(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function C(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function B(e,r){for(var n,o,i,a=e.prev(),l=a,u=0;l.isEven();)l=l.divide(2),u++;e:for(o=0;o=0?n=A(e,t):(n=A(t,e),r=!r),"number"==typeof(n=d(n))?(r&&(n=-n),new l(n)):new a(n,r)}(r,n,this.sign)},a.prototype.minus=a.prototype.subtract,l.prototype.subtract=function(e){var t=K(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new l(r-n):b(n,Math.abs(r),r>=0)},l.prototype.minus=l.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},a.prototype.abs=function(){return new a(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},a.prototype.multiply=function(e){var t,n,o,i=K(e),l=this.value,u=i.value,d=this.sign!==i.sign;if(i.isSmall){if(0===u)return s[0];if(1===u)return this;if(-1===u)return this.negate();if((t=Math.abs(u))0?_(l,u):v(l,u),d)},a.prototype.times=a.prototype.multiply,l.prototype._multiplyBySmall=function(e){return u(e.value*this.value)?new l(e.value*this.value):x(Math.abs(e.value),c(Math.abs(this.value)),this.sign!==e.sign)},a.prototype._multiplyBySmall=function(e){return 0===e.value?s[0]:1===e.value?this:-1===e.value?this.negate():x(Math.abs(e.value),this.value,this.sign!==e.sign)},l.prototype.multiply=function(e){return K(e)._multiplyBySmall(this)},l.prototype.times=l.prototype.multiply,a.prototype.square=function(){return new a(E(this.value),!1)},l.prototype.square=function(){var e=this.value*this.value;return u(e)?new l(e):new a(E(c(Math.abs(this.value))),!1)},a.prototype.divmod=function(e){var t=T(this,e);return{quotient:t[0],remainder:t[1]}},l.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(e){return T(this,e)[0]},l.prototype.over=l.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(e){return T(this,e)[1]},l.prototype.remainder=l.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(e){var t,r,n,o=K(e),i=this.value,a=o.value;if(0===a)return s[1];if(0===i)return s[0];if(1===i)return s[1];if(-1===i)return o.isEven()?s[1]:s[-1];if(o.sign)return s[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&u(t=Math.pow(i,a)))return new l(h(t));for(r=this,n=s[1];!0&a&&(n=n.times(r),--a),0!==a;)a/=2,r=r.square();return n},l.prototype.pow=a.prototype.pow,a.prototype.modPow=function(e,t){if(e=K(e),(t=K(t)).isZero())throw new Error("Cannot take modPow with modulus 0");for(var r=s[1],n=this.mod(t);e.isPositive();){if(n.isZero())return s[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},l.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(e){var t=K(e),r=this.value,n=t.value;return t.isSmall?1:R(r,n)},l.prototype.compareAbs=function(e){var t=K(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},a.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=K(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:R(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=K(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},l.prototype.compareTo=l.prototype.compare,a.prototype.equals=function(e){return 0===this.compare(e)},l.prototype.eq=l.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(e){return 0!==this.compare(e)},l.prototype.neq=l.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(e){return this.compare(e)>0},l.prototype.gt=l.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(e){return this.compare(e)<0},l.prototype.lt=l.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},l.prototype.geq=l.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},l.prototype.leq=l.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return!(1&this.value[0])},l.prototype.isEven=function(){return!(1&this.value)},a.prototype.isOdd=function(){return!(1&~this.value[0])},l.prototype.isOdd=function(){return!(1&~this.value)},a.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},a.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},a.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return 1===Math.abs(this.value)},a.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return 0===this.value},a.prototype.isDivisibleBy=function(e){var t=K(e),r=t.value;return 0!==r&&(1===r||(2===r?this.isEven():this.mod(t).equals(s[0])))},l.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(r){var n=C(this);if(n!==e)return n;var o=this.abs(),i=o.bitLength();if(i<=64)return B(o,[2,325,9375,28178,450775,9780504,1795265022]);for(var s=Math.log(2)*i,a=Math.ceil(!0===r?2*Math.pow(s,2):s),l=[],u=0;u-n?new l(e-1):new a(o,!0)};for(var O=[1];2*O[O.length-1]<=r;)O.push(2*O[O.length-1]);var I=O.length,P=O[I-1];function $(e){return("number"==typeof e||"string"==typeof e)&&+Math.abs(e)<=r||e instanceof a&&e.value.length<=1}function N(e,r,n){r=K(r);for(var o=e.isNegative(),i=r.isNegative(),s=o?e.not():e,a=i?r.not():r,l=0,u=0,c=null,d=null,f=[];!s.isZero()||!a.isZero();)l=(c=T(s,P))[1].toJSNumber(),o&&(l=P-1-l),u=(d=T(a,P))[1].toJSNumber(),i&&(u=P-1-u),s=c[0],a=d[0],f.push(n(l,u));for(var p=0!==n(o?1:0,i?1:0)?t(-1):t(0),h=f.length-1;h>=0;h-=1)p=p.multiply(P).add(t(f[h]));return p}a.prototype.shiftLeft=function(e){if(!$(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftRight(-e);var t=this;if(t.isZero())return t;for(;e>=I;)t=t.multiply(P),e-=I-1;return t.multiply(O[e])},l.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(e){var t;if(!$(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftLeft(-e);for(var r=this;e>=I;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=T(r,P))[1].isNegative()?t[0].prev():t[0],e-=I-1}return(t=T(r,O[e]))[1].isNegative()?t[0].prev():t[0]},l.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},l.prototype.not=a.prototype.not,a.prototype.and=function(e){return N(this,e,function(e,t){return e&t})},l.prototype.and=a.prototype.and,a.prototype.or=function(e){return N(this,e,function(e,t){return e|t})},l.prototype.or=a.prototype.or,a.prototype.xor=function(e){return N(this,e,function(e,t){return e^t})},l.prototype.xor=a.prototype.xor;var M=1<<30;function L(e){var t=e.value,n="number"==typeof t?t|M:t[0]+t[1]*r|1073758208;return n&-n}function D(e,r){if(r.compareTo(e)<=0){var n=D(e,r.square(r)),o=n.p,i=n.e,s=o.multiply(r);return s.compareTo(e)<=0?{p:s,e:2*i+1}:{p:o,e:2*i}}return{p:t(1),e:0}}function q(e,t){return e=K(e),t=K(t),e.greater(t)?e:t}function U(e,t){return e=K(e),t=K(t),e.lesser(t)?e:t}function F(e,t){if(e=K(e).abs(),t=K(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,o=s[1];e.isEven()&&t.isEven();)r=Math.min(L(e),L(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(L(e));do{for(;t.isEven();)t=t.divide(L(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}a.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),0===e.compareTo(t(0))?t(0):t(D(e,t(2)).e).add(t(1))},l.prototype.bitLength=a.prototype.bitLength;var j=function(e,t){for(var r=e.length,n=Math.abs(t),o=0;o=n){if("1"===c&&1===n)continue;throw new Error(c+" is not a valid digit in base "+t+".")}if(c.charCodeAt(0)-87>=n)throw new Error(c+" is not a valid digit in base "+t+".")}}if(2<=t&&t<=36&&r<=i/Math.log(t)){var s=parseInt(e,t);if(isNaN(s))throw new Error(c+" is not a valid digit in base "+t+".");return new l(parseInt(e,t))}t=K(t);var a=[],u="-"===e[0];for(o=u?1:0;o"!==e[o]);a.push(K(e.slice(f+1,o)))}}return H(a,t,u)};function H(e,t,r){var n,o=s[0],i=s[1];for(n=e.length-1;n>=0;n--)o=o.add(e[n].times(i)),i=i.times(t);return r?o.negate():o}function z(e){return e<=35?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e):"<"+e+">"}function W(e,r){if((r=t(r)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(r.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e)).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(+e-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var o=!1;if(e.isNegative()&&r.isPositive()&&(o=!0,e=e.abs()),r.equals(1))return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(+e)).map(Number.prototype.valueOf,1),isNegative:o};for(var i,s=[],a=e;a.isNegative()||a.compareAbs(r)>=0;){i=a.divmod(r),a=i.quotient;var l=i.remainder;l.isNegative()&&(l=r.minus(l).abs(),a=a.next()),s.push(l.toJSNumber())}return s.push(a.toJSNumber()),{value:s.reverse(),isNegative:o}}function V(e,t){var r=W(e,t);return(r.isNegative?"-":"")+r.value.map(z).join("")}function G(e){if(u(+e)){var t=+e;if(t===h(t))return new l(t);throw new Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var o=n[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==h(o)||!u(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var i=n[0],s=i.indexOf(".");if(s>=0&&(o-=i.length-s-1,i=i.slice(0,s)+i.slice(s+1)),o<0)throw new Error("Cannot include negative exponent part for integers");e=i+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);for(var c=[],d=e.length,p=d-7;d>0;)c.push(+e.slice(p,d)),(p-=7)<0&&(p=0),d-=7;return f(c),new a(c,r)}function K(e){return"number"==typeof e?function(e){if(u(e)){if(e!==h(e))throw new Error(e+" is not an integer.");return new l(e)}return G(e.toString())}(e):"string"==typeof e?G(e):e}a.prototype.toArray=function(e){return W(this,e)},l.prototype.toArray=function(e){return W(this,e)},a.prototype.toString=function(t){if(t===e&&(t=10),10!==t)return V(this,t);for(var r,n=this.value,o=n.length,i=String(n[--o]);--o>=0;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},l.prototype.toString=function(t){return t===e&&(t=10),10!=t?V(this,t):String(this.value)},a.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf;for(var Z=0;Z<1e3;Z++)s[Z]=new l(Z),Z>0&&(s[-Z]=new l(-Z));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=q,s.min=U,s.gcd=F,s.lcm=function(e,t){return e=K(e).abs(),t=K(t).abs(),e.divide(F(e,t)).multiply(t)},s.isInstance=function(e){return e instanceof a||e instanceof l},s.randBetween=function(e,t){var n=U(e=K(e),t=K(t)),o=q(e,t).subtract(n).add(1);if(o.isSmall)return n.add(Math.floor(Math.random()*o));for(var i=[],s=!0,u=o.value.length-1;u>=0;u--){var c=s?o.value[u]:r,f=h(Math.random()*c);i.unshift(f),f>>t},e.rotl=function(e,t){return e<>>32-t>>>0},e.byteSwap=i,e.byteSwap32=s,e.bytesToHex=function(e){if(o(e),a)return e.toHex();let t="";for(let r=0;r=0&&t0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function i(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function s(e){for(let t=0;te:e=>i(e),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?e=>e:s;const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const c={_0:48,_9:57,A:65,F:70,a:97,f:102};function l(e){return e>=c._0&&e<=c._9?e-c._0:e>=c.A&&e<=c.F?e-(c.A-10):e>=c.a&&e<=c.f?e-(c.a-10):void 0}function f(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function d(e){return"string"==typeof e&&(e=f(e)),o(e),e}e.nextTick=async()=>{};function p(e){const t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function h(e){const t=(t,r)=>e(r).update(d(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function m(e){const t=(t,r)=>e(r).update(d(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}e.Hash=class{},e.wrapConstructor=p,e.wrapConstructorWithOpts=h,e.wrapXOFConstructorWithOpts=m}(utils$4),Object.defineProperty(_md,"__esModule",{value:!0}),_md.SHA512_IV=_md.SHA384_IV=_md.SHA224_IV=_md.SHA256_IV=_md.HashMD=void 0,_md.setBigUint64=setBigUint64,_md.Chi=Chi,_md.Maj=Maj;const utils_ts_1$1=utils$4;function setBigUint64(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),s=Number(r>>o&i),a=Number(r&i),u=n?4:0,c=n?0:4;e.setUint32(t+u,s,n),e.setUint32(t+c,a,n)}function Chi(e,t,r){return e&t^~e&r}function Maj(e,t,r){return e&t^e&r^t&r}class HashMD extends utils_ts_1$1.Hash{constructor(e,t,r,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.buffer=new Uint8Array(e),this.view=(0,utils_ts_1$1.createView)(this.buffer)}update(e){(0,utils_ts_1$1.aexists)(this),e=(0,utils_ts_1$1.toBytes)(e),(0,utils_ts_1$1.abytes)(e);const{view:t,buffer:r,blockLen:n}=this,o=e.length;for(let i=0;in-i&&(this.process(r,0),i=0);for(let e=i;ec.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e>_32n&U32_MASK64)}:{h:0|Number(e>>_32n&U32_MASK64),l:0|Number(e&U32_MASK64)}}function split(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;iBigInt(e>>>0)<<_32n|BigInt(t>>>0);_u64.toBig=toBig;const shrSH=(e,t,r)=>e>>>r;_u64.shrSH=shrSH;const shrSL=(e,t,r)=>e<<32-r|t>>>r;_u64.shrSL=shrSL;const rotrSH=(e,t,r)=>e>>>r|t<<32-r;_u64.rotrSH=rotrSH;const rotrSL=(e,t,r)=>e<<32-r|t>>>r;_u64.rotrSL=rotrSL;const rotrBH=(e,t,r)=>e<<64-r|t>>>r-32;_u64.rotrBH=rotrBH;const rotrBL=(e,t,r)=>e>>>r-32|t<<64-r;_u64.rotrBL=rotrBL;const rotr32H=(e,t)=>t;_u64.rotr32H=rotr32H;const rotr32L=(e,t)=>e;_u64.rotr32L=rotr32L;const rotlSH=(e,t,r)=>e<>>32-r;_u64.rotlSH=rotlSH;const rotlSL=(e,t,r)=>t<>>32-r;_u64.rotlSL=rotlSL;const rotlBH=(e,t,r)=>t<>>64-r;_u64.rotlBH=rotlBH;const rotlBL=(e,t,r)=>e<>>64-r;function add$1(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:0|o}}_u64.rotlBL=rotlBL;const add3L=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);_u64.add3L=add3L;const add3H=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;_u64.add3H=add3H;const add4L=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);_u64.add4L=add4L;const add4H=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0;_u64.add4H=add4H;const add5L=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0);_u64.add5L=add5L;const add5H=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0;_u64.add5H=add5H;const u64$1={fromBig:fromBig,split:split,toBig:toBig,shrSH:shrSH,shrSL:shrSL,rotrSH:rotrSH,rotrSL:rotrSL,rotrBH:rotrBH,rotrBL:rotrBL,rotr32H:rotr32H,rotr32L:rotr32L,rotlSH:rotlSH,rotlSL:rotlSL,rotlBH:rotlBH,rotlBL:rotlBL,add:add$1,add3L:add3L,add3H:add3H,add4L:add4L,add4H:add4H,add5H:add5H,add5L:add5L};_u64.default=u64$1,Object.defineProperty(sha2,"__esModule",{value:!0}),sha2.sha512_224=sha2.sha512_256=sha2.sha384=sha2.sha512=sha2.sha224=sha2.sha256=sha2.SHA512_256=sha2.SHA512_224=sha2.SHA384=sha2.SHA512=sha2.SHA224=sha2.SHA256=void 0;const _md_ts_1=_md,u64=_u64,utils_ts_1=utils$4,SHA256_K=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),SHA256_W=new Uint32Array(64);class SHA256 extends _md_ts_1.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|_md_ts_1.SHA256_IV[0],this.B=0|_md_ts_1.SHA256_IV[1],this.C=0|_md_ts_1.SHA256_IV[2],this.D=0|_md_ts_1.SHA256_IV[3],this.E=0|_md_ts_1.SHA256_IV[4],this.F=0|_md_ts_1.SHA256_IV[5],this.G=0|_md_ts_1.SHA256_IV[6],this.H=0|_md_ts_1.SHA256_IV[7]}get(){const{A:e,B:t,C:r,D:n,E:o,F:i,G:s,H:a}=this;return[e,t,r,n,o,i,s,a]}set(e,t,r,n,o,i,s,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|i,this.G=0|s,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)SHA256_W[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=SHA256_W[e-15],r=SHA256_W[e-2],n=(0,utils_ts_1.rotr)(t,7)^(0,utils_ts_1.rotr)(t,18)^t>>>3,o=(0,utils_ts_1.rotr)(r,17)^(0,utils_ts_1.rotr)(r,19)^r>>>10;SHA256_W[e]=o+SHA256_W[e-7]+n+SHA256_W[e-16]|0}let{A:r,B:n,C:o,D:i,E:s,F:a,G:u,H:c}=this;for(let e=0;e<64;e++){const t=c+((0,utils_ts_1.rotr)(s,6)^(0,utils_ts_1.rotr)(s,11)^(0,utils_ts_1.rotr)(s,25))+(0,_md_ts_1.Chi)(s,a,u)+SHA256_K[e]+SHA256_W[e]|0,l=((0,utils_ts_1.rotr)(r,2)^(0,utils_ts_1.rotr)(r,13)^(0,utils_ts_1.rotr)(r,22))+(0,_md_ts_1.Maj)(r,n,o)|0;c=u,u=a,a=s,s=i+t|0,i=o,o=n,n=r,r=t+l|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,i=i+this.D|0,s=s+this.E|0,a=a+this.F|0,u=u+this.G|0,c=c+this.H|0,this.set(r,n,o,i,s,a,u,c)}roundClean(){(0,utils_ts_1.clean)(SHA256_W)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,utils_ts_1.clean)(this.buffer)}}sha2.SHA256=SHA256;class SHA224 extends SHA256{constructor(){super(28),this.A=0|_md_ts_1.SHA224_IV[0],this.B=0|_md_ts_1.SHA224_IV[1],this.C=0|_md_ts_1.SHA224_IV[2],this.D=0|_md_ts_1.SHA224_IV[3],this.E=0|_md_ts_1.SHA224_IV[4],this.F=0|_md_ts_1.SHA224_IV[5],this.G=0|_md_ts_1.SHA224_IV[6],this.H=0|_md_ts_1.SHA224_IV[7]}}sha2.SHA224=SHA224;const K512=(()=>u64.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),SHA512_Kh=(()=>K512[0])(),SHA512_Kl=(()=>K512[1])(),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends _md_ts_1.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|_md_ts_1.SHA512_IV[0],this.Al=0|_md_ts_1.SHA512_IV[1],this.Bh=0|_md_ts_1.SHA512_IV[2],this.Bl=0|_md_ts_1.SHA512_IV[3],this.Ch=0|_md_ts_1.SHA512_IV[4],this.Cl=0|_md_ts_1.SHA512_IV[5],this.Dh=0|_md_ts_1.SHA512_IV[6],this.Dl=0|_md_ts_1.SHA512_IV[7],this.Eh=0|_md_ts_1.SHA512_IV[8],this.El=0|_md_ts_1.SHA512_IV[9],this.Fh=0|_md_ts_1.SHA512_IV[10],this.Fl=0|_md_ts_1.SHA512_IV[11],this.Gh=0|_md_ts_1.SHA512_IV[12],this.Gl=0|_md_ts_1.SHA512_IV[13],this.Hh=0|_md_ts_1.SHA512_IV[14],this.Hl=0|_md_ts_1.SHA512_IV[15]}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:o,Cl:i,Dh:s,Dl:a,Eh:u,El:c,Fh:l,Fl:f,Gh:d,Gl:p,Hh:h,Hl:m}=this;return[e,t,r,n,o,i,s,a,u,c,l,f,d,p,h,m]}set(e,t,r,n,o,i,s,a,u,c,l,f,d,p,h,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|o,this.Cl=0|i,this.Dh=0|s,this.Dl=0|a,this.Eh=0|u,this.El=0|c,this.Fh=0|l,this.Fl=0|f,this.Gh=0|d,this.Gl=0|p,this.Hh=0|h,this.Hl=0|m}process(e,t){for(let r=0;r<16;r++,t+=4)SHA512_W_H[r]=e.getUint32(t),SHA512_W_L[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|SHA512_W_H[e-15],r=0|SHA512_W_L[e-15],n=u64.rotrSH(t,r,1)^u64.rotrSH(t,r,8)^u64.shrSH(t,r,7),o=u64.rotrSL(t,r,1)^u64.rotrSL(t,r,8)^u64.shrSL(t,r,7),i=0|SHA512_W_H[e-2],s=0|SHA512_W_L[e-2],a=u64.rotrSH(i,s,19)^u64.rotrBH(i,s,61)^u64.shrSH(i,s,6),u=u64.rotrSL(i,s,19)^u64.rotrBL(i,s,61)^u64.shrSL(i,s,6),c=u64.add4L(o,u,SHA512_W_L[e-7],SHA512_W_L[e-16]),l=u64.add4H(c,n,a,SHA512_W_H[e-7],SHA512_W_H[e-16]);SHA512_W_H[e]=0|l,SHA512_W_L[e]=0|c}let{Ah:r,Al:n,Bh:o,Bl:i,Ch:s,Cl:a,Dh:u,Dl:c,Eh:l,El:f,Fh:d,Fl:p,Gh:h,Gl:m,Hh:g,Hl:y}=this;for(let e=0;e<80;e++){const t=u64.rotrSH(l,f,14)^u64.rotrSH(l,f,18)^u64.rotrBH(l,f,41),A=u64.rotrSL(l,f,14)^u64.rotrSL(l,f,18)^u64.rotrBL(l,f,41),b=l&d^~l&h,v=f&p^~f&m,_=u64.add5L(y,A,v,SHA512_Kl[e],SHA512_W_L[e]),w=u64.add5H(_,g,t,b,SHA512_Kh[e],SHA512_W_H[e]),S=0|_,E=u64.rotrSH(r,n,28)^u64.rotrBH(r,n,34)^u64.rotrBH(r,n,39),x=u64.rotrSL(r,n,28)^u64.rotrBL(r,n,34)^u64.rotrBL(r,n,39),$=r&o^r&s^o&s,k=n&i^n&a^i&a;g=0|h,y=0|m,h=0|d,m=0|p,d=0|l,p=0|f,({h:l,l:f}=u64.add(0|u,0|c,0|w,0|S)),u=0|s,c=0|a,s=0|o,a=0|i,o=0|r,i=0|n;const T=u64.add3L(S,x,k);r=u64.add3H(T,w,E,$),n=0|T}({h:r,l:n}=u64.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:i}=u64.add(0|this.Bh,0|this.Bl,0|o,0|i)),({h:s,l:a}=u64.add(0|this.Ch,0|this.Cl,0|s,0|a)),({h:u,l:c}=u64.add(0|this.Dh,0|this.Dl,0|u,0|c)),({h:l,l:f}=u64.add(0|this.Eh,0|this.El,0|l,0|f)),({h:d,l:p}=u64.add(0|this.Fh,0|this.Fl,0|d,0|p)),({h:h,l:m}=u64.add(0|this.Gh,0|this.Gl,0|h,0|m)),({h:g,l:y}=u64.add(0|this.Hh,0|this.Hl,0|g,0|y)),this.set(r,n,o,i,s,a,u,c,l,f,d,p,h,m,g,y)}roundClean(){(0,utils_ts_1.clean)(SHA512_W_H,SHA512_W_L)}destroy(){(0,utils_ts_1.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}sha2.SHA512=SHA512;class SHA384 extends SHA512{constructor(){super(48),this.Ah=0|_md_ts_1.SHA384_IV[0],this.Al=0|_md_ts_1.SHA384_IV[1],this.Bh=0|_md_ts_1.SHA384_IV[2],this.Bl=0|_md_ts_1.SHA384_IV[3],this.Ch=0|_md_ts_1.SHA384_IV[4],this.Cl=0|_md_ts_1.SHA384_IV[5],this.Dh=0|_md_ts_1.SHA384_IV[6],this.Dl=0|_md_ts_1.SHA384_IV[7],this.Eh=0|_md_ts_1.SHA384_IV[8],this.El=0|_md_ts_1.SHA384_IV[9],this.Fh=0|_md_ts_1.SHA384_IV[10],this.Fl=0|_md_ts_1.SHA384_IV[11],this.Gh=0|_md_ts_1.SHA384_IV[12],this.Gl=0|_md_ts_1.SHA384_IV[13],this.Hh=0|_md_ts_1.SHA384_IV[14],this.Hl=0|_md_ts_1.SHA384_IV[15]}}sha2.SHA384=SHA384;const T224_IV=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),T256_IV=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class SHA512_224 extends SHA512{constructor(){super(28),this.Ah=0|T224_IV[0],this.Al=0|T224_IV[1],this.Bh=0|T224_IV[2],this.Bl=0|T224_IV[3],this.Ch=0|T224_IV[4],this.Cl=0|T224_IV[5],this.Dh=0|T224_IV[6],this.Dl=0|T224_IV[7],this.Eh=0|T224_IV[8],this.El=0|T224_IV[9],this.Fh=0|T224_IV[10],this.Fl=0|T224_IV[11],this.Gh=0|T224_IV[12],this.Gl=0|T224_IV[13],this.Hh=0|T224_IV[14],this.Hl=0|T224_IV[15]}}sha2.SHA512_224=SHA512_224;class SHA512_256 extends SHA512{constructor(){super(32),this.Ah=0|T256_IV[0],this.Al=0|T256_IV[1],this.Bh=0|T256_IV[2],this.Bl=0|T256_IV[3],this.Ch=0|T256_IV[4],this.Cl=0|T256_IV[5],this.Dh=0|T256_IV[6],this.Dl=0|T256_IV[7],this.Eh=0|T256_IV[8],this.El=0|T256_IV[9],this.Fh=0|T256_IV[10],this.Fl=0|T256_IV[11],this.Gh=0|T256_IV[12],this.Gl=0|T256_IV[13],this.Hh=0|T256_IV[14],this.Hl=0|T256_IV[15]}}sha2.SHA512_256=SHA512_256,sha2.sha256=(0,utils_ts_1.createHasher)(()=>new SHA256),sha2.sha224=(0,utils_ts_1.createHasher)(()=>new SHA224),sha2.sha512=(0,utils_ts_1.createHasher)(()=>new SHA512),sha2.sha384=(0,utils_ts_1.createHasher)(()=>new SHA384),sha2.sha512_256=(0,utils_ts_1.createHasher)(()=>new SHA512_256),sha2.sha512_224=(0,utils_ts_1.createHasher)(()=>new SHA512_224),Object.defineProperty(sha256$2,"__esModule",{value:!0}),sha256$2.sha224=sha256$2.SHA224=sha256$2.sha256=sha256$2.SHA256=void 0;const sha2_ts_1=sha2;function base$1(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,c=new Uint8Array(i);e[r];){var l=e.charCodeAt(r);if(l>255)return;var f=t[l];if(255===f)return;for(var d=0,p=i-1;(0!==f||d>>0,c[p]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");o=d,r++}for(var h=i-o;h!==i&&0===c[h];)h++;for(var m=new Uint8Array(n+(i-h)),g=n;h!==i;)m[g++]=c[h++];return m}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,o=0,i=t.length;o!==i&&0===t[o];)o++,r++;for(var u=(i-o)*c+1>>>0,l=new Uint8Array(u);o!==i;){for(var f=t[o],d=0,p=u-1;(0!==f||d>>0,l[p]=f%s>>>0,f=f/s>>>0;if(0!==f)throw new Error("Non-zero carry");n=d,o++}for(var h=u-n;h!==u&&0===l[h];)h++;for(var m=a.repeat(r);h>>t},e.rotl=function(e,t){return e<>>32-t>>>0},e.byteSwap=i,e.byteSwap32=s,e.bytesToHex=function(e){if(o(e),a)return e.toHex();let t="";for(let r=0;r=0&&t0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function i(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function s(e){for(let t=0;te:e=>i(e),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?e=>e:s;const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),l=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const u={_0:48,_9:57,A:65,F:70,a:97,f:102};function c(e){return e>=u._0&&e<=u._9?e-u._0:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function d(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function f(e){return"string"==typeof e&&(e=d(e)),o(e),e}e.nextTick=async()=>{};function p(e){const t=t=>e().update(f(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function h(e){const t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function m(e){const t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}e.Hash=class{},e.wrapConstructor=p,e.wrapConstructorWithOpts=h,e.wrapXOFConstructorWithOpts=m}(utils$2)),utils$2}function require_md(){if(hasRequired_md)return _md;hasRequired_md=1,Object.defineProperty(_md,"__esModule",{value:!0}),_md.SHA512_IV=_md.SHA384_IV=_md.SHA224_IV=_md.SHA256_IV=_md.HashMD=void 0,_md.setBigUint64=t,_md.Chi=function(e,t,r){return e&t^~e&r},_md.Maj=function(e,t,r){return e&t^e&r^t&r};const e=requireUtils();function t(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),s=Number(r>>o&i),a=Number(r&i),l=n?4:0,u=n?0:4;e.setUint32(t+l,s,n),e.setUint32(t+u,a,n)}class r extends e.Hash{constructor(t,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=(0,e.createView)(this.buffer)}update(t){(0,e.aexists)(this),t=(0,e.toBytes)(t),(0,e.abytes)(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let s=0;si-a&&(this.process(o,0),a=0);for(let e=a;ed.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e>t&e)}:{h:0|Number(r>>t&e),l:0|Number(r&e)}}function n(e,t=!1){const n=e.length;let o=new Uint32Array(n),i=new Uint32Array(n);for(let s=0;sBigInt(e>>>0)<>>0);_u64.toBig=o;const i=(e,t,r)=>e>>>r;_u64.shrSH=i;const s=(e,t,r)=>e<<32-r|t>>>r;_u64.shrSL=s;const a=(e,t,r)=>e>>>r|t<<32-r;_u64.rotrSH=a;const l=(e,t,r)=>e<<32-r|t>>>r;_u64.rotrSL=l;const u=(e,t,r)=>e<<64-r|t>>>r-32;_u64.rotrBH=u;const c=(e,t,r)=>e>>>r-32|t<<64-r;_u64.rotrBL=c;const d=(e,t)=>t;_u64.rotr32H=d;const f=(e,t)=>e;_u64.rotr32L=f;const p=(e,t,r)=>e<>>32-r;_u64.rotlSH=p;const h=(e,t,r)=>t<>>32-r;_u64.rotlSL=h;const m=(e,t,r)=>t<>>64-r;_u64.rotlBH=m;const g=(e,t,r)=>e<>>64-r;function y(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:0|o}}_u64.rotlBL=g;const A=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);_u64.add3L=A;const b=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;_u64.add3H=b;const v=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);_u64.add4L=v;const w=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0;_u64.add4H=w;const S=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0);_u64.add5L=S;const _=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0;_u64.add5H=_;const x={fromBig:r,split:n,toBig:o,shrSH:i,shrSL:s,rotrSH:a,rotrSL:l,rotrBH:u,rotrBL:c,rotr32H:d,rotr32L:f,rotlSH:p,rotlSL:h,rotlBH:m,rotlBL:g,add:y,add3L:A,add3H:b,add4L:v,add4H:w,add5H:_,add5L:S};return _u64.default=x,_u64}function requireSha2(){if(hasRequiredSha2)return sha2;hasRequiredSha2=1,Object.defineProperty(sha2,"__esModule",{value:!0}),sha2.sha512_224=sha2.sha512_256=sha2.sha384=sha2.sha512=sha2.sha224=sha2.sha256=sha2.SHA512_256=sha2.SHA512_224=sha2.SHA384=sha2.SHA512=sha2.SHA224=sha2.SHA256=void 0;const e=require_md(),t=require_u64(),r=requireUtils(),n=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array(64);class i extends e.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|e.SHA256_IV[0],this.B=0|e.SHA256_IV[1],this.C=0|e.SHA256_IV[2],this.D=0|e.SHA256_IV[3],this.E=0|e.SHA256_IV[4],this.F=0|e.SHA256_IV[5],this.G=0|e.SHA256_IV[6],this.H=0|e.SHA256_IV[7]}get(){const{A:e,B:t,C:r,D:n,E:o,F:i,G:s,H:a}=this;return[e,t,r,n,o,i,s,a]}set(e,t,r,n,o,i,s,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|o,this.F=0|i,this.G=0|s,this.H=0|a}process(t,i){for(let e=0;e<16;e++,i+=4)o[e]=t.getUint32(i,!1);for(let e=16;e<64;e++){const t=o[e-15],n=o[e-2],i=(0,r.rotr)(t,7)^(0,r.rotr)(t,18)^t>>>3,s=(0,r.rotr)(n,17)^(0,r.rotr)(n,19)^n>>>10;o[e]=s+o[e-7]+i+o[e-16]|0}let{A:s,B:a,C:l,D:u,E:c,F:d,G:f,H:p}=this;for(let t=0;t<64;t++){const i=p+((0,r.rotr)(c,6)^(0,r.rotr)(c,11)^(0,r.rotr)(c,25))+(0,e.Chi)(c,d,f)+n[t]+o[t]|0,h=((0,r.rotr)(s,2)^(0,r.rotr)(s,13)^(0,r.rotr)(s,22))+(0,e.Maj)(s,a,l)|0;p=f,f=d,d=c,c=u+i|0,u=l,l=a,a=s,s=i+h|0}s=s+this.A|0,a=a+this.B|0,l=l+this.C|0,u=u+this.D|0,c=c+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(s,a,l,u,c,d,f,p)}roundClean(){(0,r.clean)(o)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,r.clean)(this.buffer)}}sha2.SHA256=i;class s extends i{constructor(){super(28),this.A=0|e.SHA224_IV[0],this.B=0|e.SHA224_IV[1],this.C=0|e.SHA224_IV[2],this.D=0|e.SHA224_IV[3],this.E=0|e.SHA224_IV[4],this.F=0|e.SHA224_IV[5],this.G=0|e.SHA224_IV[6],this.H=0|e.SHA224_IV[7]}}sha2.SHA224=s;const a=(()=>t.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),l=(()=>a[0])(),u=(()=>a[1])(),c=new Uint32Array(80),d=new Uint32Array(80);class f extends e.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|e.SHA512_IV[0],this.Al=0|e.SHA512_IV[1],this.Bh=0|e.SHA512_IV[2],this.Bl=0|e.SHA512_IV[3],this.Ch=0|e.SHA512_IV[4],this.Cl=0|e.SHA512_IV[5],this.Dh=0|e.SHA512_IV[6],this.Dl=0|e.SHA512_IV[7],this.Eh=0|e.SHA512_IV[8],this.El=0|e.SHA512_IV[9],this.Fh=0|e.SHA512_IV[10],this.Fl=0|e.SHA512_IV[11],this.Gh=0|e.SHA512_IV[12],this.Gl=0|e.SHA512_IV[13],this.Hh=0|e.SHA512_IV[14],this.Hl=0|e.SHA512_IV[15]}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:o,Cl:i,Dh:s,Dl:a,Eh:l,El:u,Fh:c,Fl:d,Gh:f,Gl:p,Hh:h,Hl:m}=this;return[e,t,r,n,o,i,s,a,l,u,c,d,f,p,h,m]}set(e,t,r,n,o,i,s,a,l,u,c,d,f,p,h,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|o,this.Cl=0|i,this.Dh=0|s,this.Dl=0|a,this.Eh=0|l,this.El=0|u,this.Fh=0|c,this.Fl=0|d,this.Gh=0|f,this.Gl=0|p,this.Hh=0|h,this.Hl=0|m}process(e,r){for(let t=0;t<16;t++,r+=4)c[t]=e.getUint32(r),d[t]=e.getUint32(r+=4);for(let e=16;e<80;e++){const r=0|c[e-15],n=0|d[e-15],o=t.rotrSH(r,n,1)^t.rotrSH(r,n,8)^t.shrSH(r,n,7),i=t.rotrSL(r,n,1)^t.rotrSL(r,n,8)^t.shrSL(r,n,7),s=0|c[e-2],a=0|d[e-2],l=t.rotrSH(s,a,19)^t.rotrBH(s,a,61)^t.shrSH(s,a,6),u=t.rotrSL(s,a,19)^t.rotrBL(s,a,61)^t.shrSL(s,a,6),f=t.add4L(i,u,d[e-7],d[e-16]),p=t.add4H(f,o,l,c[e-7],c[e-16]);c[e]=0|p,d[e]=0|f}let{Ah:n,Al:o,Bh:i,Bl:s,Ch:a,Cl:f,Dh:p,Dl:h,Eh:m,El:g,Fh:y,Fl:A,Gh:b,Gl:v,Hh:w,Hl:S}=this;for(let e=0;e<80;e++){const r=t.rotrSH(m,g,14)^t.rotrSH(m,g,18)^t.rotrBH(m,g,41),_=t.rotrSL(m,g,14)^t.rotrSL(m,g,18)^t.rotrBL(m,g,41),x=m&y^~m&b,E=g&A^~g&v,k=t.add5L(S,_,E,u[e],d[e]),T=t.add5H(k,w,r,x,l[e],c[e]),R=0|k,C=t.rotrSH(n,o,28)^t.rotrBH(n,o,34)^t.rotrBH(n,o,39),B=t.rotrSL(n,o,28)^t.rotrBL(n,o,34)^t.rotrBL(n,o,39),O=n&i^n&a^i&a,I=o&s^o&f^s&f;w=0|b,S=0|v,b=0|y,v=0|A,y=0|m,A=0|g,({h:m,l:g}=t.add(0|p,0|h,0|T,0|R)),p=0|a,h=0|f,a=0|i,f=0|s,i=0|n,s=0|o;const P=t.add3L(R,B,I);n=t.add3H(P,T,C,O),o=0|P}({h:n,l:o}=t.add(0|this.Ah,0|this.Al,0|n,0|o)),({h:i,l:s}=t.add(0|this.Bh,0|this.Bl,0|i,0|s)),({h:a,l:f}=t.add(0|this.Ch,0|this.Cl,0|a,0|f)),({h:p,l:h}=t.add(0|this.Dh,0|this.Dl,0|p,0|h)),({h:m,l:g}=t.add(0|this.Eh,0|this.El,0|m,0|g)),({h:y,l:A}=t.add(0|this.Fh,0|this.Fl,0|y,0|A)),({h:b,l:v}=t.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:w,l:S}=t.add(0|this.Hh,0|this.Hl,0|w,0|S)),this.set(n,o,i,s,a,f,p,h,m,g,y,A,b,v,w,S)}roundClean(){(0,r.clean)(c,d)}destroy(){(0,r.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}sha2.SHA512=f;class p extends f{constructor(){super(48),this.Ah=0|e.SHA384_IV[0],this.Al=0|e.SHA384_IV[1],this.Bh=0|e.SHA384_IV[2],this.Bl=0|e.SHA384_IV[3],this.Ch=0|e.SHA384_IV[4],this.Cl=0|e.SHA384_IV[5],this.Dh=0|e.SHA384_IV[6],this.Dl=0|e.SHA384_IV[7],this.Eh=0|e.SHA384_IV[8],this.El=0|e.SHA384_IV[9],this.Fh=0|e.SHA384_IV[10],this.Fl=0|e.SHA384_IV[11],this.Gh=0|e.SHA384_IV[12],this.Gl=0|e.SHA384_IV[13],this.Hh=0|e.SHA384_IV[14],this.Hl=0|e.SHA384_IV[15]}}sha2.SHA384=p;const h=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),m=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class g extends f{constructor(){super(28),this.Ah=0|h[0],this.Al=0|h[1],this.Bh=0|h[2],this.Bl=0|h[3],this.Ch=0|h[4],this.Cl=0|h[5],this.Dh=0|h[6],this.Dl=0|h[7],this.Eh=0|h[8],this.El=0|h[9],this.Fh=0|h[10],this.Fl=0|h[11],this.Gh=0|h[12],this.Gl=0|h[13],this.Hh=0|h[14],this.Hl=0|h[15]}}sha2.SHA512_224=g;class y extends f{constructor(){super(32),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}return sha2.SHA512_256=y,sha2.sha256=(0,r.createHasher)(()=>new i),sha2.sha224=(0,r.createHasher)(()=>new s),sha2.sha512=(0,r.createHasher)(()=>new f),sha2.sha384=(0,r.createHasher)(()=>new p),sha2.sha512_256=(0,r.createHasher)(()=>new y),sha2.sha512_224=(0,r.createHasher)(()=>new g),sha2}function requireSha256$1(){if(hasRequiredSha256$1)return sha256$2;hasRequiredSha256$1=1,Object.defineProperty(sha256$2,"__esModule",{value:!0}),sha256$2.sha224=sha256$2.SHA224=sha256$2.sha256=sha256$2.SHA256=void 0;const e=requireSha2();return sha256$2.SHA256=e.SHA256,sha256$2.sha256=e.sha256,sha256$2.SHA224=e.SHA224,sha256$2.sha224=e.sha224,sha256$2}function requireSrc$1(){if(hasRequiredSrc$1)return src$1;return hasRequiredSrc$1=1,src$1=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,u=new Uint8Array(i);e[r];){var c=e.charCodeAt(r);if(c>255)return;var d=t[c];if(255===d)return;for(var f=0,p=i-1;(0!==d||f>>0,u[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=f,r++}for(var h=i-o;h!==i&&0===u[h];)h++;for(var m=new Uint8Array(n+(i-h)),g=n;h!==i;)m[g++]=u[h++];return m}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,o=0,i=t.length;o!==i&&0===t[o];)o++,r++;for(var l=(i-o)*u+1>>>0,c=new Uint8Array(l);o!==i;){for(var d=t[o],f=0,p=l-1;(0!==d||f>>0,c[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");n=f,o++}for(var h=l-n;h!==l&&0===c[h];)h++;for(var m=a.repeat(r);h0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function byteLength$1(e){var t=getLens(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function _byteLength(e,t,r){return 3*(t+r)/4-r}function toByteArray(e){var t,r,n=getLens(e),o=n[0],i=n[1],s=new Arr(_byteLength(e,o,i)),a=0,u=i>0?o-4:o;for(r=0;r>16&255,s[a++]=t>>8&255,s[a++]=255&t;return 2===i&&(t=revLookup[e.charCodeAt(r)]<<2|revLookup[e.charCodeAt(r+1)]>>4,s[a++]=255&t),1===i&&(t=revLookup[e.charCodeAt(r)]<<10|revLookup[e.charCodeAt(r+1)]<<4|revLookup[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t),s}function tripletToBase64(e){return lookup$2[e>>18&63]+lookup$2[e>>12&63]+lookup$2[e>>6&63]+lookup$2[63&e]}function encodeChunk(e,t,r){for(var n,o=[],i=t;ia?a:s+i));return 1===n?(t=e[r-1],o.push(lookup$2[t>>2]+lookup$2[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],o.push(lookup$2[t>>10]+lookup$2[t>>4&63]+lookup$2[t<<2&63]+"=")),o.join("")}revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;var ieee754={ -/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -read:function(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<>1,l=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},write:function(e,t,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=h,a/=256,o-=8);for(s=s<0;e[r+p]=255&s,p+=h,s/=256,c-=8);e[r+p-h]|=128*m}}; -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -!function(e){const t=base64Js,r=ieee754,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,r)}function a(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|p(e,t);let n=i(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(V(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return f(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);const o=function(e){if(s.isBuffer(e)){const t=0|d(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?i(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),i(e<0?0:0|d(e))}function l(e){const t=e.length<0?0:0|d(e.length),r=i(t);for(let n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(o)return n?-1:W(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return $(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){let i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let n=-1;for(i=r;ia&&(r=a-u),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function E(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(i=u));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(t+=" ... "),""},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,o){if(V(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(i,a),c=this.slice(n,o),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return A(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":case"latin1":case"binary":return v(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function $(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function C(e,t,r,n,o){F(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function P(e,t,r,n,o){F(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function I(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,n,o,i){return t=+t,n>>>=0,i||I(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function L(e,t,n,o,i){return t=+t,n>>>=0,i||I(e,0,n,8),r.write(e,t,n,o,52,8),n+8}s.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=J(function(e){j(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||R(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||R(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=J(function(e){j(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||H(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||R(e,4,this.length),r.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),r.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),r.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){O(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){O(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=J(function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=J(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);O(this,e,t,r,n-1,-n)}let o=0,i=1,s=0;for(this[t]=255&e;++o>>=0,!n){const n=Math.pow(2,8*r-1);O(this,e,t,r,n-1,-n)}let o=r-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=J(function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=J(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function F(e,t,r,n,o,i){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new D.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||H(t,e.length-(r+1))}(n,o,i)}function j(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,r){if(Math.floor(e)!==e)throw j(e,r),new D.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}M("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),M("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),M("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=U(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=U(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const q=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let s=0;s55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}}(buffer); + * @license + * https://reviews.bitcoinabc.org + * Copyright (c) 2017-2020 Emilio Almansi + * Copyright (c) 2023-2024 Bitcoin ABC + * Distributed under the MIT software license, see the accompanying + * file LICENSE or http://www.opensource.org/licenses/mit-license.php. + */ +var e=cashaddr_1&&cashaddr_1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const t=e(requireBase32$1()),r=e(requireConvertBits$1()),n=e(requireBigInteger()),o=e(requireBs58check()),i=e(requireValidation$2()),{validate:s,ValidationError:a}=i.default;function l(e,n,o){s("string"==typeof e&&function(e){return g(e)&&-1!==c.indexOf(e.toLowerCase())}(e),"Invalid prefix: "+e+"."),s("string"==typeof n,"Invalid type: "+n+"."),s(o instanceof Uint8Array||"string"==typeof o,"Invalid hash: "+o+". Must be string or Uint8Array."),"string"==typeof o&&(o=function(e){const t=new Uint8Array(e.length/2);for(let r=0;rt=>{const r=toString$2.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest$1=e=>(e=e.toLowerCase(),t=>kindOf$1(t)===e),typeOfTest$1=e=>t=>typeof t===e,{isArray:isArray$1}=Array,isUndefined$1=typeOfTest$1("undefined");function isBuffer$1(e){return null!==e&&!isUndefined$1(e)&&null!==e.constructor&&!isUndefined$1(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer$1=kindOfTest$1("ArrayBuffer");function isArrayBufferView$1(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer$1(e.buffer),t}const isString$1=typeOfTest$1("string"),isFunction$1=typeOfTest$1("function"),isNumber$1=typeOfTest$1("number"),isObject$2=e=>null!==e&&"object"==typeof e,isBoolean$1=e=>!0===e||!1===e,isPlainObject$1=e=>{if("object"!==kindOf$1(e))return!1;const t=getPrototypeOf$1(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},isDate$1=kindOfTest$1("Date"),isFile$1=kindOfTest$1("File"),isBlob$1=kindOfTest$1("Blob"),isFileList$1=kindOfTest$1("FileList"),isStream$1=e=>isObject$2(e)&&isFunction$1(e.pipe),isFormData$1=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf$1(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams$1=kindOfTest$1("URLSearchParams"),trim$1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),isArray$1(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _global$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined$1=e=>!isUndefined$1(e)&&e!==_global$1;function merge$2(){const{caseless:e}=isContextDefined$1(this)&&this||{},t={},r=(r,n)=>{const o=e&&findKey$1(t,n)||n;isPlainObject$1(t[o])&&isPlainObject$1(r)?t[o]=merge$2(t[o],r):isPlainObject$1(r)?t[o]=merge$2({},r):isArray$1(r)?t[o]=r.slice():t[o]=r};for(let e=0,t=arguments.length;e(forEach$1(t,(t,n)=>{r&&isFunction$1(t)?e[n]=bind$1(t,r):e[n]=t},{allOwnKeys:n}),e),stripBOM$1=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits$1=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject$1=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&getPrototypeOf$1(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith$1=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray$2=e=>{if(!e)return null;if(isArray$1(e))return e;let t=e.length;if(!isNumber$1(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray$1=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&getPrototypeOf$1(Uint8Array)),forEachEntry$1=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll$1=(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm$1=kindOfTest$1("HTMLFormElement"),toCamelCase$1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),hasOwnProperty$1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp$1=kindOfTest$1("RegExp"),reduceDescriptors$1=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach$1(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},freezeMethods$1=e=>{reduceDescriptors$1(e,(t,r)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];isFunction$1(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet$1=(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return isArray$1(e)?n(e):n(String(e).split(t)),r},noop$2=()=>{},toFiniteNumber$1=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(e=16,t=ALPHABET.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function isSpecCompliantForm$1(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const toJSONObject$1=e=>{const t=new Array(10),r=(e,n)=>{if(isObject$2(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=isArray$1(e)?[]:{};return forEach$1(e,(e,t)=>{const i=r(e,n+1);!isUndefined$1(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn$1=kindOfTest$1("AsyncFunction"),isThenable$1=e=>e&&(isObject$2(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch);var utils$3={isArray:isArray$1,isArrayBuffer:isArrayBuffer$1,isBuffer:isBuffer$1,isFormData:isFormData$1,isArrayBufferView:isArrayBufferView$1,isString:isString$1,isNumber:isNumber$1,isBoolean:isBoolean$1,isObject:isObject$2,isPlainObject:isPlainObject$1,isUndefined:isUndefined$1,isDate:isDate$1,isFile:isFile$1,isBlob:isBlob$1,isRegExp:isRegExp$1,isFunction:isFunction$1,isStream:isStream$1,isURLSearchParams:isURLSearchParams$1,isTypedArray:isTypedArray$1,isFileList:isFileList$1,forEach:forEach$1,merge:merge$2,extend:extend$1,trim:trim$1,stripBOM:stripBOM$1,inherits:inherits$1,toFlatObject:toFlatObject$1,kindOf:kindOf$1,kindOfTest:kindOfTest$1,endsWith:endsWith$1,toArray:toArray$2,forEachEntry:forEachEntry$1,matchAll:matchAll$1,isHTMLForm:isHTMLForm$1,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors:reduceDescriptors$1,freezeMethods:freezeMethods$1,toObjectSet:toObjectSet$1,toCamelCase:toCamelCase$1,noop:noop$2,toFiniteNumber:toFiniteNumber$1,findKey:findKey$1,global:_global$1,isContextDefined:isContextDefined$1,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm$1,toJSONObject:toJSONObject$1,isAsyncFn:isAsyncFn$1,isThenable:isThenable$1};function AxiosError$1(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}utils$3.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$3.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$3=AxiosError$1.prototype,descriptors$1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors$1[e]={value:e}}),Object.defineProperties(AxiosError$1,descriptors$1),Object.defineProperty(prototype$3,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,r,n,o,i)=>{const s=Object.create(prototype$3);return utils$3.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError$1.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var httpAdapter$1=null;function isVisitable$1(e){return utils$3.isPlainObject(e)||utils$3.isArray(e)}function removeBrackets$1(e){return utils$3.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey$1(e,t,r){return e?e.concat(t).map(function(e,t){return e=removeBrackets$1(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function isFlatArray$1(e){return utils$3.isArray(e)&&!e.some(isVisitable$1)}const predicates$1=utils$3.toFlatObject(utils$3,{},null,function(e){return/^is[A-Z]/.test(e)});function toFormData$1(e,t,r){if(!utils$3.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=utils$3.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!utils$3.isUndefined(t[e])})).metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$3.isSpecCompliantForm(t);if(!utils$3.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(utils$3.isDate(e))return e.toISOString();if(!a&&utils$3.isBlob(e))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$3.isArrayBuffer(e)||utils$3.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(utils$3.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$3.isArray(e)&&isFlatArray$1(e)||(utils$3.isFileList(e)||utils$3.endsWith(r,"[]"))&&(a=utils$3.toArray(e)))return r=removeBrackets$1(r),a.forEach(function(e,n){!utils$3.isUndefined(e)&&null!==e&&t.append(!0===s?renderKey$1([r],n,i):null===s?r:r+"[]",u(e))}),!1;return!!isVisitable$1(e)||(t.append(renderKey$1(o,r,i),u(e)),!1)}const l=[],f=Object.assign(predicates$1,{defaultVisitor:c,convertValue:u,isVisitable:isVisitable$1});if(!utils$3.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!utils$3.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),utils$3.forEach(r,function(r,i){!0===(!(utils$3.isUndefined(r)||null===r)&&o.call(t,r,utils$3.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])}),l.pop()}}(e),t}function encode$5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function AxiosURLSearchParams$1(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype$2=AxiosURLSearchParams$1.prototype;function encode$4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL$1(e,t,r){if(!t)return e;const n=r&&r.encode||encode$4,o=r&&r.serialize;let i;if(i=o?o(t,r):utils$3.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams$1(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype$2.append=function(e,t){this._pairs.push([e,t])},prototype$2.toString=function(e){const t=e?function(t){return e.call(this,t,encode$5)}:encode$5;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class InterceptorManager$2{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$3.forEach(this.handlers,function(t){null!==t&&e(t)})}}var InterceptorManager$3=InterceptorManager$2,transitionalDefaults$1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$2="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams$1,FormData$2="undefined"!=typeof FormData?FormData:null,Blob$2="undefined"!=typeof Blob?Blob:null,platform$3={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$2,FormData:FormData$2,Blob:Blob$2},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv$1="undefined"!=typeof window&&"undefined"!=typeof document,hasStandardBrowserEnv$1=(product="undefined"!=typeof navigator&&navigator.product,hasBrowserEnv$1&&["ReactNative","NativeScript","NS"].indexOf(product)<0);var product;const hasStandardBrowserWebWorkerEnv$1="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var utils$2=Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv$1,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv$1,hasStandardBrowserEnv:hasStandardBrowserEnv$1}),platform$2={...utils$2,...platform$3};function toURLEncodedForm$1(e,t){return toFormData$1(e,new platform$2.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return platform$2.isNode&&utils$3.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath$1(e){return utils$3.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function arrayToObject$1(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=e.length;if(i=!i&&utils$3.isArray(n)?n.length:i,a)return utils$3.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&utils$3.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&utils$3.isArray(n[i])&&(n[i]=arrayToObject$1(n[i])),!s}if(utils$3.isFormData(e)&&utils$3.isFunction(e.entries)){const r={};return utils$3.forEachEntry(e,(e,n)=>{t(parsePropPath$1(e),n,r,0)}),r}return null}function stringifySafely$1(e,t,r){if(utils$3.isString(e))try{return(t||JSON.parse)(e),utils$3.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}const defaults$2={transitional:transitionalDefaults$1,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=utils$3.isObject(e);o&&utils$3.isHTMLForm(e)&&(e=new FormData(e));if(utils$3.isFormData(e))return n&&n?JSON.stringify(formDataToJSON$1(e)):e;if(utils$3.isArrayBuffer(e)||utils$3.isBuffer(e)||utils$3.isStream(e)||utils$3.isFile(e)||utils$3.isBlob(e))return e;if(utils$3.isArrayBufferView(e))return e.buffer;if(utils$3.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm$1(e,this.formSerializer).toString();if((i=utils$3.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$1(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),stringifySafely$1(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults$2.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&utils$3.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$2.classes.FormData,Blob:platform$2.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$3.forEach(["delete","get","head","post","put","patch"],e=>{defaults$2.headers[e]={}});var defaults$3=defaults$2;const ignoreDuplicateOf$1=utils$3.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders$1=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ignoreDuplicateOf$1[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const $internals$1=Symbol("internals");function normalizeHeader$1(e){return e&&String(e).trim().toLowerCase()}function normalizeValue$1(e){return!1===e||null==e?e:utils$3.isArray(e)?e.map(normalizeValue$1):String(e)}function parseTokens$1(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName$1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue$1(e,t,r,n,o){return utils$3.isFunction(n)?n.call(this,t,r):(o&&(t=r),utils$3.isString(t)?utils$3.isString(n)?-1!==t.indexOf(n):utils$3.isRegExp(n)?n.test(t):void 0:void 0)}function formatHeader$1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function buildAccessors$1(e,t){const r=utils$3.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}class AxiosHeaders$2{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=normalizeHeader$1(t);if(!o)throw new Error("header name must be a non-empty string");const i=utils$3.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=normalizeValue$1(e))}const i=(e,t)=>utils$3.forEach(e,(e,r)=>o(e,r,t));return utils$3.isPlainObject(e)||e instanceof this.constructor?i(e,t):utils$3.isString(e)&&(e=e.trim())&&!isValidHeaderName$1(e)?i(parseHeaders$1(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=normalizeHeader$1(e)){const r=utils$3.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens$1(e);if(utils$3.isFunction(t))return t.call(this,e,r);if(utils$3.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader$1(e)){const r=utils$3.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue$1(this,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=normalizeHeader$1(e)){const o=utils$3.findKey(r,e);!o||t&&!matchHeaderValue$1(r,r[o],o,t)||(delete r[o],n=!0)}}return utils$3.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!matchHeaderValue$1(this,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return utils$3.forEach(this,(n,o)=>{const i=utils$3.findKey(r,o);if(i)return t[i]=normalizeValue$1(n),void delete t[o];const s=e?formatHeader$1(o):String(o).trim();s!==o&&delete t[o],t[s]=normalizeValue$1(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$3.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&utils$3.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[$internals$1]=this[$internals$1]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=normalizeHeader$1(e);t[n]||(buildAccessors$1(r,e),t[n]=!0)}return utils$3.isArray(e)?e.forEach(n):n(e),this}}AxiosHeaders$2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$3.reduceDescriptors(AxiosHeaders$2.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),utils$3.freezeMethods(AxiosHeaders$2);var AxiosHeaders$3=AxiosHeaders$2;function transformData$1(e,t){const r=this||defaults$3,n=t||r,o=AxiosHeaders$3.from(n.headers);let i=n.data;return utils$3.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function isCancel$1(e){return!(!e||!e.__CANCEL__)}function CanceledError$1(e,t,r){AxiosError$1.call(this,null==e?"canceled":e,AxiosError$1.ERR_CANCELED,t,r),this.name="CanceledError"}function settle$1(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new AxiosError$1("Request failed with status code "+r.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}utils$3.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});var cookies$1=platform$2.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];utils$3.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),utils$3.isString(n)&&s.push("path="+n),utils$3.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL$1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs$1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath$1(e,t){return e&&!isAbsoluteURL$1(t)?combineURLs$1(e,t):t}var isURLSameOrigin$1=platform$2.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=utils$3.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function parseProtocol$1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer$1(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,u=n(a);r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const isXHRAdapterSupported$1="undefined"!=typeof XMLHttpRequest;var xhrAdapter$1=isXHRAdapterSupported$1&&function(e){return new Promise(function(t,r){let n=e.data;const o=AxiosHeaders$3.from(e.headers).normalize();let i,s,{responseType:a,withXSRFToken:u}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(utils$3.isFormData(n))if(platform$2.hasStandardBrowserEnv||platform$2.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[e,...t]=s?s.split(";").map(e=>e.trim()).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const f=buildFullPath$1(e.baseURL,e.url);function d(){if(!l)return;const n=AxiosHeaders$3.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());settle$1(function(e){t(e),c()},function(e){r(e),c()},{data:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),buildURL$1(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(r(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||transitionalDefaults$1;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new AxiosError$1(t,n.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,l)),l=null},platform$2.hasStandardBrowserEnv&&(u&&utils$3.isFunction(u)&&(u=u(e)),u||!1!==u&&isURLSameOrigin$1(f))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&cookies$1.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in l&&utils$3.forEach(o.toJSON(),function(e,t){l.setRequestHeader(t,e)}),utils$3.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",progressEventReducer$1(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",progressEventReducer$1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(r(!t||t.type?new CanceledError$1(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=parseProtocol$1(f);p&&-1===platform$2.protocols.indexOf(p)?r(new AxiosError$1("Unsupported protocol "+p+":",AxiosError$1.ERR_BAD_REQUEST,e)):l.send(n||null)})};const knownAdapters$1={http:httpAdapter$1,xhr:xhrAdapter$1};utils$3.forEach(knownAdapters$1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason$1=e=>`- ${e}`,isResolvedHandle$1=e=>utils$3.isFunction(e)||null===e||!1===e;var adapters$1={getAdapter:e=>{e=utils$3.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new AxiosError$1("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason$1).join("\n"):" "+renderReason$1(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:knownAdapters$1};function throwIfCancellationRequested$1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest$1(e){throwIfCancellationRequested$1(e),e.headers=AxiosHeaders$3.from(e.headers),e.data=transformData$1.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters$1.getAdapter(e.adapter||defaults$3.adapter)(e).then(function(t){return throwIfCancellationRequested$1(e),t.data=transformData$1.call(e,e.transformResponse,t),t.headers=AxiosHeaders$3.from(t.headers),t},function(t){return isCancel$1(t)||(throwIfCancellationRequested$1(e),t&&t.response&&(t.response.data=transformData$1.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$3.from(t.response.headers))),Promise.reject(t)})}const headersToObject$1=e=>e instanceof AxiosHeaders$3?e.toJSON():e;function mergeConfig$1(e,t){t=t||{};const r={};function n(e,t,r){return utils$3.isPlainObject(e)&&utils$3.isPlainObject(t)?utils$3.merge.call({caseless:r},e,t):utils$3.isPlainObject(t)?utils$3.merge({},t):utils$3.isArray(t)?t.slice():t}function o(e,t,r){return utils$3.isUndefined(t)?utils$3.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!utils$3.isUndefined(t))return n(void 0,t)}function s(e,t){return utils$3.isUndefined(t)?utils$3.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(headersToObject$1(e),headersToObject$1(t),!0)};return utils$3.forEach(Object.keys(Object.assign({},e,t)),function(n){const i=u[n]||o,s=i(e[n],t[n],n);utils$3.isUndefined(s)&&i!==a||(r[n]=s)}),r}const VERSION$1="1.6.5",validators$3={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$3[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings$1={};function assertOptions$1(e,t,r){if("object"!=typeof e)throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new AxiosError$1("option "+i+" must be "+r,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new AxiosError$1("Unknown option "+i,AxiosError$1.ERR_BAD_OPTION)}}validators$3.transitional=function(e,t,r){function n(e,t){return"[Axios v"+VERSION$1+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new AxiosError$1(n(o," has been removed"+(t?" in "+t:"")),AxiosError$1.ERR_DEPRECATED);return t&&!deprecatedWarnings$1[o]&&(deprecatedWarnings$1[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var validator$1={assertOptions:assertOptions$1,validators:validators$3};const validators$2=validator$1.validators;class Axios$2{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager$3,response:new InterceptorManager$3}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$1(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&validator$1.assertOptions(r,{silentJSONParsing:validators$2.transitional(validators$2.boolean),forcedJSONParsing:validators$2.transitional(validators$2.boolean),clarifyTimeoutError:validators$2.transitional(validators$2.boolean)},!1),null!=n&&(utils$3.isFunction(n)?t.paramsSerializer={serialize:n}:validator$1.assertOptions(n,{encode:validators$2.function,serialize:validators$2.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&utils$3.merge(o.common,o[t.method]);o&&utils$3.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=AxiosHeaders$3.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const u=[];let c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let l,f=0;if(!a){const e=[dispatchRequest$1.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new CanceledError$1(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new CancelToken$2(function(t){e=t});return{token:t,cancel:e}}}var CancelToken$3=CancelToken$2;function spread$1(e){return function(t){return e.apply(null,t)}}function isAxiosError$1(e){return utils$3.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$2).forEach(([e,t])=>{HttpStatusCode$2[t]=e});var HttpStatusCode$3=HttpStatusCode$2;function createInstance$1(e){const t=new Axios$3(e),r=bind$1(Axios$3.prototype.request,t);return utils$3.extend(r,Axios$3.prototype,t,{allOwnKeys:!0}),utils$3.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance$1(mergeConfig$1(e,t))},r}const axios$1=createInstance$1(defaults$3);axios$1.Axios=Axios$3,axios$1.CanceledError=CanceledError$1,axios$1.CancelToken=CancelToken$3,axios$1.isCancel=isCancel$1,axios$1.VERSION=VERSION$1,axios$1.toFormData=toFormData$1,axios$1.AxiosError=AxiosError$1,axios$1.Cancel=axios$1.CanceledError,axios$1.all=function(e){return Promise.all(e)},axios$1.spread=spread$1,axios$1.isAxiosError=isAxiosError$1,axios$1.mergeConfig=mergeConfig$1,axios$1.AxiosHeaders=AxiosHeaders$3,axios$1.formToJSON=e=>formDataToJSON$1(utils$3.isHTMLForm(e)?new FormData(e):e),axios$1.getAdapter=adapters$1.getAdapter,axios$1.HttpStatusCode=HttpStatusCode$3,axios$1.default=axios$1;var M=axios$1,lodash={exports:{}}; + */function requireXecaddr(){if(hasRequiredXecaddr)return xecaddr;hasRequiredXecaddr=1;const e=requireBs58check$1(),t=requireCashaddr$1(),r=requireBuffer().Buffer,n={Legacy:"legacy",Bitpay:"bitpay",Cashaddr:"cashaddr",Xecaddr:"xecaddr"},o={Mainnet:"mainnet",Testnet:"testnet"},i={};function s(e){return c(e).format}function a(e){return c(e).network}function l(e){return c(e).type}i.P2PKH="p2pkh",i.P2SH="p2sh";const u={};function c(t){try{return function(t){try{const r=e.decode(t);if(r.length!==d)throw new h;const s=r[0],a=Array.prototype.slice.call(r,1);switch(s){case u[n.Legacy][o.Mainnet][i.P2PKH]:return{hash:a,format:n.Legacy,network:o.Mainnet,type:i.P2PKH};case u[n.Legacy][o.Mainnet][i.P2SH]:return{hash:a,format:n.Legacy,network:o.Mainnet,type:i.P2SH};case u[n.Legacy][o.Testnet][i.P2PKH]:return{hash:a,format:n.Legacy,network:o.Testnet,type:i.P2PKH};case u[n.Legacy][o.Testnet][i.P2SH]:return{hash:a,format:n.Legacy,network:o.Testnet,type:i.P2SH};case u[n.Bitpay][o.Mainnet][i.P2PKH]:return{hash:a,format:n.Bitpay,network:o.Mainnet,type:i.P2PKH};case u[n.Bitpay][o.Mainnet][i.P2SH]:return{hash:a,format:n.Bitpay,network:o.Mainnet,type:i.P2SH}}}catch(e){}throw new h}(t)}catch(e){}try{return function(e){if(-1!==e.indexOf(":"))try{return p(e)}catch(e){}else{const t=["ecash","ectest"];for(let r=0;rt=>{const r=toString$1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$1=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||toStringTag in e||iterator in e)},isEmptyObject=e=>{if(!isObject$1(e)||isBuffer(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$1(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction$1(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction$1(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),isArray(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge$1(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},r={},n=(n,o)=>{const i=e&&findKey(r,o)||o;isPlainObject(r[i])&&isPlainObject(n)?r[i]=merge$1(r[i],n):isPlainObject(n)?r[i]=merge$1({},n):isArray(n)?r[i]=n.slice():t&&isUndefined(n)||(r[i]=n)};for(let e=0,t=arguments.length;e(forEach(t,(t,n)=>{r&&isFunction$1(t)?e[n]=bind(t,r):e[n]=t},{allOwnKeys:n}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray$1=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),e=>TypedArray&&e instanceof TypedArray);var TypedArray;const forEachEntry=(e,t)=>{const r=(e&&e[iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},freezeMethods=e=>{reduceDescriptors(e,(t,r)=>{if(isFunction$1(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];isFunction$1(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet=(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return isArray(e)?n(e):n(String(e).split(t)),r},noop$2=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&"FormData"===e[toStringTag]&&e[iterator])}const toJSONObject=e=>{const t=new Array(10),r=(e,n)=>{if(isObject$1(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[n]=e;const o=isArray(e)?[]:{};return forEach(e,(e,t)=>{const i=r(e,n+1);!isUndefined(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject$1(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction$1(_global.postMessage),setImmediateSupported?setImmediate:postMessageSupported?((e,t)=>(_global.addEventListener("message",({source:r,data:n})=>{r===_global&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),_global.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var setImmediateSupported,postMessageSupported;const asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):void 0!==process&&process.nextTick||_setImmediate,isIterable=e=>null!=e&&isFunction$1(e[iterator]);var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject$1,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction$1,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge$1,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray$1,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop$2,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable},bufferExports=requireBuffer();function AxiosError$1(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}}),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,r,n,o,i)=>{const s=Object.create(prototype$1);utils$1.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return AxiosError$1.call(s,a,l,r,n,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};var httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map(function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(e){return/^is[A-Z]/.test(e)});function toFormData$1(e,t,r){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!utils$1.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(utils$1.isBoolean(e))return e.toString();if(!a&&utils$1.isBlob(e))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):bufferExports.Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(utils$1.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(r,"[]"))&&(a=utils$1.toArray(e)))return r=removeBrackets(r),a.forEach(function(e,n){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===s?renderKey([r],n,i):null===s?r:r+"[]",l(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(o,r,i),l(e)),!1)}const c=[],d=Object.assign(predicates,{defaultVisitor:u,convertValue:l,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!utils$1.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),utils$1.forEach(r,function(r,i){!0===(!(utils$1.isUndefined(r)||null===r)&&o.call(t,r,utils$1.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t}function encode$3(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode$2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,r){if(!t)return e;const n=r&&r.encode||encode$2;utils$1.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$3)}:encode$3;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,function(t){null!==t&&e(t)})}}var transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData$1="undefined"!=typeof FormData?FormData:null,Blob$1="undefined"!=typeof Blob?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost";var utils=Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin:origin}),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,{visitor:function(e,t,r,n){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function arrayToObject(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=e.length;if(i=!i&&utils$1.isArray(n)?n.length:i,a)return utils$1.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&utils$1.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&utils$1.isArray(n[i])&&(n[i]=arrayToObject(n[i])),!s}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const r={};return utils$1.forEachEntry(e,(e,n)=>{t(parsePropPath(e),n,r,0)}),r}return null}function stringifySafely(e,t,r){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=utils$1.isObject(e);o&&utils$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1.isFormData(e))return n?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e)||utils$1.isReadableStream(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((i=utils$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData$1(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults$1.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(utils$1.isResponse(e)||utils$1.isReadableStream(e))return e;if(e&&utils$1.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError$1.from(e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],e=>{defaults$1.headers[e]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ignoreDuplicateOf[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const $internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,n,o){return utils$1.isFunction(n)?n.call(this,t,r):(o&&(t=r),utils$1.isString(t)?utils$1.isString(n)?-1!==t.indexOf(n):utils$1.isRegExp(n)?n.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function buildAccessors(e,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}let AxiosHeaders$1=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=normalizeHeader(t);if(!o)throw new Error("header name must be a non-empty string");const i=utils$1.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=normalizeValue(e))}const i=(e,t)=>utils$1.forEach(e,(e,r)=>o(e,r,t));if(utils$1.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))i(parseHeaders(e),t);else if(utils$1.isObject(e)&&utils$1.isIterable(e)){let r,n,o={};for(const t of e){if(!utils$1.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?utils$1.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,r);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue(this,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=normalizeHeader(e)){const o=utils$1.findKey(r,e);!o||t&&!matchHeaderValue(r,r[o],o,t)||(delete r[o],n=!0)}}return utils$1.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!matchHeaderValue(this,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return utils$1.forEach(this,(n,o)=>{const i=utils$1.findKey(r,o);if(i)return t[i]=normalizeValue(n),void delete t[o];const s=e?formatHeader(o):String(o).trim();s!==o&&delete t[o],t[s]=normalizeValue(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&utils$1.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=normalizeHeader(e);t[n]||(buildAccessors(r,e),t[n]=!0)}return utils$1.isArray(e)?e.forEach(n):n(e),this}};function transformData(e,t){const r=this||defaults$1,n=t||r,o=AxiosHeaders$1.from(n.headers);let i=n.data;return utils$1.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function isCancel$1(e){return!(!e||!e.__CANCEL__)}function CanceledError$1(e,t,r){AxiosError$1.call(this,null==e?"canceled":e,AxiosError$1.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new AxiosError$1("Request failed with status code "+r.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=n[s];o||(o=l),r[i]=a,n[i]=l;let c=s,d=0;for(;c!==i;)d+=r[c++],c%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]}AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),utils$1.freezeMethods(AxiosHeaders$1),utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});const progressEventReducer=(e,t,r=3)=>{let n=0;const o=speedometer(50,250);return throttle(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,l=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},progressEventDecorator=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap(()=>e(...t));var isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];utils$1.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),utils$1.isString(n)&&s.push("path="+n),utils$1.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,r){let n=!isAbsoluteURL(t);return e&&(n||0==r)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const r={};function n(e,t,r,n){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:n},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function o(e,t,r,o){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!utils$1.isUndefined(t))return n(void 0,t)}function s(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(headersToObject(e),headersToObject(t),0,!0)};return utils$1.forEach(Object.keys({...e,...t}),function(n){const i=l[n]||o,s=i(e[n],t[n],n);utils$1.isUndefined(s)&&i!==a||(r[n]=s)}),r}var resolveConfig=e=>{const t=mergeConfig$1({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=AxiosHeaders$1.from(s),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),utils$1.isFormData(r))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(utils$1.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(platform.hasStandardBrowserEnv&&(n&&utils$1.isFunction(n)&&(n=n(t)),n||!1!==n&&isURLSameOrigin(t.url))){const e=o&&i&&cookies.read(i);e&&s.set(o,e)}return t};const isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest;var xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(t,r){const n=resolveConfig(e);let o=n.data;const i=AxiosHeaders$1.from(n.headers).normalize();let s,a,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){u&&u(),c&&c(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=AxiosHeaders$1.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle(function(e){t(e),h()},function(e){r(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=new AxiosError$1(t&&t.message?t.message:"Network Error",AxiosError$1.ERR_NETWORK,e,m);n.event=t||null,r(n),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||transitionalDefaults;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new AxiosError$1(t,o.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&utils$1.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),utils$1.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([l,c]=progressEventReducer(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([a,u]=progressEventReducer(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new CanceledError$1(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const y=parseProtocol(n.url);y&&-1===platform.protocols.indexOf(y)?r(new AxiosError$1("Unsupported protocol "+y+":",AxiosError$1.ERR_BAD_REQUEST,e)):m.send(o||null)})};const composeSignals=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof AxiosError$1?t:new CanceledError$1(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>utils$1.asap(s),a}},streamChunk=function*(e,t){let r=e.byteLength;if(r{const o=readBytes(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=65536,{isFunction:isFunction}=utils$1,globalFetchAPI=(({fetch:e,Request:t,Response:r})=>({fetch:e,Request:t,Response:r}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils$1.global,test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},factory=e=>{const{fetch:t,Request:r,Response:n}=Object.assign({},globalFetchAPI,e),o=isFunction(t),i=isFunction(r),s=isFunction(n);if(!o)return!1;const a=o&&isFunction(ReadableStream$1),l=o&&("function"==typeof TextEncoder$1?(u=new TextEncoder$1,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const c=i&&a&&test(()=>{let e=!1;const t=new r(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&a&&test(()=>utils$1.isReadableStream(new n("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new AxiosError$1(`Response type '${e}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,r)})});const p=async(e,t)=>{const n=utils$1.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e)){const t=new r(platform.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e)?e.byteLength:(utils$1.isURLSearchParams(e)&&(e+=""),utils$1.isString(e)?(await l(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:s,data:a,signal:l,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:A,withCredentials:b="same-origin",fetchOptions:v}=resolveConfig(e);y=y?(y+"").toLowerCase():"text";let w=composeSignals([l,u&&u.toAbortSignal()],h),S=null;const _=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let x;try{if(g&&c&&"get"!==s&&"head"!==s&&0!==(x=await p(A,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(utils$1.isFormData(a)&&(e=t.headers.get("content-type"))&&A.setContentType(e),t.body){const[e,r]=progressEventDecorator(x,progressEventReducer(asyncDecorator(g)));a=trackStream(t.body,DEFAULT_CHUNK_SIZE,e,r)}}utils$1.isString(b)||(b=b?"include":"omit");const l=i&&"credentials"in r.prototype,u={...v,signal:w,method:s.toUpperCase(),headers:A.normalize().toJSON(),body:a,duplex:"half",credentials:l?b:void 0};S=i&&new r(o,u);let h=await(i?t(S,v):t(o,u));const E=d&&("stream"===y||"response"===y);if(d&&(m||E&&_)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=utils$1.toFiniteNumber(h.headers.get("content-length")),[r,o]=m&&progressEventDecorator(t,progressEventReducer(asyncDecorator(m),!0))||[];h=new n(trackStream(h.body,DEFAULT_CHUNK_SIZE,r,()=>{o&&o(),_&&_()}),e)}y=y||"text";let k=await f[utils$1.findKey(f,y)||"text"](h,e);return!E&&_&&_(),await new Promise((t,r)=>{settle(t,r,{data:k,headers:AxiosHeaders$1.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:S})})}catch(t){if(_&&_(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,e,S),{cause:t.cause||t});throw AxiosError$1.from(t,t&&t.code,e,S)}}},seedCache=new Map,getFetch=e=>{let t=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,e?e.env:null);const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,l=i.length,u=seedCache;for(;l--;)s=i[l],a=u.get(s),void 0===a&&u.set(s,a=l?new Map:factory(t)),u=a;return a};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e;var adapters={getAdapter:(e,t)=>{e=utils$1.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new AxiosError$1("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters.getAdapter(e.adapter||defaults$1.adapter,e)(e).then(function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders$1.from(t.headers),t},function(t){return isCancel$1(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$1.from(t.response.headers))),Promise.reject(t)})}const VERSION$1="1.12.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new AxiosError$1("option "+i+" must be "+r,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new AxiosError$1("Unknown option "+i,AxiosError$1.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,r){function n(e,t){return"[Axios v"+VERSION$1+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new AxiosError$1(n(o," has been removed"+(t?" in "+t:"")),AxiosError$1.ERR_DEPRECATED);return t&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},validators$1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var validator={assertOptions:assertOptions,validators:validators$1};const validators=validator.validators;let Axios$1=class{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig$1(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=n&&(utils$1.isFunction(n)?t.paramsSerializer={serialize:n}:validator.assertOptions(n,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&utils$1.merge(o.common,o[t.method]);o&&utils$1.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=AxiosHeaders$1.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new CanceledError$1(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;const r=new e(function(e){t=e});return{token:r,cancel:t}}};function spread$1(e){return function(t){return e.apply(null,t)}}function isAxiosError$1(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance(e){const t=new Axios$1(e),r=bind(Axios$1.prototype.request,t);return utils$1.extend(r,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig$1(e,t))},r}Object.entries(HttpStatusCode$1).forEach(([e,t])=>{HttpStatusCode$1[t]=e});const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios:Axios,AxiosError:AxiosError,CanceledError:CanceledError,isCancel:isCancel,CancelToken:CancelToken,VERSION:VERSION,all:all,Cancel:Cancel,isAxiosError:isAxiosError,spread:spread,toFormData:toFormData,AxiosHeaders:AxiosHeaders,HttpStatusCode:HttpStatusCode,formToJSON:formToJSON,getAdapter:getAdapter,mergeConfig:mergeConfig}=axios;var lodash$1={exports:{}},lodash=lodash$1.exports,hasRequiredLodash; /** * @license * Lodash @@ -68,8 +157,7 @@ const bs58check=bs58check$2,cashaddr$1=cashaddr_1,Buffer$1=buffer.Buffer,Format= * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ -lodash.exports,function(e,t){(function(){var r,n="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,a=32,u=64,c=128,l=256,f=1/0,d=9007199254740991,p=NaN,h=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",u],["rearg",l]],g="[object Arguments]",y="[object Array]",A="[object Boolean]",b="[object Date]",v="[object Error]",_="[object Function]",w="[object GeneratorFunction]",S="[object Map]",E="[object Number]",x="[object Object]",$="[object Promise]",k="[object RegExp]",T="[object Set]",B="[object String]",R="[object Symbol]",O="[object WeakMap]",C="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",N="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",U="[object Uint8Array]",F="[object Uint8ClampedArray]",j="[object Uint16Array]",H="[object Uint32Array]",q=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,K=RegExp(G.source),Z=RegExp(V.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(re.source),oe=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Be="['’]",Re="["+we+"]",Oe="["+Te+"]",Ce="["+Se+"]",Pe="\\d+",Ie="["+Ee+"]",Ne="["+xe+"]",Le="[^"+we+Te+Pe+Ee+xe+$e+"]",De="\\ud83c[\\udffb-\\udfff]",Me="[^"+we+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+$e+"]",He="\\u200d",qe="(?:"+Ne+"|"+Le+")",We="(?:"+je+"|"+Le+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Ce+"|"+De+")"+"?",Ke="["+ke+"]?",Ze=Ke+Ve+("(?:"+He+"(?:"+[Me,Ue,Fe].join("|")+")"+Ke+Ve+")*"),Je="(?:"+[Ie,Ue,Fe].join("|")+")"+Ze,Xe="(?:"+[Me+Ce+"?",Ce,Ue,Fe,Re].join("|")+")",Qe=RegExp(Be,"g"),Ye=RegExp(Ce,"g"),et=RegExp(De+"(?="+De+")|"+Xe+Ze,"g"),tt=RegExp([je+"?"+Ne+"+"+ze+"(?="+[Oe,je,"$"].join("|")+")",We+"+"+Ge+"(?="+[Oe,je+qe,"$"].join("|")+")",je+"?"+qe+"+"+ze,je+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Je].join("|"),"g"),rt=RegExp("["+He+we+Se+ke+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};st[I]=st[N]=st[L]=st[D]=st[M]=st[U]=st[F]=st[j]=st[H]=!0,st[g]=st[y]=st[C]=st[A]=st[P]=st[b]=st[v]=st[_]=st[S]=st[E]=st[x]=st[k]=st[T]=st[B]=st[O]=!1;var at={};at[g]=at[y]=at[C]=at[P]=at[A]=at[b]=at[I]=at[N]=at[L]=at[D]=at[M]=at[S]=at[E]=at[x]=at[k]=at[T]=at[B]=at[R]=at[U]=at[F]=at[j]=at[H]=!0,at[v]=at[_]=at[O]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,lt=parseInt,ft="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,dt="object"==typeof self&&self&&self.Object===Object&&self,pt=ft||dt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,gt=mt&&mt.exports===ht,yt=gt&&ft.process,At=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),bt=At&&At.isArrayBuffer,vt=At&&At.isDate,_t=At&&At.isMap,wt=At&&At.isRegExp,St=At&&At.isSet,Et=At&&At.isTypedArray;function xt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function $t(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o-1}function Ct(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1;);return r}function tr(e,t){for(var r=e.length;r--&&jt(t,e[r],0)>-1;);return r}var rr=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),nr=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(e){return"\\"+ut[e]}function ir(e){return rt.test(e)}function sr(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function ar(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,s=[];++r",""":'"',"'":"'"});var mr=function e(t){var ie,we=(t=null==t?pt:mr.defaults(pt.Object(),t,mr.pick(pt,ot))).Array,Se=t.Date,Ee=t.Error,xe=t.Function,$e=t.Math,ke=t.Object,Te=t.RegExp,Be=t.String,Re=t.TypeError,Oe=we.prototype,Ce=xe.prototype,Pe=ke.prototype,Ie=t["__core-js_shared__"],Ne=Ce.toString,Le=Pe.hasOwnProperty,De=0,Me=(ie=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",Ue=Pe.toString,Fe=Ne.call(ke),je=pt._,He=Te("^"+Ne.call(Le).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=gt?t.Buffer:r,We=t.Symbol,ze=t.Uint8Array,Ge=qe?qe.allocUnsafe:r,Ve=ar(ke.getPrototypeOf,ke),Ke=ke.create,Ze=Pe.propertyIsEnumerable,Je=Oe.splice,Xe=We?We.isConcatSpreadable:r,et=We?We.iterator:r,rt=We?We.toStringTag:r,ut=function(){try{var e=pi(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,dt=Se&&Se.now!==pt.Date.now&&Se.now,ht=t.setTimeout!==pt.setTimeout&&t.setTimeout,mt=$e.ceil,yt=$e.floor,At=ke.getOwnPropertySymbols,Mt=qe?qe.isBuffer:r,Gt=t.isFinite,gr=Oe.join,yr=ar(ke.keys,ke),Ar=$e.max,br=$e.min,vr=Se.now,_r=t.parseInt,wr=$e.random,Sr=Oe.reverse,Er=pi(t,"DataView"),xr=pi(t,"Map"),$r=pi(t,"Promise"),kr=pi(t,"Set"),Tr=pi(t,"WeakMap"),Br=pi(ke,"create"),Rr=Tr&&new Tr,Or={},Cr=Ui(Er),Pr=Ui(xr),Ir=Ui($r),Nr=Ui(kr),Lr=Ui(Tr),Dr=We?We.prototype:r,Mr=Dr?Dr.valueOf:r,Ur=Dr?Dr.toString:r;function Fr(e){if(ra(e)&&!zs(e)&&!(e instanceof Wr)){if(e instanceof qr)return e;if(Le.call(e,"__wrapped__"))return Fi(e)}return new qr(e)}var jr=function(){function e(){}return function(t){if(!ta(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Hr(){}function qr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Wr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cn(e,t,n,o,i,s){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=i?n(e,o,i,s):n(e)),a!==r)return a;if(!ta(e))return e;var f=zs(e);if(f){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!u)return Oo(e,a)}else{var d=gi(e),p=d==_||d==w;if(Zs(e))return xo(e,u);if(d==x||d==g||p&&!i){if(a=c||p?{}:Ai(e),!u)return c?function(e,t){return Co(e,mi(e),t)}(e,function(e,t){return e&&Co(t,Pa(t),e)}(a,e)):function(e,t){return Co(e,hi(e),t)}(e,on(a,e))}else{if(!at[d])return i?e:{};a=function(e,t,r){var n=e.constructor;switch(t){case C:return $o(e);case A:case b:return new n(+e);case P:return function(e,t){var r=t?$o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case I:case N:case L:case D:case M:case U:case F:case j:case H:return ko(e,r);case S:return new n;case E:case B:return new n(e);case k:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new n;case R:return o=e,Mr?ke(Mr.call(o)):{}}var o}(e,d,u)}}s||(s=new Zr);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach(function(r){a.add(cn(r,t,n,r,e,s))}):na(e)&&e.forEach(function(r,o){a.set(o,cn(r,t,n,o,e,s))});var m=f?r:(l?c?si:ii:c?Pa:Ca)(e);return kt(m||e,function(r,o){m&&(r=e[o=r]),tn(a,o,cn(r,t,n,o,e,s))}),a}function ln(e,t,n){var o=n.length;if(null==e)return!o;for(e=ke(e);o--;){var i=n[o],s=t[i],a=e[i];if(a===r&&!(i in e)||!s(a))return!1}return!0}function fn(e,t,o){if("function"!=typeof e)throw new Re(n);return Ci(function(){e.apply(r,o)},t)}function dn(e,t,r,n){var o=-1,i=Ot,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;r&&(t=Pt(t,Xt(r))),n?(i=Ct,s=!1):t.length>=200&&(i=Yt,s=!1,t=new Kr(t));e:for(;++o-1},Gr.prototype.set=function(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new zr,map:new(xr||Gr),string:new zr}},Vr.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Vr.prototype.get=function(e){return fi(this,e).get(e)},Vr.prototype.has=function(e){return fi(this,e).has(e)},Vr.prototype.set=function(e,t){var r=fi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,o),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.clear=function(){this.__data__=new Gr,this.size=0},Zr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Zr.prototype.get=function(e){return this.__data__.get(e)},Zr.prototype.has=function(e){return this.__data__.has(e)},Zr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Gr){var n=r.__data__;if(!xr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vr(n)}return r.set(e,t),this.size=r.size,this};var pn=No(_n),hn=No(wn,!0);function mn(e,t){var r=!0;return pn(e,function(e,n,o){return r=!!t(e,n,o)}),r}function gn(e,t,n){for(var o=-1,i=e.length;++o0&&r(a)?t>1?An(a,t-1,r,n,o):It(o,a):n||(o[o.length]=a)}return o}var bn=Lo(),vn=Lo(!0);function _n(e,t){return e&&bn(e,t,Ca)}function wn(e,t){return e&&vn(e,t,Ca)}function Sn(e,t){return Rt(t,function(t){return Qs(e[t])})}function En(e,t){for(var n=0,o=(t=_o(t,e)).length;null!=e&&nt}function Tn(e,t){return null!=e&&Le.call(e,t)}function Bn(e,t){return null!=e&&t in ke(e)}function Rn(e,t,n){for(var o=n?Ct:Ot,i=e[0].length,s=e.length,a=s,u=we(s),c=1/0,l=[];a--;){var f=e[a];a&&t&&(f=Pt(f,Xt(t))),c=br(f.length,c),u[a]=!n&&(t||i>=120&&f.length>=120)?new Kr(a&&f):r}f=e[0];var d=-1,p=u[0];e:for(;++d=a?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function Gn(e,t,r){for(var n=-1,o=t.length,i={};++n-1;)a!==e&&Je.call(a,u,1),Je.call(e,u,1);return e}function Kn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;vi(o)?Je.call(e,o,1):po(e,o)}}return e}function Zn(e,t){return e+yt(wr()*(t-e+1))}function Jn(e,t){var r="";if(!e||t<1||t>d)return r;do{t%2&&(r+=e),(t=yt(t/2))&&(e+=e)}while(t);return r}function Xn(e,t){return Pi(Ti(e,t,ou),e+"")}function Qn(e){return Xr(ja(e))}function Yn(e,t){var r=ja(e);return Li(r,un(t,0,r.length))}function eo(e,t,n,o){if(!ta(e))return e;for(var i=-1,s=(t=_o(t,e)).length,a=s-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=we(o);++n>>1,s=e[i];null!==s&&!ca(s)&&(r?s<=t:s=200){var c=t?null:Xo(e);if(c)return cr(c);s=!1,o=Yt,u=new Kr}else u=t?[]:a;e:for(;++n=o?e:oo(e,t,n)}var Eo=ft||function(e){return pt.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var r=e.length,n=Ge?Ge(r):new e.constructor(r);return e.copy(n),n}function $o(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function ko(e,t){var r=t?$o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function To(e,t){if(e!==t){var n=e!==r,o=null===e,i=e==e,s=ca(e),a=t!==r,u=null===t,c=t==t,l=ca(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||o&&a&&c||!n&&c||!i)return 1;if(!o&&!s&&!l&&e1?n[i-1]:r,a=i>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(i--,s):r,a&&_i(n[0],n[1],a)&&(s=i<3?r:s,i=1),t=ke(t);++o-1?i[s?t[a]:a]:r}}function jo(e){return oi(function(t){var o=t.length,i=o,s=qr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Re(n);if(s&&!u&&"wrapper"==ui(a))var u=new qr([],!0)}for(i=u?i:o;++i1&&b.reverse(),d&&lu))return!1;var l=s.get(e),f=s.get(t);if(l&&f)return l==t&&f==e;var d=-1,p=!0,h=2&n?new Kr:r;for(s.set(e,t),s.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return kt(m,function(r){var n="_."+r[0];t&r[1]&&!Ot(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ue):[]}(n),r)))}function Ni(e){var t=0,n=0;return function(){var o=vr(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Li(e,t){var n=-1,o=e.length,i=o-1;for(t=t===r?o:t;++n1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ss(e,n)});function ps(e){var t=Fr(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ms=oi(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return an(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wr&&vi(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:r}),new qr(o,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(i)});var gs=Po(function(e,t,r){Le.call(e,r)?++e[r]:sn(e,r,1)});var ys=Fo(Wi),As=Fo(zi);function bs(e,t){return(zs(e)?kt:pn)(e,li(t,3))}function vs(e,t){return(zs(e)?Tt:hn)(e,li(t,3))}var _s=Po(function(e,t,r){Le.call(e,r)?e[r].push(t):sn(e,r,[t])});var ws=Xn(function(e,t,r){var n=-1,o="function"==typeof t,i=Vs(e)?we(e.length):[];return pn(e,function(e){i[++n]=o?xt(t,e,r):On(e,t,r)}),i}),Ss=Po(function(e,t,r){sn(e,r,t)});function Es(e,t){return(zs(e)?Pt:Fn)(e,li(t,3))}var xs=Po(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var $s=Xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&_i(e,t[0],t[1])?t=[]:r>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),zn(e,An(t,1),[])}),ks=dt||function(){return pt.Date.now()};function Ts(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Yo(e,c,r,r,r,r,t)}function Bs(e,t){var o;if("function"!=typeof t)throw new Re(n);return e=ma(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Rs=Xn(function(e,t,r){var n=1;if(r.length){var o=ur(r,ci(Rs));n|=a}return Yo(e,n,t,r,o)}),Os=Xn(function(e,t,r){var n=3;if(r.length){var o=ur(r,ci(Os));n|=a}return Yo(t,n,e,r,o)});function Cs(e,t,o){var i,s,a,u,c,l,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Re(n);function m(t){var n=i,o=s;return i=s=r,f=t,u=e.apply(o,n)}function g(e){var n=e-l;return l===r||n>=t||n<0||p&&e-f>=a}function y(){var e=ks();if(g(e))return A(e);c=Ci(y,function(e){var r=t-(e-l);return p?br(r,a-(e-f)):r}(e))}function A(e){return c=r,h&&i?m(e):(i=s=r,u)}function b(){var e=ks(),n=g(e);if(i=arguments,s=this,l=e,n){if(c===r)return function(e){return f=e,c=Ci(y,t),d?m(e):u}(l);if(p)return Eo(c),c=Ci(y,t),m(l)}return c===r&&(c=Ci(y,t)),u}return t=ya(t)||0,ta(o)&&(d=!!o.leading,a=(p="maxWait"in o)?Ar(ya(o.maxWait)||0,t):a,h="trailing"in o?!!o.trailing:h),b.cancel=function(){c!==r&&Eo(c),f=0,i=l=s=c=r},b.flush=function(){return c===r?u:A(ks())},b}var Ps=Xn(function(e,t){return fn(e,1,t)}),Is=Xn(function(e,t,r){return fn(e,ya(t)||0,r)});function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(n);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ns.Cache||Vr),r}function Ls(e){if("function"!=typeof e)throw new Re(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Vr;var Ds=wo(function(e,t){var r=(t=1==t.length&&zs(t[0])?Pt(t[0],Xt(li())):Pt(An(t,1),Xt(li()))).length;return Xn(function(n){for(var o=-1,i=br(n.length,r);++o=t}),Ws=Cn(function(){return arguments}())?Cn:function(e){return ra(e)&&Le.call(e,"callee")&&!Ze.call(e,"callee")},zs=we.isArray,Gs=bt?Xt(bt):function(e){return ra(e)&&$n(e)==C};function Vs(e){return null!=e&&ea(e.length)&&!Qs(e)}function Ks(e){return ra(e)&&Vs(e)}var Zs=Mt||yu,Js=vt?Xt(vt):function(e){return ra(e)&&$n(e)==b};function Xs(e){if(!ra(e))return!1;var t=$n(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Qs(e){if(!ta(e))return!1;var t=$n(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ys(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ra(e){return null!=e&&"object"==typeof e}var na=_t?Xt(_t):function(e){return ra(e)&&gi(e)==S};function oa(e){return"number"==typeof e||ra(e)&&$n(e)==E}function ia(e){if(!ra(e)||$n(e)!=x)return!1;var t=Ve(e);if(null===t)return!0;var r=Le.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ne.call(r)==Fe}var sa=wt?Xt(wt):function(e){return ra(e)&&$n(e)==k};var aa=St?Xt(St):function(e){return ra(e)&&gi(e)==T};function ua(e){return"string"==typeof e||!zs(e)&&ra(e)&&$n(e)==B}function ca(e){return"symbol"==typeof e||ra(e)&&$n(e)==R}var la=Et?Xt(Et):function(e){return ra(e)&&ea(e.length)&&!!st[$n(e)]};var fa=Ko(Un),da=Ko(function(e,t){return e<=t});function pa(e){if(!e)return[];if(Vs(e))return ua(e)?dr(e):Oo(e);if(et&&e[et])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[et]());var t=gi(e);return(t==S?sr:t==T?cr:ja)(e)}function ha(e){return e?(e=ya(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=ha(e),r=t%1;return t==t?r?t-r:t:0}function ga(e){return e?un(ma(e),0,h):0}function ya(e){if("number"==typeof e)return e;if(ca(e))return p;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=me.test(e);return r||ye.test(e)?lt(e.slice(2),r?2:8):he.test(e)?p:+e}function Aa(e){return Co(e,Pa(e))}function ba(e){return null==e?"":lo(e)}var va=Io(function(e,t){if(xi(t)||Vs(t))Co(t,Ca(t),e);else for(var r in t)Le.call(t,r)&&tn(e,r,t[r])}),_a=Io(function(e,t){Co(t,Pa(t),e)}),wa=Io(function(e,t,r,n){Co(t,Pa(t),e,n)}),Sa=Io(function(e,t,r,n){Co(t,Ca(t),e,n)}),Ea=oi(an);var xa=Xn(function(e,t){e=ke(e);var n=-1,o=t.length,i=o>2?t[2]:r;for(i&&_i(t[0],t[1],i)&&(o=1);++n1),t}),Co(e,si(e),r),n&&(r=cn(r,7,ri));for(var o=t.length;o--;)po(r,t[o]);return r});var Da=oi(function(e,t){return null==e?{}:function(e,t){return Gn(e,t,function(t,r){return Ta(e,r)})}(e,t)});function Ma(e,t){if(null==e)return{};var r=Pt(si(e),function(e){return[e]});return t=li(t),Gn(e,r,function(e,r){return t(e,r[0])})}var Ua=Qo(Ca),Fa=Qo(Pa);function ja(e){return null==e?[]:Qt(e,Ca(e))}var Ha=Mo(function(e,t,r){return t=t.toLowerCase(),e+(r?qa(t):t)});function qa(e){return Xa(ba(e).toLowerCase())}function Wa(e){return(e=ba(e))&&e.replace(be,rr).replace(Ye,"")}var za=Mo(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Ga=Mo(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Va=Do("toLowerCase");var Ka=Mo(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Za=Mo(function(e,t,r){return e+(r?" ":"")+Xa(t)});var Ja=Mo(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Xa=Do("toUpperCase");function Qa(e,t,n){return e=ba(e),(t=n?r:t)===r?function(e){return nt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Ya=Xn(function(e,t){try{return xt(e,r,t)}catch(e){return Xs(e)?e:new Ee(e)}}),eu=oi(function(e,t){return kt(t,function(t){t=Mi(t),sn(e,t,Rs(e[t],e))}),e});function tu(e){return function(){return e}}var ru=jo(),nu=jo(!0);function ou(e){return e}function iu(e){return Ln("function"==typeof e?e:cn(e,1))}var su=Xn(function(e,t){return function(r){return On(r,e,t)}}),au=Xn(function(e,t){return function(r){return On(e,r,t)}});function uu(e,t,r){var n=Ca(t),o=Sn(t,n);null!=r||ta(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=Sn(t,Ca(t)));var i=!(ta(r)&&"chain"in r&&!r.chain),s=Qs(e);return kt(o,function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Oo(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})}),e}function cu(){}var lu=zo(Pt),fu=zo(Bt),du=zo(Dt);function pu(e){return wi(e)?zt(Mi(e)):function(e){return function(t){return En(t,e)}}(e)}var hu=Vo(),mu=Vo(!0);function gu(){return[]}function yu(){return!1}var Au=Wo(function(e,t){return e+t},0),bu=Jo("ceil"),vu=Wo(function(e,t){return e/t},1),_u=Jo("floor");var wu,Su=Wo(function(e,t){return e*t},1),Eu=Jo("round"),xu=Wo(function(e,t){return e-t},0);return Fr.after=function(e,t){if("function"!=typeof t)throw new Re(n);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Fr.ary=Ts,Fr.assign=va,Fr.assignIn=_a,Fr.assignInWith=wa,Fr.assignWith=Sa,Fr.at=Ea,Fr.before=Bs,Fr.bind=Rs,Fr.bindAll=eu,Fr.bindKey=Os,Fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},Fr.chain=ps,Fr.chunk=function(e,t,n){t=(n?_i(e,t,n):t===r)?1:Ar(ma(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,s=0,a=we(mt(o/t));ii?0:i+n),(o=o===r||o>i?i:ma(o))<0&&(o+=i),o=n>o?0:ga(o);n>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=lo(t))&&ir(e)?So(dr(e),0,n):e.split(t,n):[]},Fr.spread=function(e,t){if("function"!=typeof e)throw new Re(n);return t=null==t?0:Ar(ma(t),0),Xn(function(r){var n=r[t],o=So(r,0,t);return n&&It(o,n),xt(e,this,o)})},Fr.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Fr.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===r?1:ma(t))<0?0:t):[]},Fr.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=n||t===r?1:ma(t)))<0?0:t,o):[]},Fr.takeRightWhile=function(e,t){return e&&e.length?mo(e,li(t,3),!1,!0):[]},Fr.takeWhile=function(e,t){return e&&e.length?mo(e,li(t,3)):[]},Fr.tap=function(e,t){return t(e),e},Fr.throttle=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new Re(n);return ta(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Cs(e,t,{leading:o,maxWait:t,trailing:i})},Fr.thru=hs,Fr.toArray=pa,Fr.toPairs=Ua,Fr.toPairsIn=Fa,Fr.toPath=function(e){return zs(e)?Pt(e,Mi):ca(e)?[e]:Oo(Di(ba(e)))},Fr.toPlainObject=Aa,Fr.transform=function(e,t,r){var n=zs(e),o=n||Zs(e)||la(e);if(t=li(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:ta(e)&&Qs(i)?jr(Ve(e)):{}}return(o?kt:_n)(e,function(e,n,o){return t(r,e,n,o)}),r},Fr.unary=function(e){return Ts(e,1)},Fr.union=rs,Fr.unionBy=ns,Fr.unionWith=os,Fr.uniq=function(e){return e&&e.length?fo(e):[]},Fr.uniqBy=function(e,t){return e&&e.length?fo(e,li(t,2)):[]},Fr.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?fo(e,r,t):[]},Fr.unset=function(e,t){return null==e||po(e,t)},Fr.unzip=is,Fr.unzipWith=ss,Fr.update=function(e,t,r){return null==e?e:ho(e,t,vo(r))},Fr.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:ho(e,t,vo(n),o)},Fr.values=ja,Fr.valuesIn=function(e){return null==e?[]:Qt(e,Pa(e))},Fr.without=as,Fr.words=Qa,Fr.wrap=function(e,t){return Ms(vo(t),e)},Fr.xor=us,Fr.xorBy=cs,Fr.xorWith=ls,Fr.zip=fs,Fr.zipObject=function(e,t){return Ao(e||[],t||[],tn)},Fr.zipObjectDeep=function(e,t){return Ao(e||[],t||[],eo)},Fr.zipWith=ds,Fr.entries=Ua,Fr.entriesIn=Fa,Fr.extend=_a,Fr.extendWith=wa,uu(Fr,Fr),Fr.add=Au,Fr.attempt=Ya,Fr.camelCase=Ha,Fr.capitalize=qa,Fr.ceil=bu,Fr.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ya(n))==n?n:0),t!==r&&(t=(t=ya(t))==t?t:0),un(ya(e),t,n)},Fr.clone=function(e){return cn(e,4)},Fr.cloneDeep=function(e){return cn(e,5)},Fr.cloneDeepWith=function(e,t){return cn(e,5,t="function"==typeof t?t:r)},Fr.cloneWith=function(e,t){return cn(e,4,t="function"==typeof t?t:r)},Fr.conformsTo=function(e,t){return null==t||ln(e,t,Ca(t))},Fr.deburr=Wa,Fr.defaultTo=function(e,t){return null==e||e!=e?t:e},Fr.divide=vu,Fr.endsWith=function(e,t,n){e=ba(e),t=lo(t);var o=e.length,i=n=n===r?o:un(ma(n),0,o);return(n-=t.length)>=0&&e.slice(n,i)==t},Fr.eq=js,Fr.escape=function(e){return(e=ba(e))&&Z.test(e)?e.replace(V,nr):e},Fr.escapeRegExp=function(e){return(e=ba(e))&&ne.test(e)?e.replace(re,"\\$&"):e},Fr.every=function(e,t,n){var o=zs(e)?Bt:mn;return n&&_i(e,t,n)&&(t=r),o(e,li(t,3))},Fr.find=ys,Fr.findIndex=Wi,Fr.findKey=function(e,t){return Ut(e,li(t,3),_n)},Fr.findLast=As,Fr.findLastIndex=zi,Fr.findLastKey=function(e,t){return Ut(e,li(t,3),wn)},Fr.floor=_u,Fr.forEach=bs,Fr.forEachRight=vs,Fr.forIn=function(e,t){return null==e?e:bn(e,li(t,3),Pa)},Fr.forInRight=function(e,t){return null==e?e:vn(e,li(t,3),Pa)},Fr.forOwn=function(e,t){return e&&_n(e,li(t,3))},Fr.forOwnRight=function(e,t){return e&&wn(e,li(t,3))},Fr.get=ka,Fr.gt=Hs,Fr.gte=qs,Fr.has=function(e,t){return null!=e&&yi(e,t,Tn)},Fr.hasIn=Ta,Fr.head=Vi,Fr.identity=ou,Fr.includes=function(e,t,r,n){e=Vs(e)?e:ja(e),r=r&&!n?ma(r):0;var o=e.length;return r<0&&(r=Ar(o+r,0)),ua(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&jt(e,t,r)>-1},Fr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ma(r);return o<0&&(o=Ar(n+o,0)),jt(e,t,o)},Fr.inRange=function(e,t,n){return t=ha(t),n===r?(n=t,t=0):n=ha(n),function(e,t,r){return e>=br(t,r)&&e=-9007199254740991&&e<=d},Fr.isSet=aa,Fr.isString=ua,Fr.isSymbol=ca,Fr.isTypedArray=la,Fr.isUndefined=function(e){return e===r},Fr.isWeakMap=function(e){return ra(e)&&gi(e)==O},Fr.isWeakSet=function(e){return ra(e)&&"[object WeakSet]"==$n(e)},Fr.join=function(e,t){return null==e?"":gr.call(e,t)},Fr.kebabCase=za,Fr.last=Xi,Fr.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=ma(n))<0?Ar(o+i,0):br(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Ft(e,qt,i,!0)},Fr.lowerCase=Ga,Fr.lowerFirst=Va,Fr.lt=fa,Fr.lte=da,Fr.max=function(e){return e&&e.length?gn(e,ou,kn):r},Fr.maxBy=function(e,t){return e&&e.length?gn(e,li(t,2),kn):r},Fr.mean=function(e){return Wt(e,ou)},Fr.meanBy=function(e,t){return Wt(e,li(t,2))},Fr.min=function(e){return e&&e.length?gn(e,ou,Un):r},Fr.minBy=function(e,t){return e&&e.length?gn(e,li(t,2),Un):r},Fr.stubArray=gu,Fr.stubFalse=yu,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=Su,Fr.nth=function(e,t){return e&&e.length?Wn(e,ma(t)):r},Fr.noConflict=function(){return pt._===this&&(pt._=je),this},Fr.noop=cu,Fr.now=ks,Fr.pad=function(e,t,r){e=ba(e);var n=(t=ma(t))?fr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Go(yt(o),r)+e+Go(mt(o),r)},Fr.padEnd=function(e,t,r){e=ba(e);var n=(t=ma(t))?fr(e):0;return t&&nt){var o=e;e=t,t=o}if(n||e%1||t%1){var i=wr();return br(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Zn(e,t)},Fr.reduce=function(e,t,r){var n=zs(e)?Nt:Vt,o=arguments.length<3;return n(e,li(t,4),r,o,pn)},Fr.reduceRight=function(e,t,r){var n=zs(e)?Lt:Vt,o=arguments.length<3;return n(e,li(t,4),r,o,hn)},Fr.repeat=function(e,t,n){return t=(n?_i(e,t,n):t===r)?1:ma(t),Jn(ba(e),t)},Fr.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fr.result=function(e,t,n){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=r);++od)return[];var r=h,n=br(e,h);t=li(t),e-=h;for(var o=Zt(n,t);++r=s)return e;var u=n-fr(o);if(u<1)return o;var c=a?So(a,0,u).join(""):e.slice(0,u);if(i===r)return c+o;if(a&&(u+=c.length-u),sa(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Te(i.source,ba(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var d=l.index;c=c.slice(0,d===r?u:d)}}else if(e.indexOf(lo(i),u)!=u){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+o},Fr.unescape=function(e){return(e=ba(e))&&K.test(e)?e.replace(G,hr):e},Fr.uniqueId=function(e){var t=++De;return ba(e)+t},Fr.upperCase=Ja,Fr.upperFirst=Xa,Fr.each=bs,Fr.eachRight=vs,Fr.first=Vi,uu(Fr,(wu={},_n(Fr,function(e,t){Le.call(Fr.prototype,t)||(wu[t]=e)}),wu),{chain:!1}),Fr.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Fr[e].placeholder=Fr}),kt(["drop","take"],function(e,t){Wr.prototype[e]=function(n){n=n===r?1:Ar(ma(n),0);var o=this.__filtered__&&!t?new Wr(this):this.clone();return o.__filtered__?o.__takeCount__=br(n,o.__takeCount__):o.__views__.push({size:br(n,h),type:e+(o.__dir__<0?"Right":"")}),o},Wr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),kt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;Wr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),kt(["head","last"],function(e,t){var r="take"+(t?"Right":"");Wr.prototype[e]=function(){return this[r](1).value()[0]}}),kt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");Wr.prototype[e]=function(){return this.__filtered__?new Wr(this):this[r](1)}}),Wr.prototype.compact=function(){return this.filter(ou)},Wr.prototype.find=function(e){return this.filter(e).head()},Wr.prototype.findLast=function(e){return this.reverse().find(e)},Wr.prototype.invokeMap=Xn(function(e,t){return"function"==typeof e?new Wr(this):this.map(function(r){return On(r,e,t)})}),Wr.prototype.reject=function(e){return this.filter(Ls(li(e)))},Wr.prototype.slice=function(e,t){e=ma(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=ma(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wr.prototype.toArray=function(){return this.take(h)},_n(Wr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Fr[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(Fr.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,u=t instanceof Wr,c=a[0],l=u||zs(t),f=function(e){var t=i.apply(Fr,It([e],a));return o&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=s&&!d,m=u&&!p;if(!s&&l){t=m?t:new Wr(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[f],thisArg:r}),new qr(g,d)}return h&&m?e.apply(this,a):(g=this.thru(f),h?o?g.value()[0]:g.value():g)})}),kt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Fr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(zs(o)?o:[],e)}return this[r](function(r){return t.apply(zs(r)?r:[],e)})}}),_n(Wr.prototype,function(e,t){var r=Fr[t];if(r){var n=r.name+"";Le.call(Or,n)||(Or[n]=[]),Or[n].push({name:t,func:r})}}),Or[Ho(r,2).name]=[{name:"wrapper",func:r}],Wr.prototype.clone=function(){var e=new Wr(this.__wrapped__);return e.__actions__=Oo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oo(this.__views__),e},Wr.prototype.reverse=function(){if(this.__filtered__){var e=new Wr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=zs(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Fr.prototype.plant=function(e){for(var t,n=this;n instanceof Hr;){var o=Fi(n);o.__index__=0,o.__values__=r,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},Fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wr){var t=e;return this.__actions__.length&&(t=new Wr(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:r}),new qr(t,this.__chain__)}return this.thru(ts)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,et&&(Fr.prototype[et]=function(){return this}),Fr}();mt?((mt.exports=mr)._=mr,ht._=mr):pt._=mr}).call(commonjsGlobal)}(lodash,lodash.exports);var lodashExports=lodash.exports,O=getDefaultExportFromCjs(lodashExports),src={};Object.defineProperty(src,"__esModule",{value:!0});var CashtabConnect_1=src.CashtabConnect=src.CashtabTimeoutError=src.CashtabTransactionDeniedError=CashtabAddressDeniedError_1=src.CashtabAddressDeniedError=src.CashtabExtensionUnavailableError=void 0;class CashtabExtensionUnavailableError extends Error{constructor(e){super(e||"Cashtab extension is not available"),this.name="CashtabExtensionUnavailableError"}}src.CashtabExtensionUnavailableError=CashtabExtensionUnavailableError;class CashtabAddressDeniedError extends Error{constructor(e){super(e||"User denied address request"),this.name="CashtabAddressDeniedError"}}var CashtabAddressDeniedError_1=src.CashtabAddressDeniedError=CashtabAddressDeniedError;class CashtabTransactionDeniedError extends Error{constructor(e){super(e||"User denied transaction request"),this.name="CashtabTransactionDeniedError"}}src.CashtabTransactionDeniedError=CashtabTransactionDeniedError;class CashtabTimeoutError extends Error{constructor(){super("Request timed out"),this.name="CashtabTimeoutError"}}src.CashtabTimeoutError=CashtabTimeoutError;class CashtabConnect{constructor(e=3e4){this.messageListeners=new Map,this.timeout=e,this.setupMessageListener()}setupMessageListener(){"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("message",e=>{if(e.source===window&&e.data&&"FROM_CASHTAB"===e.data.type){const t=this.messageListeners.get("address");t&&(void 0!==e.data.success?(t({success:e.data.success,address:e.data.address,reason:e.data.reason}),this.messageListeners.delete("address")):void 0!==e.data.address?("Address request denied by user"!==e.data.address?e.data.address?t({success:!0,address:e.data.address}):t({success:!1,address:void 0,reason:"Address not provided in response"}):t({success:!1,address:void 0,reason:"User denied the address request"}),this.messageListeners.delete("address")):!1===e.data.addressRequestApproved&&(t({success:!1,address:void 0,reason:"User denied the address request"}),this.messageListeners.delete("address")));const r=this.messageListeners.get("transaction");r&&e.data.txResponse&&(r({success:e.data.txResponse.approved,txid:e.data.txResponse.txid,reason:e.data.txResponse.reason}),this.messageListeners.delete("transaction"))}})}async checkExtensionAvailability(){return"undefined"!=typeof window&&"cashtab"===window.bitcoinAbc}sendMessage(e){return new Promise((t,r)=>{const n=setTimeout(()=>{this.messageListeners.delete("address"),this.messageListeners.delete("transaction"),r(new CashtabTimeoutError)},this.timeout);this.messageListeners.set("address",e=>{clearTimeout(n),t(e)}),"undefined"!=typeof window&&window.postMessage?window.postMessage(e,"*"):r(new CashtabExtensionUnavailableError)})}sendTransactionMessage(e){return new Promise((t,r)=>{const n=setTimeout(()=>{this.messageListeners.delete("transaction"),r(new CashtabTimeoutError)},this.timeout);this.messageListeners.set("transaction",e=>{clearTimeout(n),t(e)}),"undefined"!=typeof window&&window.postMessage?window.postMessage(e,"*"):r(new CashtabExtensionUnavailableError)})}sendMessageNoResponse(e){if("undefined"==typeof window||!window.postMessage)throw new CashtabExtensionUnavailableError;window.postMessage(e,"*")}async requestAddress(){const e=await this.sendMessage({text:"Cashtab",type:"FROM_PAGE",addressRequest:!0});if(!e.success)throw new CashtabAddressDeniedError(e.reason);if(!e.address)throw new Error("No address received from extension");return e.address}async createTransactionFromBip21(e){const t={text:"Cashtab",type:"FROM_PAGE",txInfo:{bip21:e}},r=await this.sendTransactionMessage(t);if(!r.success)throw new CashtabTransactionDeniedError(r.reason);return r}async sendXec(e,t){const r=`${e}?amount=${t}`;return this.sendBip21(r)}async sendToken(e,t,r){const n=`${e}?token_id=${t}&token_decimalized_qty=${r}`;return this.sendBip21(n)}async sendBip21(e){const t={text:"Cashtab",type:"FROM_PAGE",txInfo:{bip21:e}},r=await this.sendTransactionMessage(t);if(!r.success)throw new CashtabTransactionDeniedError(r.reason);return r}destroy(){this.messageListeners.clear()}async waitForExtension(e=3e3){const t=Date.now();for(;Date.now()-tsetTimeout(e,300))}throw new CashtabExtensionUnavailableError("Extension did not become available within the timeout period")}async isExtensionAvailable(){return this.checkExtensionAvailability()}}CashtabConnect_1=src.CashtabConnect=CashtabConnect;var cryptoJs={exports:{}};function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}},empty$1={},empty$2=Object.freeze({__proto__:null,default:empty$1}),require$$0=getAugmentedNamespace(empty$2),hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(e){var t;e.exports=(t=t||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==commonjsGlobal&&commonjsGlobal.crypto&&(r=commonjsGlobal.crypto),!r&&"function"==typeof commonjsRequire)try{r=require$$0}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=s.WordArray=a.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*c,i);if(c){for(var f=0;f>>2]|=e[o]<<24-o%4*8;r.call(this,n,t)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)}(libTypedarrays,libTypedarrays.exports)),libTypedarrays.exports}libTypedarrays.exports;var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(e){var t;e.exports=(t=requireCore(),function(){var e=t,r=e.lib.WordArray,n=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>1]|=e.charCodeAt(o)<<16-o%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return r.create(n,2*t)}}}(),t.enc.Utf16)}(encUtf16,encUtf16.exports)),encUtf16.exports}encUtf16.exports;var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(e){var t;e.exports=(t=requireCore(),function(){var e=t,r=e.lib.WordArray;function n(e,t,n){for(var o=[],i=0,s=0;s>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));var u=n.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(r[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|r[s+2>>>2]>>>24-(s+2)%4*8&255,u=0;u<4&&s+.75*u>>6*(3-u)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],u=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],A=e[t+7],b=e[t+8],v=e[t+9],_=e[t+10],w=e[t+11],S=e[t+12],E=e[t+13],x=e[t+14],$=e[t+15],k=i[0],T=i[1],B=i[2],R=i[3];k=c(k,T,B,R,s,7,a[0]),R=c(R,k,T,B,u,12,a[1]),B=c(B,R,k,T,p,17,a[2]),T=c(T,B,R,k,h,22,a[3]),k=c(k,T,B,R,m,7,a[4]),R=c(R,k,T,B,g,12,a[5]),B=c(B,R,k,T,y,17,a[6]),T=c(T,B,R,k,A,22,a[7]),k=c(k,T,B,R,b,7,a[8]),R=c(R,k,T,B,v,12,a[9]),B=c(B,R,k,T,_,17,a[10]),T=c(T,B,R,k,w,22,a[11]),k=c(k,T,B,R,S,7,a[12]),R=c(R,k,T,B,E,12,a[13]),B=c(B,R,k,T,x,17,a[14]),k=l(k,T=c(T,B,R,k,$,22,a[15]),B,R,u,5,a[16]),R=l(R,k,T,B,y,9,a[17]),B=l(B,R,k,T,w,14,a[18]),T=l(T,B,R,k,s,20,a[19]),k=l(k,T,B,R,g,5,a[20]),R=l(R,k,T,B,_,9,a[21]),B=l(B,R,k,T,$,14,a[22]),T=l(T,B,R,k,m,20,a[23]),k=l(k,T,B,R,v,5,a[24]),R=l(R,k,T,B,x,9,a[25]),B=l(B,R,k,T,h,14,a[26]),T=l(T,B,R,k,b,20,a[27]),k=l(k,T,B,R,E,5,a[28]),R=l(R,k,T,B,p,9,a[29]),B=l(B,R,k,T,A,14,a[30]),k=f(k,T=l(T,B,R,k,S,20,a[31]),B,R,g,4,a[32]),R=f(R,k,T,B,b,11,a[33]),B=f(B,R,k,T,w,16,a[34]),T=f(T,B,R,k,x,23,a[35]),k=f(k,T,B,R,u,4,a[36]),R=f(R,k,T,B,m,11,a[37]),B=f(B,R,k,T,A,16,a[38]),T=f(T,B,R,k,_,23,a[39]),k=f(k,T,B,R,E,4,a[40]),R=f(R,k,T,B,s,11,a[41]),B=f(B,R,k,T,h,16,a[42]),T=f(T,B,R,k,y,23,a[43]),k=f(k,T,B,R,v,4,a[44]),R=f(R,k,T,B,S,11,a[45]),B=f(B,R,k,T,$,16,a[46]),k=d(k,T=f(T,B,R,k,p,23,a[47]),B,R,s,6,a[48]),R=d(R,k,T,B,A,10,a[49]),B=d(B,R,k,T,x,15,a[50]),T=d(T,B,R,k,g,21,a[51]),k=d(k,T,B,R,S,6,a[52]),R=d(R,k,T,B,h,10,a[53]),B=d(B,R,k,T,_,15,a[54]),T=d(T,B,R,k,u,21,a[55]),k=d(k,T,B,R,b,6,a[56]),R=d(R,k,T,B,$,10,a[57]),B=d(B,R,k,T,y,15,a[58]),T=d(T,B,R,k,E,21,a[59]),k=d(k,T,B,R,m,6,a[60]),R=d(R,k,T,B,w,10,a[61]),B=d(B,R,k,T,p,15,a[62]),T=d(T,B,R,k,v,21,a[63]),i[0]=i[0]+k|0,i[1]=i[1]+T|0,i[2]=i[2]+B|0,i[3]=i[3]+R|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),s=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,u=a.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+o+s;return(a<>>32-i)+t}function l(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+o+s;return(a<>>32-i)+t}function f(e,t,r,n,o,i,s){var a=e+(t^r^n)+o+s;return(a<>>32-i)+t}function d(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+o+s;return(a<>>32-i)+t}r.MD5=i._createHelper(u),r.HmacMD5=i._createHmacHelper(u)}(Math),t.MD5)}(md5,md5.exports)),md5.exports}md5.exports;var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(e){var t;e.exports=(t=requireCore(),function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,s=[],a=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],u=r[4],c=0;c<80;c++){if(c<16)s[c]=0|e[t+c];else{var l=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=l<<1|l>>>31}var f=(n<<5|n>>>27)+u+s[c];f+=c<20?1518500249+(o&i|~o&a):c<40?1859775393+(o^i^a):c<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,u=a,a=i,i=o<<30|o>>>2,o=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=o._createHelper(a),e.HmacSHA1=o._createHmacHelper(a)}(),t.SHA1)}(sha1,sha1.exports)),sha1.exports}sha1.exports;var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(e){var t;e.exports=(t=requireCore(),function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.algo,a=[],u=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),u[o]=r(e.pow(n,1/3)),o++),n++}();var c=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],l=r[5],f=r[6],d=r[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+y+c[p-16]}var A=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&f)+u[p]+c[p];d=f,f=l,l=a,a=s+v|0,s=i,i=o,o=n,n=v+(b+A)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=i._createHelper(l),r.HmacSHA256=i._createHmacHelper(l)}(Math),t.SHA256)}(sha256,sha256.exports)),sha256.exports}sha256.exports;var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(e){var t;e.exports=(t=requireCore(),requireSha256(),function(){var e=t,r=e.lib.WordArray,n=e.algo,o=n.SHA256,i=n.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=o._createHelper(i),e.HmacSHA224=o._createHmacHelper(i)}(),t.SHA224)}(sha224,sha224.exports)),sha224.exports}sha224.exports;var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(e){var t;e.exports=(t=requireCore(),requireX64Core(),function(){var e=t,r=e.lib.Hasher,n=e.x64,o=n.Word,i=n.WordArray,s=e.algo;function a(){return o.create.apply(o,arguments)}var u=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=a()}();var l=s.SHA512=r.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],l=r[5],f=r[6],d=r[7],p=n.high,h=n.low,m=o.high,g=o.low,y=i.high,A=i.low,b=s.high,v=s.low,_=a.high,w=a.low,S=l.high,E=l.low,x=f.high,$=f.low,k=d.high,T=d.low,B=p,R=h,O=m,C=g,P=y,I=A,N=b,L=v,D=_,M=w,U=S,F=E,j=x,H=$,q=k,W=T,z=0;z<80;z++){var G,V,K=c[z];if(z<16)V=K.high=0|e[t+2*z],G=K.low=0|e[t+2*z+1];else{var Z=c[z-15],J=Z.high,X=Z.low,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Y=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=c[z-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=c[z-7],se=ie.high,ae=ie.low,ue=c[z-16],ce=ue.high,le=ue.low;V=(V=(V=Q+se+((G=Y+ae)>>>0>>0?1:0))+ne+((G+=oe)>>>0>>0?1:0))+ce+((G+=le)>>>0>>0?1:0),K.high=V,K.low=G}var fe,de=D&U^~D&j,pe=M&F^~M&H,he=B&O^B&P^O&P,me=R&C^R&I^C&I,ge=(B>>>28|R<<4)^(B<<30|R>>>2)^(B<<25|R>>>7),ye=(R>>>28|B<<4)^(R<<30|B>>>2)^(R<<25|B>>>7),Ae=(D>>>14|M<<18)^(D>>>18|M<<14)^(D<<23|M>>>9),be=(M>>>14|D<<18)^(M>>>18|D<<14)^(M<<23|D>>>9),ve=u[z],_e=ve.high,we=ve.low,Se=q+Ae+((fe=W+be)>>>0>>0?1:0),Ee=ye+me;q=j,W=H,j=U,H=F,U=D,F=M,D=N+(Se=(Se=(Se=Se+de+((fe+=pe)>>>0>>0?1:0))+_e+((fe+=we)>>>0>>0?1:0))+V+((fe+=G)>>>0>>0?1:0))+((M=L+fe|0)>>>0>>0?1:0)|0,N=P,L=I,P=O,I=C,O=B,C=R,B=Se+(ge+he+(Ee>>>0>>0?1:0))+((R=fe+Ee|0)>>>0>>0?1:0)|0}h=n.low=h+R,n.high=p+B+(h>>>0>>0?1:0),g=o.low=g+C,o.high=m+O+(g>>>0>>0?1:0),A=i.low=A+I,i.high=y+P+(A>>>0>>0?1:0),v=s.low=v+L,s.high=b+N+(v>>>0>>0?1:0),w=a.low=w+M,a.high=_+D+(w>>>0>>0?1:0),E=l.low=E+F,l.high=S+U+(E>>>0>>0?1:0),$=f.low=$+H,f.high=x+j+($>>>0>>0?1:0),T=d.low=T+W,d.high=k+q+(T>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=r._createHelper(l),e.HmacSHA512=r._createHmacHelper(l)}(),t.SHA512)}(sha512,sha512.exports)),sha512.exports}sha512.exports;var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(e){var t;e.exports=(t=requireCore(),requireX64Core(),requireSha512(),function(){var e=t,r=e.x64,n=r.Word,o=r.WordArray,i=e.algo,s=i.SHA512,a=i.SHA384=s.extend({_doReset:function(){this._hash=new o.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a)}(),t.SHA384)}(sha384,sha384.exports)),sha384.exports}sha384.exports;var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(e){var t;e.exports=(t=requireCore(),requireX64Core(),function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.x64.Word,a=r.algo,u=[],c=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){u[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,f=0,d=0;d<7;d++){if(1&o){var p=(1<>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(T=r[o]).high^=s,T.low^=i}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var p=0,h=0,m=0;m<5;m++)p^=(T=r[d+5*m]).high,h^=T.low;var g=f[d];g.high=p,g.low=h}for(d=0;d<5;d++){var y=f[(d+4)%5],A=f[(d+1)%5],b=A.high,v=A.low;for(p=y.high^(b<<1|v>>>31),h=y.low^(v<<1|b>>>31),m=0;m<5;m++)(T=r[d+5*m]).high^=p,T.low^=h}for(var _=1;_<25;_++){var w=(T=r[_]).high,S=T.low,E=u[_];E<32?(p=w<>>32-E,h=S<>>32-E):(p=S<>>64-E,h=w<>>64-E);var x=f[c[_]];x.high=p,x.low=h}var $=f[0],k=r[0];for($.high=k.high,$.low=k.low,d=0;d<5;d++)for(m=0;m<5;m++){var T=r[_=d+5*m],B=f[_],R=f[(d+1)%5+5*m],O=f[(d+2)%5+5*m];T.high=B.high^~R.high&O.high,T.low=B.low^~R.low&O.low}T=r[0];var C=l[a];T.high^=C.high,T.low^=C.low}},_doFinalize:function(){var t=this._data,r=t.words;this._nDataBytes;var n=8*t.sigBytes,i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,u=a/8,c=[],l=0;l>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(d)}return new o.init(c,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=i._createHelper(d),r.HmacSHA3=i._createHmacHelper(d)}(Math),t.SHA3)}(sha3,sha3.exports)),sha3.exports}sha3.exports;var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(e){var t;e.exports=(t=requireCore(), + */function requireLodash(){return hasRequiredLodash||(hasRequiredLodash=1,function(e,t){(function(){var r,n="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",s=32,a=128,l=256,u=1/0,c=9007199254740991,d=NaN,f=4294967295,p=[["ary",a],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",l]],h="[object Arguments]",m="[object Array]",g="[object Boolean]",y="[object Date]",A="[object Error]",b="[object Function]",v="[object GeneratorFunction]",w="[object Map]",S="[object Number]",_="[object Object]",x="[object Promise]",E="[object RegExp]",k="[object Set]",T="[object String]",R="[object Symbol]",C="[object WeakMap]",B="[object ArrayBuffer]",O="[object DataView]",I="[object Float32Array]",P="[object Float64Array]",$="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",D="[object Uint8ClampedArray]",q="[object Uint16Array]",U="[object Uint32Array]",F=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(z.source),G=RegExp(W.source),K=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,Y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),re=/^\s+/,ne=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,be=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Re="["+ve+"]",Ce="["+ke+"]",Be="["+we+"]",Oe="\\d+",Ie="["+Se+"]",Pe="["+_e+"]",$e="[^"+ve+ke+Oe+Se+_e+xe+"]",Ne="\\ud83c[\\udffb-\\udfff]",Me="[^"+ve+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+xe+"]",Ue="\\u200d",Fe="(?:"+Pe+"|"+$e+")",je="(?:"+qe+"|"+$e+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Be+"|"+Ne+")"+"?",Ve="["+Ee+"]?",Ge=Ve+We+("(?:"+Ue+"(?:"+[Me,Le,De].join("|")+")"+Ve+We+")*"),Ke="(?:"+[Ie,Le,De].join("|")+")"+Ge,Ze="(?:"+[Me+Be+"?",Be,Le,De,Re].join("|")+")",Je=RegExp(Te,"g"),Xe=RegExp(Be,"g"),Qe=RegExp(Ne+"(?="+Ne+")|"+Ze+Ge,"g"),Ye=RegExp([qe+"?"+Pe+"+"+He+"(?="+[Ce,qe,"$"].join("|")+")",je+"+"+ze+"(?="+[Ce,qe+Fe,"$"].join("|")+")",qe+"?"+Fe+"+"+He,qe+"+"+ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Ke].join("|"),"g"),et=RegExp("["+Ue+ve+we+Ee+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,ot={};ot[I]=ot[P]=ot[$]=ot[N]=ot[M]=ot[L]=ot[D]=ot[q]=ot[U]=!0,ot[h]=ot[m]=ot[B]=ot[g]=ot[O]=ot[y]=ot[A]=ot[b]=ot[w]=ot[S]=ot[_]=ot[E]=ot[k]=ot[T]=ot[C]=!1;var it={};it[h]=it[m]=it[B]=it[O]=it[g]=it[y]=it[I]=it[P]=it[$]=it[N]=it[M]=it[w]=it[S]=it[_]=it[E]=it[k]=it[T]=it[R]=it[L]=it[D]=it[q]=it[U]=!0,it[A]=it[b]=it[C]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,ut="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ct="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ct||Function("return this")(),ft=t&&!t.nodeType&&t,pt=ft&&e&&!e.nodeType&&e,ht=pt&&pt.exports===ft,mt=ht&&ut.process,gt=function(){try{var e=pt&&pt.require&&pt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=gt&>.isArrayBuffer,At=gt&>.isDate,bt=gt&>.isMap,vt=gt&>.isRegExp,wt=gt&>.isSet,St=gt&>.isTypedArray;function _t(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function xt(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o-1}function Bt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1;);return r}function Yt(e,t){for(var r=e.length;r--&&qt(t,e[r],0)>-1;);return r}var er=zt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tr=zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(e){return"\\"+st[e]}function nr(e){return et.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function ir(e,t){return function(r){return e(t(r))}}function sr(e,t){for(var r=-1,n=e.length,o=0,s=[];++r",""":'"',"'":"'"});var pr=function e(t){var ne,ve=(t=null==t?dt:pr.defaults(dt.Object(),t,pr.pick(dt,rt))).Array,we=t.Date,Se=t.Error,_e=t.Function,xe=t.Math,Ee=t.Object,ke=t.RegExp,Te=t.String,Re=t.TypeError,Ce=ve.prototype,Be=_e.prototype,Oe=Ee.prototype,Ie=t["__core-js_shared__"],Pe=Be.toString,$e=Oe.hasOwnProperty,Ne=0,Me=(ne=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ne:"",Le=Oe.toString,De=Pe.call(Ee),qe=dt._,Ue=ke("^"+Pe.call($e).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=ht?t.Buffer:r,je=t.Symbol,He=t.Uint8Array,ze=Fe?Fe.allocUnsafe:r,We=ir(Ee.getPrototypeOf,Ee),Ve=Ee.create,Ge=Oe.propertyIsEnumerable,Ke=Ce.splice,Ze=je?je.isConcatSpreadable:r,Qe=je?je.iterator:r,et=je?je.toStringTag:r,st=function(){try{var e=di(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=we&&we.now!==dt.Date.now&&we.now,ft=t.setTimeout!==dt.setTimeout&&t.setTimeout,pt=xe.ceil,mt=xe.floor,gt=Ee.getOwnPropertySymbols,Mt=Fe?Fe.isBuffer:r,zt=t.isFinite,hr=Ce.join,mr=ir(Ee.keys,Ee),gr=xe.max,yr=xe.min,Ar=we.now,br=t.parseInt,vr=xe.random,wr=Ce.reverse,Sr=di(t,"DataView"),_r=di(t,"Map"),xr=di(t,"Promise"),Er=di(t,"Set"),kr=di(t,"WeakMap"),Tr=di(Ee,"create"),Rr=kr&&new kr,Cr={},Br=Li(Sr),Or=Li(_r),Ir=Li(xr),Pr=Li(Er),$r=Li(kr),Nr=je?je.prototype:r,Mr=Nr?Nr.valueOf:r,Lr=Nr?Nr.toString:r;function Dr(e){if(ea(e)&&!Hs(e)&&!(e instanceof jr)){if(e instanceof Fr)return e;if($e.call(e,"__wrapped__"))return Di(e)}return new Fr(e)}var qr=function(){function e(){}return function(t){if(!Ys(t))return{};if(Ve)return Ve(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Ur(){}function Fr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function jr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function an(e,t,n,o,i,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=i?n(e,o,i,s):n(e)),a!==r)return a;if(!Ys(e))return e;var d=Hs(e);if(d){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&$e.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!l)return Co(e,a)}else{var f=hi(e),p=f==b||f==v;if(Gs(e))return _o(e,l);if(f==_||f==h||p&&!i){if(a=u||p?{}:gi(e),!l)return u?function(e,t){return Bo(e,pi(e),t)}(e,function(e,t){return e&&Bo(t,Oa(t),e)}(a,e)):function(e,t){return Bo(e,fi(e),t)}(e,rn(a,e))}else{if(!it[f])return i?e:{};a=function(e,t,r){var n=e.constructor;switch(t){case B:return xo(e);case g:case y:return new n(+e);case O:return function(e,t){var r=t?xo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case I:case P:case $:case N:case M:case L:case D:case q:case U:return Eo(e,r);case w:return new n;case S:case T:return new n(e);case E:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new n;case R:return o=e,Mr?Ee(Mr.call(o)):{}}var o}(e,f,l)}}s||(s=new Gr);var m=s.get(e);if(m)return m;s.set(e,a),ia(e)?e.forEach(function(r){a.add(an(r,t,n,r,e,s))}):ta(e)&&e.forEach(function(r,o){a.set(o,an(r,t,n,o,e,s))});var A=d?r:(c?u?oi:ni:u?Oa:Ba)(e);return Et(A||e,function(r,o){A&&(r=e[o=r]),Yr(a,o,an(r,t,n,o,e,s))}),a}function ln(e,t,n){var o=n.length;if(null==e)return!o;for(e=Ee(e);o--;){var i=n[o],s=t[i],a=e[i];if(a===r&&!(i in e)||!s(a))return!1}return!0}function un(e,t,o){if("function"!=typeof e)throw new Re(n);return Bi(function(){e.apply(r,o)},t)}function cn(e,t,r,n){var o=-1,i=Ct,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;r&&(t=Ot(t,Zt(r))),n?(i=Bt,s=!1):t.length>=200&&(i=Xt,s=!1,t=new Vr(t));e:for(;++o-1},zr.prototype.set=function(e,t){var r=this.__data__,n=en(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(_r||zr),string:new Hr}},Wr.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Wr.prototype.get=function(e){return ui(this,e).get(e)},Wr.prototype.has=function(e){return ui(this,e).has(e)},Wr.prototype.set=function(e,t){var r=ui(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Vr.prototype.add=Vr.prototype.push=function(e){return this.__data__.set(e,o),this},Vr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new zr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof zr){var n=r.__data__;if(!_r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(e,t),this.size=r.size,this};var dn=Po(bn),fn=Po(vn,!0);function pn(e,t){var r=!0;return dn(e,function(e,n,o){return r=!!t(e,n,o)}),r}function hn(e,t,n){for(var o=-1,i=e.length;++o0&&r(a)?t>1?gn(a,t-1,r,n,o):It(o,a):n||(o[o.length]=a)}return o}var yn=$o(),An=$o(!0);function bn(e,t){return e&&yn(e,t,Ba)}function vn(e,t){return e&&An(e,t,Ba)}function wn(e,t){return Rt(t,function(t){return Js(e[t])})}function Sn(e,t){for(var n=0,o=(t=bo(t,e)).length;null!=e&&nt}function kn(e,t){return null!=e&&$e.call(e,t)}function Tn(e,t){return null!=e&&t in Ee(e)}function Rn(e,t,n){for(var o=n?Bt:Ct,i=e[0].length,s=e.length,a=s,l=ve(s),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=Ot(d,Zt(t))),u=yr(d.length,u),l[a]=!n&&(t||i>=120&&d.length>=120)?new Vr(a&&d):r}d=e[0];var f=-1,p=l[0];e:for(;++f=a?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function zn(e,t,r){for(var n=-1,o=t.length,i={};++n-1;)a!==e&&Ke.call(a,l,1),Ke.call(e,l,1);return e}function Vn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;Ai(o)?Ke.call(e,o,1):co(e,o)}}return e}function Gn(e,t){return e+mt(vr()*(t-e+1))}function Kn(e,t){var r="";if(!e||t<1||t>c)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return Oi(ki(e,t,rl),e+"")}function Jn(e){return Zr(qa(e))}function Xn(e,t){var r=qa(e);return $i(r,sn(t,0,r.length))}function Qn(e,t,n,o){if(!Ys(e))return e;for(var i=-1,s=(t=bo(t,e)).length,a=s-1,l=e;null!=l&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=ve(o);++n>>1,s=e[i];null!==s&&!aa(s)&&(r?s<=t:s=200){var u=t?null:Zo(e);if(u)return ar(u);s=!1,o=Xt,l=new Vr}else l=t?[]:a;e:for(;++n=o?e:ro(e,t,n)}var So=ut||function(e){return dt.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var r=e.length,n=ze?ze(r):new e.constructor(r);return e.copy(n),n}function xo(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Eo(e,t){var r=t?xo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ko(e,t){if(e!==t){var n=e!==r,o=null===e,i=e==e,s=aa(e),a=t!==r,l=null===t,u=t==t,c=aa(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||o&&a&&u||!n&&u||!i)return 1;if(!o&&!s&&!c&&e1?n[i-1]:r,a=i>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(i--,s):r,a&&bi(n[0],n[1],a)&&(s=i<3?r:s,i=1),t=Ee(t);++o-1?i[s?t[a]:a]:r}}function qo(e){return ri(function(t){var o=t.length,i=o,s=Fr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Re(n);if(s&&!l&&"wrapper"==si(a))var l=new Fr([],!0)}for(i=l?i:o;++i1&&b.reverse(),f&&cl))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&n?new Vr:r;for(s.set(e,t),s.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Et(p,function(r){var n="_."+r[0];t&r[1]&&!Ct(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(ie);return t?t[1].split(se):[]}(n),r)))}function Pi(e){var t=0,n=0;return function(){var o=Ar(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function $i(e,t){var n=-1,o=e.length,i=o-1;for(t=t===r?o:t;++n1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,os(e,n)});function ds(e){var t=Dr(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var ps=ri(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,i=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&o instanceof jr&&Ai(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:fs,args:[i],thisArg:r}),new Fr(o,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(i)});var hs=Oo(function(e,t,r){$e.call(e,r)?++e[r]:nn(e,r,1)});var ms=Do(ji),gs=Do(Hi);function ys(e,t){return(Hs(e)?Et:dn)(e,li(t,3))}function As(e,t){return(Hs(e)?kt:fn)(e,li(t,3))}var bs=Oo(function(e,t,r){$e.call(e,r)?e[r].push(t):nn(e,r,[t])});var vs=Zn(function(e,t,r){var n=-1,o="function"==typeof t,i=Ws(e)?ve(e.length):[];return dn(e,function(e){i[++n]=o?_t(t,e,r):Cn(e,t,r)}),i}),ws=Oo(function(e,t,r){nn(e,r,t)});function Ss(e,t){return(Hs(e)?Ot:Dn)(e,li(t,3))}var _s=Oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var xs=Zn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&bi(e,t[0],t[1])?t=[]:r>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Hn(e,gn(t,1),[])}),Es=ct||function(){return dt.Date.now()};function ks(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Xo(e,a,r,r,r,r,t)}function Ts(e,t){var o;if("function"!=typeof t)throw new Re(n);return e=pa(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var Rs=Zn(function(e,t,r){var n=1;if(r.length){var o=sr(r,ai(Rs));n|=s}return Xo(e,n,t,r,o)}),Cs=Zn(function(e,t,r){var n=3;if(r.length){var o=sr(r,ai(Cs));n|=s}return Xo(t,n,e,r,o)});function Bs(e,t,o){var i,s,a,l,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Re(n);function m(t){var n=i,o=s;return i=s=r,d=t,l=e.apply(o,n)}function g(e){var n=e-c;return c===r||n>=t||n<0||p&&e-d>=a}function y(){var e=Es();if(g(e))return A(e);u=Bi(y,function(e){var r=t-(e-c);return p?yr(r,a-(e-d)):r}(e))}function A(e){return u=r,h&&i?m(e):(i=s=r,l)}function b(){var e=Es(),n=g(e);if(i=arguments,s=this,c=e,n){if(u===r)return function(e){return d=e,u=Bi(y,t),f?m(e):l}(c);if(p)return So(u),u=Bi(y,t),m(c)}return u===r&&(u=Bi(y,t)),l}return t=ma(t)||0,Ys(o)&&(f=!!o.leading,a=(p="maxWait"in o)?gr(ma(o.maxWait)||0,t):a,h="trailing"in o?!!o.trailing:h),b.cancel=function(){u!==r&&So(u),d=0,i=c=s=u=r},b.flush=function(){return u===r?l:A(Es())},b}var Os=Zn(function(e,t){return un(e,1,t)}),Is=Zn(function(e,t,r){return un(e,ma(t)||0,r)});function Ps(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(n);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(Ps.Cache||Wr),r}function $s(e){if("function"!=typeof e)throw new Re(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ps.Cache=Wr;var Ns=vo(function(e,t){var r=(t=1==t.length&&Hs(t[0])?Ot(t[0],Zt(li())):Ot(gn(t,1),Zt(li()))).length;return Zn(function(n){for(var o=-1,i=yr(n.length,r);++o=t}),js=Bn(function(){return arguments}())?Bn:function(e){return ea(e)&&$e.call(e,"callee")&&!Ge.call(e,"callee")},Hs=ve.isArray,zs=yt?Zt(yt):function(e){return ea(e)&&xn(e)==B};function Ws(e){return null!=e&&Qs(e.length)&&!Js(e)}function Vs(e){return ea(e)&&Ws(e)}var Gs=Mt||ml,Ks=At?Zt(At):function(e){return ea(e)&&xn(e)==y};function Zs(e){if(!ea(e))return!1;var t=xn(e);return t==A||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!na(e)}function Js(e){if(!Ys(e))return!1;var t=xn(e);return t==b||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xs(e){return"number"==typeof e&&e==pa(e)}function Qs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function Ys(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=bt?Zt(bt):function(e){return ea(e)&&hi(e)==w};function ra(e){return"number"==typeof e||ea(e)&&xn(e)==S}function na(e){if(!ea(e)||xn(e)!=_)return!1;var t=We(e);if(null===t)return!0;var r=$e.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Pe.call(r)==De}var oa=vt?Zt(vt):function(e){return ea(e)&&xn(e)==E};var ia=wt?Zt(wt):function(e){return ea(e)&&hi(e)==k};function sa(e){return"string"==typeof e||!Hs(e)&&ea(e)&&xn(e)==T}function aa(e){return"symbol"==typeof e||ea(e)&&xn(e)==R}var la=St?Zt(St):function(e){return ea(e)&&Qs(e.length)&&!!ot[xn(e)]};var ua=Vo(Ln),ca=Vo(function(e,t){return e<=t});function da(e){if(!e)return[];if(Ws(e))return sa(e)?cr(e):Co(e);if(Qe&&e[Qe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Qe]());var t=hi(e);return(t==w?or:t==k?ar:qa)(e)}function fa(e){return e?(e=ma(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=fa(e),r=t%1;return t==t?r?t-r:t:0}function ha(e){return e?sn(pa(e),0,f):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return d;if(Ys(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ys(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var r=pe.test(e);return r||me.test(e)?lt(e.slice(2),r?2:8):fe.test(e)?d:+e}function ga(e){return Bo(e,Oa(e))}function ya(e){return null==e?"":lo(e)}var Aa=Io(function(e,t){if(_i(t)||Ws(t))Bo(t,Ba(t),e);else for(var r in t)$e.call(t,r)&&Yr(e,r,t[r])}),ba=Io(function(e,t){Bo(t,Oa(t),e)}),va=Io(function(e,t,r,n){Bo(t,Oa(t),e,n)}),wa=Io(function(e,t,r,n){Bo(t,Ba(t),e,n)}),Sa=ri(on);var _a=Zn(function(e,t){e=Ee(e);var n=-1,o=t.length,i=o>2?t[2]:r;for(i&&bi(t[0],t[1],i)&&(o=1);++n1),t}),Bo(e,oi(e),r),n&&(r=an(r,7,ei));for(var o=t.length;o--;)co(r,t[o]);return r});var Na=ri(function(e,t){return null==e?{}:function(e,t){return zn(e,t,function(t,r){return ka(e,r)})}(e,t)});function Ma(e,t){if(null==e)return{};var r=Ot(oi(e),function(e){return[e]});return t=li(t),zn(e,r,function(e,r){return t(e,r[0])})}var La=Jo(Ba),Da=Jo(Oa);function qa(e){return null==e?[]:Jt(e,Ba(e))}var Ua=Mo(function(e,t,r){return t=t.toLowerCase(),e+(r?Fa(t):t)});function Fa(e){return Za(ya(e).toLowerCase())}function ja(e){return(e=ya(e))&&e.replace(ye,er).replace(Xe,"")}var Ha=Mo(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),za=Mo(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Wa=No("toLowerCase");var Va=Mo(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var Ga=Mo(function(e,t,r){return e+(r?" ":"")+Za(t)});var Ka=Mo(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Za=No("toUpperCase");function Ja(e,t,n){return e=ya(e),(t=n?r:t)===r?function(e){return tt.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(ae)||[]}(e):e.match(t)||[]}var Xa=Zn(function(e,t){try{return _t(e,r,t)}catch(e){return Zs(e)?e:new Se(e)}}),Qa=ri(function(e,t){return Et(t,function(t){t=Mi(t),nn(e,t,Rs(e[t],e))}),e});function Ya(e){return function(){return e}}var el=qo(),tl=qo(!0);function rl(e){return e}function nl(e){return $n("function"==typeof e?e:an(e,1))}var ol=Zn(function(e,t){return function(r){return Cn(r,e,t)}}),il=Zn(function(e,t){return function(r){return Cn(e,r,t)}});function sl(e,t,r){var n=Ba(t),o=wn(t,n);null!=r||Ys(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=wn(t,Ba(t)));var i=!(Ys(r)&&"chain"in r&&!r.chain),s=Js(e);return Et(o,function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Co(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})}),e}function al(){}var ll=Ho(Ot),ul=Ho(Tt),cl=Ho(Nt);function dl(e){return vi(e)?Ht(Mi(e)):function(e){return function(t){return Sn(t,e)}}(e)}var fl=Wo(),pl=Wo(!0);function hl(){return[]}function ml(){return!1}var gl=jo(function(e,t){return e+t},0),yl=Ko("ceil"),Al=jo(function(e,t){return e/t},1),bl=Ko("floor");var vl,wl=jo(function(e,t){return e*t},1),Sl=Ko("round"),_l=jo(function(e,t){return e-t},0);return Dr.after=function(e,t){if("function"!=typeof t)throw new Re(n);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=ks,Dr.assign=Aa,Dr.assignIn=ba,Dr.assignInWith=va,Dr.assignWith=wa,Dr.at=Sa,Dr.before=Ts,Dr.bind=Rs,Dr.bindAll=Qa,Dr.bindKey=Cs,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},Dr.chain=ds,Dr.chunk=function(e,t,n){t=(n?bi(e,t,n):t===r)?1:gr(pa(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,s=0,a=ve(pt(o/t));ii?0:i+n),(o=o===r||o>i?i:pa(o))<0&&(o+=i),o=n>o?0:ha(o);n>>0)?(e=ya(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=lo(t))&&nr(e)?wo(cr(e),0,n):e.split(t,n):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new Re(n);return t=null==t?0:gr(pa(t),0),Zn(function(r){var n=r[t],o=wo(r,0,t);return n&&It(o,n),_t(e,this,o)})},Dr.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Dr.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===r?1:pa(t))<0?0:t):[]},Dr.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?ro(e,(t=o-(t=n||t===r?1:pa(t)))<0?0:t,o):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?po(e,li(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?po(e,li(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new Re(n);return Ys(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Bs(e,t,{leading:o,maxWait:t,trailing:i})},Dr.thru=fs,Dr.toArray=da,Dr.toPairs=La,Dr.toPairsIn=Da,Dr.toPath=function(e){return Hs(e)?Ot(e,Mi):aa(e)?[e]:Co(Ni(ya(e)))},Dr.toPlainObject=ga,Dr.transform=function(e,t,r){var n=Hs(e),o=n||Gs(e)||la(e);if(t=li(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:Ys(e)&&Js(i)?qr(We(e)):{}}return(o?Et:bn)(e,function(e,n,o){return t(r,e,n,o)}),r},Dr.unary=function(e){return ks(e,1)},Dr.union=es,Dr.unionBy=ts,Dr.unionWith=rs,Dr.uniq=function(e){return e&&e.length?uo(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?uo(e,li(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?uo(e,r,t):[]},Dr.unset=function(e,t){return null==e||co(e,t)},Dr.unzip=ns,Dr.unzipWith=os,Dr.update=function(e,t,r){return null==e?e:fo(e,t,Ao(r))},Dr.updateWith=function(e,t,n,o){return o="function"==typeof o?o:r,null==e?e:fo(e,t,Ao(n),o)},Dr.values=qa,Dr.valuesIn=function(e){return null==e?[]:Jt(e,Oa(e))},Dr.without=is,Dr.words=Ja,Dr.wrap=function(e,t){return Ms(Ao(t),e)},Dr.xor=ss,Dr.xorBy=as,Dr.xorWith=ls,Dr.zip=us,Dr.zipObject=function(e,t){return go(e||[],t||[],Yr)},Dr.zipObjectDeep=function(e,t){return go(e||[],t||[],Qn)},Dr.zipWith=cs,Dr.entries=La,Dr.entriesIn=Da,Dr.extend=ba,Dr.extendWith=va,sl(Dr,Dr),Dr.add=gl,Dr.attempt=Xa,Dr.camelCase=Ua,Dr.capitalize=Fa,Dr.ceil=yl,Dr.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=ma(n))==n?n:0),t!==r&&(t=(t=ma(t))==t?t:0),sn(ma(e),t,n)},Dr.clone=function(e){return an(e,4)},Dr.cloneDeep=function(e){return an(e,5)},Dr.cloneDeepWith=function(e,t){return an(e,5,t="function"==typeof t?t:r)},Dr.cloneWith=function(e,t){return an(e,4,t="function"==typeof t?t:r)},Dr.conformsTo=function(e,t){return null==t||ln(e,t,Ba(t))},Dr.deburr=ja,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=Al,Dr.endsWith=function(e,t,n){e=ya(e),t=lo(t);var o=e.length,i=n=n===r?o:sn(pa(n),0,o);return(n-=t.length)>=0&&e.slice(n,i)==t},Dr.eq=qs,Dr.escape=function(e){return(e=ya(e))&&G.test(e)?e.replace(W,tr):e},Dr.escapeRegExp=function(e){return(e=ya(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Dr.every=function(e,t,n){var o=Hs(e)?Tt:pn;return n&&bi(e,t,n)&&(t=r),o(e,li(t,3))},Dr.find=ms,Dr.findIndex=ji,Dr.findKey=function(e,t){return Lt(e,li(t,3),bn)},Dr.findLast=gs,Dr.findLastIndex=Hi,Dr.findLastKey=function(e,t){return Lt(e,li(t,3),vn)},Dr.floor=bl,Dr.forEach=ys,Dr.forEachRight=As,Dr.forIn=function(e,t){return null==e?e:yn(e,li(t,3),Oa)},Dr.forInRight=function(e,t){return null==e?e:An(e,li(t,3),Oa)},Dr.forOwn=function(e,t){return e&&bn(e,li(t,3))},Dr.forOwnRight=function(e,t){return e&&vn(e,li(t,3))},Dr.get=Ea,Dr.gt=Us,Dr.gte=Fs,Dr.has=function(e,t){return null!=e&&mi(e,t,kn)},Dr.hasIn=ka,Dr.head=Wi,Dr.identity=rl,Dr.includes=function(e,t,r,n){e=Ws(e)?e:qa(e),r=r&&!n?pa(r):0;var o=e.length;return r<0&&(r=gr(o+r,0)),sa(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&qt(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:pa(r);return o<0&&(o=gr(n+o,0)),qt(e,t,o)},Dr.inRange=function(e,t,n){return t=fa(t),n===r?(n=t,t=0):n=fa(n),function(e,t,r){return e>=yr(t,r)&&e=-9007199254740991&&e<=c},Dr.isSet=ia,Dr.isString=sa,Dr.isSymbol=aa,Dr.isTypedArray=la,Dr.isUndefined=function(e){return e===r},Dr.isWeakMap=function(e){return ea(e)&&hi(e)==C},Dr.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==xn(e)},Dr.join=function(e,t){return null==e?"":hr.call(e,t)},Dr.kebabCase=Ha,Dr.last=Zi,Dr.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=pa(n))<0?gr(o+i,0):yr(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Dt(e,Ft,i,!0)},Dr.lowerCase=za,Dr.lowerFirst=Wa,Dr.lt=ua,Dr.lte=ca,Dr.max=function(e){return e&&e.length?hn(e,rl,En):r},Dr.maxBy=function(e,t){return e&&e.length?hn(e,li(t,2),En):r},Dr.mean=function(e){return jt(e,rl)},Dr.meanBy=function(e,t){return jt(e,li(t,2))},Dr.min=function(e){return e&&e.length?hn(e,rl,Ln):r},Dr.minBy=function(e,t){return e&&e.length?hn(e,li(t,2),Ln):r},Dr.stubArray=hl,Dr.stubFalse=ml,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=wl,Dr.nth=function(e,t){return e&&e.length?jn(e,pa(t)):r},Dr.noConflict=function(){return dt._===this&&(dt._=qe),this},Dr.noop=al,Dr.now=Es,Dr.pad=function(e,t,r){e=ya(e);var n=(t=pa(t))?ur(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return zo(mt(o),r)+e+zo(pt(o),r)},Dr.padEnd=function(e,t,r){e=ya(e);var n=(t=pa(t))?ur(e):0;return t&&nt){var o=e;e=t,t=o}if(n||e%1||t%1){var i=vr();return yr(e+i*(t-e+at("1e-"+((i+"").length-1))),t)}return Gn(e,t)},Dr.reduce=function(e,t,r){var n=Hs(e)?Pt:Wt,o=arguments.length<3;return n(e,li(t,4),r,o,dn)},Dr.reduceRight=function(e,t,r){var n=Hs(e)?$t:Wt,o=arguments.length<3;return n(e,li(t,4),r,o,fn)},Dr.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:pa(t),Kn(ya(e),t)},Dr.replace=function(){var e=arguments,t=ya(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,n){var o=-1,i=(t=bo(t,e)).length;for(i||(i=1,e=r);++oc)return[];var r=f,n=yr(e,f);t=li(t),e-=f;for(var o=Gt(n,t);++r=s)return e;var l=n-ur(o);if(l<1)return o;var u=a?wo(a,0,l).join(""):e.slice(0,l);if(i===r)return u+o;if(a&&(l+=u.length-l),oa(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=ke(i.source,ya(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;u=u.slice(0,f===r?l:f)}}else if(e.indexOf(lo(i),l)!=l){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o},Dr.unescape=function(e){return(e=ya(e))&&V.test(e)?e.replace(z,fr):e},Dr.uniqueId=function(e){var t=++Ne;return ya(e)+t},Dr.upperCase=Ka,Dr.upperFirst=Za,Dr.each=ys,Dr.eachRight=As,Dr.first=Wi,sl(Dr,(vl={},bn(Dr,function(e,t){$e.call(Dr.prototype,t)||(vl[t]=e)}),vl),{chain:!1}),Dr.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Dr[e].placeholder=Dr}),Et(["drop","take"],function(e,t){jr.prototype[e]=function(n){n=n===r?1:gr(pa(n),0);var o=this.__filtered__&&!t?new jr(this):this.clone();return o.__filtered__?o.__takeCount__=yr(n,o.__takeCount__):o.__views__.push({size:yr(n,f),type:e+(o.__dir__<0?"Right":"")}),o},jr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Et(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;jr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Et(["head","last"],function(e,t){var r="take"+(t?"Right":"");jr.prototype[e]=function(){return this[r](1).value()[0]}}),Et(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");jr.prototype[e]=function(){return this.__filtered__?new jr(this):this[r](1)}}),jr.prototype.compact=function(){return this.filter(rl)},jr.prototype.find=function(e){return this.filter(e).head()},jr.prototype.findLast=function(e){return this.reverse().find(e)},jr.prototype.invokeMap=Zn(function(e,t){return"function"==typeof e?new jr(this):this.map(function(r){return Cn(r,e,t)})}),jr.prototype.reject=function(e){return this.filter($s(li(e)))},jr.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new jr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},jr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jr.prototype.toArray=function(){return this.take(f)},bn(jr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Dr[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(Dr.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,l=t instanceof jr,u=a[0],c=l||Hs(t),d=function(e){var t=i.apply(Dr,It([e],a));return o&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=s&&!f,m=l&&!p;if(!s&&c){t=m?t:new jr(this);var g=e.apply(t,a);return g.__actions__.push({func:fs,args:[d],thisArg:r}),new Fr(g,f)}return h&&m?e.apply(this,a):(g=this.thru(d),h?o?g.value()[0]:g.value():g)})}),Et(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ce[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Hs(o)?o:[],e)}return this[r](function(r){return t.apply(Hs(r)?r:[],e)})}}),bn(jr.prototype,function(e,t){var r=Dr[t];if(r){var n=r.name+"";$e.call(Cr,n)||(Cr[n]=[]),Cr[n].push({name:t,func:r})}}),Cr[Uo(r,2).name]=[{name:"wrapper",func:r}],jr.prototype.clone=function(){var e=new jr(this.__wrapped__);return e.__actions__=Co(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Co(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Co(this.__views__),e},jr.prototype.reverse=function(){if(this.__filtered__){var e=new jr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Hs(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,n=this;n instanceof Ur;){var o=Di(n);o.__index__=0,o.__values__=r,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jr){var t=e;return this.__actions__.length&&(t=new jr(this)),(t=t.reverse()).__actions__.push({func:fs,args:[Yi],thisArg:r}),new Fr(t,this.__chain__)}return this.thru(Yi)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Qe&&(Dr.prototype[Qe]=function(){return this}),Dr}();pt?((pt.exports=pr)._=pr,ft._=pr):dt._=pr}).call(lodash)}(lodash$1,lodash$1.exports)),lodash$1.exports}var lodashExports=requireLodash(),x=getDefaultExportFromCjs(lodashExports),src={},hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src;hasRequiredSrc=1,Object.defineProperty(src,"__esModule",{value:!0}),src.CashtabConnect=src.CashtabTimeoutError=src.CashtabTransactionDeniedError=src.CashtabAddressDeniedError=src.CashtabExtensionUnavailableError=void 0;class e extends Error{constructor(e){super(e||"Cashtab extension is not available"),this.name="CashtabExtensionUnavailableError"}}src.CashtabExtensionUnavailableError=e;class t extends Error{constructor(e){super(e||"User denied address request"),this.name="CashtabAddressDeniedError"}}src.CashtabAddressDeniedError=t;class r extends Error{constructor(e){super(e||"User denied transaction request"),this.name="CashtabTransactionDeniedError"}}src.CashtabTransactionDeniedError=r;class n extends Error{constructor(){super("Request timed out"),this.name="CashtabTimeoutError"}}src.CashtabTimeoutError=n;return src.CashtabConnect=class{constructor(e=3e4){this.messageListeners=new Map,this.timeout=e,this.setupMessageListener()}setupMessageListener(){"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("message",e=>{if(e.source===window&&e.data&&"FROM_CASHTAB"===e.data.type){const t=this.messageListeners.get("address");t&&(void 0!==e.data.success?(t({success:e.data.success,address:e.data.address,reason:e.data.reason}),this.messageListeners.delete("address")):void 0!==e.data.address?("Address request denied by user"!==e.data.address?e.data.address?t({success:!0,address:e.data.address}):t({success:!1,address:void 0,reason:"Address not provided in response"}):t({success:!1,address:void 0,reason:"User denied the address request"}),this.messageListeners.delete("address")):!1===e.data.addressRequestApproved&&(t({success:!1,address:void 0,reason:"User denied the address request"}),this.messageListeners.delete("address")));const r=this.messageListeners.get("transaction");r&&e.data.txResponse&&(r({success:e.data.txResponse.approved,txid:e.data.txResponse.txid,reason:e.data.txResponse.reason}),this.messageListeners.delete("transaction"))}})}async checkExtensionAvailability(){return"undefined"!=typeof window&&"cashtab"===window.bitcoinAbc}sendMessage(t){return new Promise((r,o)=>{const i=setTimeout(()=>{this.messageListeners.delete("address"),this.messageListeners.delete("transaction"),o(new n)},this.timeout);this.messageListeners.set("address",e=>{clearTimeout(i),r(e)}),"undefined"!=typeof window&&window.postMessage?window.postMessage(t,"*"):o(new e)})}sendTransactionMessage(t){return new Promise((r,o)=>{const i=setTimeout(()=>{this.messageListeners.delete("transaction"),o(new n)},this.timeout);this.messageListeners.set("transaction",e=>{clearTimeout(i),r(e)}),"undefined"!=typeof window&&window.postMessage?window.postMessage(t,"*"):o(new e)})}sendMessageNoResponse(t){if("undefined"==typeof window||!window.postMessage)throw new e;window.postMessage(t,"*")}async requestAddress(){const e=await this.sendMessage({text:"Cashtab",type:"FROM_PAGE",addressRequest:!0});if(!e.success)throw new t(e.reason);if(!e.address)throw new Error("No address received from extension");return e.address}async createTransactionFromBip21(e){const t={text:"Cashtab",type:"FROM_PAGE",txInfo:{bip21:e}},n=await this.sendTransactionMessage(t);if(!n.success)throw new r(n.reason);return n}async sendXec(e,t){const r=`${e}?amount=${t}`;return this.sendBip21(r)}async sendToken(e,t,r){const n=`${e}?token_id=${t}&token_decimalized_qty=${r}`;return this.sendBip21(n)}async sendBip21(e){const t={text:"Cashtab",type:"FROM_PAGE",txInfo:{bip21:e}},n=await this.sendTransactionMessage(t);if(!n.success)throw new r(n.reason);return n}destroy(){this.messageListeners.clear()}async waitForExtension(t=3e3){const r=Date.now();for(;Date.now()-rsetTimeout(e,300))}throw new e("Extension did not become available within the timeout period")}async isExtensionAvailable(){return this.checkExtensionAvailability()}},src}var srcExports=requireSrc(),cryptoJs$1={exports:{}};function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}},core=core$1.exports,hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(e){var t;e.exports=(t=t||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==commonjsGlobal&&commonjsGlobal.crypto&&(r=commonjsGlobal.crypto),!r&&"function"==typeof commonjsRequire)try{r=require$$0}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=a.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,c=e.min(4*u,i);if(u){for(var d=0;d>>2]|=e[o]<<24-o%4*8;r.call(this,n,t)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)}(libTypedarrays$1)),libTypedarrays$1.exports}var encUtf16$1={exports:{}},encUtf16=encUtf16$1.exports,hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(e){var t;e.exports=(t=requireCore(),function(){var e=t,r=e.lib.WordArray,n=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>1]|=e.charCodeAt(o)<<16-o%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return r.create(n,2*t)}}}(),t.enc.Utf16)}(encUtf16$1)),encUtf16$1.exports}var encBase64$1={exports:{}},encBase64=encBase64$1.exports,hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(e){var t;e.exports=(t=requireCore(),function(){var e=t,r=e.lib.WordArray;function n(e,t,n){for(var o=[],i=0,s=0;s>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));var l=n.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return r.create(o,i)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var r=e.words,n=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(r[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|r[s+2>>>2]>>>24-(s+2)%4*8&255,l=0;l<4&&s+.75*l>>6*(3-l)&63));var u=o.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],l=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],A=e[t+7],b=e[t+8],v=e[t+9],w=e[t+10],S=e[t+11],_=e[t+12],x=e[t+13],E=e[t+14],k=e[t+15],T=i[0],R=i[1],C=i[2],B=i[3];T=u(T,R,C,B,s,7,a[0]),B=u(B,T,R,C,l,12,a[1]),C=u(C,B,T,R,p,17,a[2]),R=u(R,C,B,T,h,22,a[3]),T=u(T,R,C,B,m,7,a[4]),B=u(B,T,R,C,g,12,a[5]),C=u(C,B,T,R,y,17,a[6]),R=u(R,C,B,T,A,22,a[7]),T=u(T,R,C,B,b,7,a[8]),B=u(B,T,R,C,v,12,a[9]),C=u(C,B,T,R,w,17,a[10]),R=u(R,C,B,T,S,22,a[11]),T=u(T,R,C,B,_,7,a[12]),B=u(B,T,R,C,x,12,a[13]),C=u(C,B,T,R,E,17,a[14]),T=c(T,R=u(R,C,B,T,k,22,a[15]),C,B,l,5,a[16]),B=c(B,T,R,C,y,9,a[17]),C=c(C,B,T,R,S,14,a[18]),R=c(R,C,B,T,s,20,a[19]),T=c(T,R,C,B,g,5,a[20]),B=c(B,T,R,C,w,9,a[21]),C=c(C,B,T,R,k,14,a[22]),R=c(R,C,B,T,m,20,a[23]),T=c(T,R,C,B,v,5,a[24]),B=c(B,T,R,C,E,9,a[25]),C=c(C,B,T,R,h,14,a[26]),R=c(R,C,B,T,b,20,a[27]),T=c(T,R,C,B,x,5,a[28]),B=c(B,T,R,C,p,9,a[29]),C=c(C,B,T,R,A,14,a[30]),T=d(T,R=c(R,C,B,T,_,20,a[31]),C,B,g,4,a[32]),B=d(B,T,R,C,b,11,a[33]),C=d(C,B,T,R,S,16,a[34]),R=d(R,C,B,T,E,23,a[35]),T=d(T,R,C,B,l,4,a[36]),B=d(B,T,R,C,m,11,a[37]),C=d(C,B,T,R,A,16,a[38]),R=d(R,C,B,T,w,23,a[39]),T=d(T,R,C,B,x,4,a[40]),B=d(B,T,R,C,s,11,a[41]),C=d(C,B,T,R,h,16,a[42]),R=d(R,C,B,T,y,23,a[43]),T=d(T,R,C,B,v,4,a[44]),B=d(B,T,R,C,_,11,a[45]),C=d(C,B,T,R,k,16,a[46]),T=f(T,R=d(R,C,B,T,p,23,a[47]),C,B,s,6,a[48]),B=f(B,T,R,C,A,10,a[49]),C=f(C,B,T,R,E,15,a[50]),R=f(R,C,B,T,g,21,a[51]),T=f(T,R,C,B,_,6,a[52]),B=f(B,T,R,C,h,10,a[53]),C=f(C,B,T,R,w,15,a[54]),R=f(R,C,B,T,l,21,a[55]),T=f(T,R,C,B,b,6,a[56]),B=f(B,T,R,C,k,10,a[57]),C=f(C,B,T,R,y,15,a[58]),R=f(R,C,B,T,x,21,a[59]),T=f(T,R,C,B,m,6,a[60]),B=f(B,T,R,C,S,10,a[61]),C=f(C,B,T,R,p,15,a[62]),R=f(R,C,B,T,v,21,a[63]),i[0]=i[0]+T|0,i[1]=i[1]+R|0,i[2]=i[2]+C|0,i[3]=i[3]+B|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),s=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,l=a.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+o+s;return(a<>>32-i)+t}function c(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+o+s;return(a<>>32-i)+t}function d(e,t,r,n,o,i,s){var a=e+(t^r^n)+o+s;return(a<>>32-i)+t}function f(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+o+s;return(a<>>32-i)+t}r.MD5=i._createHelper(l),r.HmacMD5=i._createHmacHelper(l)}(Math),t.MD5)}(md5$1)),md5$1.exports}var sha1$1={exports:{}},sha1=sha1$1.exports,hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(e){var t;e.exports=(t=requireCore(),function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,s=[],a=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],l=r[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var c=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=c<<1|c>>>31}var d=(n<<5|n>>>27)+l+s[u];d+=u<20?1518500249+(o&i|~o&a):u<40?1859775393+(o^i^a):u<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,l=a,a=i,i=o<<30|o>>>2,o=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=o._createHelper(a),e.HmacSHA1=o._createHmacHelper(a)}(),t.SHA1)}(sha1$1)),sha1$1.exports}var sha256$1={exports:{}},sha256=sha256$1.exports,hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(e){var t;e.exports=(t=requireCore(),function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.algo,a=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),l[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],c=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],c=r[5],d=r[6],f=r[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=u[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=m+u[p-7]+y+u[p-16]}var A=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&c^~a&d)+l[p]+u[p];f=d,d=c,c=a,a=s+v|0,s=i,i=o,o=n,n=v+(b+A)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+c|0,r[6]=r[6]+d|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=i._createHelper(c),r.HmacSHA256=i._createHmacHelper(c)}(Math),t.SHA256)}(sha256$1)),sha256$1.exports}var sha224$1={exports:{}},sha224=sha224$1.exports,hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(e){var t;e.exports=(t=requireCore(),requireSha256(),function(){var e=t,r=e.lib.WordArray,n=e.algo,o=n.SHA256,i=n.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=o._createHelper(i),e.HmacSHA224=o._createHmacHelper(i)}(),t.SHA224)}(sha224$1)),sha224$1.exports}var sha512$1={exports:{}},sha512=sha512$1.exports,hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(e){var t;e.exports=(t=requireCore(),requireX64Core(),function(){var e=t,r=e.lib.Hasher,n=e.x64,o=n.Word,i=n.WordArray,s=e.algo;function a(){return o.create.apply(o,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=a()}();var c=s.SHA512=r.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],c=r[5],d=r[6],f=r[7],p=n.high,h=n.low,m=o.high,g=o.low,y=i.high,A=i.low,b=s.high,v=s.low,w=a.high,S=a.low,_=c.high,x=c.low,E=d.high,k=d.low,T=f.high,R=f.low,C=p,B=h,O=m,I=g,P=y,$=A,N=b,M=v,L=w,D=S,q=_,U=x,F=E,j=k,H=T,z=R,W=0;W<80;W++){var V,G,K=u[W];if(W<16)G=K.high=0|e[t+2*W],V=K.low=0|e[t+2*W+1];else{var Z=u[W-15],J=Z.high,X=Z.low,Q=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Y=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=u[W-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=u[W-7],se=ie.high,ae=ie.low,le=u[W-16],ue=le.high,ce=le.low;G=(G=(G=Q+se+((V=Y+ae)>>>0>>0?1:0))+ne+((V+=oe)>>>0>>0?1:0))+ue+((V+=ce)>>>0>>0?1:0),K.high=G,K.low=V}var de,fe=L&q^~L&F,pe=D&U^~D&j,he=C&O^C&P^O&P,me=B&I^B&$^I&$,ge=(C>>>28|B<<4)^(C<<30|B>>>2)^(C<<25|B>>>7),ye=(B>>>28|C<<4)^(B<<30|C>>>2)^(B<<25|C>>>7),Ae=(L>>>14|D<<18)^(L>>>18|D<<14)^(L<<23|D>>>9),be=(D>>>14|L<<18)^(D>>>18|L<<14)^(D<<23|L>>>9),ve=l[W],we=ve.high,Se=ve.low,_e=H+Ae+((de=z+be)>>>0>>0?1:0),xe=ye+me;H=F,z=j,F=q,j=U,q=L,U=D,L=N+(_e=(_e=(_e=_e+fe+((de+=pe)>>>0>>0?1:0))+we+((de+=Se)>>>0>>0?1:0))+G+((de+=V)>>>0>>0?1:0))+((D=M+de|0)>>>0>>0?1:0)|0,N=P,M=$,P=O,$=I,O=C,I=B,C=_e+(ge+he+(xe>>>0>>0?1:0))+((B=de+xe|0)>>>0>>0?1:0)|0}h=n.low=h+B,n.high=p+C+(h>>>0>>0?1:0),g=o.low=g+I,o.high=m+O+(g>>>0>>0?1:0),A=i.low=A+$,i.high=y+P+(A>>>0<$>>>0?1:0),v=s.low=v+M,s.high=b+N+(v>>>0>>0?1:0),S=a.low=S+D,a.high=w+L+(S>>>0>>0?1:0),x=c.low=x+U,c.high=_+q+(x>>>0>>0?1:0),k=d.low=k+j,d.high=E+F+(k>>>0>>0?1:0),R=f.low=R+z,f.high=T+H+(R>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=r._createHelper(c),e.HmacSHA512=r._createHmacHelper(c)}(),t.SHA512)}(sha512$1)),sha512$1.exports}var sha384$1={exports:{}},sha384=sha384$1.exports,hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(e){var t;e.exports=(t=requireCore(),requireX64Core(),requireSha512(),function(){var e=t,r=e.x64,n=r.Word,o=r.WordArray,i=e.algo,s=i.SHA512,a=i.SHA384=s.extend({_doReset:function(){this._hash=new o.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a)}(),t.SHA384)}(sha384$1)),sha384$1.exports}var sha3$1={exports:{}},sha3=sha3$1.exports,hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(e){var t;e.exports=(t=requireCore(),requireX64Core(),function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.x64.Word,a=r.algo,l=[],u=[],c=[];!function(){for(var e=1,t=0,r=0;r<24;r++){l[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,d=0,f=0;f<7;f++){if(1&o){var p=(1<>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(R=r[o]).high^=s,R.low^=i}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var p=0,h=0,m=0;m<5;m++)p^=(R=r[f+5*m]).high,h^=R.low;var g=d[f];g.high=p,g.low=h}for(f=0;f<5;f++){var y=d[(f+4)%5],A=d[(f+1)%5],b=A.high,v=A.low;for(p=y.high^(b<<1|v>>>31),h=y.low^(v<<1|b>>>31),m=0;m<5;m++)(R=r[f+5*m]).high^=p,R.low^=h}for(var w=1;w<25;w++){var S=(R=r[w]).high,_=R.low,x=l[w];x<32?(p=S<>>32-x,h=_<>>32-x):(p=_<>>64-x,h=S<>>64-x);var E=d[u[w]];E.high=p,E.low=h}var k=d[0],T=r[0];for(k.high=T.high,k.low=T.low,f=0;f<5;f++)for(m=0;m<5;m++){var R=r[w=f+5*m],C=d[w],B=d[(f+1)%5+5*m],O=d[(f+2)%5+5*m];R.high=C.high^~B.high&O.high,R.low=C.low^~B.low&O.low}R=r[0];var I=c[a];R.high^=I.high,R.low^=I.low}},_doFinalize:function(){var t=this._data,r=t.words;this._nDataBytes;var n=8*t.sigBytes,i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,l=a/8,u=[],c=0;c>>24)|4278255360&(f<<24|f>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(f)}return new o.init(u,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=i._createHelper(f),r.HmacSHA3=i._createHmacHelper(f)}(Math),t.SHA3)}(sha3$1)),sha3$1.exports}var ripemd160$1={exports:{}},ripemd160=ripemd160$1.exports,hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(e){var t;e.exports=(t=requireCore(), /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. @@ -80,46 +168,42 @@ lodash.exports,function(e,t){(function(){var r,n="Expected a function",o="__loda THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,s=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),f=n.create([1352829926,1548603684,1836072691,2053994217,0]),d=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,d,b,v,_,w,S,E,x,$,k,T=this._hash.words,B=l.words,R=f.words,O=s.words,C=a.words,P=u.words,I=c.words;for(w=i=T[0],S=d=T[1],E=b=T[2],x=v=T[3],$=_=T[4],r=0;r<80;r+=1)k=i+e[t+O[r]]|0,k+=r<16?p(d,b,v)+B[0]:r<32?h(d,b,v)+B[1]:r<48?m(d,b,v)+B[2]:r<64?g(d,b,v)+B[3]:y(d,b,v)+B[4],k=(k=A(k|=0,P[r]))+_|0,i=_,_=v,v=A(b,10),b=d,d=k,k=w+e[t+C[r]]|0,k+=r<16?y(S,E,x)+R[0]:r<32?g(S,E,x)+R[1]:r<48?m(S,E,x)+R[2]:r<64?h(S,E,x)+R[3]:p(S,E,x)+R[4],k=(k=A(k|=0,I[r]))+$|0,w=$,$=x,x=A(E,10),E=S,S=k;k=T[1]+b+x|0,T[1]=T[2]+v+$|0,T[2]=T[3]+_+w|0,T[3]=T[4]+i+S|0,T[4]=T[0]+d+E|0,T[0]=k},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function h(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function A(e,t){return e<>>32-t}e.RIPEMD160=o._createHelper(d),e.HmacRIPEMD160=o._createHmacHelper(d)}(),t.RIPEMD160)}(ripemd160,ripemd160.exports)),ripemd160.exports}ripemd160.exports;var hmac={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(e){var t;e.exports=(t=requireCore(),void function(){var e=t,r=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,u=s.words,c=0;c>>2];e.sigBytes-=t}};n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:h}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(u)},parse:function(e){var t,r=u.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},y=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),s=o.cfg;return m.create({ciphertext:i,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),A=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=i.random(8)),o)s=c.create({keySize:t+r,hasher:o}).compute(e,n);else var s=c.create({keySize:t+r}).compute(e,n);var a=i.create(s.words.slice(t),4*r);return s.sigBytes=4*t,m.create({key:s,iv:a,salt:n})}},b=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:A}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,y.decrypt.call(this,e,t,o.key,n)}})}()))}(cipherCore,cipherCore.exports)),cipherCore.exports}cipherCore.exports;var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(e,t,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var s=0;s>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,v,w,S,_,x,E,k,T,R=this._hash.words,C=c.words,B=d.words,O=s.words,I=a.words,P=l.words,$=u.words;for(S=i=R[0],_=f=R[1],x=b=R[2],E=v=R[3],k=w=R[4],r=0;r<80;r+=1)T=i+e[t+O[r]]|0,T+=r<16?p(f,b,v)+C[0]:r<32?h(f,b,v)+C[1]:r<48?m(f,b,v)+C[2]:r<64?g(f,b,v)+C[3]:y(f,b,v)+C[4],T=(T=A(T|=0,P[r]))+w|0,i=w,w=v,v=A(b,10),b=f,f=T,T=S+e[t+I[r]]|0,T+=r<16?y(_,x,E)+B[0]:r<32?g(_,x,E)+B[1]:r<48?m(_,x,E)+B[2]:r<64?h(_,x,E)+B[3]:p(_,x,E)+B[4],T=(T=A(T|=0,$[r]))+k|0,S=k,k=E,E=A(x,10),x=_,_=T;T=R[1]+b+E|0,R[1]=R[2]+v+k|0,R[2]=R[3]+w+S|0,R[3]=R[4]+i+_|0,R[4]=R[0]+f+x|0,R[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function h(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function A(e,t){return e<>>32-t}e.RIPEMD160=o._createHelper(f),e.HmacRIPEMD160=o._createHmacHelper(f)}(),t.RIPEMD160)}(ripemd160$1)),ripemd160$1.exports}var hmac$1={exports:{}},hmac=hmac$1.exports,hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function(e){var t;e.exports=(t=requireCore(),void function(){var e=t,r=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,l=s.words,u=0;u>>2];e.sigBytes-=t}};n.BlockCipher=c.extend({cfg:c.cfg.extend({mode:p,padding:h}),reset:function(){var e;c.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:t})}},y=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),s=o.cfg;return m.create({ciphertext:i,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),A=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,o){if(n||(n=i.random(8)),o)s=u.create({keySize:t+r,hasher:o}).compute(e,n);else var s=u.create({keySize:t+r}).compute(e,n);var a=i.create(s.words.slice(t),4*r);return s.sigBytes=4*t,m.create({key:s,iv:a,salt:n})}},b=n.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:A}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=o.iv;var i=y.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=o.iv,y.decrypt.call(this,e,t,o.key,n)}})}()))}(cipherCore$1)),cipherCore$1.exports}var modeCfb$1={exports:{}},modeCfb=modeCfb$1.exports,hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(e,t,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var s=0;s>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var o=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),n(s);var a=s.slice(0);r.encryptBlock(a,0);for(var u=0;u>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.pad.Ansix923)}(padAnsix923,padAnsix923.exports)),padAnsix923.exports}padAnsix923.exports;var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.Iso10126={pad:function(e,r){var n=4*r,o=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.pad.Iso10126)}(padIso10126,padIso10126.exports)),padIso10126.exports}padIso10126.exports;var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971)}(padIso97971,padIso97971.exports)),padIso97971.exports}padIso97971.exports;var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},t.pad.ZeroPadding)}(padZeropadding,padZeropadding.exports)),padZeropadding.exports}padZeropadding.exports;var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding)}(padNopadding,padNopadding.exports)),padNopadding.exports}padNopadding.exports;var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}}}(),t.format.Hex)}(formatHex,formatHex.exports)),formatHex.exports}formatHex.exports;var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,o=[],i=[],s=[],a=[],u=[],c=[],l=[],f=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var h=n^n<<1^n<<2^n<<3^n<<4;h=h>>>8^255&h^99,o[r]=h,i[h]=r;var m=e[r],g=e[m],y=e[g],A=257*e[h]^16843008*h;s[r]=A<<24|A>>>8,a[r]=A<<16|A>>>16,u[r]=A<<8|A>>>24,c[r]=A,A=16843009*y^65537*g^257*m^16843008*r,l[h]=A<<24|A>>>8,f[h]=A<<16|A>>>16,d[h]=A<<8|A>>>24,p[h]=A,r?(r=m^e[e[e[y^m]]],n^=e[e[n]]):r=n=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],s=0;s6&&s%r==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=h[s/r|0]<<24),i[s]=i[s-r]^c);for(var a=this._invKeySchedule=[],u=0;u>>24]]^f[o[c>>>16&255]]^d[o[c>>>8&255]]^p[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,u,c,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,f,d,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,a){for(var u=this._nRounds,c=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],p=4,h=1;h>>24]^o[l>>>16&255]^i[f>>>8&255]^s[255&d]^r[p++],g=n[l>>>24]^o[f>>>16&255]^i[d>>>8&255]^s[255&c]^r[p++],y=n[f>>>24]^o[d>>>16&255]^i[c>>>8&255]^s[255&l]^r[p++],A=n[d>>>24]^o[c>>>16&255]^i[l>>>8&255]^s[255&f]^r[p++];c=m,l=g,f=y,d=A}m=(a[c>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&d])^r[p++],g=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[d>>>8&255]<<8|a[255&c])^r[p++],y=(a[f>>>24]<<24|a[d>>>16&255]<<16|a[c>>>8&255]<<8|a[255&l])^r[p++],A=(a[d>>>24]<<24|a[c>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^r[p++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=A},keySize:8});e.AES=r._createHelper(m)}(),t.AES)}(aes,aes.exports)),aes.exports}aes.exports;var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib,n=r.WordArray,o=r.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=s[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],l=u[i];for(r=0;r<24;r++)c[r/6|0]|=t[(a[r]-1+l)%28]<<31-r%6,c[4+(r/6|0)]|=t[28+(a[r+24]-1+l)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,s=this._rBlock,a=0,u=0;u<8;u++)a|=c[u][((s^o[u])&l[u])>>>0];this._lBlock=s,this._rBlock=i^a}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(n.create(t)),this._des2=f.createEncryptor(n.create(r)),this._des3=f.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(h)}(),t.TripleDES)}(tripledes,tripledes.exports)),tripledes.exports}tripledes.exports;var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var s=o%r,a=t[s>>>2]>>>24-s%4*8&255;i=(i+n[o]+a)%256;var u=n[o];n[o]=n[i],n[i]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}e.RC4=r._createHelper(o);var s=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4)}(rc4,rc4.exports)),rc4.exports}rc4.exports;var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],s=[],a=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,s=i[0],a=i[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=c>>>16|4294901760&l,d=l<<16|65535&c;for(o[0]^=c,o[1]^=f,o[2]^=l,o[3]^=d,o[4]^=c,o[5]^=f,o[6]^=l,o[7]^=d,r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,u=((o*o>>>17)+o*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(a)}(),t.Rabbit)}(rabbit,rabbit.exports)),rabbit.exports}rabbit.exports;var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],s=[],a=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)u.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=c>>>16|4294901760&l,d=l<<16|65535&c;for(n[0]^=c,n[1]^=f,n[2]^=l,n[3]^=d,n[4]^=c,n[5]^=f,n[6]^=l,n[7]^=d,o=0;o<4;o++)u.call(this)}},_doProcessBlock:function(e,t){var r=this._X;u.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,u=((o*o>>>17)+o*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(a)}(),t.RabbitLegacy)}(rabbitLegacy,rabbitLegacy.exports)),rabbitLegacy.exports}rabbitLegacy.exports;var blowfish={exports:{}},hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function u(e,t){let r=t>>24&255,n=t>>16&255,o=t>>8&255,i=255&t,s=e.sbox[0][r]+e.sbox[1][n];return s^=e.sbox[2][o],s+=e.sbox[3][i],s}function c(e,t,r){let n,i=t,s=r;for(let t=0;t1;--t)i^=e.pbox[t],s=u(e,i)^s,n=i,i=s,s=n;return n=i,i=s,s=n,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function f(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=s[t][r]}let n=0;for(let s=0;s=r&&(n=0);let a=0,u=0,l=0;for(let t=0;t0||e===t?t:t-1}function m(e){for(var t,r,n=1,o=e.length,i=e[0]+"";nc^r?1:-1;for(a=(u=o.length)<(c=i.length)?u:c,s=0;si[s]^r?1:-1;return u==c?0:u>c^r?1:-1}function y(e,t,r,n){if(er||e!==i(e))throw Error(s+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function A(e){var t=e.c.length-1;return h(e.e/c)==t&&e.c[t]%2!=0}function b(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function v(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else tD?m.c=m.e=null:e.e=10;f/=10,u++);return void(u>D?m.c=m.e=null:(m.e=u,m.c=[e]))}h=String(e)}else{if(!n.test(h=String(e)))return w(m,h,d);m.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(u=h.indexOf("."))>-1&&(h=h.replace(".","")),(f=h.search(/e/i))>0?(u<0&&(u=f),u+=+h.slice(f+1),h=h.substring(0,f)):u<0&&(u=h.length)}else{if(y(t,2,H.length,"Base"),10==t&&q)return K(m=new W(e),C+m.e+1,P);if(h=String(e),d="number"==typeof e){if(0*e!=0)return w(m,h,d,t);if(m.s=1/e<0?(h=h.slice(1),-1):1,W.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else m.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=H.slice(0,t),u=f=0,p=h.length;fu){u=p;continue}}else if(!s&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){s=!0,f=-1,u=0;continue}return w(m,String(e),d,t)}d=!1,(u=(h=_(h,t,10,m.s)).indexOf("."))>-1?h=h.replace(".",""):u=h.length}for(f=0;48===h.charCodeAt(f);f++);for(p=h.length;48===h.charCodeAt(--p););if(h=h.slice(f,++p)){if(p-=f,d&&W.DEBUG&&p>15&&(e>l||e!==i(e)))throw Error(a+m.s*e);if((u=u-f-1)>D)m.c=m.e=null;else if(u=N)?b(u,s):v(u,s,"0");else if(i=(e=K(new W(e),t,r)).e,a=(u=m(e.c)).length,1==n||2==n&&(t<=i||i<=I)){for(;aa){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=i-a)>0)for(i+1==a&&(u+=".");t--;u+="0");return e.s<0&&o?"-"+u:u}function G(e,t){for(var r,n=1,o=new W(e[0]);n=10;o/=10,n++);return(r=n+r*c-1)>D?e.c=e.e=null:r=10;d/=10,s++);if((a=t-s)<0)a+=c,l=t,m=(p=g[h=0])/y[s-l-1]%10|0;else if((h=o((a+1)/c))>=g.length){if(!n)break e;for(;g.length<=h;g.push(0));p=m=0,s=1,l=(a%=c)-c+1}else{for(p=d=g[h],s=1;d>=10;d/=10,s++);m=(l=(a%=c)-c+s)<0?0:p/y[s-l-1]%10|0}if(n=n||t<0||null!=g[h+1]||(l<0?p:p%y[s-l-1]),n=r<4?(m||n)&&(0==r||r==(e.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(a>0?l>0?p/y[s-l]:0:g[h-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,n?(t-=e.e+1,g[0]=y[(c-t%c)%c],e.e=-t||0):g[0]=e.e=0,e;if(0==a?(g.length=h,d=1,h--):(g.length=h+1,d=y[c-a],g[h]=l>0?i(p/y[s-l]%y[l])*d:0),n)for(;;){if(0==h){for(a=1,l=g[0];l>=10;l/=10,a++);for(l=g[0]+=d,d=1;l>=10;l/=10,d++);a!=d&&(e.e++,g[0]==u&&(g[0]=1));break}if(g[h]+=d,g[h]!=u)break;g[h--]=0,d=1}for(a=g.length;0===g[--a];g.pop());}e.e>D?e.c=e.e=null:e.e=N?b(t,r):v(t,r,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(s+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(y(r=e[t],0,p,t),C=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(y(r=e[t],0,8,t),P=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(y(r[0],-p,0,t),y(r[1],0,p,t),I=r[0],N=r[1]):(y(r,-p,p,t),I=-(N=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)y(r[0],-p,-1,t),y(r[1],1,p,t),L=r[0],D=r[1];else{if(y(r,-p,p,t),!r)throw Error(s+t+" cannot be zero: "+r);L=-(D=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(s+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw M=!r,Error(s+"crypto unavailable");M=r}else M=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(y(r=e[t],0,9,t),U=r),e.hasOwnProperty(t="POW_PRECISION")&&(y(r=e[t],0,p,t),F=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(s+t+" not an object: "+r);j=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);q="0123456789"==r.slice(0,10),H=r}}return{DECIMAL_PLACES:C,ROUNDING_MODE:P,EXPONENTIAL_AT:[I,N],RANGE:[L,D],CRYPTO:M,MODULO_MODE:U,POW_PRECISION:F,FORMAT:j,ALPHABET:H}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,r,n=e.c,o=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&o>=-p&&o<=p&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%c)<1&&(t+=c),String(n[0]).length==t){for(t=0;t=u||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return G(arguments,R.lt)},W.minimum=W.min=function(){return G(arguments,R.gt)},W.random=(S=9007199254740992,E=Math.random()*S&2097151?function(){return i(Math.random()*S)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,u,l=0,d=[],h=new W(O);if(null==e?e=C:y(e,0,p),a=o(e/c),M)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));l>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(d.push(u%1e14),l+=2);l=a/2}else{if(!crypto.randomBytes)throw M=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(a*=7);l=9e15?crypto.randomBytes(7).copy(t,l):(d.push(u%1e14),l+=7);l=a/7}if(!M)for(;l=10;u/=10,l++);lr-1&&(null==s[o+1]&&(s[o+1]=0),s[o+1]+=s[o]/r|0,s[o]%=r)}return s.reverse()}return function(n,o,i,s,a){var u,c,l,f,d,p,h,g,y=n.indexOf("."),A=C,b=P;for(y>=0&&(f=F,F=0,n=n.replace(".",""),p=(g=new W(o)).pow(n.length-y),F=f,g.c=t(v(m(p.c),p.e,"0"),10,i,e),g.e=g.c.length),l=f=(h=t(n,o,i,a?(u=H,e):(u=e,H))).length;0==h[--f];h.pop());if(!h[0])return u.charAt(0);if(y<0?--l:(p.c=h,p.e=l,p.s=s,h=(p=r(p,g,A,b,i)).c,d=p.r,l=p.e),y=h[c=l+A+1],f=i/2,d=d||c<0||null!=h[c+1],d=b<4?(null!=y||d)&&(0==b||b==(p.s<0?3:2)):y>f||y==f&&(4==b||d||6==b&&1&h[c-1]||b==(p.s<0?8:7)),c<1||!h[0])n=d?v(u.charAt(1),-A,u.charAt(0)):u.charAt(0);else{if(h.length=c,d)for(--i;++h[--c]>i;)h[c]=0,c||(++l,h=[1].concat(h));for(f=h.length;!h[--f];);for(y=0,n="";y<=f;n+=u.charAt(h[y++]));n=v(n,l,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,o,i,s,a=0,u=e.length,c=t%d,l=t/d|0;for(e=e.slice();u--;)a=((o=c*(i=e[u]%d)+(n=l*i+(s=e[u]/d|0)*c)%d*d+a)/r|0)+(n/d|0)+l*s,e[u]=o%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]1;e.splice(0,1));}return function(n,o,s,a,l){var f,d,p,m,g,y,A,b,v,_,w,S,E,x,$,k,T,B=n.s==o.s?1:-1,R=n.c,O=o.c;if(!(R&&R[0]&&O&&O[0]))return new W(n.s&&o.s&&(R?!O||R[0]!=O[0]:O)?R&&0==R[0]||!O?0*B:B/0:NaN);for(v=(b=new W(B)).c=[],B=s+(d=n.e-o.e)+1,l||(l=u,d=h(n.e/c)-h(o.e/c),B=B/c|0),p=0;O[p]==(R[p]||0);p++);if(O[p]>(R[p]||0)&&d--,B<0)v.push(1),m=!0;else{for(x=R.length,k=O.length,p=0,B+=2,(g=i(l/(O[0]+1)))>1&&(O=e(O,g,l),R=e(R,g,l),k=O.length,x=R.length),E=k,w=(_=R.slice(0,k)).length;w=l/2&&$++;do{if(g=0,(f=t(O,_,k,w))<0){if(S=_[0],k!=w&&(S=S*l+(_[1]||0)),(g=i(S/$))>1)for(g>=l&&(g=l-1),A=(y=e(O,g,l)).length,w=_.length;1==t(y,_,A,w);)g--,r(y,k=10;B/=10,p++);K(b,s+(b.e=p+d*c-1)+1,a,m)}else b.e=d,b.r=+m;return b}}(),x=/^(-?)0([xbo])(?=\w[\w.]*$)/i,$=/^([^.]+)\.$/,k=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,B=/^\s*\+(?=[\w.])|^\s+|\s+$/g,w=function(e,t,r,n){var o,i=r?t:t.replace(B,"");if(T.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!r&&(i=i.replace(x,function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t}),n&&(o=n,i=i.replace($,"$1").replace(k,"0.$1")),t!=i))return new W(i,o);if(W.DEBUG)throw Error(s+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},R.absoluteValue=R.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},R.comparedTo=function(e,t){return g(this,new W(e,t))},R.decimalPlaces=R.dp=function(e,t){var r,n,o,i=this;if(null!=e)return y(e,0,p),null==t?t=P:y(t,0,8),K(new W(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-h(this.e/c))*c,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},R.dividedBy=R.div=function(e,t){return r(this,new W(e,t),C,P)},R.dividedToIntegerBy=R.idiv=function(e,t){return r(this,new W(e,t),0,1)},R.exponentiatedBy=R.pow=function(e,t){var r,n,a,u,l,f,d,p,h=this;if((e=new W(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+Z(e));if(null!=t&&(t=new W(t)),l=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return p=new W(Math.pow(+Z(h),l?2-A(e):+Z(e))),t?p.mod(t):p;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(n=!f&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||l&&h.c[1]>=24e7:h.c[0]<8e13||l&&h.c[0]<=9999975e7)))return u=h.s<0&&A(e)?-0:0,h.e>-1&&(u=1/u),new W(f?1/u:u);F&&(u=o(F/c+2))}for(l?(r=new W(.5),f&&(e.s=1),d=A(e)):d=(a=Math.abs(+Z(e)))%2,p=new W(O);;){if(d){if(!(p=p.times(h)).c)break;u?p.c.length>u&&(p.c.length=u):n&&(p=p.mod(t))}if(a){if(0===(a=i(a/2)))break;d=a%2}else if(K(e=e.times(r),e.e+1,1),e.e>14)d=A(e);else{if(0===(a=+Z(e)))break;d=a%2}h=h.times(h),u?h.c&&h.c.length>u&&(h.c.length=u):n&&(h=h.mod(t))}return n?p:(f&&(p=O.div(p)),t?p.mod(t):u?K(p,F,P,undefined):p)},R.integerValue=function(e){var t=new W(this);return null==e?e=P:y(e,0,8),K(t,t.e+1,e)},R.isEqualTo=R.eq=function(e,t){return 0===g(this,new W(e,t))},R.isFinite=function(){return!!this.c},R.isGreaterThan=R.gt=function(e,t){return g(this,new W(e,t))>0},R.isGreaterThanOrEqualTo=R.gte=function(e,t){return 1===(t=g(this,new W(e,t)))||0===t},R.isInteger=function(){return!!this.c&&h(this.e/c)>this.c.length-2},R.isLessThan=R.lt=function(e,t){return g(this,new W(e,t))<0},R.isLessThanOrEqualTo=R.lte=function(e,t){return-1===(t=g(this,new W(e,t)))||0===t},R.isNaN=function(){return!this.s},R.isNegative=function(){return this.s<0},R.isPositive=function(){return this.s>0},R.isZero=function(){return!!this.c&&0==this.c[0]},R.minus=function(e,t){var r,n,o,i,s=this,a=s.s;if(t=(e=new W(e,t)).s,!a||!t)return new W(NaN);if(a!=t)return e.s=-t,s.plus(e);var l=s.e/c,f=e.e/c,d=s.c,p=e.c;if(!l||!f){if(!d||!p)return d?(e.s=-t,e):new W(p?s:NaN);if(!d[0]||!p[0])return p[0]?(e.s=-t,e):new W(d[0]?s:3==P?-0:0)}if(l=h(l),f=h(f),d=d.slice(),a=l-f){for((i=a<0)?(a=-a,o=d):(f=l,o=p),o.reverse(),t=a;t--;o.push(0));o.reverse()}else for(n=(i=(a=d.length)<(t=p.length))?a:t,a=t=0;t0)for(;t--;d[r++]=0);for(t=u-1;n>a;){if(d[--n]=0;){for(r=0,g=S[o]%v,y=S[o]/v|0,i=o+(s=l);i>o;)r=((f=g*(f=w[--s]%v)+(a=y*f+(p=w[s]/v|0)*g)%v*v+A[i]+r)/b|0)+(a/v|0)+y*p,A[i--]=f%b;A[i]=r}return r?++n:A.splice(0,1),V(e,A,n)},R.negated=function(){var e=new W(this);return e.s=-e.s||null,e},R.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new W(e,t)).s,!o||!t)return new W(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/c,s=e.e/c,a=n.c,l=e.c;if(!i||!s){if(!a||!l)return new W(o/0);if(!a[0]||!l[0])return l[0]?e:new W(a[0]?n:0*o)}if(i=h(i),s=h(s),a=a.slice(),o=i-s){for(o>0?(s=i,r=l):(o=-o,r=a),r.reverse();o--;r.push(0));r.reverse()}for((o=a.length)-(t=l.length)<0&&(r=l,l=a,a=r,t=o),o=0;t;)o=(a[--t]=a[t]+l[t]+o)/u|0,a[t]=u===a[t]?0:a[t]%u;return o&&(a=[o].concat(a),++s),V(e,a,s)},R.precision=R.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return y(e,1,p),null==t?t=P:y(t,0,8),K(new W(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*c+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},R.shiftedBy=function(e){return y(e,-9007199254740991,l),this.times("1e"+e)},R.squareRoot=R.sqrt=function(){var e,t,n,o,i,s=this,a=s.c,u=s.s,c=s.e,l=C+4,f=new W("0.5");if(1!==u||!a||!a[0])return new W(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+Z(s)))||u==1/0?(((t=m(a)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=h((c+1)/2)-(c<0||c%2),n=new W(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new W(u+""),n.c[0])for((u=(c=n.e)+l)<3&&(u=0);;)if(i=n,n=f.times(i.plus(r(s,i,l,1))),m(i.c).slice(0,u)===(t=m(n.c)).slice(0,u)){if(n.e0&&m>0){for(i=m%u||u,f=h.substr(0,i);i0&&(f+=l+h.slice(i)),p&&(f="-"+f)}n=d?f+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):f}return(r.prefix||"")+n+(r.suffix||"")},R.toFraction=function(e){var t,n,o,i,a,u,l,d,p,h,g,y,A=this,b=A.c;if(null!=e&&(!(l=new W(e)).isInteger()&&(l.c||1!==l.s)||l.lt(O)))throw Error(s+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+Z(l));if(!b)return new W(A);for(t=new W(O),p=n=new W(O),o=d=new W(O),y=m(b),a=t.e=y.length-A.e-1,t.c[0]=f[(u=a%c)<0?c+u:u],e=!e||l.comparedTo(t)>0?a>0?t:p:l,u=D,D=1/0,l=new W(y),d.c[0]=0;h=r(l,t,0,1),1!=(i=n.plus(h.times(o))).comparedTo(e);)n=o,o=i,p=d.plus(h.times(i=p)),d=i,t=l.minus(h.times(i=t)),l=i;return i=r(e.minus(n),o,0,1),d=d.plus(i.times(p)),n=n.plus(i.times(o)),d.s=p.s=A.s,g=r(p,o,a*=2,P).minus(A).abs().comparedTo(r(d,n,a,P).minus(A).abs())<1?[p,o]:[d,n],D=u,g},R.toNumber=function(){return+Z(this)},R.toPrecision=function(e,t){return null!=e&&y(e,1,p),z(this,e,t,2)},R.toString=function(e){var t,r=this,n=r.s,o=r.e;return null===o?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=o<=I||o>=N?b(m(r.c),o):v(m(r.c),o,"0"):10===e&&q?t=v(m((r=K(new W(r),C+o+1,P)).c),r.e,"0"):(y(e,2,H.length,"Base"),t=_(v(m(r.c),o,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},R.valueOf=R.toJSON=function(){return Z(this)},R._isBigNumber=!0,null!=t&&W.set(t),W}(),r.default=r.BigNumber=r,e.exports?e.exports=r:(t||(t="undefined"!=typeof self&&self?self:window),t.BigNumber=r)}(commonjsGlobal)}(bignumber);var bignumberExports=bignumber.exports,N$1=getDefaultExportFromCjs(bignumberExports);const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0",PACKET_TYPES.close="1",PACKET_TYPES.ping="2",PACKET_TYPES.pong="3",PACKET_TYPES.message="4",PACKET_TYPES.upgrade="5",PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[e]]=e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),withNativeArrayBuffer$2="function"==typeof ArrayBuffer,isView$1=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,encodePacket=({type:e,data:t},r,n)=>withNativeBlob$1&&t instanceof Blob?r?n(t):encodeBlobAsBase64(t,n):withNativeArrayBuffer$2&&(t instanceof ArrayBuffer||isView$1(t))?r?n(t):encodeBlobAsBase64(new Blob([t]),n):n(PACKET_TYPES[e]+(t||"")),encodeBlobAsBase64=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function toArray$1(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(e,t){return withNativeBlob$1&&e.data instanceof Blob?e.data.arrayBuffer().then(toArray$1).then(t):withNativeArrayBuffer$2&&(e.data instanceof ArrayBuffer||isView$1(e.data))?t(toArray$1(e.data)):void encodePacket(e,!1,e=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),t(TEXT_ENCODER.encode(e))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,r,n,o,i,s=.75*e.length,a=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const c=new ArrayBuffer(s),l=new Uint8Array(c);for(t=0;t>4,l[u++]=(15&n)<<4|o>>2,l[u++]=(3&o)<<6|63&i;return c},withNativeArrayBuffer$1="function"==typeof ArrayBuffer,decodePacket=(e,t)=>{if("string"!=typeof e)return{type:"message",data:mapBinary(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:decodeBase64Packet(e.substring(1),t)};return PACKET_TYPES_REVERSE[r]?e.length>1?{type:PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:PACKET_TYPES_REVERSE[r]}:ERROR_PACKET},decodeBase64Packet=(e,t)=>{if(withNativeArrayBuffer$1){const r=decode$1(e);return mapBinary(r,t)}return{base64:!0,data:e}},mapBinary=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,SEPARATOR=String.fromCharCode(30),encodePayload=(e,t)=>{const r=e.length,n=new Array(r);let o=0;e.forEach((e,i)=>{encodePacket(e,!1,e=>{n[i]=e,++o===r&&t(n.join(SEPARATOR))})})},decodePayload=(e,t)=>{const r=e.split(SEPARATOR),n=[];for(let e=0;e{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}let TEXT_DECODER;function totalLength(e){return e.reduce((e,t)=>e+t.length,0)}function concatChunks(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(ERROR_PACKET);break}o=i*Math.pow(2,32)+t.getUint32(4),n=3}else{if(totalLength(r)e){a.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(e){if(e)return mixin(e)}function mixin(e){for(var t in Emitter.prototype)e[t]=Emitter.prototype[t];return e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Emitter.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(e,t){t.useNativeTimers?(e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(e){return"string"==typeof e?utf8Length(e):Math.ceil((e.byteLength||e.size)*BASE64_OVERHEAD)}function utf8Length(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function encode$3(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function decode(e){let t={},r=e.split("&");for(let e=0,n=r.length;e0);return t}function yeast(){const e=encode$2(+new Date);return e!==prev?(seed=0,prev=e):e+"."+encode$2(seed++)}for(;i$1{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){decodePayload(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,encodePayload(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=yeast()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request$1(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class Request$1 extends Emitter{constructor(e,t){super(),installTimerFunctions(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const r=this.xhr=new XHR(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=Request$1.requestsCount++,Request$1.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=empty,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Request$1.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Request$1.requestsCount=0,Request$1.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",unloadHandler);else if("function"==typeof addEventListener){const e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(e,unloadHandler,!1)}function unloadHandler(){for(let e in Request$1.requests)Request$1.requests.hasOwnProperty(e)&&Request$1.requests[e].abort()}const nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),WebSocket$1=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class WS extends Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?t?new WebSocket$1(e,t):new WebSocket$1(e):new WebSocket$1(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{usingBrowserWebSocket&&this.ws.send(e)}catch(e){}n&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=yeast()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!WebSocket$1}}class WT extends Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=createPacketEncoderStream();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const o=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t{n&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re$1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(e){if(e.length>2e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=re$1.exec(e||""),i={},s=14;for(;s--;)i[parts[s]]=o[s]||"";return-1!=r&&-1!=n&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=pathNames(i,i.path),i.queryKey=queryKey(i,i.query),i}function pathNames(e,t){const r=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}function queryKey(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}class Socket$1 extends Emitter{constructor(e,t={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=parse(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=parse(t.host).host),installTimerFunctions(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=protocol$1,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new transports[e](r)}open(){let e;if(this.opts.rememberUpgrade&&Socket$1.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),r=!1;Socket$1.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Socket$1.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}const i=e=>{const r=new Error("probe error: "+e);r.transport=t.name,o(),this.emitReserved("upgradeError",r)};function s(){i("transport closed")}function a(){i("socket closed")}function u(e){t&&e.name!==t.name&&o()}const c=()=>{t.removeListener("open",n),t.removeListener("error",i),t.removeListener("close",s),this.off("close",a),this.off("upgrading",u)};t.once("open",n),t.once("error",i),t.once("close",s),this.once("close",a),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",Socket$1.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const o={type:e,data:t,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){Socket$1.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,toString$1=Object.prototype.toString,withNativeBlob="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===toString$1.call(Blob),withNativeFile="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===toString$1.call(File);function isBinary$1(e){return withNativeArrayBuffer&&(e instanceof ArrayBuffer||isView(e))||withNativeBlob&&e instanceof Blob||withNativeFile&&e instanceof File}function hasBinary(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(o),t.apply(this,[null,...e])}}emitWithAck(e,...t){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((n,o)=>{t.push((e,t)=>r?e?o(e):n(t):n(e)),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(e);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(e);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:PacketType.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(e){this.ms=e},Backoff.prototype.setMax=function(e){this.max=e},Backoff.prototype.setJitter=function(e){this.jitter=e};class Manager extends Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||parser;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=on$2(t,"open",function(){r.onopen(),e&&e()}),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=on$2(t,"error",o);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(on$2(e,"ping",this.onping.bind(this)),on$2(e,"data",this.ondata.bind(this)),on$2(e,"error",this.onerror.bind(this)),on$2(e,"close",this.onclose.bind(this)),on$2(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){nextTick(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const cache={};function lookup(e,t){"object"==typeof e&&(t=e,e=void 0);const r=url(e,(t=t||{}).path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=cache[o]&&i in cache[o].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new Manager(n,t):(cache[o]||(cache[o]=new Manager(n,t)),a=cache[o]),r.query&&!t.query&&(t.query=r.queryKey),a.socket(r.path,t)}Object.assign(lookup,{Manager:Manager,Socket:Socket,io:lookup,connect:lookup});var dist={},ChronikClient={},cashaddr={},base32={},validation$1={}; -/** - * @license - * https://reviews.bitcoinabc.org - * Copyright (c) 2017-2020 Emilio Almansi - * Copyright (c) 2023 Bitcoin ABC - * Distributed under the MIT software license, see the accompanying - * file LICENSE or http://www.opensource.org/licenses/mit-license.php. - */ -Object.defineProperty(validation$1,"__esModule",{value:!0});class ValidationError extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,ValidationError.prototype)}}function validate$1(e,t){if(!e)throw new ValidationError(t)}validation$1.default={ValidationError:ValidationError,validate:validate$1},function(e){ +t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}return e}function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e}var o=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),n(s);var a=s.slice(0);r.encryptBlock(a,0);for(var l=0;l>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.pad.Ansix923)}(padAnsix923$1)),padAnsix923$1.exports}var padIso10126$1={exports:{}},padIso10126=padIso10126$1.exports,hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.Iso10126={pad:function(e,r){var n=4*r,o=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.pad.Iso10126)}(padIso10126$1)),padIso10126$1.exports}var padIso97971$1={exports:{}},padIso97971=padIso97971$1.exports,hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971)}(padIso97971$1)),padIso97971$1.exports}var padZeropadding$1={exports:{}},padZeropadding=padZeropadding$1.exports,hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},t.pad.ZeroPadding)}(padZeropadding$1)),padZeropadding$1.exports}var padNopadding$1={exports:{}},padNopadding=padNopadding$1.exports,hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding)}(padNopadding$1)),padNopadding$1.exports}var formatHex$1={exports:{}},formatHex=formatHex$1.exports,hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function(e){var t;e.exports=(t=requireCore(),requireCipherCore(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}}}(),t.format.Hex)}(formatHex$1)),formatHex$1.exports}var aes$1={exports:{}},aes=aes$1.exports,hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,o=[],i=[],s=[],a=[],l=[],u=[],c=[],d=[],f=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var h=n^n<<1^n<<2^n<<3^n<<4;h=h>>>8^255&h^99,o[r]=h,i[h]=r;var m=e[r],g=e[m],y=e[g],A=257*e[h]^16843008*h;s[r]=A<<24|A>>>8,a[r]=A<<16|A>>>16,l[r]=A<<8|A>>>24,u[r]=A,A=16843009*y^65537*g^257*m^16843008*r,c[h]=A<<24|A>>>8,d[h]=A<<16|A>>>16,f[h]=A<<8|A>>>24,p[h]=A,r?(r=m^e[e[e[y^m]]],n^=e[e[n]]):r=n=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],s=0;s6&&s%r==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=h[s/r|0]<<24),i[s]=i[s-r]^u);for(var a=this._invKeySchedule=[],l=0;l>>24]]^d[o[u>>>16&255]]^f[o[u>>>8&255]]^p[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,l,u,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,c,d,f,p,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,a){for(var l=this._nRounds,u=e[t]^r[0],c=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],p=4,h=1;h>>24]^o[c>>>16&255]^i[d>>>8&255]^s[255&f]^r[p++],g=n[c>>>24]^o[d>>>16&255]^i[f>>>8&255]^s[255&u]^r[p++],y=n[d>>>24]^o[f>>>16&255]^i[u>>>8&255]^s[255&c]^r[p++],A=n[f>>>24]^o[u>>>16&255]^i[c>>>8&255]^s[255&d]^r[p++];u=m,c=g,d=y,f=A}m=(a[u>>>24]<<24|a[c>>>16&255]<<16|a[d>>>8&255]<<8|a[255&f])^r[p++],g=(a[c>>>24]<<24|a[d>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^r[p++],y=(a[d>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&c])^r[p++],A=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[c>>>8&255]<<8|a[255&d])^r[p++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=A},keySize:8});e.AES=r._createHelper(m)}(),t.AES)}(aes$1)),aes$1.exports}var tripledes$1={exports:{}},tripledes=tripledes$1.exports,hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib,n=r.WordArray,o=r.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=s[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var u=o[i]=[],c=l[i];for(r=0;r<24;r++)u[r/6|0]|=t[(a[r]-1+c)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(a[r+24]-1+c)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,s=this._rBlock,a=0,l=0;l<8;l++)a|=u[l][((s^o[l])&c[l])>>>0];this._lBlock=s,this._rBlock=i^a}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(h)}(),t.TripleDES)}(tripledes$1)),tripledes$1.exports}var rc4$1={exports:{}},rc4=rc4$1.exports,hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var s=o%r,a=t[s>>>2]>>>24-s%4*8&255;i=(i+n[o]+a)%256;var l=n[o];n[o]=n[i],n[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}e.RC4=r._createHelper(o);var s=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4)}(rc4$1)),rc4$1.exports}var rabbit$1={exports:{}},rabbit=rabbit$1.exports,hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],s=[],a=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,s=i[0],a=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=u>>>16|4294901760&c,f=c<<16|65535&u;for(o[0]^=u,o[1]^=d,o[2]^=c,o[3]^=f,o[4]^=u,o[5]^=d,o[6]^=c,o[7]^=f,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,l=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=l^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(a)}(),t.Rabbit)}(rabbit$1)),rabbit$1.exports}var rabbitLegacy$1={exports:{}},rabbitLegacy=rabbitLegacy$1.exports,hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],s=[],a=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=u>>>16|4294901760&c,f=c<<16|65535&u;for(n[0]^=u,n[1]^=d,n[2]^=c,n[3]^=f,n[4]^=u,n[5]^=d,n[6]^=c,n[7]^=f,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var r=this._X;l.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,l=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=l^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(a)}(),t.RabbitLegacy)}(rabbitLegacy$1)),rabbitLegacy$1.exports}var blowfish$1={exports:{}},blowfish=blowfish$1.exports,hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function(e){var t;e.exports=(t=requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function l(e,t){let r=t>>24&255,n=t>>16&255,o=t>>8&255,i=255&t,s=e.sbox[0][r]+e.sbox[1][n];return s^=e.sbox[2][o],s+=e.sbox[3][i],s}function u(e,t,r){let n,i=t,s=r;for(let t=0;t1;--t)i^=e.pbox[t],s=l(e,i)^s,n=i,i=s,s=n;return n=i,i=s,s=n,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function d(e,t,r){for(let t=0;t<4;t++){e.sbox[t]=[];for(let r=0;r<256;r++)e.sbox[t][r]=s[t][r]}let n=0;for(let s=0;s=r&&(n=0);let a=0,l=0,c=0;for(let t=0;t0||e===t?t:t-1}function m(e){for(var t,r,n=1,o=e.length,i=e[0]+"";nu^r?1:-1;for(a=(l=o.length)<(u=i.length)?l:u,s=0;si[s]^r?1:-1;return l==u?0:l>u^r?1:-1}function y(e,t,r,n){if(er||e!==i(e))throw Error(s+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function A(e){var t=e.c.length-1;return h(e.e/u)==t&&e.c[t]%2!=0}function b(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function v(e,t,r){var n,o;if(t<0){for(o=r+".";++t;o+=r);e=o+e}else if(++t>(n=e.length)){for(o=r,t-=n;--t;o+=r);e+=o}else tL?m.c=m.e=null:e.e=10;d/=10,l++);return void(l>L?m.c=m.e=null:(m.e=l,m.c=[e]))}h=String(e)}else{if(!n.test(h=String(e)))return S(m,h,f);m.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(l=h.indexOf("."))>-1&&(h=h.replace(".","")),(d=h.search(/e/i))>0?(l<0&&(l=d),l+=+h.slice(d+1),h=h.substring(0,d)):l<0&&(l=h.length)}else{if(y(t,2,j.length,"Base"),10==t&&H)return K(m=new z(e),I+m.e+1,P);if(h=String(e),f="number"==typeof e){if(0*e!=0)return S(m,h,f,t);if(m.s=1/e<0?(h=h.slice(1),-1):1,z.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else m.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(r=j.slice(0,t),l=d=0,p=h.length;dl){l=p;continue}}else if(!s&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){s=!0,d=-1,l=0;continue}return S(m,String(e),f,t)}f=!1,(l=(h=w(h,t,10,m.s)).indexOf("."))>-1?h=h.replace(".",""):l=h.length}for(d=0;48===h.charCodeAt(d);d++);for(p=h.length;48===h.charCodeAt(--p););if(h=h.slice(d,++p)){if(p-=d,f&&z.DEBUG&&p>15&&(e>c||e!==i(e)))throw Error(a+m.s*e);if((l=l-d-1)>L)m.c=m.e=null;else if(l=N)?b(l,s):v(l,s,"0");else if(i=(e=K(new z(e),t,r)).e,a=(l=m(e.c)).length,1==n||2==n&&(t<=i||i<=$)){for(;aa){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=i-a)>0)for(i+1==a&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function V(e,t){for(var r,n=1,o=new z(e[0]);n=10;o/=10,n++);return(r=n+r*u-1)>L?e.c=e.e=null:r=10;f/=10,s++);if((a=t-s)<0)a+=u,c=t,m=(p=g[h=0])/y[s-c-1]%10|0;else if((h=o((a+1)/u))>=g.length){if(!n)break e;for(;g.length<=h;g.push(0));p=m=0,s=1,c=(a%=u)-u+1}else{for(p=f=g[h],s=1;f>=10;f/=10,s++);m=(c=(a%=u)-u+s)<0?0:p/y[s-c-1]%10|0}if(n=n||t<0||null!=g[h+1]||(c<0?p:p%y[s-c-1]),n=r<4?(m||n)&&(0==r||r==(e.s<0?3:2)):m>5||5==m&&(4==r||n||6==r&&(a>0?c>0?p/y[s-c]:0:g[h-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,n?(t-=e.e+1,g[0]=y[(u-t%u)%u],e.e=-t||0):g[0]=e.e=0,e;if(0==a?(g.length=h,f=1,h--):(g.length=h+1,f=y[u-a],g[h]=c>0?i(p/y[s-c]%y[c])*f:0),n)for(;;){if(0==h){for(a=1,c=g[0];c>=10;c/=10,a++);for(c=g[0]+=f,f=1;c>=10;c/=10,f++);a!=f&&(e.e++,g[0]==l&&(g[0]=1));break}if(g[h]+=f,g[h]!=l)break;g[h--]=0,f=1}for(a=g.length;0===g[--a];g.pop());}e.e>L?e.c=e.e=null:e.e=N?b(t,r):v(t,r,"0"),e.s<0?"-"+t:t)}return z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(s+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(y(r=e[t],0,p,t),I=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(y(r=e[t],0,8,t),P=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(y(r[0],-p,0,t),y(r[1],0,p,t),$=r[0],N=r[1]):(y(r,-p,p,t),$=-(N=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)y(r[0],-p,-1,t),y(r[1],1,p,t),M=r[0],L=r[1];else{if(y(r,-p,p,t),!r)throw Error(s+t+" cannot be zero: "+r);M=-(L=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(s+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw D=!r,Error(s+"crypto unavailable");D=r}else D=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(y(r=e[t],0,9,t),q=r),e.hasOwnProperty(t="POW_PRECISION")&&(y(r=e[t],0,p,t),U=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(s+t+" not an object: "+r);F=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);H="0123456789"==r.slice(0,10),j=r}}return{DECIMAL_PLACES:I,ROUNDING_MODE:P,EXPONENTIAL_AT:[$,N],RANGE:[M,L],CRYPTO:D,MODULO_MODE:q,POW_PRECISION:U,FORMAT:F,ALPHABET:j}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var t,r,n=e.c,o=e.e,a=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===a||-1===a)&&o>=-p&&o<=p&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%u)<1&&(t+=u),String(n[0]).length==t){for(t=0;t=l||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+e)},z.maximum=z.max=function(){return V(arguments,B.lt)},z.minimum=z.min=function(){return V(arguments,B.gt)},z.random=(_=9007199254740992,x=Math.random()*_&2097151?function(){return i(Math.random()*_)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,l,c=0,f=[],h=new z(O);if(null==e?e=I:y(e,0,p),a=o(e/u),D)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(l%1e14),c+=2);c=a/2}else{if(!crypto.randomBytes)throw D=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(a*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(l%1e14),c+=7);c=a/7}if(!D)for(;c=10;l/=10,c++);cr-1&&(null==s[o+1]&&(s[o+1]=0),s[o+1]+=s[o]/r|0,s[o]%=r)}return s.reverse()}return function(n,o,i,s,a){var l,u,c,d,f,p,h,g,y=n.indexOf("."),A=I,b=P;for(y>=0&&(d=U,U=0,n=n.replace(".",""),p=(g=new z(o)).pow(n.length-y),U=d,g.c=t(v(m(p.c),p.e,"0"),10,i,e),g.e=g.c.length),c=d=(h=t(n,o,i,a?(l=j,e):(l=e,j))).length;0==h[--d];h.pop());if(!h[0])return l.charAt(0);if(y<0?--c:(p.c=h,p.e=c,p.s=s,h=(p=r(p,g,A,b,i)).c,f=p.r,c=p.e),y=h[u=c+A+1],d=i/2,f=f||u<0||null!=h[u+1],f=b<4?(null!=y||f)&&(0==b||b==(p.s<0?3:2)):y>d||y==d&&(4==b||f||6==b&&1&h[u-1]||b==(p.s<0?8:7)),u<1||!h[0])n=f?v(l.charAt(1),-A,l.charAt(0)):l.charAt(0);else{if(h.length=u,f)for(--i;++h[--u]>i;)h[u]=0,u||(++c,h=[1].concat(h));for(d=h.length;!h[--d];);for(y=0,n="";y<=d;n+=l.charAt(h[y++]));n=v(n,c,l.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,o,i,s,a=0,l=e.length,u=t%f,c=t/f|0;for(e=e.slice();l--;)a=((o=u*(i=e[l]%f)+(n=c*i+(s=e[l]/f|0)*u)%f*f+a)/r|0)+(n/f|0)+c*s,e[l]=o%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]1;e.splice(0,1));}return function(n,o,s,a,c){var d,f,p,m,g,y,A,b,v,w,S,_,x,E,k,T,R,C=n.s==o.s?1:-1,B=n.c,O=o.c;if(!(B&&B[0]&&O&&O[0]))return new z(n.s&&o.s&&(B?!O||B[0]!=O[0]:O)?B&&0==B[0]||!O?0*C:C/0:NaN);for(v=(b=new z(C)).c=[],C=s+(f=n.e-o.e)+1,c||(c=l,f=h(n.e/u)-h(o.e/u),C=C/u|0),p=0;O[p]==(B[p]||0);p++);if(O[p]>(B[p]||0)&&f--,C<0)v.push(1),m=!0;else{for(E=B.length,T=O.length,p=0,C+=2,(g=i(c/(O[0]+1)))>1&&(O=e(O,g,c),B=e(B,g,c),T=O.length,E=B.length),x=T,S=(w=B.slice(0,T)).length;S=c/2&&k++;do{if(g=0,(d=t(O,w,T,S))<0){if(_=w[0],T!=S&&(_=_*c+(w[1]||0)),(g=i(_/k))>1)for(g>=c&&(g=c-1),A=(y=e(O,g,c)).length,S=w.length;1==t(y,w,A,S);)g--,r(y,T=10;C/=10,p++);K(b,s+(b.e=p+f*u-1)+1,a,m)}else b.e=f,b.r=+m;return b}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,k=/^([^.]+)\.$/,T=/^\.([^.]+)$/,R=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g,S=function(e,t,r,n){var o,i=r?t:t.replace(C,"");if(R.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!r&&(i=i.replace(E,function(e,t,r){return o="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=o?e:t}),n&&(o=n,i=i.replace(k,"$1").replace(T,"0.$1")),t!=i))return new z(i,o);if(z.DEBUG)throw Error(s+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},B.absoluteValue=B.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},B.comparedTo=function(e,t){return g(this,new z(e,t))},B.decimalPlaces=B.dp=function(e,t){var r,n,o,i=this;if(null!=e)return y(e,0,p),null==t?t=P:y(t,0,8),K(new z(i),e+i.e+1,t);if(!(r=i.c))return null;if(n=((o=r.length-1)-h(this.e/u))*u,o=r[o])for(;o%10==0;o/=10,n--);return n<0&&(n=0),n},B.dividedBy=B.div=function(e,t){return r(this,new z(e,t),I,P)},B.dividedToIntegerBy=B.idiv=function(e,t){return r(this,new z(e,t),0,1)},B.exponentiatedBy=B.pow=function(e,t){var r,n,a,l,c,d,f,p,h=this;if((e=new z(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+Z(e));if(null!=t&&(t=new z(t)),c=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return p=new z(Math.pow(+Z(h),c?2-A(e):+Z(e))),t?p.mod(t):p;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new z(NaN);(n=!d&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||c&&h.c[1]>=24e7:h.c[0]<8e13||c&&h.c[0]<=9999975e7)))return l=h.s<0&&A(e)?-0:0,h.e>-1&&(l=1/l),new z(d?1/l:l);U&&(l=o(U/u+2))}for(c?(r=new z(.5),d&&(e.s=1),f=A(e)):f=(a=Math.abs(+Z(e)))%2,p=new z(O);;){if(f){if(!(p=p.times(h)).c)break;l?p.c.length>l&&(p.c.length=l):n&&(p=p.mod(t))}if(a){if(0===(a=i(a/2)))break;f=a%2}else if(K(e=e.times(r),e.e+1,1),e.e>14)f=A(e);else{if(0===(a=+Z(e)))break;f=a%2}h=h.times(h),l?h.c&&h.c.length>l&&(h.c.length=l):n&&(h=h.mod(t))}return n?p:(d&&(p=O.div(p)),t?p.mod(t):l?K(p,U,P,undefined):p)},B.integerValue=function(e){var t=new z(this);return null==e?e=P:y(e,0,8),K(t,t.e+1,e)},B.isEqualTo=B.eq=function(e,t){return 0===g(this,new z(e,t))},B.isFinite=function(){return!!this.c},B.isGreaterThan=B.gt=function(e,t){return g(this,new z(e,t))>0},B.isGreaterThanOrEqualTo=B.gte=function(e,t){return 1===(t=g(this,new z(e,t)))||0===t},B.isInteger=function(){return!!this.c&&h(this.e/u)>this.c.length-2},B.isLessThan=B.lt=function(e,t){return g(this,new z(e,t))<0},B.isLessThanOrEqualTo=B.lte=function(e,t){return-1===(t=g(this,new z(e,t)))||0===t},B.isNaN=function(){return!this.s},B.isNegative=function(){return this.s<0},B.isPositive=function(){return this.s>0},B.isZero=function(){return!!this.c&&0==this.c[0]},B.minus=function(e,t){var r,n,o,i,s=this,a=s.s;if(t=(e=new z(e,t)).s,!a||!t)return new z(NaN);if(a!=t)return e.s=-t,s.plus(e);var c=s.e/u,d=e.e/u,f=s.c,p=e.c;if(!c||!d){if(!f||!p)return f?(e.s=-t,e):new z(p?s:NaN);if(!f[0]||!p[0])return p[0]?(e.s=-t,e):new z(f[0]?s:3==P?-0:0)}if(c=h(c),d=h(d),f=f.slice(),a=c-d){for((i=a<0)?(a=-a,o=f):(d=c,o=p),o.reverse(),t=a;t--;o.push(0));o.reverse()}else for(n=(i=(a=f.length)<(t=p.length))?a:t,a=t=0;t0)for(;t--;f[r++]=0);for(t=l-1;n>a;){if(f[--n]=0;){for(r=0,g=_[o]%v,y=_[o]/v|0,i=o+(s=c);i>o;)r=((d=g*(d=S[--s]%v)+(a=y*d+(p=S[s]/v|0)*g)%v*v+A[i]+r)/b|0)+(a/v|0)+y*p,A[i--]=d%b;A[i]=r}return r?++n:A.splice(0,1),G(e,A,n)},B.negated=function(){var e=new z(this);return e.s=-e.s||null,e},B.plus=function(e,t){var r,n=this,o=n.s;if(t=(e=new z(e,t)).s,!o||!t)return new z(NaN);if(o!=t)return e.s=-t,n.minus(e);var i=n.e/u,s=e.e/u,a=n.c,c=e.c;if(!i||!s){if(!a||!c)return new z(o/0);if(!a[0]||!c[0])return c[0]?e:new z(a[0]?n:0*o)}if(i=h(i),s=h(s),a=a.slice(),o=i-s){for(o>0?(s=i,r=c):(o=-o,r=a),r.reverse();o--;r.push(0));r.reverse()}for((o=a.length)-(t=c.length)<0&&(r=c,c=a,a=r,t=o),o=0;t;)o=(a[--t]=a[t]+c[t]+o)/l|0,a[t]=l===a[t]?0:a[t]%l;return o&&(a=[o].concat(a),++s),G(e,a,s)},B.precision=B.sd=function(e,t){var r,n,o,i=this;if(null!=e&&e!==!!e)return y(e,1,p),null==t?t=P:y(t,0,8),K(new z(i),e,t);if(!(r=i.c))return null;if(n=(o=r.length-1)*u+1,o=r[o]){for(;o%10==0;o/=10,n--);for(o=r[0];o>=10;o/=10,n++);}return e&&i.e+1>n&&(n=i.e+1),n},B.shiftedBy=function(e){return y(e,-9007199254740991,c),this.times("1e"+e)},B.squareRoot=B.sqrt=function(){var e,t,n,o,i,s=this,a=s.c,l=s.s,u=s.e,c=I+4,d=new z("0.5");if(1!==l||!a||!a[0])return new z(!l||l<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(l=Math.sqrt(+Z(s)))||l==1/0?(((t=m(a)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=h((u+1)/2)-(u<0||u%2),n=new z(t=l==1/0?"5e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new z(l+""),n.c[0])for((l=(u=n.e)+c)<3&&(l=0);;)if(i=n,n=d.times(i.plus(r(s,i,c,1))),m(i.c).slice(0,l)===(t=m(n.c)).slice(0,l)){if(n.e0&&m>0){for(i=m%l||l,d=h.substr(0,i);i0&&(d+=c+h.slice(i)),p&&(d="-"+d)}n=f?d+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):d}return(r.prefix||"")+n+(r.suffix||"")},B.toFraction=function(e){var t,n,o,i,a,l,c,f,p,h,g,y,A=this,b=A.c;if(null!=e&&(!(c=new z(e)).isInteger()&&(c.c||1!==c.s)||c.lt(O)))throw Error(s+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+Z(c));if(!b)return new z(A);for(t=new z(O),p=n=new z(O),o=f=new z(O),y=m(b),a=t.e=y.length-A.e-1,t.c[0]=d[(l=a%u)<0?u+l:l],e=!e||c.comparedTo(t)>0?a>0?t:p:c,l=L,L=1/0,c=new z(y),f.c[0]=0;h=r(c,t,0,1),1!=(i=n.plus(h.times(o))).comparedTo(e);)n=o,o=i,p=f.plus(h.times(i=p)),f=i,t=c.minus(h.times(i=t)),c=i;return i=r(e.minus(n),o,0,1),f=f.plus(i.times(p)),n=n.plus(i.times(o)),f.s=p.s=A.s,g=r(p,o,a*=2,P).minus(A).abs().comparedTo(r(f,n,a,P).minus(A).abs())<1?[p,o]:[f,n],L=l,g},B.toNumber=function(){return+Z(this)},B.toPrecision=function(e,t){return null!=e&&y(e,1,p),W(this,e,t,2)},B.toString=function(e){var t,r=this,n=r.s,o=r.e;return null===o?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=o<=$||o>=N?b(m(r.c),o):v(m(r.c),o,"0"):10===e&&H?t=v(m((r=K(new z(r),I+o+1,P)).c),r.e,"0"):(y(e,2,j.length,"Base"),t=w(v(m(r.c),o,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},B.valueOf=B.toJSON=function(){return Z(this)},B._isBigNumber=!0,null!=t&&z.set(t),z}(),r.default=r.BigNumber=r,e.exports?e.exports=r:(t||(t="undefined"!=typeof self&&self?self:window),t.BigNumber=r)}(bignumber)}(bignumber$1)),bignumber$1.exports}var bignumberExports=requireBignumber(),R=getDefaultExportFromCjs(bignumberExports);const PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0",PACKET_TYPES.close="1",PACKET_TYPES.ping="2",PACKET_TYPES.pong="3",PACKET_TYPES.message="4",PACKET_TYPES.upgrade="5",PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(e=>{PACKET_TYPES_REVERSE[PACKET_TYPES[e]]=e});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),withNativeArrayBuffer$2="function"==typeof ArrayBuffer,isView$1=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,encodePacket=({type:e,data:t},r,n)=>withNativeBlob$1&&t instanceof Blob?r?n(t):encodeBlobAsBase64(t,n):withNativeArrayBuffer$2&&(t instanceof ArrayBuffer||isView$1(t))?r?n(t):encodeBlobAsBase64(new Blob([t]),n):n(PACKET_TYPES[e]+(t||"")),encodeBlobAsBase64=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function toArray(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(e,t){return withNativeBlob$1&&e.data instanceof Blob?e.data.arrayBuffer().then(toArray).then(t):withNativeArrayBuffer$2&&(e.data instanceof ArrayBuffer||isView$1(e.data))?t(toArray(e.data)):void encodePacket(e,!1,e=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),t(TEXT_ENCODER.encode(e))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e{let t,r,n,o,i,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const u=new ArrayBuffer(s),c=new Uint8Array(u);for(t=0;t>4,c[l++]=(15&n)<<4|o>>2,c[l++]=(3&o)<<6|63&i;return u},withNativeArrayBuffer$1="function"==typeof ArrayBuffer,decodePacket=(e,t)=>{if("string"!=typeof e)return{type:"message",data:mapBinary(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:decodeBase64Packet(e.substring(1),t)};return PACKET_TYPES_REVERSE[r]?e.length>1?{type:PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:PACKET_TYPES_REVERSE[r]}:ERROR_PACKET},decodeBase64Packet=(e,t)=>{if(withNativeArrayBuffer$1){const r=decode$1(e);return mapBinary(r,t)}return{base64:!0,data:e}},mapBinary=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,SEPARATOR=String.fromCharCode(30),encodePayload=(e,t)=>{const r=e.length,n=new Array(r);let o=0;e.forEach((e,i)=>{encodePacket(e,!1,e=>{n[i]=e,++o===r&&t(n.join(SEPARATOR))})})},decodePayload=(e,t)=>{const r=e.split(SEPARATOR),n=[];for(let e=0;e{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}let TEXT_DECODER;function totalLength(e){return e.reduce((e,t)=>e+t.length,0)}function concatChunks(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(ERROR_PACKET);break}o=i*Math.pow(2,32)+t.getUint32(4),n=3}else{if(totalLength(r)e){a.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(e){if(e)return mixin(e)}function mixin(e){for(var t in Emitter.prototype)e[t]=Emitter.prototype[t];return e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Emitter.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(e,t){t.useNativeTimers?(e.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),e.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(e.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),e.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(e){return"string"==typeof e?utf8Length(e):Math.ceil((e.byteLength||e.size)*BASE64_OVERHEAD)}function utf8Length(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}function encode$1(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function decode(e){let t={},r=e.split("&");for(let e=0,n=r.length;e0);return t}function yeast(){const e=encode(+new Date);return e!==prev?(seed=0,prev=e):e+"."+encode(seed++)}for(;i$1{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){decodePayload(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,encodePayload(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=yeast()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class Request extends Emitter{constructor(e,t){super(),installTimerFunctions(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const r=this.xhr=new XHR(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){return void this.setTimeoutFn(()=>{this.onError(e)},0)}"undefined"!=typeof document&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=empty,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Request.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Request.requestsCount=0,Request.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",unloadHandler);else if("function"==typeof addEventListener){const e="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(e,unloadHandler,!1)}function unloadHandler(){for(let e in Request.requests)Request.requests.hasOwnProperty(e)&&Request.requests[e].abort()}const nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),WebSocket$1=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class WS extends Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?t?new WebSocket$1(e,t):new WebSocket$1(e):new WebSocket$1(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{usingBrowserWebSocket&&this.ws.send(e)}catch(e){}n&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=yeast()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!WebSocket$1}}class WT extends Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=createPacketEncoderStream();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const o=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this.writer.write(i).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t{n&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re$1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(e){if(e.length>2e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=re$1.exec(e||""),i={},s=14;for(;s--;)i[parts[s]]=o[s]||"";return-1!=r&&-1!=n&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=pathNames(i,i.path),i.queryKey=queryKey(i,i.query),i}function pathNames(e,t){const r=t.replace(/\/{2,9}/g,"/").split("/");return"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}function queryKey(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}let Socket$1=class e extends Emitter{constructor(e,t={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=parse(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=parse(t.host).host),installTimerFunctions(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=protocol$1,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new transports[e](r)}open(){let t;if(this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(t){let r=this.createTransport(t),n=!1;e.priorWebsocketSuccess=!1;const o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",t=>{if(!n)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;e.priorWebsocketSuccess="websocket"===r.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=r.name,this.emitReserved("upgradeError",e)}}))};function i(){n||(n=!0,c(),r.close(),r=null)}const s=e=>{const t=new Error("probe error: "+e);t.transport=r.name,i(),this.emitReserved("upgradeError",t)};function a(){s("transport closed")}function l(){s("socket closed")}function u(e){r&&e.name!==r.name&&i()}const c=()=>{r.removeListener("open",o),r.removeListener("error",s),r.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};r.once("open",o),r.once("error",s),r.once("close",a),this.once("close",l),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onOpen(){if(this.readyState="open",e.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const o={type:e,data:t,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(t){e.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===toString.call(Blob),withNativeFile="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===toString.call(File);function isBinary$1(e){return withNativeArrayBuffer&&(e instanceof ArrayBuffer||isView(e))||withNativeBlob&&e instanceof Blob||withNativeFile&&e instanceof File}function hasBinary(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(o),t.apply(this,[null,...e])}}emitWithAck(e,...t){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((n,o)=>{t.push((e,t)=>r?e?o(e):n(t):n(e)),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(e);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(e);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:PacketType.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+r:e-r}return 0|Math.min(e,this.max)},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(e){this.ms=e},Backoff.prototype.setMax=function(e){this.max=e},Backoff.prototype.setJitter=function(e){this.jitter=e};class Manager extends Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||parser;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=on(t,"open",function(){r.onopen(),e&&e()}),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=on(t,"error",o);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(on(e,"ping",this.onping.bind(this)),on(e,"data",this.ondata.bind(this)),on(e,"error",this.onerror.bind(this)),on(e,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){nextTick(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const cache={};function lookup(e,t){"object"==typeof e&&(t=e,e=void 0);const r=url(e,(t=t||{}).path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=cache[o]&&i in cache[o].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new Manager(n,t):(cache[o]||(cache[o]=new Manager(n,t)),a=cache[o]),r.query&&!t.query&&(t.query=r.queryKey),a.socket(r.path,t)}Object.assign(lookup,{Manager:Manager,Socket:Socket,io:lookup,connect:lookup});var dist={},ChronikClient={},cashaddr={},base32={},validation$1={},hasRequiredValidation$1,hasRequiredBase32;function requireValidation$1(){if(hasRequiredValidation$1)return validation$1;hasRequiredValidation$1=1, /** * @license * https://reviews.bitcoinabc.org * Copyright (c) 2017-2020 Emilio Almansi - * Copyright (c) 2023-2024 Bitcoin ABC + * Copyright (c) 2023 Bitcoin ABC * Distributed under the MIT software license, see the accompanying * file LICENSE or http://www.opensource.org/licenses/mit-license.php. */ -var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CHARSET=void 0;const r=t(validation$1),{validate:n}=r.default;e.CHARSET="qpzry9x8gf2tvdw0s3jn54khce6mua7l";const o={q:0,p:1,z:2,r:3,y:4,9:5,x:6,8:7,g:8,f:9,2:10,t:11,v:12,d:13,w:14,0:15,s:16,3:17,j:18,n:19,5:20,4:21,k:22,h:23,c:24,e:25,6:26,m:27,u:28,a:29,7:30,l:31};e.default={encode:function(t){n(t instanceof Uint8Array,"Invalid data: "+t+".");let r="";for(let o=0;o>t===0,"Invalid value: "+o+"."),u=u<=r;)c-=r,s[a]=u>>c&i,++a}return n?validate(c0&&(s[a]=u<>=5n;return t}(f(m)));return e+":"+r.default.encode(g)}function u(t){i("string"==typeof t&&p(t),"Invalid address: "+t+".");const o=t.toLowerCase().split(":");let a,u;if(1===o.length){let n=!1;for(let t=0;t>35n;r=(0x07ffffffffn&r)<<5n^BigInt(e[n]);for(let e=0;e>BigInt(e)&1n&&(r^=t[e])}return 1n^r}function d(e,t){const r=l(c(e),new Uint8Array(1));return 0n===f(l(r,t))}function p(e){return e===e.toLowerCase()||e===e.toUpperCase()}function h(e){let t="";for(let r=0;r{let r;return i("p2pkh"===e||"p2sh"===e,"Invalid type: "+e+"."),r="p2pkh"===e?`76a914${t}88ac`:`a914${t}87`,r}}(cashaddr);var ws=null;"undefined"!=typeof WebSocket?ws=WebSocket:"undefined"!=typeof MozWebSocket?ws=MozWebSocket:void 0!==commonjsGlobal?ws=commonjsGlobal.WebSocket||commonjsGlobal.MozWebSocket:"undefined"!=typeof window?ws=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(ws=self.WebSocket||self.MozWebSocket);var browser=ws,chronik={},long=Long,wasm=null;try{wasm=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function Long(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function isLong(e){return!0===(e&&e.__isLong__)}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0}),Long.isLong=isLong;var INT_CACHE={},UINT_CACHE={};function fromInt(e,t){var r,n,o;return t?(o=0<=(e>>>=0)&&e<256)&&(n=UINT_CACHE[e])?n:(r=fromBits(e,(0|e)<0?-1:0,!0),o&&(UINT_CACHE[e]=r),r):(o=-128<=(e|=0)&&e<128)&&(n=INT_CACHE[e])?n:(r=fromBits(e,e<0?-1:0,!1),o&&(INT_CACHE[e]=r),r)}function fromNumber(e,t){if(isNaN(e))return t?UZERO:ZERO;if(t){if(e<0)return UZERO;if(e>=TWO_PWR_64_DBL)return MAX_UNSIGNED_VALUE}else{if(e<=-TWO_PWR_63_DBL)return MIN_VALUE;if(e+1>=TWO_PWR_63_DBL)return MAX_VALUE}return e<0?fromNumber(-e,t).neg():fromBits(e%TWO_PWR_32_DBL|0,e/TWO_PWR_32_DBL|0,t)}function fromBits(e,t,r){return new Long(e,t,r)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var pow_dbl=Math.pow;function fromString(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return ZERO;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||360)throw Error("interior hyphen");if(0===n)return fromString(e.substring(1),t,r).neg();for(var o=fromNumber(pow_dbl(r,8)),i=ZERO,s=0;s>>0:this.low},LongPrototype.toNumber=function(){return this.unsigned?(this.high>>>0)*TWO_PWR_32_DBL+(this.low>>>0):this.high*TWO_PWR_32_DBL+(this.low>>>0)},LongPrototype.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=a).isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}},LongPrototype.getHighBits=function(){return this.high},LongPrototype.getHighBitsUnsigned=function(){return this.high>>>0},LongPrototype.getLowBits=function(){return this.low},LongPrototype.getLowBitsUnsigned=function(){return this.low>>>0},LongPrototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(MIN_VALUE)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<=0},LongPrototype.isOdd=function(){return!(1&~this.low)},LongPrototype.isEven=function(){return!(1&this.low)},LongPrototype.equals=function(e){return isLong(e)||(e=fromValue(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},LongPrototype.eq=LongPrototype.equals,LongPrototype.notEquals=function(e){return!this.eq(e)},LongPrototype.neq=LongPrototype.notEquals,LongPrototype.ne=LongPrototype.notEquals,LongPrototype.lessThan=function(e){return this.comp(e)<0},LongPrototype.lt=LongPrototype.lessThan,LongPrototype.lessThanOrEqual=function(e){return this.comp(e)<=0},LongPrototype.lte=LongPrototype.lessThanOrEqual,LongPrototype.le=LongPrototype.lessThanOrEqual,LongPrototype.greaterThan=function(e){return this.comp(e)>0},LongPrototype.gt=LongPrototype.greaterThan,LongPrototype.greaterThanOrEqual=function(e){return this.comp(e)>=0},LongPrototype.gte=LongPrototype.greaterThanOrEqual,LongPrototype.ge=LongPrototype.greaterThanOrEqual,LongPrototype.compare=function(e){if(isLong(e)||(e=fromValue(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},LongPrototype.comp=LongPrototype.compare,LongPrototype.negate=function(){return!this.unsigned&&this.eq(MIN_VALUE)?MIN_VALUE:this.not().add(ONE)},LongPrototype.neg=LongPrototype.negate,LongPrototype.add=function(e){isLong(e)||(e=fromValue(e));var t=this.high>>>16,r=65535&this.high,n=this.low>>>16,o=65535&this.low,i=e.high>>>16,s=65535&e.high,a=e.low>>>16,u=0,c=0,l=0,f=0;return l+=(f+=o+(65535&e.low))>>>16,c+=(l+=n+a)>>>16,u+=(c+=r+s)>>>16,u+=t+i,fromBits((l&=65535)<<16|(f&=65535),(u&=65535)<<16|(c&=65535),this.unsigned)},LongPrototype.subtract=function(e){return isLong(e)||(e=fromValue(e)),this.add(e.neg())},LongPrototype.sub=LongPrototype.subtract,LongPrototype.multiply=function(e){if(this.isZero())return ZERO;if(isLong(e)||(e=fromValue(e)),wasm)return fromBits(wasm.mul(this.low,this.high,e.low,e.high),wasm.get_high(),this.unsigned);if(e.isZero())return ZERO;if(this.eq(MIN_VALUE))return e.isOdd()?MIN_VALUE:ZERO;if(e.eq(MIN_VALUE))return this.isOdd()?MIN_VALUE:ZERO;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(TWO_PWR_24)&&e.lt(TWO_PWR_24))return fromNumber(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,n=this.low>>>16,o=65535&this.low,i=e.high>>>16,s=65535&e.high,a=e.low>>>16,u=65535&e.low,c=0,l=0,f=0,d=0;return f+=(d+=o*u)>>>16,l+=(f+=n*u)>>>16,f&=65535,l+=(f+=o*a)>>>16,c+=(l+=r*u)>>>16,l&=65535,c+=(l+=n*a)>>>16,l&=65535,c+=(l+=o*s)>>>16,c+=t*u+r*a+n*s+o*i,fromBits((f&=65535)<<16|(d&=65535),(c&=65535)<<16|(l&=65535),this.unsigned)},LongPrototype.mul=LongPrototype.multiply,LongPrototype.divide=function(e){if(isLong(e)||(e=fromValue(e)),e.isZero())throw Error("division by zero");var t,r,n;if(wasm)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?fromBits((this.unsigned?wasm.div_u:wasm.div_s)(this.low,this.high,e.low,e.high),wasm.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?UZERO:ZERO;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return UZERO;if(e.gt(this.shru(1)))return UONE;n=UZERO}else{if(this.eq(MIN_VALUE))return e.eq(ONE)||e.eq(NEG_ONE)?MIN_VALUE:e.eq(MIN_VALUE)?ONE:(t=this.shr(1).div(e).shl(1)).eq(ZERO)?e.isNegative()?ONE:NEG_ONE:(r=this.sub(e.mul(t)),n=t.add(r.div(e)));if(e.eq(MIN_VALUE))return this.unsigned?UZERO:ZERO;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();n=ZERO}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(t)/Math.LN2),i=o<=48?1:pow_dbl(2,o-48),s=fromNumber(t),a=s.mul(e);a.isNegative()||a.gt(r);)a=(s=fromNumber(t-=i,this.unsigned)).mul(e);s.isZero()&&(s=ONE),n=n.add(s),r=r.sub(a)}return n},LongPrototype.div=LongPrototype.divide,LongPrototype.modulo=function(e){return isLong(e)||(e=fromValue(e)),wasm?fromBits((this.unsigned?wasm.rem_u:wasm.rem_s)(this.low,this.high,e.low,e.high),wasm.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},LongPrototype.mod=LongPrototype.modulo,LongPrototype.rem=LongPrototype.modulo,LongPrototype.not=function(){return fromBits(~this.low,~this.high,this.unsigned)},LongPrototype.and=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low&e.low,this.high&e.high,this.unsigned)},LongPrototype.or=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low|e.low,this.high|e.high,this.unsigned)},LongPrototype.xor=function(e){return isLong(e)||(e=fromValue(e)),fromBits(this.low^e.low,this.high^e.high,this.unsigned)},LongPrototype.shiftLeft=function(e){return isLong(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?fromBits(this.low<>>32-e,this.unsigned):fromBits(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},LongPrototype.shr=LongPrototype.shiftRight,LongPrototype.shiftRightUnsigned=function(e){if(isLong(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?fromBits(this.low>>>e|t<<32-e,t>>>e,this.unsigned):fromBits(32===e?t:t>>>e-32,0,this.unsigned)},LongPrototype.shru=LongPrototype.shiftRightUnsigned,LongPrototype.shr_u=LongPrototype.shiftRightUnsigned,LongPrototype.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this},LongPrototype.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)},LongPrototype.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},LongPrototype.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},LongPrototype.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},Long.fromBytes=function(e,t,r){return r?Long.fromBytesLE(e,t):Long.fromBytesBE(e,t)},Long.fromBytesLE=function(e,t){return new Long(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},Long.fromBytesBE=function(e,t){return new Long(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)};var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=1,aspromise=function(e,t){var r=new Array(arguments.length-1),n=0,o=2,i=!0;for(;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var r=new Array(64),n=new Array(123),o=0;o<64;)n[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;t.encode=function(e,t,n){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=r[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=r[o|c>>6],s[a++]=r[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=r[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var i="invalid encoding";t.decode=function(e,t,r){for(var o,s=r,a=0,u=0;u1)break;if(void 0===(c=n[c]))throw Error(i);switch(a){case 0:o=c,a=1;break;case 1:t[r++]=o<<2|(48&c)>>4,o=c,a=2;break;case 2:t[r++]=(15&o)<<4|(60&c)>>2,o=c,a=3;break;case 3:t[r++]=(3&o)<<6|c,a=0}}if(1===a)throw Error(i);return r-s},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(base64$1)),base64$1}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function e(){this._listeners={}}return hasRequiredEventemitter=1,eventemitter=e,e.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},e.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=i.bind(null,t),e.writeFloatBE=i.bind(null,r),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function i(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=i.bind(null,t,0,4),e.writeDoubleBE=i.bind(null,r,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function t(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function r(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}return hasRequiredFloat=1,float=e(e)}function requireInquire(){if(hasRequiredInquire)return inquire_1;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}return hasRequiredInquire=1,inquire_1=inquire,inquire_1}var utf8$2={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(e){var t=e;t.length=function(e){for(var t=0,r=0,n=0;n191&&n<224?i[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(n>>10),i[s++]=56320+(1023&n)):i[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))},t.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}}(utf8$2)),utf8$2}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=1,pool_1=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}},pool_1}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=t;var e=requireMinimal();function t(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=t.zero=new t(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var n=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return r;var n=e<0;n&&(e=-e);var o=e>>>0,i=(e-o)/4294967296>>>0;return n&&(i=~i>>>0,o=~o>>>0,++o>4294967295&&(o=0,++i>4294967295&&(i=0))),new t(o,i)},t.from=function(n){if("number"==typeof n)return t.fromNumber(n);if(e.isString(n)){if(!e.Long)return t.fromNumber(parseInt(n,10));n=e.Long.fromString(n)}return n.low||n.high?new t(n.low>>>0,n.high>>>0):r},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var o=String.prototype.charCodeAt;return t.fromHash=function(e){return e===n?r:new t((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10},longbits}function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(e){var t=e;function r(e,t,r){for(var n=Object.keys(t),o=0;o0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},t.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,r){var n=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(n.lo,n.hi,r):n.toNumber(Boolean(r))},t.merge=r,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=n,t.ProtocolError=n("ProtocolError"),t.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},t.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function VarintOp(e,t){this.len=e,this.next=void 0,this.val=t}function writeVarint64(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function writeFixed32(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}Writer$1.create=create$1(),Writer$1.alloc=function(e){return new util$6.Array(e)},util$6.Array!==Array&&(Writer$1.alloc=util$6.pool(Writer$1.alloc,util$6.Array.prototype.subarray)),Writer$1.prototype._push=function(e,t,r){return this.tail=this.tail.next=new Op(e,t,r),this.len+=t,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer$1.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new VarintOp((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},Writer$1.prototype.int32=function(e){return e<0?this._push(writeVarint64,10,LongBits$1.fromNumber(e)):this.uint32(e)},Writer$1.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},Writer$1.prototype.uint64=function(e){var t=LongBits$1.from(e);return this._push(writeVarint64,t.length(),t)},Writer$1.prototype.int64=Writer$1.prototype.uint64,Writer$1.prototype.sint64=function(e){var t=LongBits$1.from(e).zzEncode();return this._push(writeVarint64,t.length(),t)},Writer$1.prototype.bool=function(e){return this._push(writeByte,1,e?1:0)},Writer$1.prototype.fixed32=function(e){return this._push(writeFixed32,4,e>>>0)},Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32,Writer$1.prototype.fixed64=function(e){var t=LongBits$1.from(e);return this._push(writeFixed32,4,t.lo)._push(writeFixed32,4,t.hi)},Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64,Writer$1.prototype.float=function(e){return this._push(util$6.float.writeFloatLE,4,e)},Writer$1.prototype.double=function(e){return this._push(util$6.float.writeDoubleLE,8,e)};var writeBytes=util$6.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(writeByte,1,0);if(util$6.isString(e)){var r=Writer$1.alloc(t=base64.length(e));base64.decode(e,r,0),e=r}return this.uint32(t)._push(writeBytes,t,e)},Writer$1.prototype.string=function(e){var t=utf8$1.length(e);return t?this.uint32(t)._push(utf8$1.write,t,e):this._push(writeByte,1,0)},Writer$1.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop$1,0,0),this.len=0,this},Writer$1.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop$1,0,0),this.len=0),this},Writer$1.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},Writer$1.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},Writer$1._configure=function(e){BufferWriter$1=e,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$5=requireMinimal();function BufferWriter(){Writer.call(this)}function writeStringBuffer(e,t,r){e.length<40?util$5.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}BufferWriter._configure=function(){BufferWriter.alloc=util$5._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$5.Buffer&&util$5.Buffer.prototype instanceof Uint8Array&&"set"===util$5.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(BufferWriter.writeBytesBuffer,t,e),this},BufferWriter.prototype.string=function(e){var t=util$5.Buffer.byteLength(e);return this.uint32(t),t&&this._push(writeStringBuffer,t,e),this},BufferWriter._configure();var reader=Reader$1,util$4=requireMinimal(),BufferReader$1,LongBits=util$4.LongBits,utf8=util$4.utf8;function indexOutOfRange(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function Reader$1(e){this.buf=e,this.pos=0,this.len=e.length}var create_array="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Reader$1(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Reader$1(e);throw Error("illegal buffer")},create=function(){return util$4.Buffer?function(e){return(Reader$1.create=function(e){return util$4.Buffer.isBuffer(e)?new BufferReader$1(e):create_array(e)})(e)}:create_array};function readLongVarint(){var e=new LongBits(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw indexOutOfRange(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function readFixed32_end(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.create=create(),Reader$1.prototype._slice=util$4.Array.prototype.subarray||util$4.Array.prototype.slice,Reader$1.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return e}}(),Reader$1.prototype.int32=function(){return 0|this.uint32()},Reader$1.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},Reader$1.prototype.bool=function(){return 0!==this.uint32()},Reader$1.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var e=util$4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},Reader$1.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var e=util$4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},Reader$1.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw indexOutOfRange(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},Reader$1.prototype.string=function(){var e=this.bytes();return utf8.read(e,0,e.length)},Reader$1.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw indexOutOfRange(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw indexOutOfRange(this)}while(128&this.buf[this.pos++]);return this},Reader$1.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},Reader$1._configure=function(e){BufferReader$1=e,Reader$1.create=create(),BufferReader$1._configure();var t=util$4.Long?"toLong":"toNumber";util$4.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[t](!1)},uint64:function(){return readLongVarint.call(this)[t](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[t](!1)},fixed64:function(){return readFixed64.call(this)[t](!0)},sfixed64:function(){return readFixed64.call(this)[t](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$3=requireMinimal();function BufferReader(e){Reader.call(this,e)}BufferReader._configure=function(){util$3.Buffer&&(BufferReader.prototype._slice=util$3.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},BufferReader._configure();var rpc={},service=Service,util$2=requireMinimal();function Service(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");util$2.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(Service.prototype=Object.create(util$2.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function e(t,r,n,o,i){if(!o)throw TypeError("request must be specified");var s=this;if(!i)return util$2.asPromise(e,s,t,r,n,o);if(s.rpcImpl)try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return s.emit("error",e,t),i(e);if(null!==r){if(!(r instanceof n))try{r=n[s.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return s.emit("error",e,t),i(e)}return s.emit("data",r,t),i(null,r)}s.end(!0)})}catch(e){return s.emit("error",e,t),void setTimeout(function(){i(e)},0)}else setTimeout(function(){i(Error("already ended"))},0)},Service.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(e){e.Service=service}(rpc);var roots={};!function(e){var t=e;function r(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=writer,t.BufferWriter=writer_buffer,t.Reader=reader,t.BufferReader=reader_buffer,t.util=requireMinimal(),t.rpc=rpc,t.roots=roots,t.configure=r,r()}(indexMinimal);var minimal=indexMinimal;!function(e){var t=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ScriptUtxos=e.TxHistoryPage=e.PluginGroups=e.PluginGroup=e.PluginEntry=e.TokenFailedColoring=e.TokenFailedParsing=e.Token=e.GenesisInfo=e.TokenEntry=e.TokenInfo=e.TokenType=e.BlockMetadata=e.TxOutput_PluginsEntry=e.TxOutput=e.TxInput_PluginsEntry=e.TxInput=e.SpentBy=e.OutPoint=e.Utxo_PluginsEntry=e.Utxo=e.ScriptUtxo_PluginsEntry=e.ScriptUtxo=e.Tx=e.BlockInfo=e.ChronikInfo=e.BlockchainInfo=e.BlockHeaders=e.BlockHeader=e.Blocks=e.Block=e.txMsgTypeToJSON=e.txMsgTypeFromJSON=e.TxMsgType=e.blockMsgTypeToJSON=e.blockMsgTypeFromJSON=e.BlockMsgType=e.tokenTxTypeToJSON=e.tokenTxTypeFromJSON=e.TokenTxType=e.slpTokenTypeToJSON=e.slpTokenTypeFromJSON=e.SlpTokenType=e.alpTokenTypeToJSON=e.alpTokenTypeFromJSON=e.AlpTokenType=e.tokenStatusToJSON=e.tokenStatusFromJSON=e.TokenStatus=e.protobufPackage=void 0,e.Error=e.Empty=e.MsgTx=e.MsgBlock=e.CoinbaseData=e.WsMsg=e.WsPlugin=e.WsSubLokadId=e.WsSubTokenId=e.WsSubScript=e.WsSubBlocks=e.WsSub=e.RawTx=e.BroadcastTxsResponse=e.BroadcastTxsRequest=e.BroadcastTxResponse=e.BroadcastTxRequest=e.Utxos=void 0;const r=t(long),n=t(minimal);var o,i,s,a,u,c;function l(e){switch(e){case 0:case"TOKEN_STATUS_NON_TOKEN":return o.TOKEN_STATUS_NON_TOKEN;case 1:case"TOKEN_STATUS_NORMAL":return o.TOKEN_STATUS_NORMAL;case 2:case"TOKEN_STATUS_NOT_NORMAL":return o.TOKEN_STATUS_NOT_NORMAL;default:return o.UNRECOGNIZED}}function f(e){switch(e){case o.TOKEN_STATUS_NON_TOKEN:return"TOKEN_STATUS_NON_TOKEN";case o.TOKEN_STATUS_NORMAL:return"TOKEN_STATUS_NORMAL";case o.TOKEN_STATUS_NOT_NORMAL:return"TOKEN_STATUS_NOT_NORMAL";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function d(e){switch(e){case 0:case"ALP_TOKEN_TYPE_STANDARD":return i.ALP_TOKEN_TYPE_STANDARD;default:return i.UNRECOGNIZED}}function p(e){switch(e){case i.ALP_TOKEN_TYPE_STANDARD:return"ALP_TOKEN_TYPE_STANDARD";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function h(e){switch(e){case 0:case"SLP_TOKEN_TYPE_NONE":return s.SLP_TOKEN_TYPE_NONE;case 1:case"SLP_TOKEN_TYPE_FUNGIBLE":return s.SLP_TOKEN_TYPE_FUNGIBLE;case 2:case"SLP_TOKEN_TYPE_MINT_VAULT":return s.SLP_TOKEN_TYPE_MINT_VAULT;case 129:case"SLP_TOKEN_TYPE_NFT1_GROUP":return s.SLP_TOKEN_TYPE_NFT1_GROUP;case 65:case"SLP_TOKEN_TYPE_NFT1_CHILD":return s.SLP_TOKEN_TYPE_NFT1_CHILD;default:return s.UNRECOGNIZED}}function m(e){switch(e){case s.SLP_TOKEN_TYPE_NONE:return"SLP_TOKEN_TYPE_NONE";case s.SLP_TOKEN_TYPE_FUNGIBLE:return"SLP_TOKEN_TYPE_FUNGIBLE";case s.SLP_TOKEN_TYPE_MINT_VAULT:return"SLP_TOKEN_TYPE_MINT_VAULT";case s.SLP_TOKEN_TYPE_NFT1_GROUP:return"SLP_TOKEN_TYPE_NFT1_GROUP";case s.SLP_TOKEN_TYPE_NFT1_CHILD:return"SLP_TOKEN_TYPE_NFT1_CHILD";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function g(e){switch(e){case 0:case"NONE":return a.NONE;case 1:case"UNKNOWN":return a.UNKNOWN;case 2:case"GENESIS":return a.GENESIS;case 3:case"SEND":return a.SEND;case 4:case"MINT":return a.MINT;case 5:case"BURN":return a.BURN;default:return a.UNRECOGNIZED}}function y(e){switch(e){case a.NONE:return"NONE";case a.UNKNOWN:return"UNKNOWN";case a.GENESIS:return"GENESIS";case a.SEND:return"SEND";case a.MINT:return"MINT";case a.BURN:return"BURN";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function A(e){switch(e){case 0:case"BLK_CONNECTED":return u.BLK_CONNECTED;case 1:case"BLK_DISCONNECTED":return u.BLK_DISCONNECTED;case 2:case"BLK_FINALIZED":return u.BLK_FINALIZED;case 3:case"BLK_INVALIDATED":return u.BLK_INVALIDATED;default:return u.UNRECOGNIZED}}function b(e){switch(e){case u.BLK_CONNECTED:return"BLK_CONNECTED";case u.BLK_DISCONNECTED:return"BLK_DISCONNECTED";case u.BLK_FINALIZED:return"BLK_FINALIZED";case u.BLK_INVALIDATED:return"BLK_INVALIDATED";case u.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function v(e){switch(e){case 0:case"TX_ADDED_TO_MEMPOOL":return c.TX_ADDED_TO_MEMPOOL;case 1:case"TX_REMOVED_FROM_MEMPOOL":return c.TX_REMOVED_FROM_MEMPOOL;case 2:case"TX_CONFIRMED":return c.TX_CONFIRMED;case 3:case"TX_FINALIZED":return c.TX_FINALIZED;default:return c.UNRECOGNIZED}}function _(e){switch(e){case c.TX_ADDED_TO_MEMPOOL:return"TX_ADDED_TO_MEMPOOL";case c.TX_REMOVED_FROM_MEMPOOL:return"TX_REMOVED_FROM_MEMPOOL";case c.TX_CONFIRMED:return"TX_CONFIRMED";case c.TX_FINALIZED:return"TX_FINALIZED";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function w(){return{rawHeader:new Uint8Array(0),root:new Uint8Array(0),branch:[]}}function S(){return{tipHash:new Uint8Array(0),tipHeight:0}}function E(){return{hash:new Uint8Array(0),prevHash:new Uint8Array(0),height:0,nBits:0,timestamp:BigInt("0"),isFinal:!1,blockSize:BigInt("0"),numTxs:BigInt("0"),numInputs:BigInt("0"),numOutputs:BigInt("0"),sumInputSats:BigInt("0"),sumCoinbaseOutputSats:BigInt("0"),sumNormalOutputSats:BigInt("0"),sumBurnedSats:BigInt("0")}}function x(){return{txid:new Uint8Array(0),version:0,inputs:[],outputs:[],lockTime:0,block:void 0,timeFirstSeen:BigInt("0"),size:0,isCoinbase:!1,tokenEntries:[],tokenFailedParsings:[],tokenStatus:0,isFinal:!1}}function $(){return{outpoint:void 0,blockHeight:0,isCoinbase:!1,sats:BigInt("0"),isFinal:!1,token:void 0,plugins:{}}}function k(){return{outpoint:void 0,blockHeight:0,isCoinbase:!1,sats:BigInt("0"),script:new Uint8Array(0),isFinal:!1,token:void 0,plugins:{}}}function T(){return{txid:new Uint8Array(0),outIdx:0}}function B(){return{txid:new Uint8Array(0),inputIdx:0}}function R(){return{prevOut:void 0,inputScript:new Uint8Array(0),outputScript:new Uint8Array(0),sats:BigInt("0"),sequenceNo:0,token:void 0,plugins:{}}}function O(){return{sats:BigInt("0"),outputScript:new Uint8Array(0),spentBy:void 0,token:void 0,plugins:{}}}function C(){return{height:0,hash:new Uint8Array(0),timestamp:BigInt("0"),isFinal:!1}}function P(){return{tokenId:"",tokenType:void 0,genesisInfo:void 0,block:void 0,timeFirstSeen:BigInt("0")}}function I(){return{tokenId:"",tokenType:void 0,txType:0,groupTokenId:"",isInvalid:!1,burnSummary:"",failedColorings:[],actualBurnAtoms:"",intentionalBurnAtoms:BigInt("0"),burnsMintBatons:!1}}function N(){return{tokenTicker:new Uint8Array(0),tokenName:new Uint8Array(0),url:new Uint8Array(0),hash:new Uint8Array(0),mintVaultScripthash:new Uint8Array(0),data:new Uint8Array(0),authPubkey:new Uint8Array(0),decimals:0}}function L(){return{tokenId:"",tokenType:void 0,entryIdx:0,atoms:BigInt("0"),isMintBaton:!1}}function D(){return{pushdataIdx:0,bytes:new Uint8Array(0),error:""}}function M(){return{group:new Uint8Array(0)}}function U(){return{groups:[],nextStart:new Uint8Array(0)}}function F(){return{script:new Uint8Array(0),utxos:[]}}function j(){return{rawTx:new Uint8Array(0),skipTokenChecks:!1}}function H(){return{txid:new Uint8Array(0)}}function q(){return{rawTx:new Uint8Array(0)}}function W(){return{scriptType:"",payload:new Uint8Array(0)}}function z(){return{lokadId:new Uint8Array(0)}}function G(){return{pluginName:"",group:new Uint8Array(0)}}function V(){return{coinbaseScriptsig:new Uint8Array(0),coinbaseOutputs:[]}}function K(){return{msgType:0,blockHash:new Uint8Array(0),blockHeight:0,blockTimestamp:BigInt("0"),coinbaseData:void 0}}function Z(){return{msgType:0,txid:new Uint8Array(0)}}function J(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{const t=globalThis.atob(e),r=new Uint8Array(t.length);for(let e=0;e{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}function Q(e){return BigInt(e.toString())}function Y(e){return"object"==typeof e&&null!==e}function ee(e){return null!=e}e.protobufPackage="chronik",function(e){e[e.TOKEN_STATUS_NON_TOKEN=0]="TOKEN_STATUS_NON_TOKEN",e[e.TOKEN_STATUS_NORMAL=1]="TOKEN_STATUS_NORMAL",e[e.TOKEN_STATUS_NOT_NORMAL=2]="TOKEN_STATUS_NOT_NORMAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.TokenStatus||(e.TokenStatus={})),e.tokenStatusFromJSON=l,e.tokenStatusToJSON=f,function(e){e[e.ALP_TOKEN_TYPE_STANDARD=0]="ALP_TOKEN_TYPE_STANDARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=e.AlpTokenType||(e.AlpTokenType={})),e.alpTokenTypeFromJSON=d,e.alpTokenTypeToJSON=p,function(e){e[e.SLP_TOKEN_TYPE_NONE=0]="SLP_TOKEN_TYPE_NONE",e[e.SLP_TOKEN_TYPE_FUNGIBLE=1]="SLP_TOKEN_TYPE_FUNGIBLE",e[e.SLP_TOKEN_TYPE_MINT_VAULT=2]="SLP_TOKEN_TYPE_MINT_VAULT",e[e.SLP_TOKEN_TYPE_NFT1_GROUP=129]="SLP_TOKEN_TYPE_NFT1_GROUP",e[e.SLP_TOKEN_TYPE_NFT1_CHILD=65]="SLP_TOKEN_TYPE_NFT1_CHILD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.SlpTokenType||(e.SlpTokenType={})),e.slpTokenTypeFromJSON=h,e.slpTokenTypeToJSON=m,function(e){e[e.NONE=0]="NONE",e[e.UNKNOWN=1]="UNKNOWN",e[e.GENESIS=2]="GENESIS",e[e.SEND=3]="SEND",e[e.MINT=4]="MINT",e[e.BURN=5]="BURN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=e.TokenTxType||(e.TokenTxType={})),e.tokenTxTypeFromJSON=g,e.tokenTxTypeToJSON=y,function(e){e[e.BLK_CONNECTED=0]="BLK_CONNECTED",e[e.BLK_DISCONNECTED=1]="BLK_DISCONNECTED",e[e.BLK_FINALIZED=2]="BLK_FINALIZED",e[e.BLK_INVALIDATED=3]="BLK_INVALIDATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.BlockMsgType||(e.BlockMsgType={})),e.blockMsgTypeFromJSON=A,e.blockMsgTypeToJSON=b,function(e){e[e.TX_ADDED_TO_MEMPOOL=0]="TX_ADDED_TO_MEMPOOL",e[e.TX_REMOVED_FROM_MEMPOOL=1]="TX_REMOVED_FROM_MEMPOOL",e[e.TX_CONFIRMED=2]="TX_CONFIRMED",e[e.TX_FINALIZED=3]="TX_FINALIZED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=e.TxMsgType||(e.TxMsgType={})),e.txMsgTypeFromJSON=v,e.txMsgTypeToJSON=_,e.Block={encode:(t,r=n.default.Writer.create())=>(void 0!==t.blockInfo&&e.BlockInfo.encode(t.blockInfo,r.uint32(10).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={blockInfo:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.blockInfo=e.BlockInfo.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({blockInfo:ee(t.blockInfo)?e.BlockInfo.fromJSON(t.blockInfo):void 0}),toJSON(t){const r={};return void 0!==t.blockInfo&&(r.blockInfo=e.BlockInfo.toJSON(t.blockInfo)),r},create:t=>e.Block.fromPartial(t??{}),fromPartial(t){const r={blockInfo:void 0};return r.blockInfo=void 0!==t.blockInfo&&null!==t.blockInfo?e.BlockInfo.fromPartial(t.blockInfo):void 0,r}},e.Blocks={encode(t,r=n.default.Writer.create()){for(const n of t.blocks)e.BlockInfo.encode(n,r.uint32(10).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={blocks:[]};for(;o.pos>>3){case 1:if(10!==t)break;s.blocks.push(e.BlockInfo.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({blocks:globalThis.Array.isArray(t?.blocks)?t.blocks.map(t=>e.BlockInfo.fromJSON(t)):[]}),toJSON(t){const r={};return t.blocks?.length&&(r.blocks=t.blocks.map(t=>e.BlockInfo.toJSON(t))),r},create:t=>e.Blocks.fromPartial(t??{}),fromPartial(t){const r={blocks:[]};return r.blocks=t.blocks?.map(t=>e.BlockInfo.fromPartial(t))||[],r}},e.BlockHeader={encode(e,t=n.default.Writer.create()){0!==e.rawHeader.length&&t.uint32(10).bytes(e.rawHeader),0!==e.root.length&&t.uint32(18).bytes(e.root);for(const r of e.branch)t.uint32(26).bytes(r);return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=w();for(;r.pos>>3){case 1:if(10!==e)break;i.rawHeader=r.bytes();continue;case 2:if(18!==e)break;i.root=r.bytes();continue;case 3:if(26!==e)break;i.branch.push(r.bytes());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawHeader:ee(e.rawHeader)?J(e.rawHeader):new Uint8Array(0),root:ee(e.root)?J(e.root):new Uint8Array(0),branch:globalThis.Array.isArray(e?.branch)?e.branch.map(e=>J(e)):[]}),toJSON(e){const t={};return 0!==e.rawHeader.length&&(t.rawHeader=X(e.rawHeader)),0!==e.root.length&&(t.root=X(e.root)),e.branch?.length&&(t.branch=e.branch.map(e=>X(e))),t},create:t=>e.BlockHeader.fromPartial(t??{}),fromPartial(e){const t=w();return t.rawHeader=e.rawHeader??new Uint8Array(0),t.root=e.root??new Uint8Array(0),t.branch=e.branch?.map(e=>e)||[],t}},e.BlockHeaders={encode(t,r=n.default.Writer.create()){for(const n of t.headers)e.BlockHeader.encode(n,r.uint32(10).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={headers:[]};for(;o.pos>>3){case 1:if(10!==t)break;s.headers.push(e.BlockHeader.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({headers:globalThis.Array.isArray(t?.headers)?t.headers.map(t=>e.BlockHeader.fromJSON(t)):[]}),toJSON(t){const r={};return t.headers?.length&&(r.headers=t.headers.map(t=>e.BlockHeader.toJSON(t))),r},create:t=>e.BlockHeaders.fromPartial(t??{}),fromPartial(t){const r={headers:[]};return r.headers=t.headers?.map(t=>e.BlockHeader.fromPartial(t))||[],r}},e.BlockchainInfo={encode:(e,t=n.default.Writer.create())=>(0!==e.tipHash.length&&t.uint32(10).bytes(e.tipHash),0!==e.tipHeight&&t.uint32(16).int32(e.tipHeight),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=S();for(;r.pos>>3){case 1:if(10!==e)break;i.tipHash=r.bytes();continue;case 2:if(16!==e)break;i.tipHeight=r.int32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({tipHash:ee(e.tipHash)?J(e.tipHash):new Uint8Array(0),tipHeight:ee(e.tipHeight)?globalThis.Number(e.tipHeight):0}),toJSON(e){const t={};return 0!==e.tipHash.length&&(t.tipHash=X(e.tipHash)),0!==e.tipHeight&&(t.tipHeight=Math.round(e.tipHeight)),t},create:t=>e.BlockchainInfo.fromPartial(t??{}),fromPartial(e){const t=S();return t.tipHash=e.tipHash??new Uint8Array(0),t.tipHeight=e.tipHeight??0,t}},e.ChronikInfo={encode:(e,t=n.default.Writer.create())=>(""!==e.version&&t.uint32(10).string(e.version),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={version:""};for(;r.pos>>3){case 1:if(10!==e)break;i.version=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({version:ee(e.version)?globalThis.String(e.version):""}),toJSON(e){const t={};return""!==e.version&&(t.version=e.version),t},create:t=>e.ChronikInfo.fromPartial(t??{}),fromPartial(e){const t={version:""};return t.version=e.version??"",t}},e.BlockInfo={encode(e,t=n.default.Writer.create()){if(0!==e.hash.length&&t.uint32(10).bytes(e.hash),0!==e.prevHash.length&&t.uint32(18).bytes(e.prevHash),0!==e.height&&t.uint32(24).int32(e.height),0!==e.nBits&&t.uint32(32).uint32(e.nBits),e.timestamp!==BigInt("0")){if(BigInt.asIntN(64,e.timestamp)!==e.timestamp)throw new globalThis.Error("value provided for field message.timestamp of type int64 too large");t.uint32(40).int64(e.timestamp.toString())}if(!0===e.isFinal&&t.uint32(112).bool(e.isFinal),e.blockSize!==BigInt("0")){if(BigInt.asUintN(64,e.blockSize)!==e.blockSize)throw new globalThis.Error("value provided for field message.blockSize of type uint64 too large");t.uint32(48).uint64(e.blockSize.toString())}if(e.numTxs!==BigInt("0")){if(BigInt.asUintN(64,e.numTxs)!==e.numTxs)throw new globalThis.Error("value provided for field message.numTxs of type uint64 too large");t.uint32(56).uint64(e.numTxs.toString())}if(e.numInputs!==BigInt("0")){if(BigInt.asUintN(64,e.numInputs)!==e.numInputs)throw new globalThis.Error("value provided for field message.numInputs of type uint64 too large");t.uint32(64).uint64(e.numInputs.toString())}if(e.numOutputs!==BigInt("0")){if(BigInt.asUintN(64,e.numOutputs)!==e.numOutputs)throw new globalThis.Error("value provided for field message.numOutputs of type uint64 too large");t.uint32(72).uint64(e.numOutputs.toString())}if(e.sumInputSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumInputSats)!==e.sumInputSats)throw new globalThis.Error("value provided for field message.sumInputSats of type int64 too large");t.uint32(80).int64(e.sumInputSats.toString())}if(e.sumCoinbaseOutputSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumCoinbaseOutputSats)!==e.sumCoinbaseOutputSats)throw new globalThis.Error("value provided for field message.sumCoinbaseOutputSats of type int64 too large");t.uint32(88).int64(e.sumCoinbaseOutputSats.toString())}if(e.sumNormalOutputSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumNormalOutputSats)!==e.sumNormalOutputSats)throw new globalThis.Error("value provided for field message.sumNormalOutputSats of type int64 too large");t.uint32(96).int64(e.sumNormalOutputSats.toString())}if(e.sumBurnedSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumBurnedSats)!==e.sumBurnedSats)throw new globalThis.Error("value provided for field message.sumBurnedSats of type int64 too large");t.uint32(104).int64(e.sumBurnedSats.toString())}return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=E();for(;r.pos>>3){case 1:if(10!==e)break;i.hash=r.bytes();continue;case 2:if(18!==e)break;i.prevHash=r.bytes();continue;case 3:if(24!==e)break;i.height=r.int32();continue;case 4:if(32!==e)break;i.nBits=r.uint32();continue;case 5:if(40!==e)break;i.timestamp=Q(r.int64());continue;case 14:if(112!==e)break;i.isFinal=r.bool();continue;case 6:if(48!==e)break;i.blockSize=Q(r.uint64());continue;case 7:if(56!==e)break;i.numTxs=Q(r.uint64());continue;case 8:if(64!==e)break;i.numInputs=Q(r.uint64());continue;case 9:if(72!==e)break;i.numOutputs=Q(r.uint64());continue;case 10:if(80!==e)break;i.sumInputSats=Q(r.int64());continue;case 11:if(88!==e)break;i.sumCoinbaseOutputSats=Q(r.int64());continue;case 12:if(96!==e)break;i.sumNormalOutputSats=Q(r.int64());continue;case 13:if(104!==e)break;i.sumBurnedSats=Q(r.int64());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({hash:ee(e.hash)?J(e.hash):new Uint8Array(0),prevHash:ee(e.prevHash)?J(e.prevHash):new Uint8Array(0),height:ee(e.height)?globalThis.Number(e.height):0,nBits:ee(e.nBits)?globalThis.Number(e.nBits):0,timestamp:ee(e.timestamp)?BigInt(e.timestamp):BigInt("0"),isFinal:!!ee(e.isFinal)&&globalThis.Boolean(e.isFinal),blockSize:ee(e.blockSize)?BigInt(e.blockSize):BigInt("0"),numTxs:ee(e.numTxs)?BigInt(e.numTxs):BigInt("0"),numInputs:ee(e.numInputs)?BigInt(e.numInputs):BigInt("0"),numOutputs:ee(e.numOutputs)?BigInt(e.numOutputs):BigInt("0"),sumInputSats:ee(e.sumInputSats)?BigInt(e.sumInputSats):BigInt("0"),sumCoinbaseOutputSats:ee(e.sumCoinbaseOutputSats)?BigInt(e.sumCoinbaseOutputSats):BigInt("0"),sumNormalOutputSats:ee(e.sumNormalOutputSats)?BigInt(e.sumNormalOutputSats):BigInt("0"),sumBurnedSats:ee(e.sumBurnedSats)?BigInt(e.sumBurnedSats):BigInt("0")}),toJSON(e){const t={};return 0!==e.hash.length&&(t.hash=X(e.hash)),0!==e.prevHash.length&&(t.prevHash=X(e.prevHash)),0!==e.height&&(t.height=Math.round(e.height)),0!==e.nBits&&(t.nBits=Math.round(e.nBits)),e.timestamp!==BigInt("0")&&(t.timestamp=e.timestamp.toString()),!0===e.isFinal&&(t.isFinal=e.isFinal),e.blockSize!==BigInt("0")&&(t.blockSize=e.blockSize.toString()),e.numTxs!==BigInt("0")&&(t.numTxs=e.numTxs.toString()),e.numInputs!==BigInt("0")&&(t.numInputs=e.numInputs.toString()),e.numOutputs!==BigInt("0")&&(t.numOutputs=e.numOutputs.toString()),e.sumInputSats!==BigInt("0")&&(t.sumInputSats=e.sumInputSats.toString()),e.sumCoinbaseOutputSats!==BigInt("0")&&(t.sumCoinbaseOutputSats=e.sumCoinbaseOutputSats.toString()),e.sumNormalOutputSats!==BigInt("0")&&(t.sumNormalOutputSats=e.sumNormalOutputSats.toString()),e.sumBurnedSats!==BigInt("0")&&(t.sumBurnedSats=e.sumBurnedSats.toString()),t},create:t=>e.BlockInfo.fromPartial(t??{}),fromPartial(e){const t=E();return t.hash=e.hash??new Uint8Array(0),t.prevHash=e.prevHash??new Uint8Array(0),t.height=e.height??0,t.nBits=e.nBits??0,t.timestamp=e.timestamp??BigInt("0"),t.isFinal=e.isFinal??!1,t.blockSize=e.blockSize??BigInt("0"),t.numTxs=e.numTxs??BigInt("0"),t.numInputs=e.numInputs??BigInt("0"),t.numOutputs=e.numOutputs??BigInt("0"),t.sumInputSats=e.sumInputSats??BigInt("0"),t.sumCoinbaseOutputSats=e.sumCoinbaseOutputSats??BigInt("0"),t.sumNormalOutputSats=e.sumNormalOutputSats??BigInt("0"),t.sumBurnedSats=e.sumBurnedSats??BigInt("0"),t}},e.Tx={encode(t,r=n.default.Writer.create()){0!==t.txid.length&&r.uint32(10).bytes(t.txid),0!==t.version&&r.uint32(16).int32(t.version);for(const n of t.inputs)e.TxInput.encode(n,r.uint32(26).fork()).ldelim();for(const n of t.outputs)e.TxOutput.encode(n,r.uint32(34).fork()).ldelim();if(0!==t.lockTime&&r.uint32(40).uint32(t.lockTime),void 0!==t.block&&e.BlockMetadata.encode(t.block,r.uint32(66).fork()).ldelim(),t.timeFirstSeen!==BigInt("0")){if(BigInt.asIntN(64,t.timeFirstSeen)!==t.timeFirstSeen)throw new globalThis.Error("value provided for field message.timeFirstSeen of type int64 too large");r.uint32(72).int64(t.timeFirstSeen.toString())}0!==t.size&&r.uint32(88).uint32(t.size),!0===t.isCoinbase&&r.uint32(96).bool(t.isCoinbase);for(const n of t.tokenEntries)e.TokenEntry.encode(n,r.uint32(106).fork()).ldelim();for(const n of t.tokenFailedParsings)e.TokenFailedParsing.encode(n,r.uint32(114).fork()).ldelim();return 0!==t.tokenStatus&&r.uint32(120).int32(t.tokenStatus),!0===t.isFinal&&r.uint32(128).bool(t.isFinal),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=x();for(;o.pos>>3){case 1:if(10!==t)break;s.txid=o.bytes();continue;case 2:if(16!==t)break;s.version=o.int32();continue;case 3:if(26!==t)break;s.inputs.push(e.TxInput.decode(o,o.uint32()));continue;case 4:if(34!==t)break;s.outputs.push(e.TxOutput.decode(o,o.uint32()));continue;case 5:if(40!==t)break;s.lockTime=o.uint32();continue;case 8:if(66!==t)break;s.block=e.BlockMetadata.decode(o,o.uint32());continue;case 9:if(72!==t)break;s.timeFirstSeen=Q(o.int64());continue;case 11:if(88!==t)break;s.size=o.uint32();continue;case 12:if(96!==t)break;s.isCoinbase=o.bool();continue;case 13:if(106!==t)break;s.tokenEntries.push(e.TokenEntry.decode(o,o.uint32()));continue;case 14:if(114!==t)break;s.tokenFailedParsings.push(e.TokenFailedParsing.decode(o,o.uint32()));continue;case 15:if(120!==t)break;s.tokenStatus=o.int32();continue;case 16:if(128!==t)break;s.isFinal=o.bool();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({txid:ee(t.txid)?J(t.txid):new Uint8Array(0),version:ee(t.version)?globalThis.Number(t.version):0,inputs:globalThis.Array.isArray(t?.inputs)?t.inputs.map(t=>e.TxInput.fromJSON(t)):[],outputs:globalThis.Array.isArray(t?.outputs)?t.outputs.map(t=>e.TxOutput.fromJSON(t)):[],lockTime:ee(t.lockTime)?globalThis.Number(t.lockTime):0,block:ee(t.block)?e.BlockMetadata.fromJSON(t.block):void 0,timeFirstSeen:ee(t.timeFirstSeen)?BigInt(t.timeFirstSeen):BigInt("0"),size:ee(t.size)?globalThis.Number(t.size):0,isCoinbase:!!ee(t.isCoinbase)&&globalThis.Boolean(t.isCoinbase),tokenEntries:globalThis.Array.isArray(t?.tokenEntries)?t.tokenEntries.map(t=>e.TokenEntry.fromJSON(t)):[],tokenFailedParsings:globalThis.Array.isArray(t?.tokenFailedParsings)?t.tokenFailedParsings.map(t=>e.TokenFailedParsing.fromJSON(t)):[],tokenStatus:ee(t.tokenStatus)?l(t.tokenStatus):0,isFinal:!!ee(t.isFinal)&&globalThis.Boolean(t.isFinal)}),toJSON(t){const r={};return 0!==t.txid.length&&(r.txid=X(t.txid)),0!==t.version&&(r.version=Math.round(t.version)),t.inputs?.length&&(r.inputs=t.inputs.map(t=>e.TxInput.toJSON(t))),t.outputs?.length&&(r.outputs=t.outputs.map(t=>e.TxOutput.toJSON(t))),0!==t.lockTime&&(r.lockTime=Math.round(t.lockTime)),void 0!==t.block&&(r.block=e.BlockMetadata.toJSON(t.block)),t.timeFirstSeen!==BigInt("0")&&(r.timeFirstSeen=t.timeFirstSeen.toString()),0!==t.size&&(r.size=Math.round(t.size)),!0===t.isCoinbase&&(r.isCoinbase=t.isCoinbase),t.tokenEntries?.length&&(r.tokenEntries=t.tokenEntries.map(t=>e.TokenEntry.toJSON(t))),t.tokenFailedParsings?.length&&(r.tokenFailedParsings=t.tokenFailedParsings.map(t=>e.TokenFailedParsing.toJSON(t))),0!==t.tokenStatus&&(r.tokenStatus=f(t.tokenStatus)),!0===t.isFinal&&(r.isFinal=t.isFinal),r},create:t=>e.Tx.fromPartial(t??{}),fromPartial(t){const r=x();return r.txid=t.txid??new Uint8Array(0),r.version=t.version??0,r.inputs=t.inputs?.map(t=>e.TxInput.fromPartial(t))||[],r.outputs=t.outputs?.map(t=>e.TxOutput.fromPartial(t))||[],r.lockTime=t.lockTime??0,r.block=void 0!==t.block&&null!==t.block?e.BlockMetadata.fromPartial(t.block):void 0,r.timeFirstSeen=t.timeFirstSeen??BigInt("0"),r.size=t.size??0,r.isCoinbase=t.isCoinbase??!1,r.tokenEntries=t.tokenEntries?.map(t=>e.TokenEntry.fromPartial(t))||[],r.tokenFailedParsings=t.tokenFailedParsings?.map(t=>e.TokenFailedParsing.fromPartial(t))||[],r.tokenStatus=t.tokenStatus??0,r.isFinal=t.isFinal??!1,r}},e.ScriptUtxo={encode(t,r=n.default.Writer.create()){if(void 0!==t.outpoint&&e.OutPoint.encode(t.outpoint,r.uint32(10).fork()).ldelim(),0!==t.blockHeight&&r.uint32(16).int32(t.blockHeight),!0===t.isCoinbase&&r.uint32(24).bool(t.isCoinbase),t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(40).int64(t.sats.toString())}return!0===t.isFinal&&r.uint32(80).bool(t.isFinal),void 0!==t.token&&e.Token.encode(t.token,r.uint32(90).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.ScriptUtxo_PluginsEntry.encode({key:t,value:n},r.uint32(98).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=$();for(;o.pos>>3){case 1:if(10!==t)break;s.outpoint=e.OutPoint.decode(o,o.uint32());continue;case 2:if(16!==t)break;s.blockHeight=o.int32();continue;case 3:if(24!==t)break;s.isCoinbase=o.bool();continue;case 5:if(40!==t)break;s.sats=Q(o.int64());continue;case 10:if(80!==t)break;s.isFinal=o.bool();continue;case 11:if(90!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 12:if(98!==t)break;const r=e.ScriptUtxo_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({outpoint:ee(t.outpoint)?e.OutPoint.fromJSON(t.outpoint):void 0,blockHeight:ee(t.blockHeight)?globalThis.Number(t.blockHeight):0,isCoinbase:!!ee(t.isCoinbase)&&globalThis.Boolean(t.isCoinbase),sats:ee(t.sats)?BigInt(t.sats):BigInt("0"),isFinal:!!ee(t.isFinal)&&globalThis.Boolean(t.isFinal),token:ee(t.token)?e.Token.fromJSON(t.token):void 0,plugins:Y(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(void 0!==t.outpoint&&(r.outpoint=e.OutPoint.toJSON(t.outpoint)),0!==t.blockHeight&&(r.blockHeight=Math.round(t.blockHeight)),!0===t.isCoinbase&&(r.isCoinbase=t.isCoinbase),t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),!0===t.isFinal&&(r.isFinal=t.isFinal),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.ScriptUtxo.fromPartial(t??{}),fromPartial(t){const r=$();return r.outpoint=void 0!==t.outpoint&&null!==t.outpoint?e.OutPoint.fromPartial(t.outpoint):void 0,r.blockHeight=t.blockHeight??0,r.isCoinbase=t.isCoinbase??!1,r.sats=t.sats??BigInt("0"),r.isFinal=t.isFinal??!1,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.ScriptUtxo_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ee(t.key)?globalThis.String(t.key):"",value:ee(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.ScriptUtxo_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.Utxo={encode(t,r=n.default.Writer.create()){if(void 0!==t.outpoint&&e.OutPoint.encode(t.outpoint,r.uint32(10).fork()).ldelim(),0!==t.blockHeight&&r.uint32(16).int32(t.blockHeight),!0===t.isCoinbase&&r.uint32(24).bool(t.isCoinbase),t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(32).int64(t.sats.toString())}return 0!==t.script.length&&r.uint32(42).bytes(t.script),!0===t.isFinal&&r.uint32(48).bool(t.isFinal),void 0!==t.token&&e.Token.encode(t.token,r.uint32(58).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.Utxo_PluginsEntry.encode({key:t,value:n},r.uint32(66).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=k();for(;o.pos>>3){case 1:if(10!==t)break;s.outpoint=e.OutPoint.decode(o,o.uint32());continue;case 2:if(16!==t)break;s.blockHeight=o.int32();continue;case 3:if(24!==t)break;s.isCoinbase=o.bool();continue;case 4:if(32!==t)break;s.sats=Q(o.int64());continue;case 5:if(42!==t)break;s.script=o.bytes();continue;case 6:if(48!==t)break;s.isFinal=o.bool();continue;case 7:if(58!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 8:if(66!==t)break;const r=e.Utxo_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({outpoint:ee(t.outpoint)?e.OutPoint.fromJSON(t.outpoint):void 0,blockHeight:ee(t.blockHeight)?globalThis.Number(t.blockHeight):0,isCoinbase:!!ee(t.isCoinbase)&&globalThis.Boolean(t.isCoinbase),sats:ee(t.sats)?BigInt(t.sats):BigInt("0"),script:ee(t.script)?J(t.script):new Uint8Array(0),isFinal:!!ee(t.isFinal)&&globalThis.Boolean(t.isFinal),token:ee(t.token)?e.Token.fromJSON(t.token):void 0,plugins:Y(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(void 0!==t.outpoint&&(r.outpoint=e.OutPoint.toJSON(t.outpoint)),0!==t.blockHeight&&(r.blockHeight=Math.round(t.blockHeight)),!0===t.isCoinbase&&(r.isCoinbase=t.isCoinbase),t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),0!==t.script.length&&(r.script=X(t.script)),!0===t.isFinal&&(r.isFinal=t.isFinal),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.Utxo.fromPartial(t??{}),fromPartial(t){const r=k();return r.outpoint=void 0!==t.outpoint&&null!==t.outpoint?e.OutPoint.fromPartial(t.outpoint):void 0,r.blockHeight=t.blockHeight??0,r.isCoinbase=t.isCoinbase??!1,r.sats=t.sats??BigInt("0"),r.script=t.script??new Uint8Array(0),r.isFinal=t.isFinal??!1,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.Utxo_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ee(t.key)?globalThis.String(t.key):"",value:ee(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.Utxo_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.OutPoint={encode:(e,t=n.default.Writer.create())=>(0!==e.txid.length&&t.uint32(10).bytes(e.txid),0!==e.outIdx&&t.uint32(16).uint32(e.outIdx),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=T();for(;r.pos>>3){case 1:if(10!==e)break;i.txid=r.bytes();continue;case 2:if(16!==e)break;i.outIdx=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txid:ee(e.txid)?J(e.txid):new Uint8Array(0),outIdx:ee(e.outIdx)?globalThis.Number(e.outIdx):0}),toJSON(e){const t={};return 0!==e.txid.length&&(t.txid=X(e.txid)),0!==e.outIdx&&(t.outIdx=Math.round(e.outIdx)),t},create:t=>e.OutPoint.fromPartial(t??{}),fromPartial(e){const t=T();return t.txid=e.txid??new Uint8Array(0),t.outIdx=e.outIdx??0,t}},e.SpentBy={encode:(e,t=n.default.Writer.create())=>(0!==e.txid.length&&t.uint32(10).bytes(e.txid),0!==e.inputIdx&&t.uint32(16).uint32(e.inputIdx),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=B();for(;r.pos>>3){case 1:if(10!==e)break;i.txid=r.bytes();continue;case 2:if(16!==e)break;i.inputIdx=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txid:ee(e.txid)?J(e.txid):new Uint8Array(0),inputIdx:ee(e.inputIdx)?globalThis.Number(e.inputIdx):0}),toJSON(e){const t={};return 0!==e.txid.length&&(t.txid=X(e.txid)),0!==e.inputIdx&&(t.inputIdx=Math.round(e.inputIdx)),t},create:t=>e.SpentBy.fromPartial(t??{}),fromPartial(e){const t=B();return t.txid=e.txid??new Uint8Array(0),t.inputIdx=e.inputIdx??0,t}},e.TxInput={encode(t,r=n.default.Writer.create()){if(void 0!==t.prevOut&&e.OutPoint.encode(t.prevOut,r.uint32(10).fork()).ldelim(),0!==t.inputScript.length&&r.uint32(18).bytes(t.inputScript),0!==t.outputScript.length&&r.uint32(26).bytes(t.outputScript),t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(32).int64(t.sats.toString())}return 0!==t.sequenceNo&&r.uint32(40).uint32(t.sequenceNo),void 0!==t.token&&e.Token.encode(t.token,r.uint32(66).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.TxInput_PluginsEntry.encode({key:t,value:n},r.uint32(74).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=R();for(;o.pos>>3){case 1:if(10!==t)break;s.prevOut=e.OutPoint.decode(o,o.uint32());continue;case 2:if(18!==t)break;s.inputScript=o.bytes();continue;case 3:if(26!==t)break;s.outputScript=o.bytes();continue;case 4:if(32!==t)break;s.sats=Q(o.int64());continue;case 5:if(40!==t)break;s.sequenceNo=o.uint32();continue;case 8:if(66!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 9:if(74!==t)break;const r=e.TxInput_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({prevOut:ee(t.prevOut)?e.OutPoint.fromJSON(t.prevOut):void 0,inputScript:ee(t.inputScript)?J(t.inputScript):new Uint8Array(0),outputScript:ee(t.outputScript)?J(t.outputScript):new Uint8Array(0),sats:ee(t.sats)?BigInt(t.sats):BigInt("0"),sequenceNo:ee(t.sequenceNo)?globalThis.Number(t.sequenceNo):0,token:ee(t.token)?e.Token.fromJSON(t.token):void 0,plugins:Y(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(void 0!==t.prevOut&&(r.prevOut=e.OutPoint.toJSON(t.prevOut)),0!==t.inputScript.length&&(r.inputScript=X(t.inputScript)),0!==t.outputScript.length&&(r.outputScript=X(t.outputScript)),t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),0!==t.sequenceNo&&(r.sequenceNo=Math.round(t.sequenceNo)),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.TxInput.fromPartial(t??{}),fromPartial(t){const r=R();return r.prevOut=void 0!==t.prevOut&&null!==t.prevOut?e.OutPoint.fromPartial(t.prevOut):void 0,r.inputScript=t.inputScript??new Uint8Array(0),r.outputScript=t.outputScript??new Uint8Array(0),r.sats=t.sats??BigInt("0"),r.sequenceNo=t.sequenceNo??0,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.TxInput_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ee(t.key)?globalThis.String(t.key):"",value:ee(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.TxInput_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.TxOutput={encode(t,r=n.default.Writer.create()){if(t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(8).int64(t.sats.toString())}return 0!==t.outputScript.length&&r.uint32(18).bytes(t.outputScript),void 0!==t.spentBy&&e.SpentBy.encode(t.spentBy,r.uint32(34).fork()).ldelim(),void 0!==t.token&&e.Token.encode(t.token,r.uint32(42).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.TxOutput_PluginsEntry.encode({key:t,value:n},r.uint32(50).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=O();for(;o.pos>>3){case 1:if(8!==t)break;s.sats=Q(o.int64());continue;case 2:if(18!==t)break;s.outputScript=o.bytes();continue;case 4:if(34!==t)break;s.spentBy=e.SpentBy.decode(o,o.uint32());continue;case 5:if(42!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 6:if(50!==t)break;const r=e.TxOutput_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({sats:ee(t.sats)?BigInt(t.sats):BigInt("0"),outputScript:ee(t.outputScript)?J(t.outputScript):new Uint8Array(0),spentBy:ee(t.spentBy)?e.SpentBy.fromJSON(t.spentBy):void 0,token:ee(t.token)?e.Token.fromJSON(t.token):void 0,plugins:Y(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),0!==t.outputScript.length&&(r.outputScript=X(t.outputScript)),void 0!==t.spentBy&&(r.spentBy=e.SpentBy.toJSON(t.spentBy)),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.TxOutput.fromPartial(t??{}),fromPartial(t){const r=O();return r.sats=t.sats??BigInt("0"),r.outputScript=t.outputScript??new Uint8Array(0),r.spentBy=void 0!==t.spentBy&&null!==t.spentBy?e.SpentBy.fromPartial(t.spentBy):void 0,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.TxOutput_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ee(t.key)?globalThis.String(t.key):"",value:ee(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.TxOutput_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.BlockMetadata={encode(e,t=n.default.Writer.create()){if(0!==e.height&&t.uint32(8).int32(e.height),0!==e.hash.length&&t.uint32(18).bytes(e.hash),e.timestamp!==BigInt("0")){if(BigInt.asIntN(64,e.timestamp)!==e.timestamp)throw new globalThis.Error("value provided for field message.timestamp of type int64 too large");t.uint32(24).int64(e.timestamp.toString())}return!0===e.isFinal&&t.uint32(32).bool(e.isFinal),t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=C();for(;r.pos>>3){case 1:if(8!==e)break;i.height=r.int32();continue;case 2:if(18!==e)break;i.hash=r.bytes();continue;case 3:if(24!==e)break;i.timestamp=Q(r.int64());continue;case 4:if(32!==e)break;i.isFinal=r.bool();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({height:ee(e.height)?globalThis.Number(e.height):0,hash:ee(e.hash)?J(e.hash):new Uint8Array(0),timestamp:ee(e.timestamp)?BigInt(e.timestamp):BigInt("0"),isFinal:!!ee(e.isFinal)&&globalThis.Boolean(e.isFinal)}),toJSON(e){const t={};return 0!==e.height&&(t.height=Math.round(e.height)),0!==e.hash.length&&(t.hash=X(e.hash)),e.timestamp!==BigInt("0")&&(t.timestamp=e.timestamp.toString()),!0===e.isFinal&&(t.isFinal=e.isFinal),t},create:t=>e.BlockMetadata.fromPartial(t??{}),fromPartial(e){const t=C();return t.height=e.height??0,t.hash=e.hash??new Uint8Array(0),t.timestamp=e.timestamp??BigInt("0"),t.isFinal=e.isFinal??!1,t}},e.TokenType={encode:(e,t=n.default.Writer.create())=>(void 0!==e.slp&&t.uint32(8).int32(e.slp),void 0!==e.alp&&t.uint32(16).int32(e.alp),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={slp:void 0,alp:void 0};for(;r.pos>>3){case 1:if(8!==e)break;i.slp=r.int32();continue;case 2:if(16!==e)break;i.alp=r.int32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({slp:ee(e.slp)?h(e.slp):void 0,alp:ee(e.alp)?d(e.alp):void 0}),toJSON(e){const t={};return void 0!==e.slp&&(t.slp=m(e.slp)),void 0!==e.alp&&(t.alp=p(e.alp)),t},create:t=>e.TokenType.fromPartial(t??{}),fromPartial(e){const t={slp:void 0,alp:void 0};return t.slp=e.slp??void 0,t.alp=e.alp??void 0,t}},e.TokenInfo={encode(t,r=n.default.Writer.create()){if(""!==t.tokenId&&r.uint32(10).string(t.tokenId),void 0!==t.tokenType&&e.TokenType.encode(t.tokenType,r.uint32(18).fork()).ldelim(),void 0!==t.genesisInfo&&e.GenesisInfo.encode(t.genesisInfo,r.uint32(26).fork()).ldelim(),void 0!==t.block&&e.BlockMetadata.encode(t.block,r.uint32(34).fork()).ldelim(),t.timeFirstSeen!==BigInt("0")){if(BigInt.asIntN(64,t.timeFirstSeen)!==t.timeFirstSeen)throw new globalThis.Error("value provided for field message.timeFirstSeen of type int64 too large");r.uint32(40).int64(t.timeFirstSeen.toString())}return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=P();for(;o.pos>>3){case 1:if(10!==t)break;s.tokenId=o.string();continue;case 2:if(18!==t)break;s.tokenType=e.TokenType.decode(o,o.uint32());continue;case 3:if(26!==t)break;s.genesisInfo=e.GenesisInfo.decode(o,o.uint32());continue;case 4:if(34!==t)break;s.block=e.BlockMetadata.decode(o,o.uint32());continue;case 5:if(40!==t)break;s.timeFirstSeen=Q(o.int64());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({tokenId:ee(t.tokenId)?globalThis.String(t.tokenId):"",tokenType:ee(t.tokenType)?e.TokenType.fromJSON(t.tokenType):void 0,genesisInfo:ee(t.genesisInfo)?e.GenesisInfo.fromJSON(t.genesisInfo):void 0,block:ee(t.block)?e.BlockMetadata.fromJSON(t.block):void 0,timeFirstSeen:ee(t.timeFirstSeen)?BigInt(t.timeFirstSeen):BigInt("0")}),toJSON(t){const r={};return""!==t.tokenId&&(r.tokenId=t.tokenId),void 0!==t.tokenType&&(r.tokenType=e.TokenType.toJSON(t.tokenType)),void 0!==t.genesisInfo&&(r.genesisInfo=e.GenesisInfo.toJSON(t.genesisInfo)),void 0!==t.block&&(r.block=e.BlockMetadata.toJSON(t.block)),t.timeFirstSeen!==BigInt("0")&&(r.timeFirstSeen=t.timeFirstSeen.toString()),r},create:t=>e.TokenInfo.fromPartial(t??{}),fromPartial(t){const r=P();return r.tokenId=t.tokenId??"",r.tokenType=void 0!==t.tokenType&&null!==t.tokenType?e.TokenType.fromPartial(t.tokenType):void 0,r.genesisInfo=void 0!==t.genesisInfo&&null!==t.genesisInfo?e.GenesisInfo.fromPartial(t.genesisInfo):void 0,r.block=void 0!==t.block&&null!==t.block?e.BlockMetadata.fromPartial(t.block):void 0,r.timeFirstSeen=t.timeFirstSeen??BigInt("0"),r}},e.TokenEntry={encode(t,r=n.default.Writer.create()){""!==t.tokenId&&r.uint32(10).string(t.tokenId),void 0!==t.tokenType&&e.TokenType.encode(t.tokenType,r.uint32(18).fork()).ldelim(),0!==t.txType&&r.uint32(24).int32(t.txType),""!==t.groupTokenId&&r.uint32(34).string(t.groupTokenId),!0===t.isInvalid&&r.uint32(40).bool(t.isInvalid),""!==t.burnSummary&&r.uint32(50).string(t.burnSummary);for(const n of t.failedColorings)e.TokenFailedColoring.encode(n,r.uint32(58).fork()).ldelim();if(""!==t.actualBurnAtoms&&r.uint32(66).string(t.actualBurnAtoms),t.intentionalBurnAtoms!==BigInt("0")){if(BigInt.asUintN(64,t.intentionalBurnAtoms)!==t.intentionalBurnAtoms)throw new globalThis.Error("value provided for field message.intentionalBurnAtoms of type uint64 too large");r.uint32(72).uint64(t.intentionalBurnAtoms.toString())}return!0===t.burnsMintBatons&&r.uint32(80).bool(t.burnsMintBatons),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=I();for(;o.pos>>3){case 1:if(10!==t)break;s.tokenId=o.string();continue;case 2:if(18!==t)break;s.tokenType=e.TokenType.decode(o,o.uint32());continue;case 3:if(24!==t)break;s.txType=o.int32();continue;case 4:if(34!==t)break;s.groupTokenId=o.string();continue;case 5:if(40!==t)break;s.isInvalid=o.bool();continue;case 6:if(50!==t)break;s.burnSummary=o.string();continue;case 7:if(58!==t)break;s.failedColorings.push(e.TokenFailedColoring.decode(o,o.uint32()));continue;case 8:if(66!==t)break;s.actualBurnAtoms=o.string();continue;case 9:if(72!==t)break;s.intentionalBurnAtoms=Q(o.uint64());continue;case 10:if(80!==t)break;s.burnsMintBatons=o.bool();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({tokenId:ee(t.tokenId)?globalThis.String(t.tokenId):"",tokenType:ee(t.tokenType)?e.TokenType.fromJSON(t.tokenType):void 0,txType:ee(t.txType)?g(t.txType):0,groupTokenId:ee(t.groupTokenId)?globalThis.String(t.groupTokenId):"",isInvalid:!!ee(t.isInvalid)&&globalThis.Boolean(t.isInvalid),burnSummary:ee(t.burnSummary)?globalThis.String(t.burnSummary):"",failedColorings:globalThis.Array.isArray(t?.failedColorings)?t.failedColorings.map(t=>e.TokenFailedColoring.fromJSON(t)):[],actualBurnAtoms:ee(t.actualBurnAtoms)?globalThis.String(t.actualBurnAtoms):"",intentionalBurnAtoms:ee(t.intentionalBurnAtoms)?BigInt(t.intentionalBurnAtoms):BigInt("0"),burnsMintBatons:!!ee(t.burnsMintBatons)&&globalThis.Boolean(t.burnsMintBatons)}),toJSON(t){const r={};return""!==t.tokenId&&(r.tokenId=t.tokenId),void 0!==t.tokenType&&(r.tokenType=e.TokenType.toJSON(t.tokenType)),0!==t.txType&&(r.txType=y(t.txType)),""!==t.groupTokenId&&(r.groupTokenId=t.groupTokenId),!0===t.isInvalid&&(r.isInvalid=t.isInvalid),""!==t.burnSummary&&(r.burnSummary=t.burnSummary),t.failedColorings?.length&&(r.failedColorings=t.failedColorings.map(t=>e.TokenFailedColoring.toJSON(t))),""!==t.actualBurnAtoms&&(r.actualBurnAtoms=t.actualBurnAtoms),t.intentionalBurnAtoms!==BigInt("0")&&(r.intentionalBurnAtoms=t.intentionalBurnAtoms.toString()),!0===t.burnsMintBatons&&(r.burnsMintBatons=t.burnsMintBatons),r},create:t=>e.TokenEntry.fromPartial(t??{}),fromPartial(t){const r=I();return r.tokenId=t.tokenId??"",r.tokenType=void 0!==t.tokenType&&null!==t.tokenType?e.TokenType.fromPartial(t.tokenType):void 0,r.txType=t.txType??0,r.groupTokenId=t.groupTokenId??"",r.isInvalid=t.isInvalid??!1,r.burnSummary=t.burnSummary??"",r.failedColorings=t.failedColorings?.map(t=>e.TokenFailedColoring.fromPartial(t))||[],r.actualBurnAtoms=t.actualBurnAtoms??"",r.intentionalBurnAtoms=t.intentionalBurnAtoms??BigInt("0"),r.burnsMintBatons=t.burnsMintBatons??!1,r}},e.GenesisInfo={encode:(e,t=n.default.Writer.create())=>(0!==e.tokenTicker.length&&t.uint32(10).bytes(e.tokenTicker),0!==e.tokenName.length&&t.uint32(18).bytes(e.tokenName),0!==e.url.length&&t.uint32(26).bytes(e.url),0!==e.hash.length&&t.uint32(34).bytes(e.hash),0!==e.mintVaultScripthash.length&&t.uint32(42).bytes(e.mintVaultScripthash),0!==e.data.length&&t.uint32(50).bytes(e.data),0!==e.authPubkey.length&&t.uint32(58).bytes(e.authPubkey),0!==e.decimals&&t.uint32(64).uint32(e.decimals),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=N();for(;r.pos>>3){case 1:if(10!==e)break;i.tokenTicker=r.bytes();continue;case 2:if(18!==e)break;i.tokenName=r.bytes();continue;case 3:if(26!==e)break;i.url=r.bytes();continue;case 4:if(34!==e)break;i.hash=r.bytes();continue;case 5:if(42!==e)break;i.mintVaultScripthash=r.bytes();continue;case 6:if(50!==e)break;i.data=r.bytes();continue;case 7:if(58!==e)break;i.authPubkey=r.bytes();continue;case 8:if(64!==e)break;i.decimals=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({tokenTicker:ee(e.tokenTicker)?J(e.tokenTicker):new Uint8Array(0),tokenName:ee(e.tokenName)?J(e.tokenName):new Uint8Array(0),url:ee(e.url)?J(e.url):new Uint8Array(0),hash:ee(e.hash)?J(e.hash):new Uint8Array(0),mintVaultScripthash:ee(e.mintVaultScripthash)?J(e.mintVaultScripthash):new Uint8Array(0),data:ee(e.data)?J(e.data):new Uint8Array(0),authPubkey:ee(e.authPubkey)?J(e.authPubkey):new Uint8Array(0),decimals:ee(e.decimals)?globalThis.Number(e.decimals):0}),toJSON(e){const t={};return 0!==e.tokenTicker.length&&(t.tokenTicker=X(e.tokenTicker)),0!==e.tokenName.length&&(t.tokenName=X(e.tokenName)),0!==e.url.length&&(t.url=X(e.url)),0!==e.hash.length&&(t.hash=X(e.hash)),0!==e.mintVaultScripthash.length&&(t.mintVaultScripthash=X(e.mintVaultScripthash)),0!==e.data.length&&(t.data=X(e.data)),0!==e.authPubkey.length&&(t.authPubkey=X(e.authPubkey)),0!==e.decimals&&(t.decimals=Math.round(e.decimals)),t},create:t=>e.GenesisInfo.fromPartial(t??{}),fromPartial(e){const t=N();return t.tokenTicker=e.tokenTicker??new Uint8Array(0),t.tokenName=e.tokenName??new Uint8Array(0),t.url=e.url??new Uint8Array(0),t.hash=e.hash??new Uint8Array(0),t.mintVaultScripthash=e.mintVaultScripthash??new Uint8Array(0),t.data=e.data??new Uint8Array(0),t.authPubkey=e.authPubkey??new Uint8Array(0),t.decimals=e.decimals??0,t}},e.Token={encode(t,r=n.default.Writer.create()){if(""!==t.tokenId&&r.uint32(10).string(t.tokenId),void 0!==t.tokenType&&e.TokenType.encode(t.tokenType,r.uint32(18).fork()).ldelim(),0!==t.entryIdx&&r.uint32(24).int32(t.entryIdx),t.atoms!==BigInt("0")){if(BigInt.asUintN(64,t.atoms)!==t.atoms)throw new globalThis.Error("value provided for field message.atoms of type uint64 too large");r.uint32(32).uint64(t.atoms.toString())}return!0===t.isMintBaton&&r.uint32(40).bool(t.isMintBaton),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=L();for(;o.pos>>3){case 1:if(10!==t)break;s.tokenId=o.string();continue;case 2:if(18!==t)break;s.tokenType=e.TokenType.decode(o,o.uint32());continue;case 3:if(24!==t)break;s.entryIdx=o.int32();continue;case 4:if(32!==t)break;s.atoms=Q(o.uint64());continue;case 5:if(40!==t)break;s.isMintBaton=o.bool();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({tokenId:ee(t.tokenId)?globalThis.String(t.tokenId):"",tokenType:ee(t.tokenType)?e.TokenType.fromJSON(t.tokenType):void 0,entryIdx:ee(t.entryIdx)?globalThis.Number(t.entryIdx):0,atoms:ee(t.atoms)?BigInt(t.atoms):BigInt("0"),isMintBaton:!!ee(t.isMintBaton)&&globalThis.Boolean(t.isMintBaton)}),toJSON(t){const r={};return""!==t.tokenId&&(r.tokenId=t.tokenId),void 0!==t.tokenType&&(r.tokenType=e.TokenType.toJSON(t.tokenType)),0!==t.entryIdx&&(r.entryIdx=Math.round(t.entryIdx)),t.atoms!==BigInt("0")&&(r.atoms=t.atoms.toString()),!0===t.isMintBaton&&(r.isMintBaton=t.isMintBaton),r},create:t=>e.Token.fromPartial(t??{}),fromPartial(t){const r=L();return r.tokenId=t.tokenId??"",r.tokenType=void 0!==t.tokenType&&null!==t.tokenType?e.TokenType.fromPartial(t.tokenType):void 0,r.entryIdx=t.entryIdx??0,r.atoms=t.atoms??BigInt("0"),r.isMintBaton=t.isMintBaton??!1,r}},e.TokenFailedParsing={encode:(e,t=n.default.Writer.create())=>(0!==e.pushdataIdx&&t.uint32(8).int32(e.pushdataIdx),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),""!==e.error&&t.uint32(26).string(e.error),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=D();for(;r.pos>>3){case 1:if(8!==e)break;i.pushdataIdx=r.int32();continue;case 2:if(18!==e)break;i.bytes=r.bytes();continue;case 3:if(26!==e)break;i.error=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({pushdataIdx:ee(e.pushdataIdx)?globalThis.Number(e.pushdataIdx):0,bytes:ee(e.bytes)?J(e.bytes):new Uint8Array(0),error:ee(e.error)?globalThis.String(e.error):""}),toJSON(e){const t={};return 0!==e.pushdataIdx&&(t.pushdataIdx=Math.round(e.pushdataIdx)),0!==e.bytes.length&&(t.bytes=X(e.bytes)),""!==e.error&&(t.error=e.error),t},create:t=>e.TokenFailedParsing.fromPartial(t??{}),fromPartial(e){const t=D();return t.pushdataIdx=e.pushdataIdx??0,t.bytes=e.bytes??new Uint8Array(0),t.error=e.error??"",t}},e.TokenFailedColoring={encode:(e,t=n.default.Writer.create())=>(0!==e.pushdataIdx&&t.uint32(8).int32(e.pushdataIdx),""!==e.error&&t.uint32(26).string(e.error),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={pushdataIdx:0,error:""};for(;r.pos>>3){case 1:if(8!==e)break;i.pushdataIdx=r.int32();continue;case 3:if(26!==e)break;i.error=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({pushdataIdx:ee(e.pushdataIdx)?globalThis.Number(e.pushdataIdx):0,error:ee(e.error)?globalThis.String(e.error):""}),toJSON(e){const t={};return 0!==e.pushdataIdx&&(t.pushdataIdx=Math.round(e.pushdataIdx)),""!==e.error&&(t.error=e.error),t},create:t=>e.TokenFailedColoring.fromPartial(t??{}),fromPartial(e){const t={pushdataIdx:0,error:""};return t.pushdataIdx=e.pushdataIdx??0,t.error=e.error??"",t}},e.PluginEntry={encode(e,t=n.default.Writer.create()){for(const r of e.groups)t.uint32(10).bytes(r);for(const r of e.data)t.uint32(18).bytes(r);return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={groups:[],data:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.groups.push(r.bytes());continue;case 2:if(18!==e)break;i.data.push(r.bytes());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({groups:globalThis.Array.isArray(e?.groups)?e.groups.map(e=>J(e)):[],data:globalThis.Array.isArray(e?.data)?e.data.map(e=>J(e)):[]}),toJSON(e){const t={};return e.groups?.length&&(t.groups=e.groups.map(e=>X(e))),e.data?.length&&(t.data=e.data.map(e=>X(e))),t},create:t=>e.PluginEntry.fromPartial(t??{}),fromPartial(e){const t={groups:[],data:[]};return t.groups=e.groups?.map(e=>e)||[],t.data=e.data?.map(e=>e)||[],t}},e.PluginGroup={encode:(e,t=n.default.Writer.create())=>(0!==e.group.length&&t.uint32(10).bytes(e.group),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=M();for(;r.pos>>3){case 1:if(10!==e)break;i.group=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({group:ee(e.group)?J(e.group):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.group.length&&(t.group=X(e.group)),t},create:t=>e.PluginGroup.fromPartial(t??{}),fromPartial(e){const t=M();return t.group=e.group??new Uint8Array(0),t}},e.PluginGroups={encode(t,r=n.default.Writer.create()){for(const n of t.groups)e.PluginGroup.encode(n,r.uint32(10).fork()).ldelim();return 0!==t.nextStart.length&&r.uint32(18).bytes(t.nextStart),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=U();for(;o.pos>>3){case 1:if(10!==t)break;s.groups.push(e.PluginGroup.decode(o,o.uint32()));continue;case 2:if(18!==t)break;s.nextStart=o.bytes();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({groups:globalThis.Array.isArray(t?.groups)?t.groups.map(t=>e.PluginGroup.fromJSON(t)):[],nextStart:ee(t.nextStart)?J(t.nextStart):new Uint8Array(0)}),toJSON(t){const r={};return t.groups?.length&&(r.groups=t.groups.map(t=>e.PluginGroup.toJSON(t))),0!==t.nextStart.length&&(r.nextStart=X(t.nextStart)),r},create:t=>e.PluginGroups.fromPartial(t??{}),fromPartial(t){const r=U();return r.groups=t.groups?.map(t=>e.PluginGroup.fromPartial(t))||[],r.nextStart=t.nextStart??new Uint8Array(0),r}},e.TxHistoryPage={encode(t,r=n.default.Writer.create()){for(const n of t.txs)e.Tx.encode(n,r.uint32(10).fork()).ldelim();return 0!==t.numPages&&r.uint32(16).uint32(t.numPages),0!==t.numTxs&&r.uint32(24).uint32(t.numTxs),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={txs:[],numPages:0,numTxs:0};for(;o.pos>>3){case 1:if(10!==t)break;s.txs.push(e.Tx.decode(o,o.uint32()));continue;case 2:if(16!==t)break;s.numPages=o.uint32();continue;case 3:if(24!==t)break;s.numTxs=o.uint32();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({txs:globalThis.Array.isArray(t?.txs)?t.txs.map(t=>e.Tx.fromJSON(t)):[],numPages:ee(t.numPages)?globalThis.Number(t.numPages):0,numTxs:ee(t.numTxs)?globalThis.Number(t.numTxs):0}),toJSON(t){const r={};return t.txs?.length&&(r.txs=t.txs.map(t=>e.Tx.toJSON(t))),0!==t.numPages&&(r.numPages=Math.round(t.numPages)),0!==t.numTxs&&(r.numTxs=Math.round(t.numTxs)),r},create:t=>e.TxHistoryPage.fromPartial(t??{}),fromPartial(t){const r={txs:[],numPages:0,numTxs:0};return r.txs=t.txs?.map(t=>e.Tx.fromPartial(t))||[],r.numPages=t.numPages??0,r.numTxs=t.numTxs??0,r}},e.ScriptUtxos={encode(t,r=n.default.Writer.create()){0!==t.script.length&&r.uint32(10).bytes(t.script);for(const n of t.utxos)e.ScriptUtxo.encode(n,r.uint32(18).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=F();for(;o.pos>>3){case 1:if(10!==t)break;s.script=o.bytes();continue;case 2:if(18!==t)break;s.utxos.push(e.ScriptUtxo.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({script:ee(t.script)?J(t.script):new Uint8Array(0),utxos:globalThis.Array.isArray(t?.utxos)?t.utxos.map(t=>e.ScriptUtxo.fromJSON(t)):[]}),toJSON(t){const r={};return 0!==t.script.length&&(r.script=X(t.script)),t.utxos?.length&&(r.utxos=t.utxos.map(t=>e.ScriptUtxo.toJSON(t))),r},create:t=>e.ScriptUtxos.fromPartial(t??{}),fromPartial(t){const r=F();return r.script=t.script??new Uint8Array(0),r.utxos=t.utxos?.map(t=>e.ScriptUtxo.fromPartial(t))||[],r}},e.Utxos={encode(t,r=n.default.Writer.create()){for(const n of t.utxos)e.Utxo.encode(n,r.uint32(10).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={utxos:[]};for(;o.pos>>3){case 1:if(10!==t)break;s.utxos.push(e.Utxo.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({utxos:globalThis.Array.isArray(t?.utxos)?t.utxos.map(t=>e.Utxo.fromJSON(t)):[]}),toJSON(t){const r={};return t.utxos?.length&&(r.utxos=t.utxos.map(t=>e.Utxo.toJSON(t))),r},create:t=>e.Utxos.fromPartial(t??{}),fromPartial(t){const r={utxos:[]};return r.utxos=t.utxos?.map(t=>e.Utxo.fromPartial(t))||[],r}},e.BroadcastTxRequest={encode:(e,t=n.default.Writer.create())=>(0!==e.rawTx.length&&t.uint32(10).bytes(e.rawTx),!0===e.skipTokenChecks&&t.uint32(16).bool(e.skipTokenChecks),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=j();for(;r.pos>>3){case 1:if(10!==e)break;i.rawTx=r.bytes();continue;case 2:if(16!==e)break;i.skipTokenChecks=r.bool();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawTx:ee(e.rawTx)?J(e.rawTx):new Uint8Array(0),skipTokenChecks:!!ee(e.skipTokenChecks)&&globalThis.Boolean(e.skipTokenChecks)}),toJSON(e){const t={};return 0!==e.rawTx.length&&(t.rawTx=X(e.rawTx)),!0===e.skipTokenChecks&&(t.skipTokenChecks=e.skipTokenChecks),t},create:t=>e.BroadcastTxRequest.fromPartial(t??{}),fromPartial(e){const t=j();return t.rawTx=e.rawTx??new Uint8Array(0),t.skipTokenChecks=e.skipTokenChecks??!1,t}},e.BroadcastTxResponse={encode:(e,t=n.default.Writer.create())=>(0!==e.txid.length&&t.uint32(10).bytes(e.txid),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=H();for(;r.pos>>3){case 1:if(10!==e)break;i.txid=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txid:ee(e.txid)?J(e.txid):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.txid.length&&(t.txid=X(e.txid)),t},create:t=>e.BroadcastTxResponse.fromPartial(t??{}),fromPartial(e){const t=H();return t.txid=e.txid??new Uint8Array(0),t}},e.BroadcastTxsRequest={encode(e,t=n.default.Writer.create()){for(const r of e.rawTxs)t.uint32(10).bytes(r);return!0===e.skipTokenChecks&&t.uint32(16).bool(e.skipTokenChecks),t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={rawTxs:[],skipTokenChecks:!1};for(;r.pos>>3){case 1:if(10!==e)break;i.rawTxs.push(r.bytes());continue;case 2:if(16!==e)break;i.skipTokenChecks=r.bool();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawTxs:globalThis.Array.isArray(e?.rawTxs)?e.rawTxs.map(e=>J(e)):[],skipTokenChecks:!!ee(e.skipTokenChecks)&&globalThis.Boolean(e.skipTokenChecks)}),toJSON(e){const t={};return e.rawTxs?.length&&(t.rawTxs=e.rawTxs.map(e=>X(e))),!0===e.skipTokenChecks&&(t.skipTokenChecks=e.skipTokenChecks),t},create:t=>e.BroadcastTxsRequest.fromPartial(t??{}),fromPartial(e){const t={rawTxs:[],skipTokenChecks:!1};return t.rawTxs=e.rawTxs?.map(e=>e)||[],t.skipTokenChecks=e.skipTokenChecks??!1,t}},e.BroadcastTxsResponse={encode(e,t=n.default.Writer.create()){for(const r of e.txids)t.uint32(10).bytes(r);return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={txids:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.txids.push(r.bytes());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txids:globalThis.Array.isArray(e?.txids)?e.txids.map(e=>J(e)):[]}),toJSON(e){const t={};return e.txids?.length&&(t.txids=e.txids.map(e=>X(e))),t},create:t=>e.BroadcastTxsResponse.fromPartial(t??{}),fromPartial(e){const t={txids:[]};return t.txids=e.txids?.map(e=>e)||[],t}},e.RawTx={encode:(e,t=n.default.Writer.create())=>(0!==e.rawTx.length&&t.uint32(10).bytes(e.rawTx),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=q();for(;r.pos>>3){case 1:if(10!==e)break;i.rawTx=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawTx:ee(e.rawTx)?J(e.rawTx):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.rawTx.length&&(t.rawTx=X(e.rawTx)),t},create:t=>e.RawTx.fromPartial(t??{}),fromPartial(e){const t=q();return t.rawTx=e.rawTx??new Uint8Array(0),t}},e.WsSub={encode:(t,r=n.default.Writer.create())=>(!0===t.isUnsub&&r.uint32(8).bool(t.isUnsub),void 0!==t.blocks&&e.WsSubBlocks.encode(t.blocks,r.uint32(18).fork()).ldelim(),void 0!==t.script&&e.WsSubScript.encode(t.script,r.uint32(26).fork()).ldelim(),void 0!==t.tokenId&&e.WsSubTokenId.encode(t.tokenId,r.uint32(34).fork()).ldelim(),void 0!==t.lokadId&&e.WsSubLokadId.encode(t.lokadId,r.uint32(42).fork()).ldelim(),void 0!==t.plugin&&e.WsPlugin.encode(t.plugin,r.uint32(50).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={isUnsub:!1,blocks:void 0,script:void 0,tokenId:void 0,lokadId:void 0,plugin:void 0};for(;o.pos>>3){case 1:if(8!==t)break;s.isUnsub=o.bool();continue;case 2:if(18!==t)break;s.blocks=e.WsSubBlocks.decode(o,o.uint32());continue;case 3:if(26!==t)break;s.script=e.WsSubScript.decode(o,o.uint32());continue;case 4:if(34!==t)break;s.tokenId=e.WsSubTokenId.decode(o,o.uint32());continue;case 5:if(42!==t)break;s.lokadId=e.WsSubLokadId.decode(o,o.uint32());continue;case 6:if(50!==t)break;s.plugin=e.WsPlugin.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({isUnsub:!!ee(t.isUnsub)&&globalThis.Boolean(t.isUnsub),blocks:ee(t.blocks)?e.WsSubBlocks.fromJSON(t.blocks):void 0,script:ee(t.script)?e.WsSubScript.fromJSON(t.script):void 0,tokenId:ee(t.tokenId)?e.WsSubTokenId.fromJSON(t.tokenId):void 0,lokadId:ee(t.lokadId)?e.WsSubLokadId.fromJSON(t.lokadId):void 0,plugin:ee(t.plugin)?e.WsPlugin.fromJSON(t.plugin):void 0}),toJSON(t){const r={};return!0===t.isUnsub&&(r.isUnsub=t.isUnsub),void 0!==t.blocks&&(r.blocks=e.WsSubBlocks.toJSON(t.blocks)),void 0!==t.script&&(r.script=e.WsSubScript.toJSON(t.script)),void 0!==t.tokenId&&(r.tokenId=e.WsSubTokenId.toJSON(t.tokenId)),void 0!==t.lokadId&&(r.lokadId=e.WsSubLokadId.toJSON(t.lokadId)),void 0!==t.plugin&&(r.plugin=e.WsPlugin.toJSON(t.plugin)),r},create:t=>e.WsSub.fromPartial(t??{}),fromPartial(t){const r={isUnsub:!1,blocks:void 0,script:void 0,tokenId:void 0,lokadId:void 0,plugin:void 0};return r.isUnsub=t.isUnsub??!1,r.blocks=void 0!==t.blocks&&null!==t.blocks?e.WsSubBlocks.fromPartial(t.blocks):void 0,r.script=void 0!==t.script&&null!==t.script?e.WsSubScript.fromPartial(t.script):void 0,r.tokenId=void 0!==t.tokenId&&null!==t.tokenId?e.WsSubTokenId.fromPartial(t.tokenId):void 0,r.lokadId=void 0!==t.lokadId&&null!==t.lokadId?e.WsSubLokadId.fromPartial(t.lokadId):void 0,r.plugin=void 0!==t.plugin&&null!==t.plugin?e.WsPlugin.fromPartial(t.plugin):void 0,r}},e.WsSubBlocks={encode:(e,t=n.default.Writer.create())=>t,decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={};for(;r.pos({}),toJSON:e=>({}),create:t=>e.WsSubBlocks.fromPartial(t??{}),fromPartial:e=>({})},e.WsSubScript={encode:(e,t=n.default.Writer.create())=>(""!==e.scriptType&&t.uint32(10).string(e.scriptType),0!==e.payload.length&&t.uint32(18).bytes(e.payload),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=W();for(;r.pos>>3){case 1:if(10!==e)break;i.scriptType=r.string();continue;case 2:if(18!==e)break;i.payload=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({scriptType:ee(e.scriptType)?globalThis.String(e.scriptType):"",payload:ee(e.payload)?J(e.payload):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.scriptType&&(t.scriptType=e.scriptType),0!==e.payload.length&&(t.payload=X(e.payload)),t},create:t=>e.WsSubScript.fromPartial(t??{}),fromPartial(e){const t=W();return t.scriptType=e.scriptType??"",t.payload=e.payload??new Uint8Array(0),t}},e.WsSubTokenId={encode:(e,t=n.default.Writer.create())=>(""!==e.tokenId&&t.uint32(10).string(e.tokenId),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={tokenId:""};for(;r.pos>>3){case 1:if(10!==e)break;i.tokenId=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({tokenId:ee(e.tokenId)?globalThis.String(e.tokenId):""}),toJSON(e){const t={};return""!==e.tokenId&&(t.tokenId=e.tokenId),t},create:t=>e.WsSubTokenId.fromPartial(t??{}),fromPartial(e){const t={tokenId:""};return t.tokenId=e.tokenId??"",t}},e.WsSubLokadId={encode:(e,t=n.default.Writer.create())=>(0!==e.lokadId.length&&t.uint32(10).bytes(e.lokadId),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=z();for(;r.pos>>3){case 1:if(10!==e)break;i.lokadId=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({lokadId:ee(e.lokadId)?J(e.lokadId):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.lokadId.length&&(t.lokadId=X(e.lokadId)),t},create:t=>e.WsSubLokadId.fromPartial(t??{}),fromPartial(e){const t=z();return t.lokadId=e.lokadId??new Uint8Array(0),t}},e.WsPlugin={encode:(e,t=n.default.Writer.create())=>(""!==e.pluginName&&t.uint32(10).string(e.pluginName),0!==e.group.length&&t.uint32(18).bytes(e.group),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=G();for(;r.pos>>3){case 1:if(10!==e)break;i.pluginName=r.string();continue;case 2:if(18!==e)break;i.group=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({pluginName:ee(e.pluginName)?globalThis.String(e.pluginName):"",group:ee(e.group)?J(e.group):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.pluginName&&(t.pluginName=e.pluginName),0!==e.group.length&&(t.group=X(e.group)),t},create:t=>e.WsPlugin.fromPartial(t??{}),fromPartial(e){const t=G();return t.pluginName=e.pluginName??"",t.group=e.group??new Uint8Array(0),t}},e.WsMsg={encode:(t,r=n.default.Writer.create())=>(void 0!==t.error&&e.Error.encode(t.error,r.uint32(10).fork()).ldelim(),void 0!==t.block&&e.MsgBlock.encode(t.block,r.uint32(18).fork()).ldelim(),void 0!==t.tx&&e.MsgTx.encode(t.tx,r.uint32(26).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={error:void 0,block:void 0,tx:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.error=e.Error.decode(o,o.uint32());continue;case 2:if(18!==t)break;s.block=e.MsgBlock.decode(o,o.uint32());continue;case 3:if(26!==t)break;s.tx=e.MsgTx.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({error:ee(t.error)?e.Error.fromJSON(t.error):void 0,block:ee(t.block)?e.MsgBlock.fromJSON(t.block):void 0,tx:ee(t.tx)?e.MsgTx.fromJSON(t.tx):void 0}),toJSON(t){const r={};return void 0!==t.error&&(r.error=e.Error.toJSON(t.error)),void 0!==t.block&&(r.block=e.MsgBlock.toJSON(t.block)),void 0!==t.tx&&(r.tx=e.MsgTx.toJSON(t.tx)),r},create:t=>e.WsMsg.fromPartial(t??{}),fromPartial(t){const r={error:void 0,block:void 0,tx:void 0};return r.error=void 0!==t.error&&null!==t.error?e.Error.fromPartial(t.error):void 0,r.block=void 0!==t.block&&null!==t.block?e.MsgBlock.fromPartial(t.block):void 0,r.tx=void 0!==t.tx&&null!==t.tx?e.MsgTx.fromPartial(t.tx):void 0,r}},e.CoinbaseData={encode(t,r=n.default.Writer.create()){0!==t.coinbaseScriptsig.length&&r.uint32(10).bytes(t.coinbaseScriptsig);for(const n of t.coinbaseOutputs)e.TxOutput.encode(n,r.uint32(18).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=V();for(;o.pos>>3){case 1:if(10!==t)break;s.coinbaseScriptsig=o.bytes();continue;case 2:if(18!==t)break;s.coinbaseOutputs.push(e.TxOutput.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({coinbaseScriptsig:ee(t.coinbaseScriptsig)?J(t.coinbaseScriptsig):new Uint8Array(0),coinbaseOutputs:globalThis.Array.isArray(t?.coinbaseOutputs)?t.coinbaseOutputs.map(t=>e.TxOutput.fromJSON(t)):[]}),toJSON(t){const r={};return 0!==t.coinbaseScriptsig.length&&(r.coinbaseScriptsig=X(t.coinbaseScriptsig)),t.coinbaseOutputs?.length&&(r.coinbaseOutputs=t.coinbaseOutputs.map(t=>e.TxOutput.toJSON(t))),r},create:t=>e.CoinbaseData.fromPartial(t??{}),fromPartial(t){const r=V();return r.coinbaseScriptsig=t.coinbaseScriptsig??new Uint8Array(0),r.coinbaseOutputs=t.coinbaseOutputs?.map(t=>e.TxOutput.fromPartial(t))||[],r}},e.MsgBlock={encode(t,r=n.default.Writer.create()){if(0!==t.msgType&&r.uint32(8).int32(t.msgType),0!==t.blockHash.length&&r.uint32(18).bytes(t.blockHash),0!==t.blockHeight&&r.uint32(24).int32(t.blockHeight),t.blockTimestamp!==BigInt("0")){if(BigInt.asIntN(64,t.blockTimestamp)!==t.blockTimestamp)throw new globalThis.Error("value provided for field message.blockTimestamp of type int64 too large");r.uint32(32).int64(t.blockTimestamp.toString())}return void 0!==t.coinbaseData&&e.CoinbaseData.encode(t.coinbaseData,r.uint32(42).fork()).ldelim(),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=K();for(;o.pos>>3){case 1:if(8!==t)break;s.msgType=o.int32();continue;case 2:if(18!==t)break;s.blockHash=o.bytes();continue;case 3:if(24!==t)break;s.blockHeight=o.int32();continue;case 4:if(32!==t)break;s.blockTimestamp=Q(o.int64());continue;case 5:if(42!==t)break;s.coinbaseData=e.CoinbaseData.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({msgType:ee(t.msgType)?A(t.msgType):0,blockHash:ee(t.blockHash)?J(t.blockHash):new Uint8Array(0),blockHeight:ee(t.blockHeight)?globalThis.Number(t.blockHeight):0,blockTimestamp:ee(t.blockTimestamp)?BigInt(t.blockTimestamp):BigInt("0"),coinbaseData:ee(t.coinbaseData)?e.CoinbaseData.fromJSON(t.coinbaseData):void 0}),toJSON(t){const r={};return 0!==t.msgType&&(r.msgType=b(t.msgType)),0!==t.blockHash.length&&(r.blockHash=X(t.blockHash)),0!==t.blockHeight&&(r.blockHeight=Math.round(t.blockHeight)),t.blockTimestamp!==BigInt("0")&&(r.blockTimestamp=t.blockTimestamp.toString()),void 0!==t.coinbaseData&&(r.coinbaseData=e.CoinbaseData.toJSON(t.coinbaseData)),r},create:t=>e.MsgBlock.fromPartial(t??{}),fromPartial(t){const r=K();return r.msgType=t.msgType??0,r.blockHash=t.blockHash??new Uint8Array(0),r.blockHeight=t.blockHeight??0,r.blockTimestamp=t.blockTimestamp??BigInt("0"),r.coinbaseData=void 0!==t.coinbaseData&&null!==t.coinbaseData?e.CoinbaseData.fromPartial(t.coinbaseData):void 0,r}},e.MsgTx={encode:(e,t=n.default.Writer.create())=>(0!==e.msgType&&t.uint32(8).int32(e.msgType),0!==e.txid.length&&t.uint32(18).bytes(e.txid),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=Z();for(;r.pos>>3){case 1:if(8!==e)break;i.msgType=r.int32();continue;case 2:if(18!==e)break;i.txid=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({msgType:ee(e.msgType)?v(e.msgType):0,txid:ee(e.txid)?J(e.txid):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.msgType&&(t.msgType=_(e.msgType)),0!==e.txid.length&&(t.txid=X(e.txid)),t},create:t=>e.MsgTx.fromPartial(t??{}),fromPartial(e){const t=Z();return t.msgType=e.msgType??0,t.txid=e.txid??new Uint8Array(0),t}},e.Empty={encode:(e,t=n.default.Writer.create())=>t,decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={};for(;r.pos({}),toJSON:e=>({}),create:t=>e.Empty.fromPartial(t??{}),fromPartial:e=>({})},e.Error={encode:(e,t=n.default.Writer.create())=>(""!==e.msg&&t.uint32(18).string(e.msg),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={msg:""};for(;r.pos>>3){case 2:if(18!==e)break;i.msg=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({msg:ee(e.msg)?globalThis.String(e.msg):""}),toJSON(e){const t={};return""!==e.msg&&(t.msg=e.msg),t},create:t=>e.Error.fromPartial(t??{}),fromPartial(e){const t={msg:""};return t.msg=e.msg??"",t}},n.default.util.Long!==r.default&&(n.default.util.Long=r.default,n.default.configure())}(chronik);var failoverProxy={}; -/*! Axios v1.11.0 Copyright (c) 2025 Matt Zabriskie and contributors */function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString:toString}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,{iterator:iterator,toStringTag:toStringTag}=Symbol,kindOf=(e=>t=>{const r=toString.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&isFunction(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isBoolean=e=>!0===e||!1===e,isPlainObject=e=>{if("object"!==kindOf(e))return!1;const t=getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||toStringTag in e||iterator in e)},isEmptyObject=e=>{if(!isObject(e)||isBuffer(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction(e.pipe),isFormData=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||isFunction(e.append)&&("formdata"===(t=kindOf(e))||"object"===t&&isFunction(e.toString)&&"[object FormData]"===e.toString()))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),isArray(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:commonjsGlobal,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},t={},r=(r,n)=>{const o=e&&findKey(t,n)||n;isPlainObject(t[o])&&isPlainObject(r)?t[o]=merge$1(t[o],r):isPlainObject(r)?t[o]=merge$1({},r):isArray(r)?t[o]=r.slice():t[o]=r};for(let e=0,t=arguments.length;e(forEach(t,(t,n)=>{r&&isFunction(t)?e[n]=bind(t,r):e[n]=t},{allOwnKeys:n}),e),stripBOM=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],n&&!n(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==r&&getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},isTypedArray=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const r=(e&&e[iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),hasOwnProperty=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};forEach(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},freezeMethods=e=>{reduceDescriptors(e,(t,r)=>{if(isFunction(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];isFunction(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet=(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return isArray(e)?n(e):n(String(e).split(t)),r},noop=()=>{},toFiniteNumber=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction(e.append)&&"FormData"===e[toStringTag]&&e[iterator])}const toJSONObject=e=>{const t=new Array(10),r=(e,n)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[n]=e;const o=isArray(e)?[]:{};return forEach(e,(e,t)=>{const i=r(e,n+1);!isUndefined(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction(e))&&isFunction(e.then)&&isFunction(e.catch),_setImmediate=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction(_global.postMessage),setImmediateSupported?setImmediate:postMessageSupported?(token=`axios@${Math.random()}`,callbacks=[],_global.addEventListener("message",({source:e,data:t})=>{e===_global&&t===token&&callbacks.length&&callbacks.shift()()},!1),e=>{callbacks.push(e),_global.postMessage(token,"*")}):e=>setTimeout(e));var setImmediateSupported,postMessageSupported,token,callbacks;const asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):"undefined"!=typeof process&&process.nextTick||_setImmediate,isIterable=e=>null!=e&&isFunction(e[iterator]);var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge$1,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable,setImmediate:_setImmediate,asap:asap,isIterable:isIterable};function AxiosError(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(e,t,r,n,o,i)=>{const s=Object.create(prototype$1);return utils$1.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map(function(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(e){return/^is[A-Z]/.test(e)});function toFormData(e,t,r){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=utils$1.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!utils$1.isUndefined(t[e])})).metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(utils$1.isDate(e))return e.toISOString();if(utils$1.isBoolean(e))return e.toString();if(!a&&utils$1.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(e)||utils$1.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(utils$1.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(utils$1.isArray(e)&&isFlatArray(e)||(utils$1.isFileList(e)||utils$1.endsWith(r,"[]"))&&(a=utils$1.toArray(e)))return r=removeBrackets(r),a.forEach(function(e,n){!utils$1.isUndefined(e)&&null!==e&&t.append(!0===s?renderKey([r],n,i):null===s?r:r+"[]",u(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(o,r,i),u(e)),!1)}const l=[],f=Object.assign(predicates,{defaultVisitor:c,convertValue:u,isVisitable:isVisitable});if(!utils$1.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!utils$1.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),utils$1.forEach(r,function(r,i){!0===(!(utils$1.isUndefined(r)||null===r)&&o.call(t,r,utils$1.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])}),l.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const prototype=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,r){if(!t)return e;const n=r&&r.encode||encode;utils$1.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}prototype.append=function(e,t){this._pairs.push([e,t])},prototype.toString=function(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils$1.forEach(this.handlers,function(t){null!==t&&e(t)})}}var InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData$1="undefined"!=typeof FormData?FormData:null,Blob$1="undefined"!=typeof Blob?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv="undefined"!=typeof window&&"undefined"!=typeof document,_navigator="object"==typeof navigator&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,origin=hasBrowserEnv&&window.location.href||"http://localhost";var utils=Object.freeze({__proto__:null,hasBrowserEnv:hasBrowserEnv,hasStandardBrowserWebWorkerEnv:hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv:hasStandardBrowserEnv,navigator:_navigator,origin:origin}),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData(e,new platform.classes.URLSearchParams,{visitor:function(e,t,r,n){return platform.isNode&&utils$1.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function arrayToObject(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=e.length;if(i=!i&&utils$1.isArray(n)?n.length:i,a)return utils$1.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&utils$1.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&utils$1.isArray(n[i])&&(n[i]=arrayToObject(n[i])),!s}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const r={};return utils$1.forEachEntry(e,(e,n)=>{t(parsePropPath(e),n,r,0)}),r}return null}function stringifySafely(e,t,r){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=utils$1.isObject(e);o&&utils$1.isHTMLForm(e)&&(e=new FormData(e));if(utils$1.isFormData(e))return n?JSON.stringify(formDataToJSON(e)):e;if(utils$1.isArrayBuffer(e)||utils$1.isBuffer(e)||utils$1.isStream(e)||utils$1.isFile(e)||utils$1.isBlob(e)||utils$1.isReadableStream(e))return e;if(utils$1.isArrayBufferView(e))return e.buffer;if(utils$1.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((i=utils$1.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){const t=this.transitional||defaults.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(utils$1.isResponse(e)||utils$1.isReadableStream(e))return e;if(e&&utils$1.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],e=>{defaults.headers[e]={}});var defaults$1=defaults;const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ignoreDuplicateOf[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const $internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,r,n,o){return utils$1.isFunction(n)?n.call(this,t,r):(o&&(t=r),utils$1.isString(t)?utils$1.isString(n)?-1!==t.indexOf(n):utils$1.isRegExp(n)?n.test(t):void 0:void 0)}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function buildAccessors(e,t){const r=utils$1.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=normalizeHeader(t);if(!o)throw new Error("header name must be a non-empty string");const i=utils$1.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=normalizeValue(e))}const i=(e,t)=>utils$1.forEach(e,(e,r)=>o(e,r,t));if(utils$1.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(utils$1.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))i(parseHeaders(e),t);else if(utils$1.isObject(e)&&utils$1.isIterable(e)){let r,n,o={};for(const t of e){if(!utils$1.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?utils$1.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return parseTokens(e);if(utils$1.isFunction(t))return t.call(this,e,r);if(utils$1.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const r=utils$1.findKey(this,e);return!(!r||void 0===this[r]||t&&!matchHeaderValue(this,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=normalizeHeader(e)){const o=utils$1.findKey(r,e);!o||t&&!matchHeaderValue(r,r[o],o,t)||(delete r[o],n=!0)}}return utils$1.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!matchHeaderValue(this,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return utils$1.forEach(this,(n,o)=>{const i=utils$1.findKey(r,o);if(i)return t[i]=normalizeValue(n),void delete t[o];const s=e?formatHeader(o):String(o).trim();s!==o&&delete t[o],t[s]=normalizeValue(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return utils$1.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&utils$1.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=normalizeHeader(e);t[n]||(buildAccessors(r,e),t[n]=!0)}return utils$1.isArray(e)?e.forEach(n):n(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;function transformData(e,t){const r=this||defaults$1,n=t||r,o=AxiosHeaders$1.from(n.headers);let i=n.data;return utils$1.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function isCancel(e){return!(!e||!e.__CANCEL__)}function CanceledError(e,t,r){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,t,r),this.name="CanceledError"}function settle(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new AxiosError("Request failed with status code "+r.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,f=0;for(;l!==i;)f+=r[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});const progressEventReducer=(e,t,r=3)=>{let n=0;const o=speedometer(50,250);return throttle(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,u=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},progressEventDecorator=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap(()=>e(...t));var isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,platform.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];utils$1.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),utils$1.isString(n)&&s.push("path="+n),utils$1.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,r){let n=!isAbsoluteURL(t);return e&&(n||0==r)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig(e,t){t=t||{};const r={};function n(e,t,r,n){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(t)?utils$1.merge.call({caseless:n},e,t):utils$1.isPlainObject(t)?utils$1.merge({},t):utils$1.isArray(t)?t.slice():t}function o(e,t,r,o){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!utils$1.isUndefined(t))return n(void 0,t)}function s(e,t){return utils$1.isUndefined(t)?utils$1.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(headersToObject(e),headersToObject(t),0,!0)};return utils$1.forEach(Object.keys({...e,...t}),function(n){const i=u[n]||o,s=i(e[n],t[n],n);utils$1.isUndefined(s)&&i!==a||(r[n]=s)}),r}var resolveConfig=e=>{const t=mergeConfig({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:u}=t;if(t.headers=a=AxiosHeaders$1.from(a),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),utils$1.isFormData(n))if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(platform.hasStandardBrowserEnv&&(o&&utils$1.isFunction(o)&&(o=o(t)),o||!1!==o&&isURLSameOrigin(t.url))){const e=i&&s&&cookies.read(s);e&&a.set(i,e)}return t};const isXHRAdapterSupported="undefined"!=typeof XMLHttpRequest;var xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(t,r){const n=resolveConfig(e);let o=n.data;const i=AxiosHeaders$1.from(n.headers).normalize();let s,a,u,c,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=n;function h(){c&&c(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=AxiosHeaders$1.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());settle(function(e){t(e),h()},function(e){r(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||transitionalDefaults;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new AxiosError(t,o.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&utils$1.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),utils$1.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),f&&"json"!==f&&(m.responseType=n.responseType),p&&([u,l]=progressEventReducer(p,!0),m.addEventListener("progress",u)),d&&m.upload&&([a,c]=progressEventReducer(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new CanceledError(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const y=parseProtocol(n.url);y&&-1===platform.protocols.indexOf(y)?r(new AxiosError("Unsupported protocol "+y+":",AxiosError.ERR_BAD_REQUEST,e)):m.send(o||null)})};const composeSignals=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new AxiosError(`timeout ${t} of ms exceeded`,AxiosError.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>utils$1.asap(s),a}};var composeSignals$1=composeSignals;const streamChunk=function*(e,t){let r=e.byteLength;if(!t||r{const o=readBytes(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},isFetchSupported="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,isReadableStreamSupported=isFetchSupported&&"function"==typeof ReadableStream,encodeText=isFetchSupported&&("function"==typeof TextEncoder?(encoder=new TextEncoder,e=>encoder.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var encoder;const test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let e=!1;const t=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),DEFAULT_CHUNK_SIZE=65536,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(e=>e.body)};var res;isFetchSupported&&(res=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!resolvers[e]&&(resolvers[e]=utils$1.isFunction(res[e])?t=>t[e]():(t,r)=>{throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,r)})}));const getBodyLength=async e=>{if(null==e)return 0;if(utils$1.isBlob(e))return e.size;if(utils$1.isSpecCompliantForm(e)){const t=new Request(platform.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return utils$1.isArrayBufferView(e)||utils$1.isArrayBuffer(e)?e.byteLength:(utils$1.isURLSearchParams(e)&&(e+=""),utils$1.isString(e)?(await encodeText(e)).byteLength:void 0)},resolveBodyLength=async(e,t)=>{const r=utils$1.toFiniteNumber(e.getContentLength());return null==r?getBodyLength(t):r};var fetchAdapter=isFetchSupported&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:d}=resolveConfig(e);c=c?(c+"").toLowerCase():"text";let p,h=composeSignals$1([o,i&&i.toAbortSignal()],s);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(u&&supportsRequestStream&&"get"!==r&&"head"!==r&&0!==(g=await resolveBodyLength(l,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(utils$1.isFormData(n)&&(e=r.headers.get("content-type"))&&l.setContentType(e),r.body){const[e,t]=progressEventDecorator(g,progressEventReducer(asyncDecorator(u)));n=trackStream(r.body,DEFAULT_CHUNK_SIZE,e,t)}}utils$1.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(p,d);const s=supportsResponseStream&&("stream"===c||"response"===c);if(supportsResponseStream&&(a||s&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=utils$1.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&progressEventDecorator(t,progressEventReducer(asyncDecorator(a),!0))||[];i=new Response(trackStream(i.body,DEFAULT_CHUNK_SIZE,r,()=>{n&&n(),m&&m()}),e)}c=c||"text";let y=await resolvers[utils$1.findKey(resolvers,c)||"text"](i,e);return!s&&m&&m(),await new Promise((t,r)=>{settle(t,r,{data:y,headers:AxiosHeaders$1.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,p),{cause:t.cause||t});throw AxiosError.from(t,t&&t.code,e,p)}});const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||null===e||!1===e;var adapters={getAdapter:e=>{e=utils$1.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new AxiosError("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return adapters.getAdapter(e.adapter||defaults$1.adapter)(e).then(function(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=AxiosHeaders$1.from(t.headers),t},function(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=AxiosHeaders$1.from(t.response.headers))),Promise.reject(t)})}const VERSION="1.11.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};function assertOptions(e,t,r){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new AxiosError("option "+i+" must be "+r,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new AxiosError("Unknown option "+i,AxiosError.ERR_BAD_OPTION)}}validators$1.transitional=function(e,t,r){function n(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new AxiosError(n(o," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},validators$1.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var validator={assertOptions:assertOptions,validators:validators$1};const validators=validator.validators;class Axios{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),null!=n&&(utils$1.isFunction(n)?t.paramsSerializer={serialize:n}:validator.assertOptions(n,{encode:validators.function,serialize:validators.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),validator.assertOptions(t,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&utils$1.merge(o.common,o[t.method]);o&&utils$1.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=AxiosHeaders$1.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const u=[];let c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let l,f=0;if(!a){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...s),e.push(...u),l=e.length,c=Promise.resolve(t);f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new CanceledError(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new CancelToken(function(t){e=t});return{token:t,cancel:e}}}var CancelToken$1=CancelToken;function spread(e){return function(t){return e.apply(null,t)}}function isAxiosError(e){return utils$1.isObject(e)&&!0===e.isAxiosError}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([e,t])=>{HttpStatusCode[t]=e});var HttpStatusCode$1=HttpStatusCode;function createInstance(e){const t=new Axios$1(e),r=bind(Axios$1.prototype.request,t);return utils$1.extend(r,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return createInstance(mergeConfig(e,t))},r}const axios=createInstance(defaults$1);axios.Axios=Axios$1,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function(e){return Promise.all(e)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;var axios_1$1=axios,__createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(t,e,r);return __setModuleDefault(t,e),t},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(failoverProxy,"__esModule",{value:!0}),failoverProxy.FailoverProxy=failoverProxy.appendWsUrls=void 0;const axios_1=__importDefault(axios_1$1),isomorphic_ws_1=__importDefault(browser),proto$1=__importStar(chronik),WEBSOCKET_TIMEOUT_MS=5e3;function appendWsUrls(e){const t=[];for(const r of e)if(r.startsWith("https://"))t.push({url:r,wsUrl:"wss://"+r.substring(8)+"/ws"});else{if(!r.startsWith("http://"))throw new Error(`Invalid url found in array: ${r}`);t.push({url:r,wsUrl:"ws://"+r.substring(7)+"/ws"})}return t}failoverProxy.appendWsUrls=appendWsUrls;class FailoverProxy{constructor(e){const t="string"==typeof e?[e]:e;if(0===t.length)throw new Error("Url array must not be empty");for(const e of t){if(e.endsWith("/"))throw new Error("`url` cannot end with '/', got: "+e);if(!e.startsWith("https://")&&!e.startsWith("http://"))throw new Error("`url` must start with 'https://' or 'http://', got: "+e)}this._endpointArray=appendWsUrls(t),this._workingIndex=0}getEndpointArray(){return this._endpointArray}deriveEndpointIndex(e){return(this._workingIndex+e)%this._endpointArray.length}setWorkingIndex(e){this._workingIndex=e}async post(e,t){return this._request(e,"POST",t)}async get(e){return this._request(e,"GET")}async _request(e,t,r){for(let n=0;ne,headers:{"Content-Type":"application/x-protobuf"}})}return this.ensureResponseErrorThrown(o,t),new Uint8Array(o.data)}ensureResponseErrorThrown(e,t){if(200!=e.status){let r,n=!1;try{r=proto$1.Error.decode(new Uint8Array(e.data)),n=!0}catch{throw new Error("Unable to decode error msg, chronik server is indexing or in error state")}if(n)throw new Error(`Failed getting ${t}: ${r.msg}`)}}async _websocketUrlConnects(e){return new Promise(t=>{const r=setTimeout(()=>{n.close(),t(!1)},WEBSOCKET_TIMEOUT_MS),n=new isomorphic_ws_1.default(e);n.onerror=function(){return n.close(),clearTimeout(r),t(!1)},n.onopen=function(){return n.close(),clearTimeout(r),t(!0)}}).catch(()=>!1)}async connectWs(e){for(let t=0;te.handleMsg(t),t.onerror=()=>{void 0!==e.onError&&e.close()},t.onclose=t=>{!e.manuallyClosed&&e.autoReconnect?(void 0!==e.onReconnect&&e.onReconnect(t),this._workingIndex=(this._workingIndex+1)%this._endpointArray.length,this.connectWs(e)):void 0!==e.onEnd&&e.onEnd(t)},e.ws=t,void(e.connected=new Promise(n=>{t.onopen=t=>{e.subs.scripts.forEach(t=>e.subscribeToScript(t.scriptType,t.payload)),e.subs.lokadIds.forEach(t=>e.subscribeToLokadId(t)),e.subs.tokens.forEach(t=>e.subscribeToTokenId(t)),!0===e.subs.blocks&&e.subscribeToBlocks(),n(t),void 0!==e.onConnect&&e.onConnect(t),this._workingIndex=r}}))}}throw new Error("Error connecting to known Chronik websockets")}}failoverProxy.FailoverProxy=FailoverProxy;var hex={};Object.defineProperty(hex,"__esModule",{value:!0}),hex.fromHexRev=hex.fromHex=hex.toHexRev=hex.toHex=void 0;const LUT_HEX_4b=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],LUT_HEX_8b=new Array(256),LUT_BIN_8b={};for(let e=0;e<256;e++){const t=`${LUT_HEX_4b[e>>>4&15]}${LUT_HEX_4b[15&e]}`;LUT_HEX_8b[e]=t,LUT_BIN_8b[t]=e}function toHex(e){let t="";for(let r=0,n=e.length;r=0;--r)t+=LUT_HEX_8b[e[r]];return t}function fromHex(e){if(1&e.length)throw new Error(`Odd hex length: ${e}`);const t=e.length>>1,r=new Uint8Array(t);for(let t=0;t>1]=o}return r}function fromHexRev(e){const t=fromHex(e);return t.reverse(),t}hex.toHex=toHex,hex.toHexRev=toHexRev,hex.fromHex=fromHex,hex.fromHexRev=fromHexRev;var validation={};Object.defineProperty(validation,"__esModule",{value:!0}),validation.verifyPluginSubscription=validation.verifyTokenId=validation.verifyLokadId=validation.isValidWsSubscription=void 0;const VALID_HEX_REGEX=new RegExp(/^[a-f0-9]+$/),VALID_LOKADID_REGEX=new RegExp(/^[a-f0-9]{8}$/),VALID_TOKENID_REGEX=new RegExp(/^[a-f0-9]{64}$/),isValidWsSubscription=e=>{const{scriptType:t,payload:r}=e;if(r.length%2!=0)return`Odd hex length: ${r}`;if(!VALID_HEX_REGEX.test(r))return`Invalid hex: "${r}". Payload must be lowercase hex string.`;const n=[33,65],o=r.length/2;switch(t){case"p2pkh":case"p2sh":return 20===o||`Invalid length, expected 20 bytes but got ${o} bytes`;case"p2pk":return!!n.includes(o)||`Invalid length, expected one of [33, 65] but got ${o} bytes`;case"other":return!0;default:return`Invalid scriptType: ${t}`}};validation.isValidWsSubscription=isValidWsSubscription;const verifyLokadId=e=>{if(!VALID_LOKADID_REGEX.test(e))throw new Error(`Invalid lokadId: "${e}". lokadId must be 4 bytes (8 chars) of lowercase hex.`)};validation.verifyLokadId=verifyLokadId;const verifyTokenId=e=>{if(!VALID_TOKENID_REGEX.test(e))throw new Error(`Invalid tokenId: "${e}". tokenId must be 64 characters of lowercase hex.`)};validation.verifyTokenId=verifyTokenId;const verifyPluginSubscription=e=>{const{pluginName:t,group:r}=e;if(void 0===t)throw new Error("pluginName must be a string");if(void 0===r)throw new Error("group must be a string");if(r.length%2!=0)throw new Error(`group must have even length (complete bytes): "${r}"`);if(!VALID_HEX_REGEX.test(r))throw new Error(`group must be a valid lowercase hex string: "${r}"`)};validation.verifyPluginSubscription=verifyPluginSubscription,function(e){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=commonjsGlobal&&commonjsGlobal.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ALP_TOKEN_TYPES=e.WsEndpoint=e.PluginEndpoint=e.LokadIdEndpoint=e.TokenIdEndpoint=e.ScriptEndpoint=e.ChronikClient=e.sortNodesByLatency=e.measureWebsocketLatency=e.ConnectionStrategy=void 0;const i=cashaddr,s=o(browser),a=n(chronik),u=failoverProxy,c=hex,l=validation;var f;!function(e){e.ClosestFirst="CLOSEST_FIRST",e.AsOrdered="AS_ORDERED"}(f=e.ConnectionStrategy||(e.ConnectionStrategy={}));async function d(e){return new Promise(t=>{const r=setTimeout(()=>{o.close(),t(1/0)},1e3),n=Date.now(),o=new s.default(e);o.onerror=function(){return o.close(),clearTimeout(r),t(1/0)},o.onopen=function(){const e=Date.now()-n;return o.close(),clearTimeout(r),t(e)}}).catch(()=>1/0)}async function p(e){const t=(0,u.appendWsUrls)(e),r=await Promise.all(t.map(async e=>{const t=await d(e.wsUrl);return{url:e.url,latency:t}}));r.sort((e,t)=>e.latency-t.latency);const n=r.map(e=>e.url);return n.forEach((e,t)=>{const n=r.find(t=>t.url===e);console.log(n?.latency===1/0?` ${t+1}. ${e} - latency: >${Math.round(1e3)}ms`:` ${t+1}. ${e} - latency: ${Math.round(n?.latency||0)}ms`)}),n}e.measureWebsocketLatency=d,e.sortNodesByLatency=p;class h{constructor(e){this._proxyInterface=new u.FailoverProxy(e)}static async useStrategy(e,t){let r=[...t];if(e===f.ClosestFirst)try{r=await p(t)}catch(e){console.error("Error sorting nodes by latency:",e,"Using original order:")}return new h(r)}proxyInterface(){return this._proxyInterface}async broadcastTx(e,t=!1){const r=a.BroadcastTxRequest.encode({rawTx:"string"==typeof e?(0,c.fromHex)(e):e,skipTokenChecks:t}).finish(),n=await this._proxyInterface.post("/broadcast-tx",r),o=a.BroadcastTxResponse.decode(n);return{txid:(0,c.toHexRev)(o.txid)}}async broadcastTxs(e,t=!1){const r=a.BroadcastTxsRequest.encode({rawTxs:e.map(e=>"string"==typeof e?(0,c.fromHex)(e):e),skipTokenChecks:t}).finish(),n=await this._proxyInterface.post("/broadcast-txs",r);return{txids:a.BroadcastTxsResponse.decode(n).txids.map(c.toHexRev)}}async validateRawTx(e){if("string"!=typeof e&&!(e instanceof Uint8Array))throw new Error("rawTx must be a hex string or a Uint8Array");const t=a.RawTx.encode({rawTx:"string"==typeof e?(0,c.fromHex)(e):e}).finish(),r=await this._proxyInterface.post("/validate-tx",t);return _(a.Tx.decode(r))}async blockchainInfo(){const e=await this._proxyInterface.get("/blockchain-info");return function(e){return{tipHash:(0,c.toHexRev)(e.tipHash),tipHeight:e.tipHeight}}(a.BlockchainInfo.decode(e))}async chronikInfo(){const e=await this._proxyInterface.get("/chronik-info");return function(e){if(void 0===e.version)throw new Error("chronikInfo has no version");return{version:0!==e.version.length?e.version:""}}(a.ChronikInfo.decode(e))}async block(e){const t=await this._proxyInterface.get(`/block/${e}`);return function(e){if(void 0===e.blockInfo)throw new Error("Block has no blockInfo");return{blockInfo:v(e.blockInfo)}}(a.Block.decode(t))}async blockTxs(e,t=0,r=25){const n=await this._proxyInterface.get(`/block-txs/${e}?page=${t}&page_size=${r}`);return function(e){const{txs:t,numPages:r,numTxs:n}=e;return{txs:t.map(_),numPages:r,numTxs:n}}(a.TxHistoryPage.decode(n))}async blocks(e,t){const r=await this._proxyInterface.get(`/blocks/${e}/${t}`);return a.Blocks.decode(r).blocks.map(v)}async token(e){const t=await this._proxyInterface.get(`/token/${e}`);return function(e){if(void 0===e.tokenType)throw new Error(`chronik returned undefined tokenInfo.tokenType for tokenId "${e.tokenId}"`);if(void 0===e.genesisInfo)throw new Error(`chronik returned undefined tokenInfo.genesisInfo for tokenId "${e.tokenId}"`);const t=R(e.tokenType),r={tokenId:e.tokenId,tokenType:t,timeFirstSeen:Number(e.timeFirstSeen),genesisInfo:M(e.genesisInfo,t)};void 0!==e.block&&(r.block=x(e.block));return r}(a.TokenInfo.decode(t))}async tx(e){const t=await this._proxyInterface.get(`/tx/${e}`);return _(a.Tx.decode(t))}async rawTx(e){const t=await this._proxyInterface.get(`/raw-tx/${e}`);return function(e){return{rawTx:(0,c.toHex)(e.rawTx)}}(a.RawTx.decode(t))}tokenId(e){return new g(this._proxyInterface,e)}lokadId(e){return new y(this._proxyInterface,e)}plugin(e){return new A(this._proxyInterface,e)}script(e,t){return new m(this._proxyInterface,e,t)}address(e){const{type:t,hash:r}=(0,i.decodeCashAddress)(e);return new m(this._proxyInterface,t,r)}ws(e){return new b(this._proxyInterface,e)}}e.ChronikClient=h;class m{constructor(e,t,r){this._proxyInterface=e,this._scriptType=t,this._scriptPayload=r}async history(e=0,t=25){const r=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/history?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async confirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/confirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async unconfirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/unconfirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async utxos(){const e=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/utxos`),t=a.ScriptUtxos.decode(e);return{outputScript:(0,c.toHex)(t.script),utxos:t.utxos.map($)}}}e.ScriptEndpoint=m;class g{constructor(e,t){this._proxyInterface=e,this._tokenId=t}async history(e=0,t=25){const r=await this._proxyInterface.get(`/token-id/${this._tokenId}/history?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async confirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/token-id/${this._tokenId}/confirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async unconfirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/token-id/${this._tokenId}/unconfirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async utxos(){const e=await this._proxyInterface.get(`/token-id/${this._tokenId}/utxos`),t=a.Utxos.decode(e);return{tokenId:this._tokenId,utxos:t.utxos.map(k)}}}e.TokenIdEndpoint=g;class y{constructor(e,t){this._proxyInterface=e,this._lokadId=t}async history(e=0,t=25){const r=await this._proxyInterface.get(`/lokad-id/${this._lokadId}/history?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async confirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/lokad-id/${this._lokadId}/confirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}async unconfirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/lokad-id/${this._lokadId}/unconfirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(_),numPages:n.numPages,numTxs:n.numTxs}}}e.LokadIdEndpoint=y;class A{constructor(e,t){this._proxyInterface=e,this._pluginName=t}async utxos(e){const t=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/utxos`),r=a.Utxos.decode(t);return{pluginName:this._pluginName,groupHex:e,utxos:r.utxos.map(k)}}async groups(e,t,r){const n=new URLSearchParams;void 0!==e&&n.set("prefix",e),void 0!==t&&n.set("start",t),void 0!==r&&n.set("page_size",r.toString());const o=await this._proxyInterface.get(`/plugin/${this._pluginName}/groups?${n.toString()}`);return function(e){const{groups:t}=e;return{groups:t.map(e=>({group:(0,c.toHex)(e.group)})),nextStart:(0,c.toHex)(e.nextStart)}}(a.PluginGroups.decode(o))}async history(e,t=0,r=25){const n=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/history?page=${t}&page_size=${r}`),o=a.TxHistoryPage.decode(n);return{txs:o.txs.map(_),numPages:o.numPages,numTxs:o.numTxs}}async confirmedTxs(e,t=0,r=25){const n=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/confirmed-txs?page=${t}&page_size=${r}`),o=a.TxHistoryPage.decode(n);return{txs:o.txs.map(_),numPages:o.numPages,numTxs:o.numTxs}}async unconfirmedTxs(e,t=0,r=25){const n=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/unconfirmed-txs?page=${t}&page_size=${r}`),o=a.TxHistoryPage.decode(n);return{txs:o.txs.map(_),numPages:o.numPages,numTxs:o.numTxs}}}e.PluginEndpoint=A;class b{constructor(e,t){this.onMessage=t.onMessage,this.onConnect=t.onConnect,this.onReconnect=t.onReconnect,this.onEnd=t.onEnd,this.autoReconnect=void 0===t.autoReconnect||t.autoReconnect,this.manuallyClosed=!1,this.subs={scripts:[],tokens:[],lokadIds:[],plugins:[],blocks:!1},this._proxyInterface=e}async waitForOpen(){await this._proxyInterface.connectWs(this),await this.connected}subscribeToBlocks(){this.subs.blocks=!0,this.ws?.readyState===s.default.OPEN&&this._subUnsubBlocks(!1)}unsubscribeFromBlocks(){this.subs.blocks=!1,this.ws?.readyState===s.default.OPEN&&this._subUnsubBlocks(!0)}subscribeToScript(e,t){const r={scriptType:e,payload:t},n=(0,l.isValidWsSubscription)(r);if(!0!==n)throw new Error(n);this.subs.scripts.push(r),this.ws?.readyState===s.default.OPEN&&this._subUnsubScript(!1,r)}unsubscribeFromScript(e,t){const r={scriptType:e,payload:t},n=this.subs.scripts.findIndex(r=>r.scriptType===e&&r.payload===t);if(-1===n)throw new Error(`No existing sub at ${e}, ${t}`);this.subs.scripts.splice(n,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubScript(!0,r)}subscribeToAddress(e){const{type:t,hash:r}=(0,i.decodeCashAddress)(e);this.subscribeToScript(t,r)}unsubscribeFromAddress(e){const{type:t,hash:r}=(0,i.decodeCashAddress)(e);this.unsubscribeFromScript(t,r)}subscribeToLokadId(e){(0,l.verifyLokadId)(e),this.subs.lokadIds.push(e),this.ws?.readyState===s.default.OPEN&&this._subUnsubLokadId(!1,e)}unsubscribeFromLokadId(e){const t=this.subs.lokadIds.findIndex(t=>t===e);if(-1===t)throw new Error(`No existing sub at lokadId "${e}"`);this.subs.lokadIds.splice(t,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubLokadId(!0,e)}subscribeToTokenId(e){(0,l.verifyTokenId)(e),this.subs.tokens.push(e),this.ws?.readyState===s.default.OPEN&&this._subUnsubToken(!1,e)}unsubscribeFromTokenId(e){const t=this.subs.tokens.findIndex(t=>t===e);if(-1===t)throw new Error(`No existing sub at tokenId "${e}"`);this.subs.tokens.splice(t,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubToken(!0,e)}subscribeToPlugin(e,t){const r={pluginName:e,group:t};(0,l.verifyPluginSubscription)(r),this.subs.plugins.push(r),this.ws?.readyState===s.default.OPEN&&this._subUnsubPlugin(!1,r)}unsubscribeFromPlugin(e,t){const r=this.subs.plugins.findIndex(r=>r.pluginName===e&&r.group===t);if(-1===r)throw new Error(`No existing sub at pluginName="${e}", group="${t}"`);this.subs.plugins.splice(r,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubPlugin(!0,{pluginName:e,group:t})}close(){this.manuallyClosed=!0,this.ws?.close()}_subUnsubBlocks(e){const t=a.WsSub.encode({isUnsub:e,blocks:{}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(t)}_subUnsubScript(e,t){const r=a.WsSub.encode({isUnsub:e,script:{scriptType:t.scriptType,payload:(0,c.fromHex)(t.payload)}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}_subUnsubLokadId(e,t){const r=a.WsSub.encode({isUnsub:e,lokadId:{lokadId:(0,c.fromHex)(t)}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}_subUnsubToken(e,t){const r=a.WsSub.encode({isUnsub:e,tokenId:{tokenId:t}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}_subUnsubPlugin(e,t){const r=a.WsSub.encode({isUnsub:e,plugin:{pluginName:t.pluginName,group:(0,c.fromHex)(t.group)}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}async handleMsg(e){if(void 0===this.onMessage)return;const t="undefined"==typeof window?e.data:new Uint8Array(await e.data.arrayBuffer()),r=a.WsMsg.decode(t);if(void 0!==r.error)this.onMessage({type:"Error",...r.error});else if(void 0!==r.block){const e={type:"Block",msgType:L(r.block.msgType),blockHash:(0,c.toHexRev)(r.block.blockHash),blockHeight:r.block.blockHeight,blockTimestamp:Number(r.block.blockTimestamp)};void 0!==r.block.coinbaseData&&(e.coinbaseData=(n=r.block.coinbaseData,{scriptsig:(0,c.toHex)(n.coinbaseScriptsig),outputs:n.coinbaseOutputs.map(S)})),this.onMessage(e)}else void 0!==r.tx?this.onMessage({type:"Tx",msgType:D(r.tx.msgType),txid:(0,c.toHexRev)(r.tx.txid)}):console.log("Silently ignored unknown Chronik message:",r);var n}}function v(e){return{...e,hash:(0,c.toHexRev)(e.hash),prevHash:(0,c.toHexRev)(e.prevHash),timestamp:Number(e.timestamp),blockSize:Number(e.blockSize),numTxs:Number(e.numTxs),numInputs:Number(e.numInputs),numOutputs:Number(e.numOutputs),sumInputSats:e.sumInputSats,sumCoinbaseOutputSats:e.sumCoinbaseOutputSats,sumNormalOutputSats:e.sumNormalOutputSats,sumBurnedSats:e.sumBurnedSats}}function _(e){const t={txid:(0,c.toHexRev)(e.txid),version:e.version,inputs:e.inputs.map(w),outputs:e.outputs.map(S),lockTime:e.lockTime,timeFirstSeen:Number(e.timeFirstSeen),size:e.size,isCoinbase:e.isCoinbase,tokenEntries:e.tokenEntries.map(T),tokenFailedParsings:e.tokenFailedParsings.map(B),tokenStatus:P(e.tokenStatus),isFinal:e.isFinal};return void 0!==e.block&&(t.block=x(e.block)),t}function w(e){if(void 0===e.prevOut)throw new Error("Invalid proto, no prevOut");const t={prevOut:{txid:(0,c.toHexRev)(e.prevOut.txid),outIdx:e.prevOut.outIdx},inputScript:(0,c.toHex)(e.inputScript),sats:e.sats,sequenceNo:e.sequenceNo};return void 0!==e.token&&(t.token=N(e.token)),Object.keys(e.plugins).length>0&&(t.plugins=E(e.plugins)),void 0!==e.outputScript&&e.outputScript.length>0&&(t.outputScript=(0,c.toHex)(e.outputScript)),t}function S(e){const t={sats:BigInt(e.sats),outputScript:(0,c.toHex)(e.outputScript)};return Object.keys(e.plugins).length>0&&(t.plugins=E(e.plugins)),void 0!==e.token&&(t.token=N(e.token)),void 0!==e.spentBy&&(t.spentBy={txid:(0,c.toHexRev)(e.spentBy.txid),outIdx:e.spentBy.inputIdx}),t}function E(e){const t={};for(const[r,n]of Object.entries(e)){if(void 0===r)continue;const{groups:e,data:o}=n;t[r]={groups:e.map(c.toHex),data:o.map(c.toHex)}}return t}function x(e){return{height:e.height,hash:(0,c.toHexRev)(e.hash),timestamp:Number(e.timestamp)}}function $(e){if(void 0===e.outpoint)throw new Error("UTXO outpoint is undefined");const t={outpoint:{txid:(0,c.toHexRev)(e.outpoint.txid),outIdx:e.outpoint.outIdx},blockHeight:e.blockHeight,isCoinbase:e.isCoinbase,sats:BigInt(e.sats),isFinal:e.isFinal};return void 0!==e.token&&(t.token=N(e.token)),Object.keys(e.plugins).length>0&&(t.plugins=E(e.plugins)),t}function k(e){if(void 0===e.outpoint)throw new Error("UTXO outpoint is undefined");const t={outpoint:{txid:(0,c.toHexRev)(e.outpoint.txid),outIdx:e.outpoint.outIdx},blockHeight:e.blockHeight,isCoinbase:e.isCoinbase,script:(0,c.toHex)(e.script),sats:BigInt(e.sats),isFinal:e.isFinal};return void 0!==e.token&&(t.token=N(e.token)),Object.keys(e.plugins).length>0&&(t.plugins=E(e.plugins)),t}function T(e){if(void 0===e.tokenType)throw new Error(`chronik returned undefined tokenEntry.tokenType for tokenId "${e.tokenId}"`);const t={tokenId:e.tokenId,tokenType:R(e.tokenType),txType:I(e.txType),isInvalid:e.isInvalid,burnSummary:e.burnSummary,failedColorings:e.failedColorings,actualBurnAtoms:BigInt(e.actualBurnAtoms),intentionalBurnAtoms:e.intentionalBurnAtoms,burnsMintBatons:e.burnsMintBatons};return""!==e.groupTokenId&&(t.groupTokenId=e.groupTokenId),t}function B(e){return{pushdataIdx:e.pushdataIdx,bytes:(0,c.toHex)(e.bytes),error:e.error}}function R(e){return void 0!==e.alp?{protocol:"ALP",type:C(e.alp),number:e.alp}:void 0!==e.slp?{protocol:"SLP",type:O(e.slp),number:e.slp}:{protocol:"UNKNOWN",type:"UNKNOWN",number:0}}function O(e){const t=a.slpTokenTypeToJSON(e);return function(e){return U.includes(e)}(t)?t:"SLP_TOKEN_TYPE_UNKNOWN"}function C(t){const r=a.alpTokenTypeToJSON(t);return function(t){return e.ALP_TOKEN_TYPES.includes(t)}(r)?r:"ALP_TOKEN_TYPE_UNKNOWN"}function P(e){const t=a.tokenStatusToJSON(e);return function(e){return F.includes(e)}(t)?t:"TOKEN_STATUS_UNKNOWN"}function I(e){const t=a.tokenTxTypeToJSON(e);return function(e){return j.includes(e)}(t)?t:"UNKNOWN"}function N(e){if(void 0===e.tokenType)throw new Error(`chronik returned undefined token.tokenType for tokenId "${e.tokenId}"`);const t={tokenId:e.tokenId,tokenType:R(e.tokenType),atoms:BigInt(e.atoms),isMintBaton:e.isMintBaton};return-1!==e.entryIdx&&(t.entryIdx=e.entryIdx),t}function L(e){const t=a.blockMsgTypeToJSON(e);return function(e){return H.includes(e)}(t)?t:"UNRECOGNIZED"}function D(e){const t=a.txMsgTypeToJSON(e);return function(e){return q.includes(e)}(t)?t:"UNRECOGNIZED"}function M(e,t){const r=new TextDecoder,n={tokenTicker:r.decode(e.tokenTicker),tokenName:r.decode(e.tokenName),url:r.decode(e.url),decimals:e.decimals};return"ALP"===t.protocol&&(n.data=(0,c.toHex)(e.data),n.authPubkey=(0,c.toHex)(e.authPubkey)),"SLP_TOKEN_TYPE_MINT_VAULT"===t.type&&(n.mintVaultScripthash=(0,c.toHex)(e.mintVaultScripthash)),"SLP"===t.protocol&&(n.hash=(0,c.toHex)(e.hash)),n}e.WsEndpoint=b,e.ALP_TOKEN_TYPES=["ALP_TOKEN_TYPE_STANDARD","ALP_TOKEN_TYPE_UNKNOWN"];const U=["SLP_TOKEN_TYPE_FUNGIBLE","SLP_TOKEN_TYPE_MINT_VAULT","SLP_TOKEN_TYPE_NFT1_GROUP","SLP_TOKEN_TYPE_NFT1_CHILD","SLP_TOKEN_TYPE_UNKNOWN"],F=["TOKEN_STATUS_NON_TOKEN","TOKEN_STATUS_NORMAL","TOKEN_STATUS_NOT_NORMAL","TOKEN_STATUS_UNKNOWN"],j=["NONE","UNKNOWN","GENESIS","SEND","MINT","BURN"],H=["BLK_CONNECTED","BLK_DISCONNECTED","BLK_FINALIZED","BLK_INVALIDATED","UNRECOGNIZED"],q=["TX_ADDED_TO_MEMPOOL","TX_REMOVED_FROM_MEMPOOL","TX_CONFIRMED","TX_FINALIZED","UNRECOGNIZED"]}(ChronikClient),function(e){var t=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=commonjsGlobal&&commonjsGlobal.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(ChronikClient,e)}(dist); -/*! - * decimal.js v10.6.0 - * An arbitrary-precision Decimal type for JavaScript. - * https://github.com/MikeMcl/decimal.js - * Copyright (c) 2025 Michael Mclaughlin - * MIT Licence - */ -var EXP_LIMIT=9e15,MAX_DIGITS=1e9,NUMERALS="0123456789abcdef",LN10="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",PI="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",DEFAULTS$1={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-EXP_LIMIT,maxE:EXP_LIMIT,crypto:!1},inexact,quadrant,external=!0,decimalError="[DecimalError] ",invalidArgument=decimalError+"Invalid argument: ",precisionLimitExceeded=decimalError+"Precision limit exceeded",cryptoUnavailable=decimalError+"crypto unavailable",tag="[object Decimal]",mathfloor=Math.floor,mathpow=Math.pow,isBinary=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,isHex=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,isOctal=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,isDecimal=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,BASE=1e7,LOG_BASE=7,MAX_SAFE_INTEGER=9007199254740991,LN10_PRECISION=LN10.length-1,PI_PRECISION=PI.length-1,P$1={toStringTag:tag};function digitsToString(e){var t,r,n,o=e.length-1,i="",s=e[0];if(o>0){for(i+=s,t=1;tr)throw Error(invalidArgument+e)}function checkRoundingDigits(e,t,r,n){var o,i,s,a;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=LOG_BASE,o=0):(o=Math.ceil((t+1)/LOG_BASE),t%=LOG_BASE),i=mathpow(10,LOG_BASE-t),a=e[o]%i|0,null==n?t<3?(0==t?a=a/100|0:1==t&&(a=a/10|0),s=r<4&&99999==a||r>3&&49999==a||5e4==a||0==a):s=(r<4&&a+1==i||r>3&&a+1==i/2)&&(e[o+1]/i/100|0)==mathpow(10,t-2)-1||(a==i/2||0==a)&&!(e[o+1]/i/100|0):t<4?(0==t?a=a/1e3|0:1==t?a=a/100|0:2==t&&(a=a/10|0),s=(n||r<4)&&9999==a||!n&&r>3&&4999==a):s=((n||r<4)&&a+1==i||!n&&r>3&&a+1==i/2)&&(e[o+1]/i/1e3|0)==mathpow(10,t-3)-1,s}function convertBase(e,t,r){for(var n,o,i=[0],s=0,a=e.length;sr-1&&(void 0===i[n+1]&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function cosine(e,t){var r,n,o;if(t.isZero())return t;(n=t.d.length)<32?o=(1/tinyPow(4,r=Math.ceil(n/3))).toString():(r=16,o="2.3283064365386962890625e-10"),e.precision+=r,t=taylorSeries(e,1,t.times(o),new e(1));for(var i=r;i--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}P$1.absoluteValue=P$1.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),finalise(e)},P$1.ceil=function(){return finalise(new this.constructor(this),this.e+1,2)},P$1.clampedTo=P$1.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(invalidArgument+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},P$1.comparedTo=P$1.cmp=function(e){var t,r,n,o,i=this,s=i.d,a=(e=new i.constructor(e)).d,u=i.s,c=e.s;if(!s||!a)return u&&c?u!==c?u:s===a?0:!s^u<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?u:a[0]?-c:0;if(u!==c)return u;if(i.e!==e.e)return i.e>e.e^u<0?1:-1;for(t=0,r=(n=s.length)<(o=a.length)?n:o;ta[t]^u<0?1:-1;return n===o?0:n>o^u<0?1:-1},P$1.cosine=P$1.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+LOG_BASE,n.rounding=1,r=cosine(n,toLessThanHalfPi(n,r)),n.precision=e,n.rounding=t,finalise(2==quadrant||3==quadrant?r.neg():r,e,t,!0)):new n(1):new n(NaN)},P$1.cubeRoot=P$1.cbrt=function(){var e,t,r,n,o,i,s,a,u,c,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(external=!1,(i=l.s*mathpow(l.s*l,1/3))&&Math.abs(i)!=1/0?n=new f(i.toString()):(r=digitsToString(l.d),(i=((e=l.e)-r.length+1)%3)&&(r+=1==i||-2==i?"0":"00"),i=mathpow(r,1/3),e=mathfloor((e+1)/3)-(e%3==(e<0?-1:2)),(n=new f(r=i==1/0?"5e"+e:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=l.s),s=(e=f.precision)+3;;)if(c=(u=(a=n).times(a).times(a)).plus(l),n=divide(c.plus(l).times(a),c.plus(u),s+2,1),digitsToString(a.d).slice(0,s)===(r=digitsToString(n.d)).slice(0,s)){if("9999"!=(r=r.slice(s-3,s+1))&&(o||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(finalise(n,e+1,1),t=!n.times(n).times(n).eq(l));break}if(!o&&(finalise(a,e+1,0),a.times(a).times(a).eq(l))){n=a;break}s+=4,o=1}return external=!0,finalise(n,e,f.rounding,t)},P$1.decimalPlaces=P$1.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-mathfloor(this.e/LOG_BASE))*LOG_BASE,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},P$1.dividedBy=P$1.div=function(e){return divide(this,new this.constructor(e))},P$1.dividedToIntegerBy=P$1.divToInt=function(e){var t=this.constructor;return finalise(divide(this,new t(e),0,1,1),t.precision,t.rounding)},P$1.equals=P$1.eq=function(e){return 0===this.cmp(e)},P$1.floor=function(){return finalise(new this.constructor(this),this.e+1,3)},P$1.greaterThan=P$1.gt=function(e){return this.cmp(e)>0},P$1.greaterThanOrEqualTo=P$1.gte=function(e){var t=this.cmp(e);return 1==t||0===t},P$1.hyperbolicCosine=P$1.cosh=function(){var e,t,r,n,o,i=this,s=i.constructor,a=new s(1);if(!i.isFinite())return new s(i.s?1/0:NaN);if(i.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(i.e,i.sd())+4,s.rounding=1,(o=i.d.length)<32?t=(1/tinyPow(4,e=Math.ceil(o/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=taylorSeries(s,1,i.times(t),new s(1),!0);for(var u,c=e,l=new s(8);c--;)u=i.times(i),i=a.minus(u.times(l.minus(u.times(l))));return finalise(i,s.precision=r,s.rounding=n,!0)},P$1.hyperbolicSine=P$1.sinh=function(){var e,t,r,n,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(t=i.precision,r=i.rounding,i.precision=t+Math.max(o.e,o.sd())+4,i.rounding=1,(n=o.d.length)<3)o=taylorSeries(i,2,o,o,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,o=taylorSeries(i,2,o=o.times(1/tinyPow(5,e)),o,!0);for(var s,a=new i(5),u=new i(16),c=new i(20);e--;)s=o.times(o),o=o.times(a.plus(s.times(u.times(s).plus(c))))}return i.precision=t,i.rounding=r,finalise(o,t,r,!0)},P$1.hyperbolicTangent=P$1.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,divide(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},P$1.inverseCosine=P$1.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,o=t.rounding;return-1!==r?0===r?e.isNeg()?getPi(t,n,o):new t(0):new t(NaN):e.isZero()?getPi(t,n+4,o).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=o,e.times(2))},P$1.inverseHyperbolicCosine=P$1.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,external=!1,r=r.times(r).minus(1).sqrt().plus(r),external=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},P$1.inverseHyperbolicSine=P$1.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,external=!1,r=r.times(r).plus(1).sqrt().plus(r),external=!0,n.precision=e,n.rounding=t,r.ln())},P$1.inverseHyperbolicTangent=P$1.atanh=function(){var e,t,r,n,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=i.precision,t=i.rounding,n=o.sd(),Math.max(n,e)<2*-o.e-1?finalise(new i(o),e,t,!0):(i.precision=r=n-o.e,o=divide(o.plus(1),new i(1).minus(o),r+e,1),i.precision=e+4,i.rounding=1,o=o.ln(),i.precision=e,i.rounding=t,o.times(.5))):new i(NaN)},P$1.inverseSine=P$1.asin=function(){var e,t,r,n,o=this,i=o.constructor;return o.isZero()?new i(o):(t=o.abs().cmp(1),r=i.precision,n=i.rounding,-1!==t?0===t?((e=getPi(i,r+4,n).times(.5)).s=o.s,e):new i(NaN):(i.precision=r+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=r,i.rounding=n,o.times(2)))},P$1.inverseTangent=P$1.atan=function(){var e,t,r,n,o,i,s,a,u,c=this,l=c.constructor,f=l.precision,d=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&f+4<=PI_PRECISION)return(s=getPi(l,f+4,d).times(.25)).s=c.s,s}else{if(!c.s)return new l(NaN);if(f+4<=PI_PRECISION)return(s=getPi(l,f+4,d).times(.5)).s=c.s,s}for(l.precision=a=f+10,l.rounding=1,e=r=Math.min(28,a/LOG_BASE+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(external=!1,t=Math.ceil(a/LOG_BASE),n=1,u=c.times(c),s=new l(c),o=c;-1!==e;)if(o=o.times(u),i=s.minus(o.div(n+=2)),o=o.times(u),void 0!==(s=i.plus(o.div(n+=2))).d[t])for(e=t;s.d[e]===i.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2},P$1.isNaN=function(){return!this.s},P$1.isNegative=P$1.isNeg=function(){return this.s<0},P$1.isPositive=P$1.isPos=function(){return this.s>0},P$1.isZero=function(){return!!this.d&&0===this.d[0]},P$1.lessThan=P$1.lt=function(e){return this.cmp(e)<0},P$1.lessThanOrEqualTo=P$1.lte=function(e){return this.cmp(e)<1},P$1.logarithm=P$1.log=function(e){var t,r,n,o,i,s,a,u,c=this,l=c.constructor,f=l.precision,d=l.rounding;if(null==e)e=new l(10),t=!0;else{if(r=(e=new l(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new l(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(t)if(r.length>1)i=!0;else{for(o=r[0];o%10==0;)o/=10;i=1!==o}if(external=!1,s=naturalLogarithm(c,a=f+5),n=t?getLn10(l,a+10):naturalLogarithm(e,a),checkRoundingDigits((u=divide(s,n,a,1)).d,o=f,d))do{if(s=naturalLogarithm(c,a+=10),n=t?getLn10(l,a+10):naturalLogarithm(e,a),u=divide(s,n,a,1),!i){+digitsToString(u.d).slice(o+1,o+15)+1==1e14&&(u=finalise(u,f+1,0));break}}while(checkRoundingDigits(u.d,o+=10,d));return external=!0,finalise(u,f,d)},P$1.minus=P$1.sub=function(e){var t,r,n,o,i,s,a,u,c,l,f,d,p=this,h=p.constructor;if(e=new h(e),!p.d||!e.d)return p.s&&e.s?p.d?e.s=-e.s:e=new h(e.d||p.s!==e.s?p:NaN):e=new h(NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(c=p.d,d=e.d,a=h.precision,u=h.rounding,!c[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!c[0])return new h(3===u?-0:0);e=new h(p)}return external?finalise(e,a,u):e}if(r=mathfloor(e.e/LOG_BASE),l=mathfloor(p.e/LOG_BASE),c=c.slice(),i=l-r){for((f=i<0)?(t=c,i=-i,s=d.length):(t=d,r=l,s=c.length),i>(n=Math.max(Math.ceil(a/LOG_BASE),s)+2)&&(i=n,t.length=1),t.reverse(),n=i;n--;)t.push(0);t.reverse()}else{for((f=(n=c.length)<(s=d.length))&&(s=n),n=0;n0;--n)c[s++]=0;for(n=d.length;n>i;){if(c[--n](s=(i=Math.ceil(a/LOG_BASE))>s?i+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=l.length)<0&&(o=s,r=l,l=c,c=r),t=0;o;)t=(c[--o]=c[o]+l[o]+t)/BASE|0,c[o]%=BASE;for(t&&(c.unshift(t),++n),s=c.length;0==c[--s];)c.pop();return e.d=c,e.e=getBase10Exponent(c,n),external?finalise(e,a,u):e},P$1.precision=P$1.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(invalidArgument+e);return r.d?(t=getPrecision(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},P$1.round=function(){var e=this,t=e.constructor;return finalise(new t(e),e.e+1,t.rounding)},P$1.sine=P$1.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+LOG_BASE,n.rounding=1,r=sine(n,toLessThanHalfPi(n,r)),n.precision=e,n.rounding=t,finalise(quadrant>2?r.neg():r,e,t,!0)):new n(NaN)},P$1.squareRoot=P$1.sqrt=function(){var e,t,r,n,o,i,s=this,a=s.d,u=s.e,c=s.s,l=s.constructor;if(1!==c||!a||!a[0])return new l(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);for(external=!1,0==(c=Math.sqrt(+s))||c==1/0?(((t=digitsToString(a)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=mathfloor((u+1)/2)-(u<0||u%2),n=new l(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new l(c.toString()),r=(u=l.precision)+3;;)if(n=(i=n).plus(divide(s,i,r+2,1)).times(.5),digitsToString(i.d).slice(0,r)===(t=digitsToString(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(finalise(n,u+1,1),e=!n.times(n).eq(s));break}if(!o&&(finalise(i,u+1,0),i.times(i).eq(s))){n=i;break}r+=4,o=1}return external=!0,finalise(n,u,l.rounding,e)},P$1.tangent=P$1.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=divide(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,finalise(2==quadrant||4==quadrant?r.neg():r,e,t,!0)):new n(NaN)},P$1.times=P$1.mul=function(e){var t,r,n,o,i,s,a,u,c,l=this,f=l.constructor,d=l.d,p=(e=new f(e)).d;if(e.s*=l.s,!(d&&d[0]&&p&&p[0]))return new f(!e.s||d&&!d[0]&&!p||p&&!p[0]&&!d?NaN:d&&p?0*e.s:e.s/0);for(r=mathfloor(l.e/LOG_BASE)+mathfloor(e.e/LOG_BASE),(u=d.length)<(c=p.length)&&(i=d,d=p,p=i,s=u,u=c,c=s),i=[],n=s=u+c;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=u+n;o>n;)a=i[o]+p[n]*d[o-n-1]+t,i[o--]=a%BASE|0,t=a/BASE|0;i[o]=(i[o]+t)%BASE|0}for(;!i[--s];)i.pop();return t?++r:i.shift(),e.d=i,e.e=getBase10Exponent(i,r),external?finalise(e,f.precision,f.rounding):e},P$1.toBinary=function(e,t){return toStringBinary(this,2,e,t)},P$1.toDecimalPlaces=P$1.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(checkInt32(e,0,MAX_DIGITS),void 0===t?t=n.rounding:checkInt32(t,0,8),finalise(r,e+r.e+1,t))},P$1.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=finiteToString(n,!0):(checkInt32(e,0,MAX_DIGITS),void 0===t?t=o.rounding:checkInt32(t,0,8),r=finiteToString(n=finalise(new o(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},P$1.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return void 0===e?r=finiteToString(o):(checkInt32(e,0,MAX_DIGITS),void 0===t?t=i.rounding:checkInt32(t,0,8),r=finiteToString(n=finalise(new i(o),e+o.e+1,t),!1,e+n.e+1)),o.isNeg()&&!o.isZero()?"-"+r:r},P$1.toFraction=function(e){var t,r,n,o,i,s,a,u,c,l,f,d,p=this,h=p.d,m=p.constructor;if(!h)return new m(p);if(c=r=new m(1),n=u=new m(0),s=(i=(t=new m(n)).e=getPrecision(h)-p.e-1)%LOG_BASE,t.d[0]=mathpow(10,s<0?LOG_BASE+s:s),null==e)e=i>0?t:c;else{if(!(a=new m(e)).isInt()||a.lt(c))throw Error(invalidArgument+a);e=a.gt(t)?i>0?t:c:a}for(external=!1,a=new m(digitsToString(h)),l=m.precision,m.precision=i=h.length*LOG_BASE*2;f=divide(a,t,0,1,1),1!=(o=r.plus(f.times(n))).cmp(e);)r=n,n=o,o=c,c=u.plus(f.times(o)),u=o,o=t,t=a.minus(f.times(o)),a=o;return o=divide(e.minus(r),n,0,1,1),u=u.plus(o.times(c)),r=r.plus(o.times(n)),u.s=c.s=p.s,d=divide(c,n,i,1).minus(p).abs().cmp(divide(u,r,i,1).minus(p).abs())<1?[c,n]:[u,r],m.precision=l,external=!0,d},P$1.toHexadecimal=P$1.toHex=function(e,t){return toStringBinary(this,16,e,t)},P$1.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:checkInt32(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(external=!1,r=divide(r,e,0,t,1).times(e),external=!0,finalise(r)):(e.s=r.s,r=e),r},P$1.toNumber=function(){return+this},P$1.toOctal=function(e,t){return toStringBinary(this,8,e,t)},P$1.toPower=P$1.pow=function(e){var t,r,n,o,i,s,a=this,u=a.constructor,c=+(e=new u(e));if(!(a.d&&e.d&&a.d[0]&&e.d[0]))return new u(mathpow(+a,c));if((a=new u(a)).eq(1))return a;if(n=u.precision,i=u.rounding,e.eq(1))return finalise(a,n,i);if((t=mathfloor(e.e/LOG_BASE))>=e.d.length-1&&(r=c<0?-c:c)<=MAX_SAFE_INTEGER)return o=intPow(u,a,r,n),e.s<0?new u(1).div(o):finalise(o,n,i);if((s=a.s)<0){if(tu.maxE+1||t0?s/0:0):(external=!1,u.rounding=a.s=1,r=Math.min(12,(t+"").length),(o=naturalExponential(e.times(naturalLogarithm(a,n+r)),n)).d&&checkRoundingDigits((o=finalise(o,n+5,1)).d,n,i)&&(t=n+10,+digitsToString((o=finalise(naturalExponential(e.times(naturalLogarithm(a,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(o=finalise(o,n+1,0))),o.s=s,external=!0,u.rounding=i,finalise(o,n,i))},P$1.toPrecision=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=finiteToString(n,n.e<=o.toExpNeg||n.e>=o.toExpPos):(checkInt32(e,1,MAX_DIGITS),void 0===t?t=o.rounding:checkInt32(t,0,8),r=finiteToString(n=finalise(new o(n),e,t),e<=n.e||n.e<=o.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},P$1.toSignificantDigits=P$1.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(checkInt32(e,1,MAX_DIGITS),void 0===t?t=r.rounding:checkInt32(t,0,8)),finalise(new r(this),e,t)},P$1.toString=function(){var e=this,t=e.constructor,r=finiteToString(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},P$1.truncated=P$1.trunc=function(){return finalise(new this.constructor(this),this.e+1,1)},P$1.valueOf=P$1.toJSON=function(){var e=this,t=e.constructor,r=finiteToString(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var divide=function(){function e(e,t,r){var n,o=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+o,e[i]=n%r|0,o=n/r|0;return o&&e.unshift(o),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]1;)e.shift()}return function(n,o,i,s,a,u){var c,l,f,d,p,h,m,g,y,A,b,v,_,w,S,E,x,$,k,T,B=n.constructor,R=n.s==o.s?1:-1,O=n.d,C=o.d;if(!(O&&O[0]&&C&&C[0]))return new B(n.s&&o.s&&(O?!C||O[0]!=C[0]:C)?O&&0==O[0]||!C?0*R:R/0:NaN);for(u?(p=1,l=n.e-o.e):(u=BASE,p=LOG_BASE,l=mathfloor(n.e/p)-mathfloor(o.e/p)),k=C.length,x=O.length,A=(y=new B(R)).d=[],f=0;C[f]==(O[f]||0);f++);if(C[f]>(O[f]||0)&&l--,null==i?(w=i=B.precision,s=B.rounding):w=a?i+(n.e-o.e)+1:i,w<0)A.push(1),h=!0;else{if(w=w/p+2|0,f=0,1==k){for(d=0,C=C[0],w++;(f1&&(C=e(C,d,u),O=e(O,d,u),k=C.length,x=O.length),E=k,v=(b=O.slice(0,k)).length;v=u/2&&++$;do{d=0,(c=t(C,b,k,v))<0?(_=b[0],k!=v&&(_=_*u+(b[1]||0)),(d=_/$|0)>1?(d>=u&&(d=u-1),1==(c=t(m=e(C,d,u),b,g=m.length,v=b.length))&&(d--,r(m,k=10;d/=10)f++;y.e=f+l*p-1,finalise(y,a?i+y.e+1:i,s,h)}return y}}();function finalise(e,t,r,n){var o,i,s,a,u,c,l,f,d,p=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(o=1,a=f[0];a>=10;a/=10)o++;if((i=t-o)<0)i+=LOG_BASE,s=t,u=(l=f[d=0])/mathpow(10,o-s-1)%10|0;else if((d=Math.ceil((i+1)/LOG_BASE))>=(a=f.length)){if(!n)break e;for(;a++<=d;)f.push(0);l=u=0,o=1,s=(i%=LOG_BASE)-LOG_BASE+1}else{for(l=a=f[d],o=1;a>=10;a/=10)o++;u=(s=(i%=LOG_BASE)-LOG_BASE+o)<0?0:l/mathpow(10,o-s-1)%10|0}if(n=n||t<0||void 0!==f[d+1]||(s<0?l:l%mathpow(10,o-s-1)),c=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(i>0?s>0?l/mathpow(10,o-s):0:f[d-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=e.e+1,f[0]=mathpow(10,(LOG_BASE-t%LOG_BASE)%LOG_BASE),e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=d,a=1,d--):(f.length=d+1,a=mathpow(10,LOG_BASE-i),f[d]=s>0?(l/mathpow(10,o-s)%mathpow(10,s)|0)*a:0),c)for(;;){if(0==d){for(i=1,s=f[0];s>=10;s/=10)i++;for(s=f[0]+=a,a=1;s>=10;s/=10)a++;i!=a&&(e.e++,f[0]==BASE&&(f[0]=1));break}if(f[d]+=a,f[d]!=BASE)break;f[d--]=0,a=1}for(i=f.length;0===f[--i];)f.pop()}return external&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e0?i=i.charAt(0)+"."+i.slice(1)+getZeroString(n):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):o<0?(i="0."+getZeroString(-o-1)+i,r&&(n=r-s)>0&&(i+=getZeroString(n))):o>=s?(i+=getZeroString(o+1-s),r&&(n=r-o-1)>0&&(i=i+"."+getZeroString(n))):((n=o+1)0&&(o+1===s&&(i+="."),i+=getZeroString(n))),i}function getBase10Exponent(e,t){var r=e[0];for(t*=LOG_BASE;r>=10;r/=10)t++;return t}function getLn10(e,t,r){if(t>LN10_PRECISION)throw external=!0,r&&(e.precision=r),Error(precisionLimitExceeded);return finalise(new e(LN10),t,1,!0)}function getPi(e,t,r){if(t>PI_PRECISION)throw Error(precisionLimitExceeded);return finalise(new e(PI),t,r,!0)}function getPrecision(e){var t=e.length-1,r=t*LOG_BASE+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function getZeroString(e){for(var t="";e--;)t+="0";return t}function intPow(e,t,r,n){var o,i=new e(1),s=Math.ceil(n/LOG_BASE+4);for(external=!1;;){if(r%2&&truncate((i=i.times(t)).d,s)&&(o=!0),0===(r=mathfloor(r/2))){r=i.d.length-1,o&&0===i.d[r]&&++i.d[r];break}truncate((t=t.times(t)).d,s)}return external=!0,i}function isOdd(e){return 1&e.d[e.d.length-1]}function maxOrMin(e,t,r){for(var n,o,i=new e(t[0]),s=0;++s17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(external=!1,u=h):u=t,a=new d(.03125);e.e>-2;)e=e.times(a),f+=5;for(u+=n=Math.log(mathpow(2,f))/Math.LN10*2+5|0,r=i=s=new d(1),d.precision=u;;){if(i=finalise(i.times(e),u,1),r=r.times(++l),digitsToString((a=s.plus(divide(i,r,u,1))).d).slice(0,u)===digitsToString(s.d).slice(0,u)){for(o=f;o--;)s=finalise(s.times(s),u,1);if(null!=t)return d.precision=h,s;if(!(c<3&&checkRoundingDigits(s.d,u-n,p,c)))return finalise(s,d.precision=h,p,external=!0);d.precision=u+=10,r=i=a=new d(1),l=0,c++}s=a}}function naturalLogarithm(e,t){var r,n,o,i,s,a,u,c,l,f,d,p=1,h=e,m=h.d,g=h.constructor,y=g.rounding,A=g.precision;if(h.s<0||!m||!m[0]||!h.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=h.s?NaN:m?0:h);if(null==t?(external=!1,l=A):l=t,g.precision=l+=10,n=(r=digitsToString(m)).charAt(0),!(Math.abs(i=h.e)<15e14))return c=getLn10(g,l+2,A).times(i+""),h=naturalLogarithm(new g(n+"."+r.slice(1)),l-10).plus(c),g.precision=A,null==t?finalise(h,A,y,external=!0):h;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=digitsToString((h=h.times(e)).d)).charAt(0),p++;for(i=h.e,n>1?(h=new g("0."+r),i++):h=new g(n+"."+r.slice(1)),f=h,u=s=h=divide(h.minus(1),h.plus(1),l,1),d=finalise(h.times(h),l,1),o=3;;){if(s=finalise(s.times(d),l,1),digitsToString((c=u.plus(divide(s,new g(o),l,1))).d).slice(0,l)===digitsToString(u.d).slice(0,l)){if(u=u.times(2),0!==i&&(u=u.plus(getLn10(g,l+2,A).times(i+""))),u=divide(u,new g(p),l,1),null!=t)return g.precision=A,u;if(!checkRoundingDigits(u.d,l-10,y,a))return finalise(u,g.precision=A,y,external=!0);g.precision=l+=10,c=s=h=divide(f.minus(1),f.plus(1),l,1),d=finalise(h.times(h),l,1),o=a=1}u=c,o+=2}}function nonFiniteToString(e){return String(e.s*e.s/0)}function parseDecimal(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(o=t.length;48===t.charCodeAt(o-1);--o);if(t=t.slice(n,o)){if(o-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%LOG_BASE,r<0&&(n+=LOG_BASE),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),isDecimal.test(t))return parseDecimal(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(isHex.test(t))r=16,t=t.toLowerCase();else if(isBinary.test(t))r=2;else{if(!isOctal.test(t))throw Error(invalidArgument+t);r=8}for((i=t.search(/p/i))>0?(u=+t.slice(i+1),t=t.substring(2,i)):t=t.slice(2),s=(i=t.indexOf("."))>=0,n=e.constructor,s&&(i=(a=(t=t.replace(".","")).length)-i,o=intPow(n,new n(r),i,2*i)),i=l=(c=convertBase(t,r,BASE)).length-1;0===c[i];--i)c.pop();return i<0?new n(0*e.s):(e.e=getBase10Exponent(c,l),e.d=c,external=!1,s&&(e=divide(e,o,4*a)),u&&(e=e.times(Math.abs(u)<54?mathpow(2,u):Decimal.pow(2,u))),external=!0,e)}function sine(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:taylorSeries(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=taylorSeries(e,2,t=t.times(1/tinyPow(5,r)),t);for(var o,i=new e(5),s=new e(16),a=new e(20);r--;)o=t.times(t),t=t.times(i.plus(o.times(s.times(o).minus(a))));return t}function taylorSeries(e,t,r,n,o){var i,s,a,u,c=e.precision,l=Math.ceil(c/LOG_BASE);for(external=!1,u=r.times(r),a=new e(n);;){if(s=divide(a.times(u),new e(t++*t++),c,1),a=o?n.plus(s):n.minus(s),n=divide(s.times(u),new e(t++*t++),c,1),void 0!==(s=a.plus(n)).d[l]){for(i=l;s.d[i]===a.d[i]&&i--;);if(-1==i)break}i=a,a=n,n=s,s=i}return external=!0,s.d.length=l+1,s}function tinyPow(e,t){for(var r=e;--t;)r*=e;return r}function toLessThanHalfPi(e,t){var r,n=t.s<0,o=getPi(e,e.precision,1),i=o.times(.5);if((t=t.abs()).lte(i))return quadrant=n?4:1,t;if((r=t.divToInt(o)).isZero())quadrant=n?3:2;else{if((t=t.minus(r.times(o))).lte(i))return quadrant=isOdd(r)?n?2:3:n?4:1,t;quadrant=isOdd(r)?n?1:4:n?3:2}return t.minus(o).abs()}function toStringBinary(e,t,r,n){var o,i,s,a,u,c,l,f,d,p=e.constructor,h=void 0!==r;if(h?(checkInt32(r,1,MAX_DIGITS),void 0===n?n=p.rounding:checkInt32(n,0,8)):(r=p.precision,n=p.rounding),e.isFinite()){for(h?(o=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):o=t,(s=(l=finiteToString(e)).indexOf("."))>=0&&(l=l.replace(".",""),(d=new p(1)).e=l.length-s,d.d=convertBase(finiteToString(d),10,o),d.e=d.d.length),i=u=(f=convertBase(l,10,o)).length;0==f[--u];)f.pop();if(f[0]){if(s<0?i--:((e=new p(e)).d=f,e.e=i,f=(e=divide(e,d,r,n,0,o)).d,i=e.e,c=inexact),s=f[r],a=o/2,c=c||void 0!==f[r+1],c=n<4?(void 0!==s||c)&&(0===n||n===(e.s<0?3:2)):s>a||s===a&&(4===n||c||6===n&&1&f[r-1]||n===(e.s<0?8:7)),f.length=r,c)for(;++f[--r]>o-1;)f[r]=0,r||(++i,f.unshift(1));for(u=f.length;!f[u-1];--u);for(s=0,l="";s1)if(16==t||8==t){for(s=16==t?4:3,--u;u%s;u++)l+="0";for(u=(f=convertBase(l,o,t)).length;!f[u-1];--u);for(s=1,l="1.";su)for(i-=u;i--;)l+="0";else it)return e.length=t,!0}function abs(e){return new this(e).abs()}function acos(e){return new this(e).acos()}function acosh(e){return new this(e).acosh()}function add(e,t){return new this(e).plus(t)}function asin(e){return new this(e).asin()}function asinh(e){return new this(e).asinh()}function atan(e){return new this(e).atan()}function atanh(e){return new this(e).atanh()}function atan2(e,t){e=new this(e),t=new this(t);var r,n=this.precision,o=this.rounding,i=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?getPi(this,n,o):new this(0)).s=e.s:!e.d||t.isZero()?(r=getPi(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,r=this.atan(divide(e,t,i,1)),t=getPi(this,i,1),this.precision=n,this.rounding=o,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(divide(e,t,i,1)):(r=getPi(this,i,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function cbrt(e){return new this(e).cbrt()}function ceil(e){return finalise(e=new this(e),e.e+1,2)}function clamp(e,t,r){return new this(e).clamp(t,r)}function config(e){if(!e||"object"!=typeof e)throw Error(decimalError+"Object expected");var t,r,n,o=!0===e.defaults,i=["precision",1,MAX_DIGITS,"rounding",0,8,"toExpNeg",-EXP_LIMIT,0,"toExpPos",0,EXP_LIMIT,"maxE",0,EXP_LIMIT,"minE",-EXP_LIMIT,0,"modulo",0,9];for(t=0;t=i[t+1]&&n<=i[t+2]))throw Error(invalidArgument+r+": "+n);this[r]=n}if(r="crypto",o&&(this[r]=DEFAULTS$1[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(invalidArgument+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(cryptoUnavailable);this[r]=!0}else this[r]=!1}return this}function cos(e){return new this(e).cos()}function cosh(e){return new this(e).cosh()}function clone(e){var t,r,n;function o(e){var t,r,n,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,isDecimalInstance(e))return i.s=e.s,void(external?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e=10;r/=10)t++;return void(external?t>o.maxE?(i.e=NaN,i.d=null):t=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:a[i++]=o%1e7;else{if(!crypto.randomBytes)throw Error(cryptoUnavailable);for(t=crypto.randomBytes(n*=4);i=214e7?crypto.randomBytes(4).copy(t,i):(a.push(o%1e7),i+=4);i=n/4}else for(;i=10;o/=10)n++;n=0||(o[r]=e[r]);return o}LN10=new Decimal(LN10),PI=new Decimal(PI);var SnackbarContext=p$2.createContext(),allClasses={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},SNACKBAR_INDENTS={view:{default:20,dense:4},snackbar:{default:6,dense:2}},DEFAULTS={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Slide$1,transitionDuration:{enter:225,exit:195}},capitalise=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},originKeyExtractor=function(e){return""+capitalise(e.vertical)+capitalise(e.horizontal)},omitContainerKeys=function(e){return Object.keys(e).filter(function(e){return!allClasses.container[e]}).reduce(function(t,r){var n;return _extends$1({},t,((n={})[r]=e[r],n))},{})},REASONS={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},transformer={toContainerAnchorOrigin:function(e){return"containerAnchorOrigin"+e},toAnchorOrigin:function(e){var t=e.vertical,r=e.horizontal;return"anchorOrigin"+capitalise(t)+capitalise(r)},toVariant:function(e){return"variant"+capitalise(e)}},isDefined=function(e){return!!e||0===e},numberOrNull=function(e){return"number"==typeof e||null===e},merge=function(e,t,r){return function(n){return"autoHideDuration"===n?numberOrNull(e.autoHideDuration)?e.autoHideDuration:numberOrNull(t.autoHideDuration)?t.autoHideDuration:DEFAULTS.autoHideDuration:e[n]||t[n]||r[n]}};function objectMerge(e,t,r){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={}),_extends$1({},r,{},t,{},e)}var styles=function(e){var t;return createStyles({root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)})},SnackbarContent=compat.forwardRef(function(e,t){var r=e.classes,n=e.className,o=_objectWithoutPropertiesLoose$1(e,["classes","className"]);return p$2.createElement("div",Object.assign({ref:t,className:clsx(r.root,n)},o))}),SnackbarContent$1=withStyles(styles)(SnackbarContent),DIRECTION={right:"left",left:"right",bottom:"up",top:"down"},getTransitionDirection=function(e){return"center"!==e.horizontal?DIRECTION[e.horizontal]:DIRECTION[e.vertical]},CheckIcon=function(e){return p$2.createElement(SvgIcon$1,Object.assign({},e),p$2.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},WarningIcon=function(e){return p$2.createElement(SvgIcon$1,Object.assign({},e),p$2.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},ErrorIcon=function(e){return p$2.createElement(SvgIcon$1,Object.assign({},e),p$2.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},InfoIcon=function(e){return p$2.createElement(SvgIcon$1,Object.assign({},e),p$2.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},iconStyles={fontSize:20,marginInlineEnd:8},defaultIconVariants={default:void 0,success:p$2.createElement(CheckIcon,{style:iconStyles}),warning:p$2.createElement(WarningIcon,{style:iconStyles}),error:p$2.createElement(ErrorIcon,{style:iconStyles}),info:p$2.createElement(InfoIcon,{style:iconStyles})};function createChainedFunction(e,t){return e.reduce(function(e,r){return null==r?e:function(){for(var n=arguments.length,o=new Array(n),i=0;i .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},xsWidthMargin=16,useStyle=makeStyles(function(e){var t,r,n,o,i;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[collapse.container]={pointerEvents:"all"},t[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*SNACKBAR_INDENTS.view.default+"px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - "+2*xsWidthMargin+"px)"},t),rootDense:(r={},r[collapse.wrapper]={padding:SNACKBAR_INDENTS.snackbar.dense+"px 0px"},r),top:{top:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column"},bottom:{bottom:SNACKBAR_INDENTS.view.default-SNACKBAR_INDENTS.snackbar.default,flexDirection:"column-reverse"},left:(n={left:SNACKBAR_INDENTS.view.default},n[e.breakpoints.up("sm")]={alignItems:"flex-start"},n[e.breakpoints.down("xs")]={left:xsWidthMargin+"px"},n),right:(o={right:SNACKBAR_INDENTS.view.default},o[e.breakpoints.up("sm")]={alignItems:"flex-end"},o[e.breakpoints.down("xs")]={right:xsWidthMargin+"px"},o),center:(i={left:"50%",transform:"translateX(-50%)"},i[e.breakpoints.up("sm")]={alignItems:"center"},i)}}),SnackbarContainer=function(e){var t=useStyle(),r=e.className,n=e.anchorOrigin,o=e.dense,i=_objectWithoutPropertiesLoose$1(e,["className","anchorOrigin","dense"]),s=clsx(t[n.vertical],t[n.horizontal],t.root,r,o&&t.rootDense);return p$2.createElement("div",Object.assign({className:s},i))},SnackbarContainer$1=p$2.memo(SnackbarContainer),SnackbarProvider=function(e){function t(t){var r;return(r=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var n=t,o=n.key,i=n.preventDuplicate,s=_objectWithoutPropertiesLoose$1(n,["key","preventDuplicate"]),a=isDefined(o),u=a?o:(new Date).getTime()+Math.random(),c=merge(s,r.props,DEFAULTS),l=_extends$1({key:u},s,{message:e,open:!0,entered:!1,requestClose:!1,variant:c("variant"),anchorOrigin:c("anchorOrigin"),autoHideDuration:c("autoHideDuration")});return s.persist&&(l.autoHideDuration=void 0),r.setState(function(t){if(void 0===i&&r.props.preventDuplicate||i){var n=function(t){return a?t.key===o:t.message===e},s=t.queue.findIndex(n)>-1,u=t.snacks.findIndex(n)>-1;if(s||u)return t}return r.handleDisplaySnack(_extends$1({},t,{queue:[].concat(t.queue,[l])}))}),u},r.handleDisplaySnack=function(e){return e.snacks.length>=r.maxSnack?r.handleDismissOldest(e):r.processQueue(e)},r.processQueue=function(e){var t=e.queue,r=e.snacks;return t.length>0?_extends$1({},e,{snacks:[].concat(r,[t[0]]),queue:t.slice(1,t.length)}):e},r.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,n=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===r.maxSnack&&(n=!0);var o=e.snacks.map(function(e){return t||e.persist&&!n?_extends$1({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,REASONS.MAXSNACK,e.key),r.props.onClose&&r.props.onClose(null,REASONS.MAXSNACK,e.key),_extends$1({},e,{open:!1})):_extends$1({},e,{requestClose:!0}))});return _extends$1({},e,{snacks:o})},r.handleEnteredSnack=function(e,t,n){if(!isDefined(n))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(e){return{snacks:e.snacks.map(function(e){return e.key===n?_extends$1({},e,{entered:!0}):_extends$1({},e)})}})},r.handleCloseSnack=function(e,t,n){if(r.props.onClose&&r.props.onClose(e,t,n),t!==REASONS.CLICKAWAY){var o=void 0===n;r.setState(function(e){var t=e.snacks,r=e.queue;return{snacks:t.map(function(e){return o||e.key===n?e.entered?_extends$1({},e,{open:!1}):_extends$1({},e,{requestClose:!0}):_extends$1({},e)}),queue:r.filter(function(e){return e.key!==n})}})}},r.closeSnackbar=function(e){var t=r.state.snacks.find(function(t){return t.key===e});isDefined(e)&&t&&t.onClose&&t.onClose(null,REASONS.INSTRUCTED,e),r.handleCloseSnack(null,REASONS.INSTRUCTED,e)},r.handleExitedSnack=function(e,t,n){var o=t||n;if(!isDefined(o))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(e){var t=r.processQueue(_extends$1({},e,{snacks:e.snacks.filter(function(e){return e.key!==o})}));return 0===t.queue.length?t:r.handleDismissOldest(t)})},r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar,closeSnackbar:r.closeSnackbar}},r}return _inheritsLoose(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,r=this.props,n=r.iconVariant,o=r.dense,i=void 0===o?DEFAULTS.dense:o,s=r.hideIconVariant,a=void 0===s?DEFAULTS.hideIconVariant:s,u=r.domRoot,c=r.children,l=r.classes,f=void 0===l?{}:l,d=_objectWithoutPropertiesLoose$1(r,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),p=this.state.snacks.reduce(function(e,t){var r,n=originKeyExtractor(t.anchorOrigin),o=e[n]||[];return _extends$1({},e,((r={})[n]=[].concat(o,[t]),r))},{}),h=Object.keys(p).map(function(t){var r=p[t];return p$2.createElement(SnackbarContainer$1,{key:t,dense:i,anchorOrigin:r[0].anchorOrigin,className:clsx(f.containerRoot,f[transformer.toContainerAnchorOrigin(t)])},r.map(function(t){return p$2.createElement(SnackbarItem$1,Object.assign({},d,{key:t.key,snack:t,dense:i,iconVariant:n,hideIconVariant:a,classes:omitContainerKeys(f),onClose:e.handleCloseSnack,onExited:createChainedFunction([e.handleExitedSnack,e.props.onExited]),onEntered:createChainedFunction([e.handleEnteredSnack,e.props.onEntered])}))}))});return p$2.createElement(SnackbarContext.Provider,{value:t},c,u?compat.createPortal(h,u):h)},_createClass$1(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||DEFAULTS.maxSnack}}]),t}(compat.Component),useSnackbar=function(){return compat.useContext(SnackbarContext)},toggleSelection=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};for(var BitBuffer$1=QRBitBuffer,QRMath={glog:function(e){if(e<1)throw new Error("glog("+e+")");return QRMath.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return QRMath.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;i<8;i++)QRMath.EXP_TABLE[i]=1<=0;)t^=QRUtil.G15<=0;)t^=QRUtil.G18<>>=1;return t},getPatternPosition:function(e){return QRUtil.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case QRMaskPattern.PATTERN000:return(t+r)%2==0;case QRMaskPattern.PATTERN001:return t%2==0;case QRMaskPattern.PATTERN010:return r%3==0;case QRMaskPattern.PATTERN011:return(t+r)%3==0;case QRMaskPattern.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case QRMaskPattern.PATTERN101:return t*r%2+t*r%3==0;case QRMaskPattern.PATTERN110:return(t*r%2+t*r%3)%2==0;case QRMaskPattern.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Polynomial$1([1],0),r=0;r5&&(r+=3+i-5)}for(n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=QRCode$1.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},proto.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},proto.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=util.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},proto.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var o=0;o>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},proto.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=util.getBCHTypeInfo(r),o=0;o<15;o++){var i=!e&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},proto.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var a=0;a<2;a++)if(null==this.modules[n][s-a]){var u=!1;i>>o&1)),util.getMask(t,n,s-a)&&(u=!u),this.modules[n][s-a]=u,-1==--o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},QRCode$1.PAD0=236,QRCode$1.PAD1=17,QRCode$1.createData=function(e,t,r){for(var n=RSBlock.getRSBlocks(e,t),o=new BitBuffer,i=0;i8*a)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*a+")");for(o.getLengthInBits()+4<=8*a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*a||(o.put(QRCode$1.PAD0,8),o.getLengthInBits()>=8*a));)o.put(QRCode$1.PAD1,8);return QRCode$1.createBytes(o,n)},QRCode$1.createBytes=function(e,t){for(var r=0,n=0,o=0,i=new Array(t.length),s=new Array(t.length),a=0;a=0?d.get(p):0}}var h=0;for(l=0;l=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r>6),t+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(t+=String.fromCharCode(224|n>>12),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t+=String.fromCharCode(240|n>>18),t+=String.fromCharCode(128|n>>12&63),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n))}return t}var DEFAULT_PROPS={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},MARGIN_SIZE=4,DEFAULT_IMG_SCALE=.1;function generatePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return e.forEach(function(e,n){var o=null;e.forEach(function(i,s){if(!i&&null!==o)return r.push("M".concat(o+t," ").concat(n+t,"h").concat(s-o,"v1H").concat(o+t,"z")),void(o=null);if(s!==e.length-1)i&&null===o&&(o=s);else{if(!i)return;null===o?r.push("M".concat(s+t,",").concat(n+t," h1v1H").concat(s+t,"z")):r.push("M".concat(o+t,",").concat(n+t," h").concat(s+1-o,"v1H").concat(o+t,"z"))}})}),r.join("")}function excavateModules(e,t){return e.slice().map(function(e,r){return r=t.y+t.h?e:e.map(function(e,r){return(r=t.x+t.w)&&e})})}function getImageSettings(e,t){var r=e.imageSettings,n=e.size,o=e.includeMargin;if(null==r)return null;var i=o?MARGIN_SIZE:0,s=t.length+2*i,a=Math.floor(n*DEFAULT_IMG_SCALE),u=s/n,c=(r.width||a)*u,l=(r.height||a)*u,f=null==r.x?t.length/2-c/2:r.x*u,d=null==r.y?t.length/2-l/2:r.y*u,p=null;if(r.excavate){var h=Math.floor(f),m=Math.floor(d);p={x:h,y:m,w:Math.ceil(c+f-h),h:Math.ceil(l+d-m)}}return{x:f,y:d,h:l,w:c,excavation:p}}var SUPPORTS_PATH2D=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),QRCodeCanvas=function(e){function t(){var e,r;_classCallCheck(this,t);for(var n=arguments.length,o=new Array(n),i=0;ie.startsWith("#")?e:"#"+e,_=(e,t)=>{var r;const n=void 0===e&&!0===t?Y.XEC:"orange"===e||"xec"===e?e:((e,t)=>{const r=new RegExp(/(#(?:[0-9a-f]{2}){2,4}$|(#[0-9a-f]{3}$)|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\)$|black$|silver$|gray$|whitesmoke$|maroon$|red$|purple$|fuchsia$|green$|lime$|olivedrab$|yellow$|navy$|blue$|teal$|aquamarine$|orange$|aliceblue$|antiquewhite$|aqua$|azure$|beige$|bisque$|blanchedalmond$|blueviolet$|brown$|burlywood$|cadetblue$|chartreuse$|chocolate$|coral$|cornflowerblue$|cornsilk$|crimson$|currentcolor$|darkblue$|darkcyan$|darkgoldenrod$|darkgray$|darkgreen$|darkgrey$|darkkhaki$|darkmagenta$|darkolivegreen$|darkorange$|darkorchid$|darkred$|darksalmon$|darkseagreen$|darkslateblue$|darkslategray$|darkslategrey$|darkturquoise$|darkviolet$|deeppink$|deepskyblue$|dimgray$|dimgrey$|dodgerblue$|firebrick$|floralwhite$|forestgreen$|gainsboro$|ghostwhite$|goldenrod$|gold$|greenyellow$|grey$|honeydew$|hotpink$|indianred$|indigo$|ivory$|khaki$|lavenderblush$|lavender$|lawngreen$|lemonchiffon$|lightblue$|lightcoral$|lightcyan$|lightgoldenrodyellow$|lightgray$|lightgreen$|lightgrey$|lightpink$|lightsalmon$|lightseagreen$|lightskyblue$|lightslategray$|lightslategrey$|lightsteelblue$|lightyellow$|limegreen$|linen$|mediumaquamarine$|mediumblue$|mediumorchid$|mediumpurple$|mediumseagreen$|mediumslateblue$|mediumspringgreen$|mediumturquoise$|mediumvioletred$|midnightblue$|mintcream$|mistyrose$|moccasin$|navajowhite$|oldlace$|olive$|orangered$|orchid$|palegoldenrod$|palegreen$|paleturquoise$|palevioletred$|papayawhip$|peachpuff$|peru$|pink$|plum$|powderblue$|rosybrown$|royalblue$|saddlebrown$|salmon$|sandybrown$|seagreen$|seashell$|sienna$|skyblue$|slateblue$|slategray$|slategrey$|snow$|springgreen$|steelblue$|tan$|thistle$|tomato$|transparent$|turquoise$|violet$|wheat$|white$|yellowgreen$|rebeccapurple$)/,"i");if(void 0===e||void 0===e.palette)return H$1[V$1];{let{primary:n,secondary:o,tertiary:i,logo:s}=e.palette;return n=void 0!==n&&r.test(n)?$(n):t?W$1.palette.primary:j$1.palette.primary,o=void 0!==o&&r.test(o)?$(o):t?W$1.palette.secondary:j$1.palette.secondary,i=void 0!==i&&r.test(i)?$(i):t?W$1.palette.tertiary:j$1.palette.tertiary,s=void 0!==s&&r.test(s)?$(s):t?W$1.palette.logo:j$1.palette.logo,{palette:{primary:n,secondary:o,tertiary:i,logo:s}}}})(e,t);return null!=(r=compat.useContext(q$1))?r:"object"==typeof n?n:((e=V$1)=>H$1[e])(n)},ee=makeStyles({container:({size:e})=>{switch(e){case"xs":case"extrasmall":return{fontSize:"0.6rem !important"};case"sm":case"small":return{fontSize:"0.7rem !important"};case"lg":case"large":return{fontSize:"1rem !important"};case"xl":case"extralarge":return{fontSize:"1.2rem !important"};default:return{fontSize:"0.8rem !important"}}},button:({theme:e,animation:t,size:r})=>X$1({background:e.palette.secondary+" !important",transition:"0.6s !important"},"slide"===t?{background:`linear-gradient(45deg, ${e.palette.primary} 50%, ${e.palette.secondary} 50%) 100% center / 300% !important`,backgroundSize:"300% !important",backgroundPosition:"100% !important",transition:"background-position 0.8s, color 0.15s !important"}:{},{color:e.palette.primary+" !important",minWidth:"14em !important",padding:"0.618em 1.618em !important",margin:"auto !important",boxShadow:"3px 3px 3px rgba(0, 0, 0, 0.08) !important",border:`2px solid ${e.palette.primary} !important`,borderRadius:{xs:"5px",extrasmall:"5px",sm:"7px",small:"7px",lg:"12px",large:"12px",xl:"13px",extralarge:"13px",md:"10px",medium:"10px"}[null!=r?r:"default"]+" !important",fontSize:"1em !important",textTransform:"none","&:hover":X$1({},"slide"===t?{backgroundPosition:"0 !important",color:e.palette.secondary+" !important"}:{},"invert"===t?{background:e.palette.primary+" !important",color:e.palette.secondary+" !important"}:{},"none"===t?{background:e.palette.secondary+" !important",color:e.palette.primary+" !important"}:{}),"& .MuiTouchRipple-root":{margin:-2,color:"#00000044 !important"},"&:disabled span":{filter:"blur(2px)",color:"rgba(0, 0, 0, 0.5)"}})}),Ae=e=>{const{animation:t,text:r,hoverText:n,disabled:o,size:i,sizeScaleAlreadyApplied:s}=Object.assign({},Ae.defaultProps,e),[a,u]=compat.useState(!1),[c,l]=compat.useState(!1),f=compat.useRef(),d=compat.useRef(null),p=_(e.theme),h=ee({animation:t,theme:p,size:i,sizeScaleAlreadyApplied:s});return compat.useLayoutEffect(()=>{if(null!==d&&r){const{current:e}=d;if(null!==e){const{style:t}=e;t.width=e.clientWidth+"px",t.height=e.clientHeight+4+"px"}}},[r,d]),p$2.createElement("div",{className:h.container},p$2.createElement(A,{disabled:o,className:h.button,onClick:e.onClick,onMouseEnter:()=>{u(!0),"none"!==t&&(l(!0),clearTimeout(f.current),f.current=window.setTimeout(()=>l(!1),150))},onMouseLeave:()=>{u(!1),"none"!==t&&(l(!0),clearTimeout(f.current),f.current=window.setTimeout(()=>l(!1),150))},ref:d},p$2.createElement("span",null," ",c!==a?n:r&&""!==r.trim()?r:p$2.createElement("div",null," "))))};Ae.defaultProps={animation:"slide",text:"Donate",hoverText:"Send Payment",disabled:!1,size:"medium",sizeScaleAlreadyApplied:!1};const te=e=>{if(!e)return!1;try{return xecaddr.isCashAddress(e)}catch(e){return!1}},oe=e=>{if(!e)return!1;try{return xecaddr.isXecAddress(e)}catch(e){return!1}},ne=e=>{if(te(e))return"BCH";if(oe(e))return"XEC";throw new Error("Invalid currency")},ae=function(e){try{const t=xecaddr.detectAddressFormat(e);if(t===xecaddr.Format.Xecaddr)return"ecash";if(t===xecaddr.Format.Cashaddr)return"bitcoincash"}catch(e){throw new Error("Invalid address prefix.")}throw new Error("Invalid address prefix.")};var re={wsBaseUrl:"https://socket.paybutton.org",apiBaseUrl:"https://api.paybutton.org",altpaymentClient:"sideshift",networkBlockchainURLs:{ecash:["https://xec.paybutton.io","https://chronik.e.cash","https://chronik.pay2stay.com/xec","https://chronik1.alitayin.com"],bitcoincash:["https://bch.paybutton.org","https://chronik.pay2stay.com/bch"]}};const ie=["USD","CAD"],se=["BCH","XEC"],le={BCH:8,XEC:2,FIAT:2},ce={bch:"bitcoincash",xec:"ecash"};function me(e){return ie.includes(e)}function de(e){return se.includes(e)}const ue=async(e,t,r)=>{try{return me(e)&&te(t)?(await(async(e,t=re.apiBaseUrl)=>{const{data:r}=await M.get(`${t}/price/bitcoincash/${O.lowerCase(e)}`);return{price:r}})(e,r)).price:me(e)&&oe(t)?(await(async(e,t=re.apiBaseUrl)=>{const{data:r}=await M.get(`${t}/price/ecash/${O.lowerCase(e)}`);return{price:r}})(e,r)).price:null}catch(e){console.log("err",e)}return null},pe=new CashtabConnect_1;let fe=null,ye=null;const be=async()=>null!==fe?fe:(null!==ye||(ye=(async()=>{try{const e=await pe.isExtensionAvailable();return fe=e,e}catch(e){return fe=!1,!1}finally{ye=null}})()),ye);function he(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}function ge(e){return e&&e.default||e}var Se=he(function(e,t){!function(){var r={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},n=Array.prototype.map,o=Array.isArray,i=Object.prototype.toString;function s(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function a(e){return o?o(e):"[object Array]"===i.call(e)}function u(e){return e&&"[object Object]"===i.call(e)}function c(e,t){var r;for(r in e=e||{},t=t||{})t.hasOwnProperty(r)&&null==e[r]&&(e[r]=t[r]);return e}function l(e,t,r){var o,i,s=[];if(!e)return s;if(n&&e.map===n)return e.map(t,r);for(o=0,i=e.length;o3?g.length%3:0;return d+(y?g.substr(0,y)+i.thousand:"")+g.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+i.thousand)+(s?i.decimal+h(Math.abs(e),s).split(".")[1]:"")},g=r.formatMoney=function(e,t,n,o,i,s){if(a(e))return l(e,function(e){return g(e,t,n,o,i,s)});e=p(e);var h=c(u(t)?t:{symbol:t,precision:n,thousand:o,decimal:i,format:s},r.settings.currency),y=d(h.format);return(e>0?y.pos:e<0?y.neg:y.zero).replace("%s",h.symbol).replace("%v",m(Math.abs(e),f(h.precision),h.thousand,h.decimal))};r.formatColumn=function(e,t,n,o,i,h){if(!e)return[];var g=c(u(t)?t:{symbol:t,precision:n,thousand:o,decimal:i,format:h},r.settings.currency),y=d(g.format),A=y.pos.indexOf("%s")0?y.pos:e<0?y.neg:y.zero).replace("%s",g.symbol).replace("%v",m(Math.abs(e),f(g.precision),g.thousand,g.decimal));return n.length>b&&(b=n.length),n});return l(v,function(e,t){return s(e)&&e.length-1?t.format:c})},unformat:function(e,t){var r=t.code||t.locale&&Me(t.locale),n=Zo[t.locale]||Fo,o=ve({},Po,Go(r),n),i=zo(t.decimal)?o.decimalSeparator:t.decimal;return Se.unformat(e,i)}};const Xo=(e,t,r=le.FIAT)=>Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",minimumFractionDigits:r,maximumFractionDigits:r}).format(e),jo=e=>{switch(typeof e){case"string":return"true"===e;case"boolean":return e;case"undefined":return!1}};function Wo(e){const t=cryptoJsExports.lib.WordArray.random(e);return cryptoJsExports.enc.Hex.stringify(t)}function Ho(e,t){const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}function Yo(e){const t=e.split(/(?1?t.map(e=>e.replace("\\|","|")):e.replace("\\|","|")}function Vo(e){const t={};try{const t=JSON.parse(e);if("number"==typeof t)throw new Error;return t}catch(e){}try{const r=e.split(" ");for(const n of r){const r=Ho(n,"=");if(void 0===r[1]||""===r[1]||""===r[0])return Yo(e);const o=r[0],i=Yo(r[1]);t[o]=i}return t}catch(t){return Yo(e)}}const qo=(e,t,r)=>{const n=e.toFixed(r).toString().replace(".","").length;if(!0===t)return Math.min(3,n);if(!1===t)throw new Error("Trying to randomize satoshis when not allowed.");return t>4&&(t=4),Math.min(t,n)},Jo=new N$1(0),$o=e=>new N$1(e),_o=(e,t,r)=>{let n="",o=0;if(de(t)){let i=r?((e,t,r)=>{if(0===e)return 0;let n,o,i,s;switch(t){case"BCH":n=qo(e,r,8),o=1e-8*Math.floor(Math.random()*10**n),i=Math.max(0,+e.toFixed(n))+o,s=+i.toFixed(8);break;case"XEC":n=qo(e,r,2),o=.01*Math.floor(Math.random()*10**n);const a=10**(n-2);i=Math.max(0,+Math.floor(e/a)*a)+o,s=+i.toFixed(2);break;default:throw new Error("Invalid currency: "+t)}return s})(e,t,r):e;const s=le[t],a=$o(""+i);null!==(null==a?void 0:a.c)&&(o=parseFloat($o(a).toFixed(s)),n=$o(""+a).toFixed(s),"BCH"===t?n=Ko.format(+n,{symbol:"",decimal:".",thousand:",",precision:8,format:"%v"}):"XEC"===t&&(n=Ko.format(+n,{symbol:"",decimal:".",thousand:",",precision:2,format:"%v"})))}else o=e,n=Xo(e,t,le.FIAT);return{float:o,string:n,currency:t}};for(var en$1=[],An=[],tn="undefined"!=typeof Uint8Array?Uint8Array:Array,on$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nn$1=0,an$1=on$1.length;nn$1>18&63]+en$1[n>>12&63]+en$1[n>>6&63]+en$1[63&n]);return o.join("")}An["-".charCodeAt(0)]=62,An["_".charCodeAt(0)]=63;var sn$1=function(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<>1,l=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},ln=function(e,t,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=h,a/=256,o-=8);for(s=s<0;e[r+p]=255&s,p+=h,s/=256,c-=8);e[r+p-h]|=128*m},cn$1=he(function(e,t){const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function n(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return a(e)}return i(e,t,r)}function i(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|f(e,t);let i=n(r);const s=i.write(e,t);return s!==r&&(i=i.slice(0,s)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer))return c(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return c(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return o.from(i,t,r);const s=function(e){if(o.isBuffer(e)){const t=0|l(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||z(e.length)?n(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function a(e){return s(e),n(e<0?0:0|l(e))}function u(e){const t=e.length<0?0:0|l(e.length),r=n(t);for(let n=0;n=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(i)return n?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function p(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function h(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,o){let i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let n=-1;for(i=r;ia&&(r=a-u),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function _(e,t,r){return function(e){for(var t,r=e.length,n=r%3,o=[],i=0,s=r-n;is?s:i+16383));return 1===n?o.push(en$1[(t=e[r-1])>>2]+en$1[t<<4&63]+"=="):2===n&&o.push(en$1[(t=(e[r-2]<<8)+e[r-1])>>10]+en$1[t>>4&63]+en$1[t<<2&63]+"="),o.join("")}(0===t&&r===e.length?e:e.slice(t,r))}function w(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+s<=r){let r,n,a,u;switch(s){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(i=u));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(e){const t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function B(e,t,r,n,o){D(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function R(e,t,r,n,o){D(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function O(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||O(e,0,r,4),ln(e,t,r,n,23,4),r+4}function P(e,t,r,n,o){return t=+t,r>>>=0,o||O(e,0,r,8),ln(e,t,r,n,52,8),r+8}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,(o.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||"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(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return i(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return function(e,t,r){return s(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)}(e,t,r)},o.allocUnsafe=function(e){return a(e)},o.allocUnsafeSlow=function(e){return a(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(W(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),W(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);on.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!o.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,i){if(W(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const u=Math.min(s,a),c=this.slice(n,i),l=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":case"latin1":case"binary":return A(this,e,t,r);case"base64":return b(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||k(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||k(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=V(function(e){M(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||U(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||U(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||k(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=V(function(e){M(e>>>=0,"offset");const t=this[e],r=this[e+7];return void 0!==t&&void 0!==r||U(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||U(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||k(e,4,this.length),sn$1(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),sn$1(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),sn$1(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),sn$1(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||T(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n||T(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=V(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=V(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let o=0,i=1,s=0;for(this[t]=255&e;++o>>=0,!n){const n=Math.pow(2,8*r-1);T(this,e,t,r,n-1,-n)}let o=r-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=V(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=V(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function D(e,t,r,n,o,i){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new I.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){M(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||U(t,e.length-(r+1))}(n,o,i)}function M(e,t){if("number"!=typeof e)throw new I.ERR_INVALID_ARG_TYPE(t,"number",e)}function U(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new I.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}N("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?e+" is outside of buffer bounds":"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),N("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=L(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=L(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const F=/[^+/0-9A-Za-z-_]/g;function j(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let s=0;s55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(e){return function(e){var t,r,n=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}(e),o=n[0],i=n[1],s=new tn(function(e,t,r){return 3*(t+r)/4-r}(0,o,i)),a=0,u=i>0?o-4:o;for(r=0;r>16&255,s[a++]=t>>8&255,s[a++]=255&t;return 2===i&&(t=An[e.charCodeAt(r)]<<2|An[e.charCodeAt(r+1)]>>4,s[a++]=255&t),1===i&&(t=An[e.charCodeAt(r)]<<10|An[e.charCodeAt(r+1)]<<4|An[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t),s}(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function W(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}const G=function(){const e=new Array(256);for(let t=0;t<16;++t){const r=16*t;for(let n=0;n<16;++n)e[r+n]="0123456789abcdef"[t]+"0123456789abcdef"[n]}return e}();function V(e){return"undefined"==typeof BigInt?K:e}function K(){throw new Error("BigInt not supported")}});const mn=new TextDecoder;function dn(e){if(e.length<2||e.length%2!=0)throw new Error("Invalid outputScript length");if(!new RegExp("6a0450415900.{2}","i").test(e.slice(0,14)))return null;let t=16;if(e.length=u))return s;const c=e.slice(a,u),l=parseInt(c,16);let f="";if(e.length{var r,n,o;const{amount:i,opReturn:s}=await(async(e,t)=>{let r=BigInt(0),n=BigInt(0);const o=w.detectAddressFormat(t),i=function(e){try{const{type:t,hash:r}=cashaddr.decodeCashAddress(e);return{type:t,hash160:r}}catch(e){throw console.log("[CHRONIK]: Error converting address to hash160"),e}}(t).hash160;let s="";for(const t of e.outputs)if(t.outputScript.includes(i)&&(r+=t.sats),""===s){const e=dn(t.outputScript);null!==e&&(s=JSON.stringify(e))}for(const t of e.inputs){var a;!0===(null==t||null==(a=t.outputScript)?void 0:a.includes(i))&&(n+=t.sats)}const u=r-n;return{amount:await un$1(u,o),opReturn:s}})(e,t),a=fn$1(s),u=function(e,t){const r=new Map;return t.inputs.forEach(t=>{const n=function(e,t){if(void 0===t)return;let r,n;switch(t.slice(0,4)){case"76a9":r="p2pkh",n=t.substring(t.indexOf("76a914")+6,t.lastIndexOf("88ac"));break;case"a914":r="p2sh",n=t.substring(t.indexOf("a914")+4,t.lastIndexOf("87"));break;default:return}return 40!==n.length?void 0:((e,t,r)=>{const n=cn$1.Buffer.from(r,"hex"),o=new ArrayBuffer(n.length),i=new Uint8Array(o);for(let e=0;eNumber(t-e)).map(([e])=>e)}(ae(t),e);return{hash:e.txid,amount:i,address:t,timestamp:void 0!==e.block?e.block.timestamp:e.timeFirstSeen,confirmed:void 0!==e.block,opReturn:s,paymentId:null!=(r=null==a?void 0:a.paymentId)?r:"",message:null!=(n=null==a?void 0:a.message)?n:"",rawMessage:null!=(o=null==a?void 0:a.rawMessage)?o:"",inputAddresses:u}},fn$1=e=>{try{return""===e?null:JSON.parse(e)}catch(e){return null}},yn=async e=>{var t;void 0!==e.altpaymentSocket&&(e.altpaymentSocket.disconnect(),e.setAltpaymentSocket(void 0));const r=lookup((null!=(t=e.wsBaseUrl)?t:re.wsBaseUrl)+"/altpayment",{forceNew:!0});e.setAltpaymentSocket(r),(e=>{e.altpaymentSocket.on("send-altpayment-coins-info",t=>{e.setCoins(t.filter(t=>t.coin!==e.addressType))}),e.altpaymentSocket.on("shift-creation-error",t=>{e.setAltpaymentError(t),e.setLoadingShift(!1)}),e.altpaymentSocket.on("quote-creation-error",t=>{e.setAltpaymentError(t),e.setLoadingShift(!1)}),e.altpaymentSocket.on("shift-created",t=>{e.setAltpaymentShift(t),e.setLoadingShift(!1)}),e.altpaymentSocket.on("send-altpayment-rate",t=>{e.setCoinPair(t),e.setLoadingPair(!1)})})({addressType:e.addressType,altpaymentSocket:r,setCoins:e.setCoins,setCoinPair:e.setCoinPair,setLoadingPair:e.setLoadingPair,setAltpaymentShift:e.setAltpaymentShift,setLoadingShift:e.setLoadingShift,setAltpaymentError:e.setAltpaymentError})},bn=async e=>{void 0!==e.txsSocket&&(console.log("Closing existing Chronik WebSocket for address: "+e.address),e.txsSocket.close(),e.setTxsSocket(void 0));const t=await(async(e,t)=>{const r=ae(e),n=re.networkBlockchainURLs[r],o=await dist.ChronikClient.useStrategy(dist.ConnectionStrategy.AsOrdered,n),i=o.ws({onMessage:async r=>{await(async(e,t,r,n)=>{const{type:o}=e;if("Error"===o)return;const{msgType:i}=e;switch(i){case"TX_ADDED_TO_MEMPOOL":{const o=await r.tx(e.txid);t([await pn(o,null!=n?n:"")]);break}default:return}})(r,t,o,e)}});return await i.waitForOpen(),i.subscribeToAddress(e),i})(e.address,t=>{e.setNewTxs(t)});e.setTxsSocket(t)};class hn{async getPaymentStatus(e){const t=await fetch(re.apiBaseUrl+"/altpayment/mocked");return await t.json()}}class gn{async getPaymentStatus(e){const t=await fetch(`https://sideshift.ai/api/v2//shifts/${e}?t=${(new Date).getTime()}`);return await t.json()}}const Sn=e=>{const{value:t,color:r,disabled:n}=e,[o,i]=compat.useState(0),s=jo(n)?{filter:"blur(5px)"}:{},a={left:"0",top:"0",bottom:"0",height:"8px",borderRadius:"20px",backgroundColor:""+r,transition:"width 0.8s ease-out",position:"absolute"};return compat.useEffect(()=>{setTimeout(()=>{i(t>100?100:Math.round(t))},800)},[t]),p$2.createElement("div",{style:{width:"100%",marginBottom:"20px"}},p$2.createElement("div",{style:{height:"8px",borderRadius:"20px",backgroundColor:"#dddddd",position:"relative"}},p$2.createElement("div",{style:X$1({},a,{width:o+"%"},s)})))};Sn.defaultProps={value:34,color:"#4bc846"};const Bn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABuCAMAAADmp0YAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDQTk0NEI3OThFMzIxMUVGQkNERDhEQjQ1RTlGOTk2OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDQTk0NEI3QThFMzIxMUVGQkNERDhEQjQ1RTlGOTk2OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkNBOTQ0Qjc3OEUzMjExRUZCQ0REOERCNDVFOUY5OTY4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkNBOTQ0Qjc4OEUzMjExRUZCQ0REOERCNDVFOUY5OTY4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+PQtV5wAAAYBQTFRFOTk5Tk5OTExMGhoaLCwsPz8/IiIiJycnBAQEICAgKioqFRUVHBwcCAgICwsLHx8fAQEB4ODgDQ0N8vLyMTExqKiovLy8FhYWMDAwzs7O5OTkHh4e+Pj4MzMz8fHx2dnZLy8v2NjY5+fn4uLiNDQ09/f3qqqqWlpaDg4Ozc3Nl5eXt7e3FxcX3t7ea2tr6urq6+vrZmZm9fX129vblpaWvb29DAwMw8PD7Ozsra2twsLC6enpPT09goKC+vr67u7uv7+/Nzc3WVlZmJiYioqKiYmJaGhosrKy0NDQ1dXVpKSkj4+PSEhI4eHhz8/PExMTo6Ojr6+vdnZ2QkJCnJyccXFxOjo65eXltbW1fn5+RkZGn5+fi4uLjIyM5ubmsLCw8/Pz9PT0NTU16Ojo2traKSkp/f39kJCQ/Pz8xsbGXl5ebm5uxcXFbGxsgYGBoKCgoaGhnZ2dmZmZjY2NJCQkiIiIQEBAW1tbaWlpYGBgYWFhXFxcXV1dV1dXAAAA////NCYxYAAAAIB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wA4BUtnAAACdElEQVR42uzaZ1PbQBAGYDkY48SWhS2FCFeMTQgtgdA7CYH03hPSe+896P56GMB3irwnsG7lT/t+9Gn2mbM0exrdaQxO+UXENnJG0OSMfefev6oV00CiM+JgRJvxQcYcrByWIT2vHbxUZ2Gky8FMG4h8dnDzA0AexZERZ6Ye+YttOMk65IiDnwde5FoISK8X+SXGRm51KGRe54VsL3KDD40xtdzllb56EZsPLSoi4u4aciSriGR5pZwXsfhQWhFJy2dCSENIgQ/NhodU+dBUCMiTM6vfC1YhxYeij63dxbZae++Vd4GUfuqKDSoysBPyBqMPHjvqi1zF6baxbh9kBKunt+SlyCe8lUNbkCAVzPXpmwQ5jv0CBCBF3KX2FIj0uy/ZfB1qb7Duf9e/AxHxb8XPlrPpjZx/ejrdSCpDlzK8iAUic56X40AZF0/xcwgRvf2gQjccrBXJPIQQsahPKyCxWpGJov9M9isgBp+JSQghhBBCCCGEEEIIIYQQQgghhBBCCCFNRirNQIbDQw7xnybFN3xsZOKmuZWONrETg420Z7bj+la8BxuB0o+E7PUx4mYTZrLMcJB8Qm5EGRLSI0fi97EQlpMZ+hJDQ2Q3vjrK8BD4xusrW6PhIRfvfKmdG8BGUpMXOjfS11dybW26tjZU9k9i9Q3SFU0cTzqJMpMihGgcmQ9uDPEDSIkFCFkXz8KHKTNYBlqAjTM3csL9yGWCxVXiN4iUcDczL4MIm8M0Bl/CyCgmcpvBCLuOZ6RMGcKiaMhbJkWGkc4LJsaZHGHsD/4RiXqETSdVCf1Knu2AsPzHdds4EDDJZ61r3T5d558AAwDxw6DYwVV5JQAAAABJRU5ErkJggg==",wn=e=>{var i;const{altpaymentSocket:u,setUseAltpayment:c,altpaymentShift:l,setAltpaymentShift:f,shiftCompleted:d,setShiftCompleted:p,altpaymentError:h,setAltpaymentError:m,coins:g,loadingPair:y,loadingShift:A,coinPair:b,setCoinPair:v,altpaymentEditable:_,animation:w,addressType:S,thisAmount:E,updateAmount:x,setLoadingPair:$,setLoadingShift:k,to:T}=Object.assign({},e),[B,R]=compat.useState(void 0),[O,C]=compat.useState(null),[P,I]=compat.useState(null),[N,L]=compat.useState(),[D,M]=compat.useState(void 0),[U,F]=compat.useState(void 0),[j,H]=compat.useState(void 0);compat.useEffect(()=>{j&&b?(I(+j<=+b.max),C(+j>=+b.min)):(I(!0),C(!0))},[j,b]),compat.useEffect(()=>{1===(null==N?void 0:N.networks.length)&&M(N.networks[0])},[N]),compat.useEffect(()=>{if(b&&E&&N&&D){const e=$o(+E/+b.rate),t=N.tokenDetails;let r;r=void 0!==t?t[D].decimals:b.min.split(".")[1].length;const n=e.toFixed(r);F(n);const o=j?Math.floor(+j):1,i=1+Math.ceil(Math.log10(o+1));R(i+r)}},[b,N,E,j,D]);const q=()=>{v(void 0),m(void 0),f(void 0),H(void 0),p(!1)},W=e=>{const t=document.getElementById(e),r=document.createElement("div");r.textContent="Copied!",r.style.position="absolute",r.style.width="calc(100% - 10px)",r.style.height="calc(100% - 20px)",r.style.alignItems="center",r.style.top="0",r.style.left="0",r.style.backgroundColor="#fff",r.style.borderRadius="5px",r.style.padding="10px 0 10px 10px",r.style.zIndex="10",r.style.display="none",t&&(navigator.clipboard.writeText(t.textContent||""),t.appendChild(r),r.style.display="flex",setTimeout(()=>{r.style.display="none",r.parentElement===t&&t.removeChild(r)},2e3))},z=makeStyles({select_box:{minWidth:"220px"},option_outer_ctn:{display:"flex",alignItems:"center"},option_ctn:{display:"flex",flexDirection:"column",margin:"5px 0"},list_icon:{width:"28px",height:"28px",marginRight:"10px"},coin:{fontWeight:"bold",lineHeight:"1em"},coin_name:{fontSize:"14px"},spacer:{height:"20px"},sideshift_ctn:{alignItems:"center",display:"flex",flexDirection:"column",height:"calc(100% - 20px)",width:"100%",position:"absolute",zIndex:9,top:"0",left:"0",background:"#f5f5f7",paddingTop:"20px"},header:{marginBottom:"30px",display:"flex",alignItems:"center",flexDirection:"column",color:"rgb(35, 31, 32)",fontSize:"0.9rem","& img":{width:"150px",marginTop:"10px"}},back_link:{fontSize:"14px",marginTop:"20px",cursor:"pointer",border:"1px solid #000",opacity:"0.7",padding:"2px 20px",borderRadius:"3px","&:hover":{opacity:"1"}},shift_ready:{width:"100%",display:"flex",flexDirection:"column","& h4":{margin:"0",fontSize:"20px",borderBottom:"1px solid #000",paddingBottom:"10px",textAlign:"center"}},copy_ctn:{display:"flex",alignItems:"center","& > div":{position:"relative"}},editAmount:{width:"100%",margin:"12px auto 10px",display:"flex",alignItems:"flex-end","& > div":{width:"100%"},"& span":{marginLeft:"4px",fontSize:"16px"}},amount_error:{position:"absolute",bottom:"10px",textAlign:"center",background:"#00000014",padding:"10px",borderRadius:"5px"},error_msg:{textAlign:"center",background:"#ee010119",padding:"10px",borderRadius:"5px",color:"red"},shift_label:{fontSize:"14px",marginLeft:"5px",marginTop:"20px",marginBottom:"2px",fontWeight:600},shift_input:{background:"#ffffff",padding:"10px",borderRadius:"5px",fontSize:"14px",border:"1px solid #b3b3b3",wordBreak:"break-all",flexGrow:1,position:"relative"},copy_btn:{background:"#ffffff",padding:"10px",borderRadius:"5px",border:"1px solid #b3b3b3",marginLeft:"5px",display:"flex",alignItems:"center",cursor:"pointer",alignSelf:"stretch",transition:"all ease-in-out 200ms","&:hover":{background:"#f1f1f1"},"& img":{width:"15px"}},shift_complete:{display:"flex",alignItems:"center",height:"100%",flex:"1",width:"100%",fontSize:"18px"}})(),G=e=>{let t=e.toLowerCase();return t.includes(".")?"btc":"bitcoin"===t?"harrypotterobamasonic10inu":t};return p$2.createElement(t,{component:"div",className:z.sideshift_ctn},h?p$2.createElement(p$2.Fragment,null,p$2.createElement("p",{className:z.error_msg},"Error: ",h.errorMessage),p$2.createElement("div",{className:z.back_link,onClick:q},"Back")):p$2.createElement(p$2.Fragment,null,l?d?p$2.createElement("div",{className:z.shift_complete},"Shift Completed!"):p$2.createElement("div",{className:z.shift_ready},p$2.createElement("h4",null,"Shift Ready!"),p$2.createElement("span",{className:z.shift_label},"Send"),p$2.createElement("div",{className:z.copy_ctn},p$2.createElement("div",{className:z.shift_input},p$2.createElement("span",{id:"shift_amount"},l.depositAmount)," ",l.depositCoin),p$2.createElement("div",{className:z.copy_btn,onClick:()=>W("shift_amount")},p$2.createElement("img",{src:Bn,alt:"Copy"}))),p$2.createElement("span",{className:z.shift_label},"To"),p$2.createElement("div",{className:z.copy_ctn},p$2.createElement("div",{id:"to_address",className:z.shift_input},l.depositAddress),p$2.createElement("div",{className:z.copy_btn,onClick:()=>W("to_address")},p$2.createElement("img",{src:Bn,alt:"Copy"}))),p$2.createElement("span",{className:z.shift_label},"Network"),p$2.createElement("div",{className:z.shift_input},D),p$2.createElement("span",{className:z.shift_label},"SideShift ID"),p$2.createElement("div",{className:z.copy_ctn},p$2.createElement("div",{id:"sideshift_id",className:z.shift_input},l.id),p$2.createElement("div",{className:z.copy_btn,onClick:()=>W("sideshift_id")},p$2.createElement("img",{src:Bn,alt:"Copy"})))):A?p$2.createElement("p",null,"Loading Shift..."):b?p$2.createElement(p$2.Fragment,null,p$2.createElement("p",null," ","1 ",null==N?void 0:N.name," ~="," ",$o(b.rate).toFixed(le[b.settleCoin])," ",b.settleCoin," "),_?p$2.createElement(o,{container:!0,spacing:2,alignItems:"center",justifyContent:"center",style:{margin:"6px auto",width:"100%"}},p$2.createElement(o,{item:!0},p$2.createElement(n,{label:"Amount",value:null!=j?j:0,onChange:e=>{let t=e.target.value;if(""===t&&(t="0"),H(t),void 0!==b){const e=+b.rate*+t;Object.keys(le).includes(b.settleCoin)&&x(e.toFixed(le[b.settleCoin]))}},inputProps:{maxLength:B,type:"number",pattern:"[0-9]*",inputMode:"numeric"}}))):null,p$2.createElement("div",null),p$2.createElement("div",{style:y||void 0===D||_&&!j||!O||!P?{opacity:"0.5",cursor:"not-allowed"}:{}},p$2.createElement(Ae,{text:"Send "+(null==N?void 0:N.name),hoverText:"Send "+(null==N?void 0:N.name),onClick:()=>{void 0!==u&&void 0!==N&&(k(!0),u.emit("create-altpayment-quote",{depositAmount:U,settleCoin:S,depositCoin:null==N?void 0:N.coin,depositNetwork:D,settleAddress:T}))},disabled:y||void 0===D||_&&!j||!O||!P,animation:w})),!O&&p$2.createElement("p",{className:z.amount_error},"Amount is below minimum."),!P&&p$2.createElement("p",{className:z.amount_error},"Amount is above maximum.")):p$2.createElement(p$2.Fragment,null,0===g.length&&p$2.createElement("div",null,"Loading..."),g.length>0&&p$2.createElement(p$2.Fragment,null,p$2.createElement("div",{className:z.header},"Swap coins with",p$2.createElement("a",{href:"https://sideshift.ai",target:"_blank"},p$2.createElement("img",{src:"data:image/png;base64,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",alt:"SideShift"}))),p$2.createElement(a,null,p$2.createElement(r,{id:"select-coin-label"},"Select a coin"),p$2.createElement(i$3,{labelId:"select-coin-label",className:z.select_box,value:null!=(i=null==N?void 0:N.coin)?i:null,onChange:e=>{(async e=>{const t=e.target.value,r=g.find(e=>e.coin===t);M(null==r?void 0:r.networks[0]),L(r)})(e)}},g.map(e=>p$2.createElement(s,{key:e.coin,value:e.coin},p$2.createElement("div",{className:z.option_outer_ctn},p$2.createElement("img",{className:z.list_icon,src:`https://sideshift.ai/coin-icons/${G(e.coin)}.svg`}),p$2.createElement("div",{className:z.option_ctn},p$2.createElement("span",{className:z.coin},e.coin),p$2.createElement("span",{className:z.coin_name},e.name))))))),p$2.createElement("div",{className:z.spacer}),N&&N.networks.length>1&&p$2.createElement(p$2.Fragment,null,p$2.createElement(a,null,p$2.createElement(r,{id:"select-network-label"},"Select a network"),p$2.createElement(i$3,{labelId:"select-network-label",className:z.select_box,value:null!=D?D:null,onChange:e=>{(async e=>{M(e.target.value)})(e)}},N.networks.map(e=>p$2.createElement(s,{key:e,value:e},p$2.createElement("div",{className:z.option_outer_ctn},p$2.createElement("div",{className:z.option_ctn},p$2.createElement("span",{className:z.coin},e.charAt(0).toUpperCase()+e.slice(1)))))))))),p$2.createElement("div",{className:z.spacer}),y||void 0===N||void 0===D?null:p$2.createElement(Ae,{text:"Send with SideShift",hoverText:"Send with SideShift",onClick:()=>{$(!0),(()=>{if(void 0!==N){const e=`${N.coin}-${null==N?void 0:N.networks[0]}`,t="XEC"===S?"ecash-mainnet":"bitcoincash-mainnet";void 0!==u&&u.emit("get-altpayment-rate",{from:e,to:t})}})()},disabled:y||void 0===N||void 0===D,animation:w}),p$2.createElement("div",{className:z.back_link,onClick:()=>{c(!1)}},"Back")),b&&!A&&p$2.createElement("div",{className:z.back_link,onClick:q},"Back")))},Dn=makeStyles({root:{minWidth:"240px !important",background:"#f5f5f7 !important",position:"relative"},qrCode:({success:e,loading:t,theme:r})=>({background:"#fff !important",border:"1px solid #eee !important",borderRadius:"4px !important",outline:"none !important",lineHeight:"0 !important",maxWidth:"28vh !important",maxHeight:"28vh !important",position:"relative",padding:"1rem !important",cursor:"pointer !important",userSelect:"none","&:active":{borderWidth:"2px !important",margin:"-1px !important"},"& path":{opacity:t?0:e?.35:1,color:r.palette.secondary},"& image":{opacity:t?0:1}}),copyTextContainer:({loading:e})=>({display:e?"none":"block",background:"#ffffffcc !important",padding:"0 0.15rem 0.15rem 0 !important"}),copyText:({theme:e})=>({lineHeight:"1.2em !important",fontSize:"0.7em !important",color:e.palette.tertiary+" !important",textShadow:"#fff -2px 0 1px, #fff 0 -2px 1px, #fff 0 2px 1px, #fff 2px 0 1px !important","&:disabled span":{filter:"blur(2px)",color:"rgba(0, 0, 0, 0.5)"}}),text:({theme:e})=>({fontSize:"0.9rem !important",color:e.palette.tertiary+" !important"}),spinner:({theme:e})=>({color:e.palette.primary+" !important"}),footer:()=>({fontSize:"0.6rem !important",color:"#a8a8a8 !important",fontWeight:"normal",userSelect:"none"}),sideShiftLink:({theme:e})=>({fontSize:"14px",cursor:"pointer",padding:"6px 12px",marginTop:"20px",background:"#e9e9e9",borderRadius:"5px",transition:"all ease-in-out 200ms",opacity:0,"&:hover":{background:""+e.palette.primary,color:""+e.palette.secondary}}),animate_sideshift:({success:e})=>({animation:e?"button-slide-out 0.4s ease-in-out forwards":"button-slide 0.6s ease-in-out forwards",animationDelay:e?"0":"0.5s"}),hide_sideshift:{display:"none"},editAmount:{width:"100%",margin:"12px auto 10px",display:"flex",alignItems:"flex-end","& > div":{width:"100%"},"& span":{marginLeft:"4px",fontSize:"16px"}},error:()=>({fontSize:"0.9rem !important",color:"#EB3B3B !important"}),"@global":{"@keyframes reveal-qr":{from:{clipPath:"circle(0% at 50% 50%)",transform:"rotate(-10deg)"},to:{clipPath:"circle(100% at 50% 50%)",transform:"rotate(0deg)"}},"@keyframes fade-scale":{from:{opacity:0,transform:"scale(0.3)"},"80%":{opacity:1,transform:"scale(1.3)"},to:{opacity:1,transform:"scale(1)"}},"@keyframes button-slide":{from:{opacity:0,transform:"translateY(20px)"},to:{opacity:1,transform:"translateY(0px)"}},"@keyframes button-slide-out":{from:{opacity:1,transform:"translateY(0px)"},to:{opacity:0,transform:"translateY(20px)"}},"@keyframes copy-qr":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(1.1)"},"100%":{transform:"scale(1)"}},"@keyframes copy-svg":{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}},"@keyframes copy-icon":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.7)"},"100%":{transform:"scale(1)"}},"@keyframes success-qr":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.7)"},"100%":{transform:"scale(1)"}},"@keyframes success-icon":{"0%":{transform:"rotate(0deg)"},"20%":{transform:"rotate(-10deg)"},"60%":{transform:"rotate(370deg)"},"100%":{transform:"rotate(360deg)"}}},qrAnimations:({success:e,loading:t,recentlyCopied:r,copied:n})=>({animation:e?"success-qr 0.4s ease-in-out forwards":r?"copy-qr 0.3s ease-in-out forwards":t||n?"none":"reveal-qr 0.8s ease-in-out forwards","& svg":{animation:r?"copy-svg 0.3s ease-in-out forwards":"none"},"& image":{animation:e?"success-icon 1s ease-in-out forwards":r?"copy-icon 0.3s ease-in-out forwards":t||n?"none":"fade-scale 0.6s ease-in-out forwards",transformOrigin:"center center"}}),button_container:{opacity:0,animation:"button-slide 0.6s ease-in-out forwards",animationDelay:"0.4s"}}),En=e=>{var r;const{to:o,foot:i,success:s,paymentId:a,successText:u,disablePaymentId:f,goalAmount:d,ButtonComponent:p=Ae,currency:h=ne(o),animation:g,randomSatoshis:y=!1,editable:A,newTxs:b,setNewTxs:v,apiBaseUrl:w,usdPrice:S,wsBaseUrl:E,hoverText:x=Ae.defaultProps.hoverText,setAltpaymentShift:$,altpaymentShift:k,shiftCompleted:T,setShiftCompleted:B,disableAltpayment:R,contributionOffset:O,useAltpayment:C,setUseAltpayment:P,setTxsSocket:I,txsSocket:N,setAltpaymentSocket:L,altpaymentSocket:D,addressType:U,setAddressType:F,coins:j,setCoins:H,coinPair:q,setCoinPair:W,loadingPair:G,setLoadingPair:V,loadingShift:K,setLoadingShift:Z,altpaymentError:J,setAltpaymentError:X,isChild:Q}=Object.assign({},En.defaultProps,e),[Y,ee]=compat.useState(!0),[ie,se]=compat.useState(void 0),ae=null!=N?N:ie,ue=null!=I?I:se,[fe,de]=compat.useState(),he=null!=b?b:fe,ge=compat.useCallback(e=>{(null!=v?v:de)(e)},[v]),[ye,ve]=compat.useState(void 0),_e=null!=k?k:ye,we=null!=$?$:ve,[Se,Ee]=compat.useState(!1),xe=null!=C?C:Se,$e=null!=P?P:Ee,[ke,Te]=compat.useState(void 0),Be=null!=D?D:ke,Re=null!=L?L:Te,[Oe,Ce]=compat.useState(!1),Pe=null!=T?T:Oe,Ie=null!=B?B:Ce,[Ne,Le]=compat.useState([]),De=null!=j?j:Ne,Me=null!=H?H:Le,[Ue,Fe]=compat.useState(),je=null!=q?q:Ue,He=null!=W?W:Fe,[qe,We]=compat.useState(!1),ze=null!=G?G:qe,Ge=null!=V?V:We,[Ve,Ke]=compat.useState(!1),Ze=null!=K?K:Ve,Je=null!=Z?Z:Ke,[Xe,Qe]=compat.useState(),Ye=null!=J?J:Xe,et=null!=X?X:Qe,[tt,rt]=compat.useState(ne(o)),nt=null!=U?U:tt,ot=null!=F?F:rt,[it,st]=compat.useState(!1),[at,ut]=compat.useState(!1),[ct,lt]=compat.useState(void 0),[ft,dt]=compat.useState(!1),[pt,ht]=compat.useState(""),[mt,gt]=compat.useState(""),[yt,At]=compat.useState(0),[bt,vt]=compat.useState(!1),_t=null!=(r=e.price)?r:0,[wt,St]=compat.useState(""),[Et,xt]=compat.useState(),[$t,kt]=compat.useState("Send any amount of "+nt),[Tt,Bt]=compat.useState("Send Payment"),[Rt,Ot]=compat.useState(),[Ct,Pt]=compat.useState(!1),[It,Nt]=compat.useState(null),Lt=_(e.theme,oe(o)),Dt=Dn({success:s,loading:Y,theme:Lt,recentlyCopied:at,copied:it}),[Mt,Ut]=compat.useState(e.amount),[Ft,jt]=compat.useState(void 0!==e.price&&e.price>0),[Ht,qt]=compat.useState(e.currencyObject),Wt=jo(ft)?{filter:"blur(5px)"}:{},zt=compat.useMemo(()=>{var e;const t=null!=(e=Lt.palette.logo)?e:Lt.palette.primary;return`data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg version='1.1' viewBox='0 0 34 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(1,1)'%3E%3Ccircle cx='16' cy='16' r='17' fill='%23fff' stroke-width='1.0625'/%3E%3C/g%3E%3Cg transform='translate(1,1)' fill-rule='evenodd'%3E%3Ccircle cx='16' cy='16' r='16' fill='${window.encodeURIComponent(t)}'/%3E%3Cpath d='m21.207 10.534c-0.776-1.972-2.722-2.15-4.988-1.71l-0.807-2.813-1.712 0.491 0.786 2.74c-0.45 0.128-0.908 0.27-1.363 0.41l-0.79-2.758-1.711 0.49 0.805 2.813c-0.368 0.114-0.73 0.226-1.085 0.328l-3e-3 -0.01-2.362 0.677 0.525 1.83s1.258-0.388 1.243-0.358c0.694-0.199 1.035 0.139 1.2 0.468l0.92 3.204c0.047-0.013 0.11-0.029 0.184-0.04l-0.181 0.052 1.287 4.49c0.032 0.227 4e-3 0.612-0.48 0.752 0.027 0.013-1.246 0.356-1.246 0.356l0.247 2.143 2.228-0.64c0.415-0.117 0.825-0.227 1.226-0.34l0.817 2.845 1.71-0.49-0.807-2.815a65.74 65.74 0 0 0 1.372-0.38l0.802 2.803 1.713-0.491-0.814-2.84c2.831-0.991 4.638-2.294 4.113-5.07-0.422-2.234-1.724-2.912-3.471-2.836 0.848-0.79 1.213-1.858 0.642-3.3zm-0.65 6.77c0.61 2.127-3.1 2.929-4.26 3.263l-1.081-3.77c1.16-0.333 4.704-1.71 5.34 0.508zm-2.322-5.09c0.554 1.935-2.547 2.58-3.514 2.857l-0.98-3.419c0.966-0.277 3.915-1.455 4.494 0.563z' fill='%23fff' fill-rule='nonzero'/%3E%3C/g%3E%3C/svg%3E%0A`},[Lt]),Gt=compat.useMemo(()=>{var e;const t=null!=(e=Lt.palette.logo)?e:Lt.palette.primary;return`data:image/svg+xml,%3Csvg version='1.1' viewBox='1.65 1.65 20.65 20.65' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' fill='${window.encodeURIComponent(t)}' stroke='%23fff' stroke-width='.6'/%3E%3Cpath d='m7.2979 14.697-2.6964-2.6966 0.89292-0.8934c0.49111-0.49137 0.90364-0.88958 0.91675-0.88491 0.013104 0.0047 0.71923 0.69866 1.5692 1.5422 0.84994 0.84354 1.6548 1.6397 1.7886 1.7692l0.24322 0.23547 7.5834-7.5832 1.8033 1.8033-9.4045 9.4045z' fill='%23fff' stroke-width='.033708'/%3E%3C/svg%3E%0A`},[Lt]);compat.useEffect(()=>{if(!at)return;const e=setTimeout(()=>{ut(!1)},1e3);return()=>clearTimeout(e)},[at]),compat.useEffect(()=>{jt(void 0!==_t&&_t>0)},[_t]),compat.useEffect(()=>{(async()=>{try{const e=await(async()=>be())();Pt(e)}catch(e){Pt(!1)}})()},[]),compat.useEffect(()=>((async()=>{!0!==Q&&(await bn({address:o,txsSocket:ae,apiBaseUrl:w,wsBaseUrl:E,setTxsSocket:ue,setNewTxs:ge}),xe&&await yn({addressType:nt,wsBaseUrl:E,altpaymentSocket:Be,setAltpaymentSocket:Re,setCoins:Me,setCoinPair:He,setLoadingPair:Ge,setAltpaymentShift:we,setLoadingShift:Je,setAltpaymentError:et}))})(),()=>{void 0!==Be&&(Be.disconnect(),Re(void 0))}),[o,xe]),compat.useEffect(()=>{null!=Mt&&0!==Mt||vt(!0),jo(A)&&vt(!0)},[]),compat.useEffect(()=>{(async()=>{if(void 0===he||0===he.length){const e=await(async(e,t=re.apiBaseUrl)=>{try{const r=await M.get(`${t}/address/balance/${e}`);return isNaN(r.data)?null:r.data}catch(e){return}})(o,w);lt(e)}ee(!1)})()},[he,o,w]),compat.useEffect(()=>{const t=void 0!==Mt&&Mt&&isNaN(+Mt);te(o)||oe(o)?(dt(jo(e.disabled)),ht("")):t?(dt(!0),ht("Amount should be a number")):(dt(!0),ht("Invalid Recipient")),S&&Mt?Nt(S*+Mt>=10):"USD"===h?Mt&&+Mt>=10&&Nt(!0):"CAD"===h&&Mt&&+Mt>=15&&Nt(!0)},[o,Mt,S]),compat.useEffect(()=>{const t=void 0!==Mt&&Mt&&isNaN(+Mt),r="string"==typeof Mt&&Mt.startsWith("-");let n;if(t?(dt(!0),ht("Amount should be a number")):r?(dt(!0),ht("Amount should be positive")):te(o)||oe(o)?ht(""):ht("Invalid Recipient"),void 0!==Et&&Mt&&nt){const t=_o(+Mt,h,!1);qt(t),e.setCurrencyObject&&e.setCurrencyObject(t)}else if(Mt&&nt){n=+Mt;const t=_o(n,h,y);qt(t),e.setCurrencyObject&&e.setCurrencyObject(t)}},[Mt,h,Et]),compat.useEffect(()=>{if(void 0===o)return;let e;if(ot(nt),Bt("XEC"===nt&&Ct?"Send with Cashtab":`Send with ${nt} wallet`),Ht&&Ft){const t=Ht.float/_t,r=_t?_o(t,nt,y):null;r&&(kt(`Send ${Ht.string} ${Ht.currency} = ${r.string} ${nt}`),e=Kt(nt,r.float),St(null!=e?e:""))}else{const t=void 0!==(null==Ht?void 0:Ht.float)&&Ht.float>0;if(!me(h)&&Ht&&t){const t=Ht.currency;kt(`Send ${Ht.string} ${t}`),e=Kt(t,null==Ht?void 0:Ht.float)}else kt("Send any amount of "+nt),e=Kt(nt);St(null!=e?e:"")}},[o,Ht,_t,Mt,Rt,Ft,Ct]),compat.useEffect(()=>{try{Ot(function({opReturn:e,disablePaymentId:t,paymentId:r}){void 0===e&&(e="");const n=function(e,t=!1){const r=new Blob([e]).size,n=213-(t?0:8);if(r>n)throw new Error(`Maximum ${n} byte size exceeded for user data: ${r}`);const o=r.toString(16).padStart(2,"0");return r>75?"4c"+o:o}(e,t);(void 0===r||t)&&(r="");const o=function(e){if(e.length%2!=0)throw new Error("Malformed input; paymentId hex should never be of odd length");const t=e.length/2;if(t>75)throw new Error("Maximum 75 byte size exceeded for paymentId: "+t);return`${t.toString(16).padStart(2,"0")}${e}`}(null!=r?r:"");return"045041590000"+n+function(e){const t=(new TextEncoder).encode(e);return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}(e)+o}({opReturn:e.opReturn,paymentId:a,disablePaymentId:null!=f&&f}))}catch(e){console.error(e),ht(e.message),dt(!0)}},[e.opReturn,a,f]),compat.useEffect(()=>{Ut(e.amount)},[e.amount]),compat.useEffect(()=>{if(void 0!==ct){const e=_o(ct,h,!1),t=_o(Xt,h,!1);if(me(h)){if(Ft){const e=ct*_t,t=`${Xo(e,h,le.FIAT)} / ${Xo(Xt,h,le.FIAT)}`,r=e/Xt*100;ee(!1),At(r),gt(t)}}else if(void 0!==t){let r=e.float;void 0!==O&&(r=Number(r)+Number(O)),At(100*r/t.float),gt(`${r} / ${Xt}`),ee(!1)}Qt&&void 0!==t.float&&t.float<=0&&(dt(!0),ht("Goal Value must be a number"))}},[ct,h,d,_t,Ft,O]);const Vt=compat.useCallback(()=>{ft||void 0===o||wt&&z(wt)&&(st(!0),ut(!0))},[ft,o,wt,z,st,ut]),Kt=compat.useCallback((e,t)=>{if(ft||!o)return;const r=ce[e.toLowerCase()];if(!r)return;let n=`${r}:${o.replace(/^.*:/,"")}`;if(t&&(n+="?amount="+t),Rt){const e=n.includes("?")?"&":"?";n+=`${e}op_return_raw=${Rt}`}return n},[ft,o,h,Rt]),Zt={renderAs:"svg",size:300,level:"H",value:wt,fgColor:Lt.palette.tertiary,imageSettings:{src:s?Gt:te(o)?zt:"data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='576px' height='576px' viewBox='0 0 576 576' enable-background='new 0 0 576 576' xml:space='preserve'%3e%3cg transform='translate(1,1)'%3e%3ccircle fill='%23FFFFFF' cx='287' cy='287' r='288'/%3e%3c/g%3e%3cpath fill='%23FFFFFF' d='M325.089,228.325l-67.15,38.668c-1.734,0.995-2.794,2.85-2.773,4.849v32.443 c-0.019,1.954,1.05,3.757,2.773,4.681l28.122,16.22c1.635,1.039,3.723,1.039,5.359,0l116.046-66.833 c19.694-11.393,19.694-44.216,0-55.609l-104.294-60.057c-8.867-5.357-19.975-5.357-28.842,0l-104.294,60.078 c-9.056,5.074-14.637,14.671-14.569,25.052c0,40.235,0.17,80.28,0,120.325c-0.085,10.362,5.461,19.954,14.485,25.052l104.294,60.247 c8.914,5.188,19.928,5.188,28.843,0l104.378-60.247c9.017-5.085,14.521-14.702,14.337-25.052v-52.306l-124.136,71.83 c-5.537,3.283-12.423,3.283-17.959,0l-55.439-32.124c-5.612-3.147-9.056-9.11-8.979-15.545V255.96 c-0.028-6.327,3.322-12.188,8.788-15.374c18.487-10.716,37.122-21.409,55.609-32.125c5.542-3.262,12.416-3.262,17.958,0 l27.53,15.713c1.13,0.727,1.459,2.233,0.732,3.365C325.7,227.862,325.42,228.131,325.089,228.325z'/%3e%3cpath fill='%230074C2' d='M288.878,16.941C139.176,16.941,17.819,138.298,17.819,288c0,149.701,121.357,271.059,271.059,271.059 c149.701,0,271.059-121.357,271.059-271.059C559.937,138.298,438.579,16.941,288.878,16.941z M325.089,224.174l-27.529-15.713 c-5.541-3.262-12.415-3.262-17.957,0c-18.487,10.715-37.122,21.409-55.609,32.125c-5.466,3.186-8.816,9.047-8.788,15.374v64.037 c-0.078,6.435,3.366,12.397,8.979,15.545l55.418,32.124c5.536,3.283,12.422,3.283,17.957,0l124.138-71.83v52.306 c0.204,10.327-5.257,19.938-14.231,25.052L303.193,433.44c-8.915,5.188-19.928,5.188-28.843,0l-104.315-60.247 c-9.056-5.075-14.637-14.671-14.569-25.052c0.17-40.045,0-80.111,0-120.325c-0.085-10.363,5.461-19.956,14.485-25.052 l104.294-60.078c8.868-5.357,19.975-5.357,28.843,0l104.378,60.078c19.694,11.393,19.694,44.217,0,55.609L291.42,325.186 c-1.636,1.039-3.724,1.039-5.359,0l-28.122-16.22c-1.724-0.924-2.792-2.727-2.773-4.681v-32.443 c-0.021-1.999,1.04-3.854,2.773-4.849l67.15-38.668c1.146-0.705,1.506-2.204,0.802-3.35 C325.689,224.649,325.416,224.375,325.089,224.174z'/%3e%3c/svg%3e",excavate:!1,height:112,width:112}},Jt=p$2.createElement("div",{className:Dt.qrAnimations},p$2.createElement(K$1,Object.assign({},Zt,{style:X$1({flex:1,width:"100%",height:"auto"},Wt)})));let Xt;d&&(Xt=+d);const Qt=void 0!==d,Yt=t=>{Ut(t),e.setAmount&&e.setAmount(t)};return p$2.createElement(J$1,{value:Lt},p$2.createElement(l,{className:Dt.root,pt:0,display:"flex",flexDirection:"column",alignItems:"center"},p$2.createElement(l,{flex:"shrink",alignSelf:"stretch",style:{background:"#fff"},py:1,textAlign:"center"},p$2.createElement(t,{className:pt?Dt.error:Dt.text},pt||(ft?"Not yet ready for payment":Y?"Loading...":s?u:$t))),p$2.createElement(l,{display:"flex",flexDirection:"column",alignItems:"center",px:3,pt:2,position:"relative"},xe&&p$2.createElement(wn,{altpaymentSocket:Be,thisAmount:Mt,updateAmount:Yt,setUseAltpayment:$e,altpaymentShift:_e,setAltpaymentShift:we,shiftCompleted:Pe,setShiftCompleted:Ie,altpaymentError:Ye,setAltpaymentError:et,coins:De,loadingPair:ze,setLoadingPair:Ge,loadingShift:Ze,setLoadingShift:Je,coinPair:je,setCoinPair:He,altpaymentEditable:bt,animation:g,addressType:nt,to:o}),p$2.createElement(p$2.Fragment,null,Y&&Qt?p$2.createElement(t,{className:Dt.text,style:{margin:"10px auto 20px"}},p$2.createElement(c,{size:15,thickness:4,className:Dt.spinner})):p$2.createElement(p$2.Fragment,null,Qt&&p$2.createElement(p$2.Fragment,null,p$2.createElement(t,{className:Dt.copyText,style:X$1({marginBottom:"0.61rem"},Wt)},mt,p$2.createElement("strong",null," ",h)),p$2.createElement(Sn,{color:Lt.palette.primary,value:Math.round(yt),disabled:ft}))),p$2.createElement(l,{flex:1,position:"relative",className:Dt.qrCode,onClick:Vt},p$2.createElement(m,{in:!Y&&""!==wt},p$2.createElement(p$2.Fragment,null,Jt,p$2.createElement(l,{position:"absolute",bottom:0,right:0},p$2.createElement(m,{appear:!1,in:!it||at,timeout:{enter:0,exit:2e3}},p$2.createElement(l,{className:Dt.copyTextContainer},!jo(ft)&&p$2.createElement(t,{className:Dt.copyText},it?"Payment copied!":"Click to copy")))))),Y&&p$2.createElement(l,{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center"},p$2.createElement(c,{size:70,thickness:4,className:Dt.spinner}))),jo(A)&&p$2.createElement("div",{className:Dt.editAmount},p$2.createElement(n,{label:"Edit amount",value:(null==Ht?void 0:Ht.float)||0,onChange:e=>{let t=e.target.value;""===t&&(t="0");const r=_o(+t,h,!1);xt(r),Yt(t)},inputProps:{maxlength:"12"},name:"Amount",placeholder:"Enter Amount",id:"userEditedAmount",disabled:s}),p$2.createElement(t,{component:"span"},h)),s||p$2.createElement(l,{pt:2,flex:1,className:Dt.button_container},p$2.createElement(p,{text:Tt,hoverText:x,onClick:async()=>{"XEC"===nt?await(async(e,t)=>{try{await be()?pe.sendBip21(e):window.open("https://cashtab.com/#/send?bip21="+e,"_blank")}catch(t){if(t instanceof CashtabAddressDeniedError_1)return;window.open("https://cashtab.com/#/send?bip21="+e,"_blank")}})(wt):window.location.href=wt},disabled:jo(ft),animation:g,size:"medium"})),!jo(R)&&p$2.createElement(t,{component:"div",className:`${Dt.sideShiftLink} ${It||bt?Dt.animate_sideshift:Dt.hide_sideshift}`,onClick:It||bt?()=>{$e&&$e(!0)}:void 0,style:{cursor:It||bt?"pointer":"default"}},"Don't have any ",nt,"?")),i&&p$2.createElement(l,{pt:2,flex:1},i),p$2.createElement(l,{py:.8},p$2.createElement(t,{className:Dt.footer},"Powered by PayButton.org")))))};En.defaultProps={success:!1,successText:"Thank you!",editable:!1};const vn=["to","opReturn","disablePaymentId","paymentId","amount","setAmount","currency","cryptoAmount","price","animation","randomSatoshis","hideToasts","sound","onSuccess","onTransaction","goalAmount","disabled","editable","wsBaseUrl","apiBaseUrl","successText","hoverText","disableAltpayment","contributionOffset","altpaymentShift","setAltpaymentShift","newTxs","setNewTxs","txsSocket","isChild","disableSound","transactionText"],Cn={variant:"success",style:{marginBottom:"60px"},autoHideDuration:8e3,anchorOrigin:{vertical:"bottom",horizontal:"center"}},Mn={autoHideDuration:8e3,anchorOrigin:{vertical:"bottom",horizontal:"center"}},On=(Tn=e=>{let{to:t,opReturn:r,disablePaymentId:n,paymentId:o,amount:i,setAmount:s,currency:a="",cryptoAmount:u,price:c,animation:l,randomSatoshis:f=!1,hideToasts:d=!1,sound:p=!0,onSuccess:h,onTransaction:m,goalAmount:g,disabled:y,editable:A,wsBaseUrl:b,apiBaseUrl:v,successText:_,hoverText:w,disableAltpayment:S,contributionOffset:E,altpaymentShift:x,setAltpaymentShift:$,newTxs:k,setNewTxs:T,txsSocket:B,isChild:R,disableSound:O,transactionText:C}=e,P=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,vn);const[I,N]=compat.useState(),L=e.setCurrencyObj||N,D=e.currencyObj||I,[M,U]=compat.useState(),F=T?k:M,j=null!=T?T:U,[H,q]=compat.useState(),[W,z]=compat.useState(0),[G,V]=compat.useState(0);compat.useEffect(()=>{if(void 0!==o&&""!==o||n)q(o);else{const e=Wo(8);q(e)}},[o,n]);const[K,Z]=compat.useState(!1),{enqueueSnackbar:J}=useSnackbar(),[X,Q]=compat.useState(!1),Y=function(){switch(re.altpaymentClient){case"sideshift":return new gn;case"mocked":return new hn;default:throw new Error("ERROR: Invalid alternative payment client")}}(),ee=ne(t);var te;(!me(te=a)&&!de(te)||de(a)&&ee!==a)&&(a=ee);const oe=compat.useMemo(()=>new Audio("data:audio/mpeg;base64,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"),[]),ie=compat.useCallback(async e=>{if(x)"settled"===(await Y.getPaymentStatus(x.id)).status&&(p&&!jo(O)&&oe.play().catch(()=>{}),null==h||h(e),Q(!0));else{const o=D?null==D?void 0:D.float:void 0,i=$o(e.amount),s=ne(t);((e,t,r,n,o,i,s,a,u)=>{const{paymentId:c,rawMessage:l,message:f,amount:d,address:p}=e,h="bitcoincash"===ae(p);let m=!0;if(s){"number"==typeof s&&(s=new N$1(s));const e=ne(p);if(e!==t)if(u){const t=(u.float/r).toFixed(le[e]);m=$o(t).isEqualTo(d)}else m=!1;else m=s.isEqualTo(d)}let g=!0,y=!0;if(!(n&&0!==n||h)){g=!!o||i===c}if(!h){const e=""===l||void 0===l?f:l;y=a?e===a:""===e||void 0===e}return m&&g&&y})(e,a,W,f,n,H,o,r,D)?(p&&!jo(O)&&oe.play().catch(()=>{}),d||J(`${_?_+" | ":""}Received ${i} ${s}`,Cn),Z(!0),null==h||h(e)):(null==m||m(e),C&&J(`${C||"New transaction"} | Received ${i} ${s}`,Mn))}j([])},[h,m,J,d,p,oe,u,_,t,H,x,W,D,f]),se=compat.useCallback(async()=>{const e=await ue(a,t,v),r=await ue("USD",t,v);null!==e&&z(e),null!==r&&V(r)},[a,t,v]);compat.useEffect(()=>{void 0===c||0===c?(async()=>{se()})():z(c)},[a,c,G]);const ce=compat.useCallback(e=>{var t;!1===e.confirmed&&(t=$o(e.amount),Jo.isLessThan(t))&&ie(e)},[ie]);return compat.useEffect(()=>{null==F||F.map(e=>{ce(e)})},[F,ce]),p$2.createElement(p$2.Fragment,null,p$2.createElement(En,Object.assign({to:t,isChild:R},P,{amount:i,setAmount:s,opReturn:r,paymentId:H,disablePaymentId:n,goalAmount:g,currency:a,animation:l,currencyObject:D,setCurrencyObject:L,randomSatoshis:f,price:W,usdPrice:G,success:K,disabled:y,editable:A,newTxs:F,setNewTxs:j,txsSocket:B,wsBaseUrl:b,apiBaseUrl:v,successText:_,hoverText:w,altpaymentShift:x,setAltpaymentShift:$,shiftCompleted:X,setShiftCompleted:Q,disableAltpayment:S,contributionOffset:E,transactionText:C})))},e=>p$2.createElement(SnackbarProvider,null,p$2.createElement(Tn,Object.assign({},e))));var Tn;const xn=e=>{const[t,r]=compat.useState(!1),[n,o]=compat.useState(!1),{to:i,amount:s,setAmount:a,opReturn:c,paymentId:l,disablePaymentId:f,currency:p,currencyObj:h,setCurrencyObj:m,cryptoAmount:g,price:y,successText:A,animation:b,randomSatoshis:v,hideToasts:w,onClose:S,onSuccess:E,onTransaction:x,goalAmount:$,disableEnforceFocus:k,editable:T,dialogOpen:B,setDialogOpen:R,container:O,wsBaseUrl:C,apiBaseUrl:P,hoverText:I,disableAltpayment:N,contributionOffset:L,autoClose:D,useAltpayment:M,setUseAltpayment:U,setTxsSocket:F,txsSocket:j,setAltpaymentSocket:H,altpaymentSocket:q,setCoins:W,coins:z,setCoinPair:G,coinPair:V,setLoadingPair:K,loadingPair:Z,setAltpaymentShift:J,altpaymentShift:X,setLoadingShift:Q,loadingShift:Y,setAltpaymentError:ee,altpaymentError:re,addressType:ne,newTxs:ie,setNewTxs:se,setAddressType:ae,disableSound:ue,transactionText:ce}=Object.assign({},xn.defaultProps,e),le=()=>{S&&S(t,l),r(!1)};compat.useEffect(()=>{void 0!==i&&(te(i)||oe(i))?o(jo(e.disabled)):o(!0)},[i,s,e.disabled]);const fe=e=>p$2.createElement(Ae,Object.assign({animation:b},e)),de=_(e.theme,oe(i));let pe;return s&&(pe=+s),p$2.createElement(J$1,{value:de},p$2.createElement(d,{container:O,open:B,onClose:le,disableEnforceFocus:k,disableScrollLock:!0,TransitionComponent:u,transitionDuration:{enter:300,exit:300}},p$2.createElement(On,{isChild:!0,ButtonComponent:fe,active:B,to:i,amount:pe,opReturn:c,paymentId:l,disablePaymentId:f,setAmount:a,currencyObj:h,setCurrencyObj:m,cryptoAmount:g,price:y,currency:p,animation:b,randomSatoshis:v,hideToasts:w,onSuccess:e=>{!1===B&&R(!0),r(!0),null==E||E(e),setTimeout(()=>{jo(D)&&le()},3e3)},onTransaction:x,successText:A,disabled:n,editable:T,goalAmount:$,wsBaseUrl:C,apiBaseUrl:P,hoverText:I,disableAltpayment:N,contributionOffset:L,useAltpayment:M,setUseAltpayment:U,setTxsSocket:F,txsSocket:j,setAltpaymentSocket:H,altpaymentSocket:q,setCoins:W,coins:z,setCoinPair:G,coinPair:V,setLoadingPair:K,loadingPair:Z,setAltpaymentShift:J,altpaymentShift:X,setLoadingShift:Q,loadingShift:Y,setAltpaymentError:ee,altpaymentError:re,addressType:ne,setAddressType:ae,setNewTxs:se,newTxs:ie,disableSound:ue,transactionText:ce,foot:t&&p$2.createElement(fe,{onClick:le,text:"Close",hoverText:"Close",disabled:n})})))};xn.defaultProps={animation:"slide",hideToasts:!1,randomSatoshis:!1,successText:"Thank you!",disableEnforceFocus:!1,disabled:!1,editable:!1,dialogOpen:!0,autoClose:!0};const Ln=e=>{const[t,r]=compat.useState(!1),[n,o]=compat.useState(!1),[i,s]=compat.useState(""),[a,u]=compat.useState(e.amount),[c,l]=compat.useState(void 0),[f,d]=compat.useState(void 0),[p,h]=compat.useState(!1),[m,g]=compat.useState([]),[y,A]=compat.useState(!1),[b,v]=compat.useState(),[w,S]=compat.useState(!1),[E,x]=compat.useState(),[$,k]=compat.useState(void 0),[T,B]=compat.useState(),[R,O]=compat.useState(),[C,P]=compat.useState(0),[I,N]=compat.useState(),L=compat.useRef(C),D=compat.useRef(R),{to:M,opReturn:U,disablePaymentId:F,currency:j="",text:H,hoverText:q,successText:W,animation:z,randomSatoshis:G,hideToasts:V,onSuccess:K,onTransaction:Z,onOpen:J,onClose:X,goalAmount:Q,disableEnforceFocus:Y,editable:ee,wsBaseUrl:re,apiBaseUrl:ie,disableAltpayment:se,contributionOffset:ae,autoClose:ce,disableSound:le,transactionText:fe,size:de,sizeScaleAlreadyApplied:pe}=Object.assign({},Ln.defaultProps,e),[he]=compat.useState(F?void 0:Wo(8)),[ge,ye]=compat.useState(ne(M));compat.useEffect(()=>{L.current=C},[C]),compat.useEffect(()=>{D.current=R},[R]);const be=compat.useCallback(async()=>{void 0!==J&&(me(j)?(()=>{const e=setInterval(()=>{0!==L.current&&(clearInterval(e),J(D.current,M,he))},300)})():J(a,M,he)),r(!0)},[R,M,he,C]);compat.useEffect(()=>{u(e.amount)},[e.amount]),compat.useEffect(()=>{const t=void 0!==e.amount&&isNaN(+e.amount);void 0!==M?(o(jo(e.disabled)),s("")):t?(o(!0),s("Amount should be a number")):(o(!0),s("Invalid Recipient"))},[M,e.amount,e.disabled]),compat.useEffect(()=>{M?te(M)||oe(M)?s(""):s("Invalid Recipient"):s("Enter an address")},[M]),compat.useEffect(()=>{if(!1!==t)return(async()=>{if(void 0===c){const e=T?null==T?void 0:T.float:void 0;await bn({address:M,txsSocket:c,apiBaseUrl:ie,wsBaseUrl:re,setTxsSocket:l,setNewTxs:N,setDialogOpen:r,checkSuccessInfo:{currency:j,price:C,randomSatoshis:null!=G&&G,disablePaymentId:F,expectedAmount:e,expectedOpReturn:U,expectedPaymentId:he,currencyObj:T}})}void 0===f&&p&&await yn({addressType:ge,altpaymentSocket:f,wsBaseUrl:re,setAltpaymentSocket:d,setCoins:g,setCoinPair:v,setLoadingPair:A,setAltpaymentShift:x,setLoadingShift:S,setAltpaymentError:k})})(),()=>{void 0!==f&&(f.disconnect(),d(void 0))}},[t,p]),compat.useEffect(()=>{if(!1===t&&e.amount&&j){const t=_o(Number(e.amount),j,G);setTimeout(()=>{u(t.float),B(t)},300)}},[t,e.amount,j,G]);const ve=compat.useCallback(async()=>{const e=await ue(j,M,ie);null!==e&&P(e)},[j,M,ie]);compat.useEffect(()=>{(async()=>{me(j)&&0===C&&await ve()})()},[j,ve,M,C]),compat.useEffect(()=>{if(T&&me(j)&&C){const e=ne(M),t=_o(T.float/C,e,G);O(t.string)}else me(j)||O(null==a?void 0:a.toString())},[C,T,a,j,G,M]);const _e=_(e.theme,oe(null!=M?M:""));return p$2.createElement(J$1,{value:_e},p$2.createElement(e=>p$2.createElement(Ae,Object.assign({animation:z},e)),{onClick:be,text:H,hoverText:q,disabled:n,size:de,sizeScaleAlreadyApplied:pe}),p$2.createElement(xn,{disableEnforceFocus:Y,disableScrollLock:!0,to:null!=M?M:"",amount:a,opReturn:U,paymentId:he,disablePaymentId:F,setAmount:u,currencyObj:T,setCurrencyObj:B,cryptoAmount:R,price:C,currency:j,animation:z,randomSatoshis:G,hideToasts:V,onTransaction:Z,onSuccess:K,successText:W,disabled:n,editable:ee,goalAmount:Q,dialogOpen:t,setDialogOpen:r,onClose:(e,t)=>{void 0!==X&&X(e,t),r(!1)},wsBaseUrl:re,apiBaseUrl:ie,hoverText:q,disableAltpayment:se,contributionOffset:ae,autoClose:ce,useAltpayment:p,setUseAltpayment:h,setTxsSocket:l,txsSocket:c,setAltpaymentSocket:d,altpaymentSocket:f,setCoins:g,coins:m,setCoinPair:v,coinPair:b,setLoadingPair:A,loadingPair:y,setAltpaymentShift:x,altpaymentShift:E,setLoadingShift:S,loadingShift:w,setAltpaymentError:k,altpaymentError:$,addressType:ge,setAddressType:ye,setNewTxs:N,newTxs:I,disableSound:le,transactionText:fe}),i&&p$2.createElement("p",{style:{color:"#EB3B3B",fontSize:"14px",maxWidth:"190px",textAlign:"center"}},i))};Ln.defaultProps={to:"",animation:"slide",hideToasts:!1,randomSatoshis:!1,successText:"Thank you!",disableEnforceFocus:!1,disabled:!1,editable:!1,autoClose:!1,size:"md",sizeScaleAlreadyApplied:!1};const Rn=Ln,Nn=xn,Un=On;function g(e,t){for(var r in t)e[r]=t[r];return e}function E(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function N(e,t){this.props=e,this.context=t}(N.prototype=new x$3).isPureReactComponent=!0,N.prototype.shouldComponentUpdate=function(e,t){return E(this.props,e)||E(this.state,t)};var T=l$4.__b;l$4.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),T&&T(e)};var F=l$4.__e;l$4.__e=function(e,t,r,n){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);F(e,t,r,n)};var U=l$4.unmount;function V(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=g({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return V(e,t,r)})),e}function W(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return W(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function P(){this.__u=0,this.o=null,this.__b=null}function j(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function B(){this.i=null,this.l=null}l$4.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),U&&U(e)},(P.prototype=new x$3).__c=function(e,t){var r=t.__c,n=this;null==n.o&&(n.o=[]),n.o.push(r);var o=j(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=W(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&_$2(k$3,null,e.fallback);return o&&(o.__u&=-33),[_$2(k$3,null,t.__a?null:e.children),o]};var H=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]1){var i=o[1].split("'");t=!0,e=i[1]}}var s=document.getElementById(e),a=document.getElementsByClassName("paybutton").length>0,u=document.getElementsByClassName("paybutton-widget").length>0,c=document.getElementsByClassName("dialogbutton").length>0;t&&null===s&&console.error("The Paybutton div#".concat(e," is either misspelled or missing.")),a&&renderButtons(a),u&&renderWidgets(u),c&&renderDialogButton(c)}}document.addEventListener("DOMContentLoaded",t),new(null!==(e=window.MutationObserver)&&void 0!==e?e:window.WebKitMutationObserver)(t).observe(document,{subtree:!0,childList:!0,attributes:!0})}"undefined"!=typeof window&&init();var allowedProps=["amount","animation","currency","displayCurrency","hideToasts","hoverText","onSuccess","onTransaction","onOpen","onClose","randomSatoshis","successText","theme","text","to","opReturn","disablePaymentId","disabled","goalAmount","editable","wsBaseUrl","apiBaseUrl","disableAltpayment","contributionOffset","autoClose","disableSound","transactionText","size"],requiredProps=["to"];function renderDialogButton(e){var t=document.getElementById("content");e&&t&&Array.from(document.getElementsByClassName("dialogbutton")).forEach(function(e){t.appendChild(e)})}function openDialog(e){var t=document.createElement("div");document.body.appendChild(t);if(e.disabled){var r=document.activeElement;r&&"BUTTON"===r.tagName&&(r.textContent="Unavailable"),t.remove()}else nn(_$2(Nn,__assign({container:t,onClose:function(r,n){void 0!==e.onClose&&e.onClose(r,n),t.remove()}},e)),t)}function renderButtons(e){e?findAndRender("paybutton",Rn,allowedProps,requiredProps):console.error('The "paybutton" class is either misspelled or missing.')}function renderWidgets(e){e?findAndRender("paybutton-widget",Un,allowedProps,requiredProps):console.error('The "paybutton-widget" class is either misspelled or missing.')}function findAndRender(e,t,r,n){Array.from(document.getElementsByClassName(e)).forEach(function(e){var o,i=e.getAttributeNames().reduce(function(t,n){var o=camelcase(n);return r.includes(o)&&(t[o]=e.getAttribute(n)),t},{}),s=Object.assign({},i,{to:i.to});if(null!=i.amount&&(s.amount=+i.amount,isNaN(s.amount)&&console.error("Amount must be a number")),s.hideToasts="true"===i.hideToasts,s.randomSatoshis=null!==(o=validateRandomSatoshis(s.randomSatoshis))&&void 0!==o?o:RANDOM_SATOSHIS_DEFAULT_VALUE,i.onSuccess){var a=window.eval;s.onSuccess=a(i.onSuccess)}if(i.onTransaction){a=window.eval;s.onTransaction=a(i.onTransaction)}if(i.onOpen){a=window.eval;s.onOpen=a(i.onOpen)}if(i.onClose){a=window.eval;s.onClose=a(i.onClose)}if(i.theme)try{s.theme=JSON.parse(i.theme)}catch(e){}n.every(function(e){return e in i})||console.error('The "to" parameter is missing from your PayButton config. Please check it'),nn(_$2(t,__assign({},s)),e)})}var validateJSProps=function(e){null!==e.amount&&void 0!==e.amount&&(e.amount=+e.amount,isNaN(e.amount)&&console.error("Amount must be a number"))},index={render:function(e,t){null!==e&&(validateJSProps(t),nn(_$2(Rn,__assign({},t)),e))},renderWidget:function(e,t){null!==e&&(validateJSProps(t),nn(_$2(Un,__assign({},t)),e))},openDialog:function(e){return openDialog(e)},renderButtons:renderButtons,renderWidgets:renderWidgets,renderDialogButton:renderDialogButton};return index}); \ No newline at end of file + * @license + * https://reviews.bitcoinabc.org + * Copyright (c) 2017-2020 Emilio Almansi + * Copyright (c) 2023-2024 Bitcoin ABC + * Distributed under the MIT software license, see the accompanying + * file LICENSE or http://www.opensource.org/licenses/mit-license.php. + */ +var t=base32&&base32.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CHARSET=void 0;const r=t(requireValidation$1()),{validate:n}=r.default;e.CHARSET="qpzry9x8gf2tvdw0s3jn54khce6mua7l";const o={q:0,p:1,z:2,r:3,y:4,9:5,x:6,8:7,g:8,f:9,2:10,t:11,v:12,d:13,w:14,0:15,s:16,3:17,j:18,n:19,5:20,4:21,k:22,h:23,c:24,e:25,6:26,m:27,u:28,a:29,7:30,l:31};e.default={encode:function(t){n(t instanceof Uint8Array,"Invalid data: "+t+".");let r="";for(let o=0;o>t===0,"Invalid value: "+i+"."),u=u<=n;)c-=n,a[l]=u>>c&s,++l}o?r(c0&&(a[l]=u<>=5n;return t}(d(m)));return e+":"+r.default.encode(g)}function l(t){i("string"==typeof t&&p(t),"Invalid address: "+t+".");const o=t.toLowerCase().split(":");let a,l;if(1===o.length){let n=!1;for(let t=0;t>35n;r=(0x07ffffffffn&r)<<5n^BigInt(e[n]);for(let e=0;e>BigInt(e)&1n&&(r^=t[e])}return 1n^r}function f(e,t){const r=c(u(e),new Uint8Array(1));return 0n===d(c(r,t))}function p(e){return e===e.toLowerCase()||e===e.toUpperCase()}function h(e){let t="";for(let r=0;r{let r;return i("p2pkh"===e||"p2sh"===e,"Invalid type: "+e+"."),r="p2pkh"===e?`76a914${t}88ac`:`a914${t}87`,r}}(cashaddr)),cashaddr}function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;var e=null;return"undefined"!=typeof WebSocket?e=WebSocket:"undefined"!=typeof MozWebSocket?e=MozWebSocket:void 0!==commonjsGlobal?e=commonjsGlobal.WebSocket||commonjsGlobal.MozWebSocket:"undefined"!=typeof window?e=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(e=self.WebSocket||self.MozWebSocket),browser=e}var chronik={},long,hasRequiredLong;function requireLong(){if(hasRequiredLong)return long;hasRequiredLong=1,long=t;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function t(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function r(e){return!0===(e&&e.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0}),t.isLong=r;var n={},o={};function i(e,t){var r,i,s;return t?(s=0<=(e>>>=0)&&e<256)&&(i=o[e])?i:(r=a(e,(0|e)<0?-1:0,!0),s&&(o[e]=r),r):(s=-128<=(e|=0)&&e<128)&&(i=n[e])?i:(r=a(e,e<0?-1:0,!1),s&&(n[e]=r),r)}function s(e,t){if(isNaN(e))return t?g:m;if(t){if(e<0)return g;if(e>=f)return w}else{if(e<=-p)return S;if(e+1>=p)return v}return e<0?s(-e,t).neg():a(e%d|0,e/d|0,t)}function a(e,r,n){return new t(e,r,n)}t.fromInt=i,t.fromNumber=s,t.fromBits=a;var l=Math.pow;function u(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||360)throw Error("interior hyphen");if(0===n)return u(e.substring(1),t,r).neg();for(var o=s(l(r,8)),i=m,a=0;a>>0:this.low},_.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},_.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=u).isZero())return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}},_.getHighBits=function(){return this.high},_.getHighBitsUnsigned=function(){return this.high>>>0},_.getLowBits=function(){return this.low},_.getLowBitsUnsigned=function(){return this.low>>>0},_.getNumBitsAbs=function(){if(this.isNegative())return this.eq(S)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<=0},_.isOdd=function(){return!(1&~this.low)},_.isEven=function(){return!(1&this.low)},_.equals=function(e){return r(e)||(e=c(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},_.eq=_.equals,_.notEquals=function(e){return!this.eq(e)},_.neq=_.notEquals,_.ne=_.notEquals,_.lessThan=function(e){return this.comp(e)<0},_.lt=_.lessThan,_.lessThanOrEqual=function(e){return this.comp(e)<=0},_.lte=_.lessThanOrEqual,_.le=_.lessThanOrEqual,_.greaterThan=function(e){return this.comp(e)>0},_.gt=_.greaterThan,_.greaterThanOrEqual=function(e){return this.comp(e)>=0},_.gte=_.greaterThanOrEqual,_.ge=_.greaterThanOrEqual,_.compare=function(e){if(r(e)||(e=c(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},_.comp=_.compare,_.negate=function(){return!this.unsigned&&this.eq(S)?S:this.not().add(y)},_.neg=_.negate,_.add=function(e){r(e)||(e=c(e));var t=this.high>>>16,n=65535&this.high,o=this.low>>>16,i=65535&this.low,s=e.high>>>16,l=65535&e.high,u=e.low>>>16,d=0,f=0,p=0,h=0;return p+=(h+=i+(65535&e.low))>>>16,f+=(p+=o+u)>>>16,d+=(f+=n+l)>>>16,d+=t+s,a((p&=65535)<<16|(h&=65535),(d&=65535)<<16|(f&=65535),this.unsigned)},_.subtract=function(e){return r(e)||(e=c(e)),this.add(e.neg())},_.sub=_.subtract,_.multiply=function(t){if(this.isZero())return m;if(r(t)||(t=c(t)),e)return a(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return m;if(this.eq(S))return t.isOdd()?S:m;if(t.eq(S))return this.isOdd()?S:m;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(h)&&t.lt(h))return s(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,o=65535&this.high,i=this.low>>>16,l=65535&this.low,u=t.high>>>16,d=65535&t.high,f=t.low>>>16,p=65535&t.low,g=0,y=0,A=0,b=0;return A+=(b+=l*p)>>>16,y+=(A+=i*p)>>>16,A&=65535,y+=(A+=l*f)>>>16,g+=(y+=o*p)>>>16,y&=65535,g+=(y+=i*f)>>>16,y&=65535,g+=(y+=l*d)>>>16,g+=n*p+o*f+i*d+l*u,a((A&=65535)<<16|(b&=65535),(g&=65535)<<16|(y&=65535),this.unsigned)},_.mul=_.multiply,_.divide=function(t){if(r(t)||(t=c(t)),t.isZero())throw Error("division by zero");var n,o,i;if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?a((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?g:m;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return g;if(t.gt(this.shru(1)))return A;i=g}else{if(this.eq(S))return t.eq(y)||t.eq(b)?S:t.eq(S)?y:(n=this.shr(1).div(t).shl(1)).eq(m)?t.isNegative()?y:b:(o=this.sub(t.mul(n)),i=n.add(o.div(t)));if(t.eq(S))return this.unsigned?g:m;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=m}for(o=this;o.gte(t);){n=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));for(var u=Math.ceil(Math.log(n)/Math.LN2),d=u<=48?1:l(2,u-48),f=s(n),p=f.mul(t);p.isNegative()||p.gt(o);)p=(f=s(n-=d,this.unsigned)).mul(t);f.isZero()&&(f=y),i=i.add(f),o=o.sub(p)}return i},_.div=_.divide,_.modulo=function(t){return r(t)||(t=c(t)),e?a((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},_.mod=_.modulo,_.rem=_.modulo,_.not=function(){return a(~this.low,~this.high,this.unsigned)},_.and=function(e){return r(e)||(e=c(e)),a(this.low&e.low,this.high&e.high,this.unsigned)},_.or=function(e){return r(e)||(e=c(e)),a(this.low|e.low,this.high|e.high,this.unsigned)},_.xor=function(e){return r(e)||(e=c(e)),a(this.low^e.low,this.high^e.high,this.unsigned)},_.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?a(this.low<>>32-e,this.unsigned):a(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):a(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},_.shr=_.shiftRight,_.shiftRightUnsigned=function(e){if(r(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?a(this.low>>>e|t<<32-e,t>>>e,this.unsigned):a(32===e?t:t>>>e-32,0,this.unsigned)},_.shru=_.shiftRightUnsigned,_.shr_u=_.shiftRightUnsigned,_.toSigned=function(){return this.unsigned?a(this.low,this.high,!1):this},_.toUnsigned=function(){return this.unsigned?this:a(this.low,this.high,!0)},_.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},_.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},_.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},t.fromBytes=function(e,r,n){return n?t.fromBytesLE(e,r):t.fromBytesBE(e,r)},t.fromBytesLE=function(e,r){return new t(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,r)},t.fromBytesBE=function(e,r){return new t(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],r)},long}var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=1,aspromise=function(e,t){var r=new Array(arguments.length-1),n=0,o=2,i=!0;for(;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var r=new Array(64),n=new Array(123),o=0;o<64;)n[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;t.encode=function(e,t,n){for(var o,i=null,s=[],a=0,l=0;t>2],o=(3&u)<<4,l=1;break;case 1:s[a++]=r[o|u>>4],o=(15&u)<<2,l=2;break;case 2:s[a++]=r[o|u>>6],s[a++]=r[63&u],l=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return l&&(s[a++]=r[o],s[a++]=61,1===l&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var i="invalid encoding";t.decode=function(e,t,r){for(var o,s=r,a=0,l=0;l1)break;if(void 0===(u=n[u]))throw Error(i);switch(a){case 0:o=u,a=1;break;case 1:t[r++]=o<<2|(48&u)>>4,o=u,a=2;break;case 2:t[r++]=(15&o)<<4|(60&u)>>2,o=u,a=3;break;case 3:t[r++]=(3&o)<<6|u,a=0}}if(1===a)throw Error(i);return r-s},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(base64)),base64}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function e(){this._listeners={}}return hasRequiredEventemitter=1,eventemitter=e,e.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},e.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=i.bind(null,t),e.writeFloatBE=i.bind(null,r),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function i(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var l=Math.floor(Math.log(n)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(a=n*Math.pow(2,-l))>>>0,o,i+t),e((s<<31|l+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,l=s>>>20&2047,u=4294967296*(1048575&s)+i;return 2047===l?u?NaN:a*(1/0):0===l?5e-324*a*u:a*Math.pow(2,l-1075)*(u+4503599627370496)}e.writeDoubleLE=i.bind(null,t,0,4),e.writeDoubleBE=i.bind(null,r,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function t(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function r(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}return hasRequiredFloat=1,float=e(e)}function requireInquire(){if(hasRequiredInquire)return inquire_1;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}return hasRequiredInquire=1,inquire_1=inquire,inquire_1}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(e){var t=e;t.length=function(e){for(var t=0,r=0,n=0;n191&&n<224?i[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(n>>10),i[s++]=56320+(1023&n)):i[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))},t.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}}(utf8)),utf8}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=1,pool_1=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}},pool_1}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=t;var e=requireMinimal$1();function t(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=t.zero=new t(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var n=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return r;var n=e<0;n&&(e=-e);var o=e>>>0,i=(e-o)/4294967296>>>0;return n&&(i=~i>>>0,o=~o>>>0,++o>4294967295&&(o=0,++i>4294967295&&(i=0))),new t(o,i)},t.from=function(n){if("number"==typeof n)return t.fromNumber(n);if(e.isString(n)){if(!e.Long)return t.fromNumber(parseInt(n,10));n=e.Long.fromString(n)}return n.low||n.high?new t(n.low>>>0,n.high>>>0):r},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var o=String.prototype.charCodeAt;return t.fromHash=function(e){return e===n?r:new t((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10},longbits}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(e){var t=e;function r(e,t,r){for(var n=Object.keys(t),o=0;o0)},t.Buffer=function(){try{var e=t.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return"number"==typeof e?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},t.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,r){var n=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(n.lo,n.hi,r):n.toNumber(Boolean(r))},t.merge=r,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},t.newError=n,t.ProtocolError=n("ProtocolError"),t.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},t.oneOfSetter=function(e){return function(t){for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function p(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}l.create=u(),l.alloc=function(e){return new t.Array(e)},t.Array!==Array&&(l.alloc=t.pool(l.alloc,t.Array.prototype.subarray)),l.prototype._push=function(e,t,r){return this.tail=this.tail.next=new i(e,t,r),this.len+=t,this},d.prototype=Object.create(i.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},l.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},l.prototype.int32=function(e){return e<0?this._push(f,10,r.fromNumber(e)):this.uint32(e)},l.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},l.prototype.uint64=function(e){var t=r.from(e);return this._push(f,t.length(),t)},l.prototype.int64=l.prototype.uint64,l.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(f,t.length(),t)},l.prototype.bool=function(e){return this._push(c,1,e?1:0)},l.prototype.fixed32=function(e){return this._push(p,4,e>>>0)},l.prototype.sfixed32=l.prototype.fixed32,l.prototype.fixed64=function(e){var t=r.from(e);return this._push(p,4,t.lo)._push(p,4,t.hi)},l.prototype.sfixed64=l.prototype.fixed64,l.prototype.float=function(e){return this._push(t.float.writeFloatLE,4,e)},l.prototype.double=function(e){return this._push(t.float.writeDoubleLE,8,e)};var h=t.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!r)return this._push(c,1,0);if(t.isString(e)){var o=l.alloc(r=n.length(e));n.decode(e,o,0),e=o}return this.uint32(r)._push(h,r,e)},l.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(o.write,t,e):this._push(c,1,0)},l.prototype.fork=function(){return this.states=new a(this),this.head=this.tail=new i(s,0,0),this.len=0,this},l.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new i(s,0,0),this.len=0),this},l.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},l.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},l._configure=function(t){e=t,l.create=u(),e._configure()},writer}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=r;var e=requireWriter();(r.prototype=Object.create(e.prototype)).constructor=r;var t=requireMinimal$1();function r(){e.call(this)}function n(e,r,n){e.length<40?t.utf8.write(e,r,n):r.utf8Write?r.utf8Write(e,n):r.write(e,n)}return r._configure=function(){r.alloc=t._Buffer_allocUnsafe,r.writeBytesBuffer=t.Buffer&&t.Buffer.prototype instanceof Uint8Array&&"set"===t.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(n),n&&this._push(r.writeBytesBuffer,n,e),this},r.prototype.string=function(e){var r=t.Buffer.byteLength(e);return this.uint32(r),r&&this._push(n,r,e),this},r._configure(),writer_buffer}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=i;var e,t=requireMinimal$1(),r=t.LongBits,n=t.utf8;function o(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function i(e){this.buf=e,this.pos=0,this.len=e.length}var s="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new i(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new i(e);throw Error("illegal buffer")},a=function(){return t.Buffer?function(r){return(i.create=function(r){return t.Buffer.isBuffer(r)?new e(r):s(r)})(r)}:s};function l(){var e=new r(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function u(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function c(){if(this.pos+8>this.len)throw o(this,8);return new r(u(this.buf,this.pos+=4),u(this.buf,this.pos+=4))}return i.create=a(),i.prototype._slice=t.Array.prototype.subarray||t.Array.prototype.slice,i.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}}(),i.prototype.int32=function(){return 0|this.uint32()},i.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},i.prototype.bool=function(){return 0!==this.uint32()},i.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return u(this.buf,this.pos+=4)},i.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|u(this.buf,this.pos+=4)},i.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=t.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},i.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=t.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},i.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},i.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},i.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},i.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},i._configure=function(r){e=r,i.create=a(),e._configure();var n=t.Long?"toLong":"toNumber";t.merge(i.prototype,{int64:function(){return l.call(this)[n](!1)},uint64:function(){return l.call(this)[n](!0)},sint64:function(){return l.call(this).zzDecode()[n](!1)},fixed64:function(){return c.call(this)[n](!0)},sfixed64:function(){return c.call(this)[n](!1)}})},reader}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=r;var e=requireReader();(r.prototype=Object.create(e.prototype)).constructor=r;var t=requireMinimal$1();function r(t){e.call(this,t)}return r._configure=function(){t.Buffer&&(r.prototype._slice=t.Buffer.prototype.slice)},r.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},r._configure(),reader_buffer}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal,hasRequiredChronik;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=t;var e=requireMinimal$1();function t(t,r,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");e.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(r),this.responseDelimited=Boolean(n)}return(t.prototype=Object.create(e.EventEmitter.prototype)).constructor=t,t.prototype.rpcCall=function t(r,n,o,i,s){if(!i)throw TypeError("request must be specified");var a=this;if(!s)return e.asPromise(t,a,r,n,o,i);if(a.rpcImpl)try{return a.rpcImpl(r,n[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,t){if(e)return a.emit("error",e,r),s(e);if(null!==t){if(!(t instanceof o))try{t=o[a.responseDelimited?"decodeDelimited":"decode"](t)}catch(e){return a.emit("error",e,r),s(e)}return a.emit("data",t,r),s(null,t)}a.end(!0)})}catch(e){return a.emit("error",e,r),void setTimeout(function(){s(e)},0)}else setTimeout(function(){s(Error("already ended"))},0)},t.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(e){e.Service=requireService()}(rpc)),rpc}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=1,roots={})}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(e){var t=e;function r(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}t.build="minimal",t.Writer=requireWriter(),t.BufferWriter=requireWriter_buffer(),t.Reader=requireReader(),t.BufferReader=requireReader_buffer(),t.util=requireMinimal$1(),t.rpc=requireRpc(),t.roots=requireRoots(),t.configure=r,r()}(indexMinimal)),indexMinimal}function requireMinimal(){return hasRequiredMinimal?minimal:(hasRequiredMinimal=1,minimal=requireIndexMinimal())}function requireChronik(){return hasRequiredChronik||(hasRequiredChronik=1,function(e){var t=chronik&&chronik.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.PluginGroup=e.PluginEntry=e.TokenFailedColoring=e.TokenFailedParsing=e.Token=e.GenesisInfo=e.TokenEntry=e.TokenInfo=e.TokenType=e.BlockMetadata=e.TxOutput_PluginsEntry=e.TxOutput=e.TxInput_PluginsEntry=e.TxInput=e.SpentBy=e.OutPoint=e.Utxo_PluginsEntry=e.Utxo=e.ScriptUtxo_PluginsEntry=e.ScriptUtxo=e.Tx=e.BlockInfo=e.ChronikInfo=e.BlockchainInfo=e.BlockHeaders=e.BlockHeader=e.Blocks=e.Block=e.txMsgTypeToJSON=e.txMsgTypeFromJSON=e.TxMsgType=e.txFinalizationReasonTypeToJSON=e.txFinalizationReasonTypeFromJSON=e.TxFinalizationReasonType=e.blockMsgTypeToJSON=e.blockMsgTypeFromJSON=e.BlockMsgType=e.tokenTxTypeToJSON=e.tokenTxTypeFromJSON=e.TokenTxType=e.slpTokenTypeToJSON=e.slpTokenTypeFromJSON=e.SlpTokenType=e.alpTokenTypeToJSON=e.alpTokenTypeFromJSON=e.AlpTokenType=e.tokenStatusToJSON=e.tokenStatusFromJSON=e.TokenStatus=e.protobufPackage=void 0,e.Error=e.Empty=e.MsgTx=e.TxFinalizationReason=e.MsgBlock=e.CoinbaseData=e.WsMsg=e.WsSubTxId=e.WsPlugin=e.WsSubLokadId=e.WsSubTokenId=e.WsSubScript=e.WsSubBlocks=e.WsSub=e.RawTx=e.BroadcastTxsResponse=e.BroadcastTxsRequest=e.BroadcastTxResponse=e.BroadcastTxRequest=e.Utxos=e.ScriptUtxos=e.TxHistoryPage=e.PluginGroups=void 0;const r=t(requireLong()),n=t(requireMinimal());var o,i,s,a,l,u,c;function d(e){switch(e){case 0:case"TOKEN_STATUS_NON_TOKEN":return o.TOKEN_STATUS_NON_TOKEN;case 1:case"TOKEN_STATUS_NORMAL":return o.TOKEN_STATUS_NORMAL;case 2:case"TOKEN_STATUS_NOT_NORMAL":return o.TOKEN_STATUS_NOT_NORMAL;default:return o.UNRECOGNIZED}}function f(e){switch(e){case o.TOKEN_STATUS_NON_TOKEN:return"TOKEN_STATUS_NON_TOKEN";case o.TOKEN_STATUS_NORMAL:return"TOKEN_STATUS_NORMAL";case o.TOKEN_STATUS_NOT_NORMAL:return"TOKEN_STATUS_NOT_NORMAL";case o.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(e){switch(e){case 0:case"ALP_TOKEN_TYPE_STANDARD":return i.ALP_TOKEN_TYPE_STANDARD;default:return i.UNRECOGNIZED}}function h(e){switch(e){case i.ALP_TOKEN_TYPE_STANDARD:return"ALP_TOKEN_TYPE_STANDARD";case i.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function m(e){switch(e){case 0:case"SLP_TOKEN_TYPE_NONE":return s.SLP_TOKEN_TYPE_NONE;case 1:case"SLP_TOKEN_TYPE_FUNGIBLE":return s.SLP_TOKEN_TYPE_FUNGIBLE;case 2:case"SLP_TOKEN_TYPE_MINT_VAULT":return s.SLP_TOKEN_TYPE_MINT_VAULT;case 129:case"SLP_TOKEN_TYPE_NFT1_GROUP":return s.SLP_TOKEN_TYPE_NFT1_GROUP;case 65:case"SLP_TOKEN_TYPE_NFT1_CHILD":return s.SLP_TOKEN_TYPE_NFT1_CHILD;default:return s.UNRECOGNIZED}}function g(e){switch(e){case s.SLP_TOKEN_TYPE_NONE:return"SLP_TOKEN_TYPE_NONE";case s.SLP_TOKEN_TYPE_FUNGIBLE:return"SLP_TOKEN_TYPE_FUNGIBLE";case s.SLP_TOKEN_TYPE_MINT_VAULT:return"SLP_TOKEN_TYPE_MINT_VAULT";case s.SLP_TOKEN_TYPE_NFT1_GROUP:return"SLP_TOKEN_TYPE_NFT1_GROUP";case s.SLP_TOKEN_TYPE_NFT1_CHILD:return"SLP_TOKEN_TYPE_NFT1_CHILD";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function y(e){switch(e){case 0:case"NONE":return a.NONE;case 1:case"UNKNOWN":return a.UNKNOWN;case 2:case"GENESIS":return a.GENESIS;case 3:case"SEND":return a.SEND;case 4:case"MINT":return a.MINT;case 5:case"BURN":return a.BURN;default:return a.UNRECOGNIZED}}function A(e){switch(e){case a.NONE:return"NONE";case a.UNKNOWN:return"UNKNOWN";case a.GENESIS:return"GENESIS";case a.SEND:return"SEND";case a.MINT:return"MINT";case a.BURN:return"BURN";case a.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function b(e){switch(e){case 0:case"BLK_CONNECTED":return l.BLK_CONNECTED;case 1:case"BLK_DISCONNECTED":return l.BLK_DISCONNECTED;case 2:case"BLK_FINALIZED":return l.BLK_FINALIZED;case 3:case"BLK_INVALIDATED":return l.BLK_INVALIDATED;default:return l.UNRECOGNIZED}}function v(e){switch(e){case l.BLK_CONNECTED:return"BLK_CONNECTED";case l.BLK_DISCONNECTED:return"BLK_DISCONNECTED";case l.BLK_FINALIZED:return"BLK_FINALIZED";case l.BLK_INVALIDATED:return"BLK_INVALIDATED";case l.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function w(e){switch(e){case 0:case"TX_FINALIZATION_REASON_POST_CONSENSUS":return u.TX_FINALIZATION_REASON_POST_CONSENSUS;case 1:case"TX_FINALIZATION_REASON_PRE_CONSENSUS":return u.TX_FINALIZATION_REASON_PRE_CONSENSUS;default:return u.UNRECOGNIZED}}function S(e){switch(e){case u.TX_FINALIZATION_REASON_POST_CONSENSUS:return"TX_FINALIZATION_REASON_POST_CONSENSUS";case u.TX_FINALIZATION_REASON_PRE_CONSENSUS:return"TX_FINALIZATION_REASON_PRE_CONSENSUS";case u.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function _(e){switch(e){case 0:case"TX_ADDED_TO_MEMPOOL":return c.TX_ADDED_TO_MEMPOOL;case 1:case"TX_REMOVED_FROM_MEMPOOL":return c.TX_REMOVED_FROM_MEMPOOL;case 2:case"TX_CONFIRMED":return c.TX_CONFIRMED;case 3:case"TX_FINALIZED":return c.TX_FINALIZED;case 4:case"TX_INVALIDATED":return c.TX_INVALIDATED;default:return c.UNRECOGNIZED}}function x(e){switch(e){case c.TX_ADDED_TO_MEMPOOL:return"TX_ADDED_TO_MEMPOOL";case c.TX_REMOVED_FROM_MEMPOOL:return"TX_REMOVED_FROM_MEMPOOL";case c.TX_CONFIRMED:return"TX_CONFIRMED";case c.TX_FINALIZED:return"TX_FINALIZED";case c.TX_INVALIDATED:return"TX_INVALIDATED";case c.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function E(){return{rawHeader:new Uint8Array(0),root:new Uint8Array(0),branch:[]}}function k(){return{tipHash:new Uint8Array(0),tipHeight:0}}function T(){return{hash:new Uint8Array(0),prevHash:new Uint8Array(0),height:0,nBits:0,timestamp:BigInt("0"),isFinal:!1,blockSize:BigInt("0"),numTxs:BigInt("0"),numInputs:BigInt("0"),numOutputs:BigInt("0"),sumInputSats:BigInt("0"),sumCoinbaseOutputSats:BigInt("0"),sumNormalOutputSats:BigInt("0"),sumBurnedSats:BigInt("0")}}function R(){return{txid:new Uint8Array(0),version:0,inputs:[],outputs:[],lockTime:0,block:void 0,timeFirstSeen:BigInt("0"),size:0,isCoinbase:!1,tokenEntries:[],tokenFailedParsings:[],tokenStatus:0,isFinal:!1}}function C(){return{outpoint:void 0,blockHeight:0,isCoinbase:!1,sats:BigInt("0"),isFinal:!1,token:void 0,plugins:{}}}function B(){return{outpoint:void 0,blockHeight:0,isCoinbase:!1,sats:BigInt("0"),script:new Uint8Array(0),isFinal:!1,token:void 0,plugins:{}}}function O(){return{txid:new Uint8Array(0),outIdx:0}}function I(){return{txid:new Uint8Array(0),inputIdx:0}}function P(){return{prevOut:void 0,inputScript:new Uint8Array(0),outputScript:new Uint8Array(0),sats:BigInt("0"),sequenceNo:0,token:void 0,plugins:{}}}function $(){return{sats:BigInt("0"),outputScript:new Uint8Array(0),spentBy:void 0,token:void 0,plugins:{}}}function N(){return{height:0,hash:new Uint8Array(0),timestamp:BigInt("0"),isFinal:!1}}function M(){return{tokenId:"",tokenType:void 0,genesisInfo:void 0,block:void 0,timeFirstSeen:BigInt("0")}}function L(){return{tokenId:"",tokenType:void 0,txType:0,groupTokenId:"",isInvalid:!1,burnSummary:"",failedColorings:[],actualBurnAtoms:"",intentionalBurnAtoms:BigInt("0"),burnsMintBatons:!1}}function D(){return{tokenTicker:new Uint8Array(0),tokenName:new Uint8Array(0),url:new Uint8Array(0),hash:new Uint8Array(0),mintVaultScripthash:new Uint8Array(0),data:new Uint8Array(0),authPubkey:new Uint8Array(0),decimals:0}}function q(){return{tokenId:"",tokenType:void 0,entryIdx:0,atoms:BigInt("0"),isMintBaton:!1,capabilities:0,commitment:new Uint8Array(0)}}function U(){return{pushdataIdx:0,bytes:new Uint8Array(0),error:""}}function F(){return{group:new Uint8Array(0)}}function j(){return{groups:[],nextStart:new Uint8Array(0)}}function H(){return{script:new Uint8Array(0),utxos:[]}}function z(){return{rawTx:new Uint8Array(0),skipTokenChecks:!1}}function W(){return{txid:new Uint8Array(0)}}function V(){return{rawTx:new Uint8Array(0)}}function G(){return{scriptType:"",payload:new Uint8Array(0)}}function K(){return{lokadId:new Uint8Array(0)}}function Z(){return{pluginName:"",group:new Uint8Array(0)}}function J(){return{coinbaseScriptsig:new Uint8Array(0),coinbaseOutputs:[]}}function X(){return{msgType:0,blockHash:new Uint8Array(0),blockHeight:0,blockTimestamp:BigInt("0"),coinbaseData:void 0}}function Q(){return{msgType:0,txid:new Uint8Array(0),finalizationReason:void 0}}function Y(e){if(globalThis.Buffer)return Uint8Array.from(globalThis.Buffer.from(e,"base64"));{const t=globalThis.atob(e),r=new Uint8Array(t.length);for(let e=0;e{t.push(globalThis.String.fromCharCode(e))}),globalThis.btoa(t.join(""))}}function te(e){return BigInt(e.toString())}function re(e){return"object"==typeof e&&null!==e}function ne(e){return null!=e}e.protobufPackage="chronik",function(e){e[e.TOKEN_STATUS_NON_TOKEN=0]="TOKEN_STATUS_NON_TOKEN",e[e.TOKEN_STATUS_NORMAL=1]="TOKEN_STATUS_NORMAL",e[e.TOKEN_STATUS_NOT_NORMAL=2]="TOKEN_STATUS_NOT_NORMAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.TokenStatus||(e.TokenStatus={})),e.tokenStatusFromJSON=d,e.tokenStatusToJSON=f,function(e){e[e.ALP_TOKEN_TYPE_STANDARD=0]="ALP_TOKEN_TYPE_STANDARD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=e.AlpTokenType||(e.AlpTokenType={})),e.alpTokenTypeFromJSON=p,e.alpTokenTypeToJSON=h,function(e){e[e.SLP_TOKEN_TYPE_NONE=0]="SLP_TOKEN_TYPE_NONE",e[e.SLP_TOKEN_TYPE_FUNGIBLE=1]="SLP_TOKEN_TYPE_FUNGIBLE",e[e.SLP_TOKEN_TYPE_MINT_VAULT=2]="SLP_TOKEN_TYPE_MINT_VAULT",e[e.SLP_TOKEN_TYPE_NFT1_GROUP=129]="SLP_TOKEN_TYPE_NFT1_GROUP",e[e.SLP_TOKEN_TYPE_NFT1_CHILD=65]="SLP_TOKEN_TYPE_NFT1_CHILD",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.SlpTokenType||(e.SlpTokenType={})),e.slpTokenTypeFromJSON=m,e.slpTokenTypeToJSON=g,function(e){e[e.NONE=0]="NONE",e[e.UNKNOWN=1]="UNKNOWN",e[e.GENESIS=2]="GENESIS",e[e.SEND=3]="SEND",e[e.MINT=4]="MINT",e[e.BURN=5]="BURN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(a=e.TokenTxType||(e.TokenTxType={})),e.tokenTxTypeFromJSON=y,e.tokenTxTypeToJSON=A,function(e){e[e.BLK_CONNECTED=0]="BLK_CONNECTED",e[e.BLK_DISCONNECTED=1]="BLK_DISCONNECTED",e[e.BLK_FINALIZED=2]="BLK_FINALIZED",e[e.BLK_INVALIDATED=3]="BLK_INVALIDATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(l=e.BlockMsgType||(e.BlockMsgType={})),e.blockMsgTypeFromJSON=b,e.blockMsgTypeToJSON=v,function(e){e[e.TX_FINALIZATION_REASON_POST_CONSENSUS=0]="TX_FINALIZATION_REASON_POST_CONSENSUS",e[e.TX_FINALIZATION_REASON_PRE_CONSENSUS=1]="TX_FINALIZATION_REASON_PRE_CONSENSUS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.TxFinalizationReasonType||(e.TxFinalizationReasonType={})),e.txFinalizationReasonTypeFromJSON=w,e.txFinalizationReasonTypeToJSON=S,function(e){e[e.TX_ADDED_TO_MEMPOOL=0]="TX_ADDED_TO_MEMPOOL",e[e.TX_REMOVED_FROM_MEMPOOL=1]="TX_REMOVED_FROM_MEMPOOL",e[e.TX_CONFIRMED=2]="TX_CONFIRMED",e[e.TX_FINALIZED=3]="TX_FINALIZED",e[e.TX_INVALIDATED=4]="TX_INVALIDATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=e.TxMsgType||(e.TxMsgType={})),e.txMsgTypeFromJSON=_,e.txMsgTypeToJSON=x,e.Block={encode:(t,r=n.default.Writer.create())=>(void 0!==t.blockInfo&&e.BlockInfo.encode(t.blockInfo,r.uint32(10).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={blockInfo:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.blockInfo=e.BlockInfo.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({blockInfo:ne(t.blockInfo)?e.BlockInfo.fromJSON(t.blockInfo):void 0}),toJSON(t){const r={};return void 0!==t.blockInfo&&(r.blockInfo=e.BlockInfo.toJSON(t.blockInfo)),r},create:t=>e.Block.fromPartial(t??{}),fromPartial(t){const r={blockInfo:void 0};return r.blockInfo=void 0!==t.blockInfo&&null!==t.blockInfo?e.BlockInfo.fromPartial(t.blockInfo):void 0,r}},e.Blocks={encode(t,r=n.default.Writer.create()){for(const n of t.blocks)e.BlockInfo.encode(n,r.uint32(10).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={blocks:[]};for(;o.pos>>3){case 1:if(10!==t)break;s.blocks.push(e.BlockInfo.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({blocks:globalThis.Array.isArray(t?.blocks)?t.blocks.map(t=>e.BlockInfo.fromJSON(t)):[]}),toJSON(t){const r={};return t.blocks?.length&&(r.blocks=t.blocks.map(t=>e.BlockInfo.toJSON(t))),r},create:t=>e.Blocks.fromPartial(t??{}),fromPartial(t){const r={blocks:[]};return r.blocks=t.blocks?.map(t=>e.BlockInfo.fromPartial(t))||[],r}},e.BlockHeader={encode(e,t=n.default.Writer.create()){0!==e.rawHeader.length&&t.uint32(10).bytes(e.rawHeader),0!==e.root.length&&t.uint32(18).bytes(e.root);for(const r of e.branch)t.uint32(26).bytes(r);return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=E();for(;r.pos>>3){case 1:if(10!==e)break;i.rawHeader=r.bytes();continue;case 2:if(18!==e)break;i.root=r.bytes();continue;case 3:if(26!==e)break;i.branch.push(r.bytes());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawHeader:ne(e.rawHeader)?Y(e.rawHeader):new Uint8Array(0),root:ne(e.root)?Y(e.root):new Uint8Array(0),branch:globalThis.Array.isArray(e?.branch)?e.branch.map(e=>Y(e)):[]}),toJSON(e){const t={};return 0!==e.rawHeader.length&&(t.rawHeader=ee(e.rawHeader)),0!==e.root.length&&(t.root=ee(e.root)),e.branch?.length&&(t.branch=e.branch.map(e=>ee(e))),t},create:t=>e.BlockHeader.fromPartial(t??{}),fromPartial(e){const t=E();return t.rawHeader=e.rawHeader??new Uint8Array(0),t.root=e.root??new Uint8Array(0),t.branch=e.branch?.map(e=>e)||[],t}},e.BlockHeaders={encode(t,r=n.default.Writer.create()){for(const n of t.headers)e.BlockHeader.encode(n,r.uint32(10).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={headers:[]};for(;o.pos>>3){case 1:if(10!==t)break;s.headers.push(e.BlockHeader.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({headers:globalThis.Array.isArray(t?.headers)?t.headers.map(t=>e.BlockHeader.fromJSON(t)):[]}),toJSON(t){const r={};return t.headers?.length&&(r.headers=t.headers.map(t=>e.BlockHeader.toJSON(t))),r},create:t=>e.BlockHeaders.fromPartial(t??{}),fromPartial(t){const r={headers:[]};return r.headers=t.headers?.map(t=>e.BlockHeader.fromPartial(t))||[],r}},e.BlockchainInfo={encode:(e,t=n.default.Writer.create())=>(0!==e.tipHash.length&&t.uint32(10).bytes(e.tipHash),0!==e.tipHeight&&t.uint32(16).int32(e.tipHeight),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=k();for(;r.pos>>3){case 1:if(10!==e)break;i.tipHash=r.bytes();continue;case 2:if(16!==e)break;i.tipHeight=r.int32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({tipHash:ne(e.tipHash)?Y(e.tipHash):new Uint8Array(0),tipHeight:ne(e.tipHeight)?globalThis.Number(e.tipHeight):0}),toJSON(e){const t={};return 0!==e.tipHash.length&&(t.tipHash=ee(e.tipHash)),0!==e.tipHeight&&(t.tipHeight=Math.round(e.tipHeight)),t},create:t=>e.BlockchainInfo.fromPartial(t??{}),fromPartial(e){const t=k();return t.tipHash=e.tipHash??new Uint8Array(0),t.tipHeight=e.tipHeight??0,t}},e.ChronikInfo={encode:(e,t=n.default.Writer.create())=>(""!==e.version&&t.uint32(10).string(e.version),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={version:""};for(;r.pos>>3){case 1:if(10!==e)break;i.version=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({version:ne(e.version)?globalThis.String(e.version):""}),toJSON(e){const t={};return""!==e.version&&(t.version=e.version),t},create:t=>e.ChronikInfo.fromPartial(t??{}),fromPartial(e){const t={version:""};return t.version=e.version??"",t}},e.BlockInfo={encode(e,t=n.default.Writer.create()){if(0!==e.hash.length&&t.uint32(10).bytes(e.hash),0!==e.prevHash.length&&t.uint32(18).bytes(e.prevHash),0!==e.height&&t.uint32(24).int32(e.height),0!==e.nBits&&t.uint32(32).uint32(e.nBits),e.timestamp!==BigInt("0")){if(BigInt.asIntN(64,e.timestamp)!==e.timestamp)throw new globalThis.Error("value provided for field message.timestamp of type int64 too large");t.uint32(40).int64(e.timestamp.toString())}if(!0===e.isFinal&&t.uint32(112).bool(e.isFinal),e.blockSize!==BigInt("0")){if(BigInt.asUintN(64,e.blockSize)!==e.blockSize)throw new globalThis.Error("value provided for field message.blockSize of type uint64 too large");t.uint32(48).uint64(e.blockSize.toString())}if(e.numTxs!==BigInt("0")){if(BigInt.asUintN(64,e.numTxs)!==e.numTxs)throw new globalThis.Error("value provided for field message.numTxs of type uint64 too large");t.uint32(56).uint64(e.numTxs.toString())}if(e.numInputs!==BigInt("0")){if(BigInt.asUintN(64,e.numInputs)!==e.numInputs)throw new globalThis.Error("value provided for field message.numInputs of type uint64 too large");t.uint32(64).uint64(e.numInputs.toString())}if(e.numOutputs!==BigInt("0")){if(BigInt.asUintN(64,e.numOutputs)!==e.numOutputs)throw new globalThis.Error("value provided for field message.numOutputs of type uint64 too large");t.uint32(72).uint64(e.numOutputs.toString())}if(e.sumInputSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumInputSats)!==e.sumInputSats)throw new globalThis.Error("value provided for field message.sumInputSats of type int64 too large");t.uint32(80).int64(e.sumInputSats.toString())}if(e.sumCoinbaseOutputSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumCoinbaseOutputSats)!==e.sumCoinbaseOutputSats)throw new globalThis.Error("value provided for field message.sumCoinbaseOutputSats of type int64 too large");t.uint32(88).int64(e.sumCoinbaseOutputSats.toString())}if(e.sumNormalOutputSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumNormalOutputSats)!==e.sumNormalOutputSats)throw new globalThis.Error("value provided for field message.sumNormalOutputSats of type int64 too large");t.uint32(96).int64(e.sumNormalOutputSats.toString())}if(e.sumBurnedSats!==BigInt("0")){if(BigInt.asIntN(64,e.sumBurnedSats)!==e.sumBurnedSats)throw new globalThis.Error("value provided for field message.sumBurnedSats of type int64 too large");t.uint32(104).int64(e.sumBurnedSats.toString())}return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=T();for(;r.pos>>3){case 1:if(10!==e)break;i.hash=r.bytes();continue;case 2:if(18!==e)break;i.prevHash=r.bytes();continue;case 3:if(24!==e)break;i.height=r.int32();continue;case 4:if(32!==e)break;i.nBits=r.uint32();continue;case 5:if(40!==e)break;i.timestamp=te(r.int64());continue;case 14:if(112!==e)break;i.isFinal=r.bool();continue;case 6:if(48!==e)break;i.blockSize=te(r.uint64());continue;case 7:if(56!==e)break;i.numTxs=te(r.uint64());continue;case 8:if(64!==e)break;i.numInputs=te(r.uint64());continue;case 9:if(72!==e)break;i.numOutputs=te(r.uint64());continue;case 10:if(80!==e)break;i.sumInputSats=te(r.int64());continue;case 11:if(88!==e)break;i.sumCoinbaseOutputSats=te(r.int64());continue;case 12:if(96!==e)break;i.sumNormalOutputSats=te(r.int64());continue;case 13:if(104!==e)break;i.sumBurnedSats=te(r.int64());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({hash:ne(e.hash)?Y(e.hash):new Uint8Array(0),prevHash:ne(e.prevHash)?Y(e.prevHash):new Uint8Array(0),height:ne(e.height)?globalThis.Number(e.height):0,nBits:ne(e.nBits)?globalThis.Number(e.nBits):0,timestamp:ne(e.timestamp)?BigInt(e.timestamp):BigInt("0"),isFinal:!!ne(e.isFinal)&&globalThis.Boolean(e.isFinal),blockSize:ne(e.blockSize)?BigInt(e.blockSize):BigInt("0"),numTxs:ne(e.numTxs)?BigInt(e.numTxs):BigInt("0"),numInputs:ne(e.numInputs)?BigInt(e.numInputs):BigInt("0"),numOutputs:ne(e.numOutputs)?BigInt(e.numOutputs):BigInt("0"),sumInputSats:ne(e.sumInputSats)?BigInt(e.sumInputSats):BigInt("0"),sumCoinbaseOutputSats:ne(e.sumCoinbaseOutputSats)?BigInt(e.sumCoinbaseOutputSats):BigInt("0"),sumNormalOutputSats:ne(e.sumNormalOutputSats)?BigInt(e.sumNormalOutputSats):BigInt("0"),sumBurnedSats:ne(e.sumBurnedSats)?BigInt(e.sumBurnedSats):BigInt("0")}),toJSON(e){const t={};return 0!==e.hash.length&&(t.hash=ee(e.hash)),0!==e.prevHash.length&&(t.prevHash=ee(e.prevHash)),0!==e.height&&(t.height=Math.round(e.height)),0!==e.nBits&&(t.nBits=Math.round(e.nBits)),e.timestamp!==BigInt("0")&&(t.timestamp=e.timestamp.toString()),!0===e.isFinal&&(t.isFinal=e.isFinal),e.blockSize!==BigInt("0")&&(t.blockSize=e.blockSize.toString()),e.numTxs!==BigInt("0")&&(t.numTxs=e.numTxs.toString()),e.numInputs!==BigInt("0")&&(t.numInputs=e.numInputs.toString()),e.numOutputs!==BigInt("0")&&(t.numOutputs=e.numOutputs.toString()),e.sumInputSats!==BigInt("0")&&(t.sumInputSats=e.sumInputSats.toString()),e.sumCoinbaseOutputSats!==BigInt("0")&&(t.sumCoinbaseOutputSats=e.sumCoinbaseOutputSats.toString()),e.sumNormalOutputSats!==BigInt("0")&&(t.sumNormalOutputSats=e.sumNormalOutputSats.toString()),e.sumBurnedSats!==BigInt("0")&&(t.sumBurnedSats=e.sumBurnedSats.toString()),t},create:t=>e.BlockInfo.fromPartial(t??{}),fromPartial(e){const t=T();return t.hash=e.hash??new Uint8Array(0),t.prevHash=e.prevHash??new Uint8Array(0),t.height=e.height??0,t.nBits=e.nBits??0,t.timestamp=e.timestamp??BigInt("0"),t.isFinal=e.isFinal??!1,t.blockSize=e.blockSize??BigInt("0"),t.numTxs=e.numTxs??BigInt("0"),t.numInputs=e.numInputs??BigInt("0"),t.numOutputs=e.numOutputs??BigInt("0"),t.sumInputSats=e.sumInputSats??BigInt("0"),t.sumCoinbaseOutputSats=e.sumCoinbaseOutputSats??BigInt("0"),t.sumNormalOutputSats=e.sumNormalOutputSats??BigInt("0"),t.sumBurnedSats=e.sumBurnedSats??BigInt("0"),t}},e.Tx={encode(t,r=n.default.Writer.create()){0!==t.txid.length&&r.uint32(10).bytes(t.txid),0!==t.version&&r.uint32(16).int32(t.version);for(const n of t.inputs)e.TxInput.encode(n,r.uint32(26).fork()).ldelim();for(const n of t.outputs)e.TxOutput.encode(n,r.uint32(34).fork()).ldelim();if(0!==t.lockTime&&r.uint32(40).uint32(t.lockTime),void 0!==t.block&&e.BlockMetadata.encode(t.block,r.uint32(66).fork()).ldelim(),t.timeFirstSeen!==BigInt("0")){if(BigInt.asIntN(64,t.timeFirstSeen)!==t.timeFirstSeen)throw new globalThis.Error("value provided for field message.timeFirstSeen of type int64 too large");r.uint32(72).int64(t.timeFirstSeen.toString())}0!==t.size&&r.uint32(88).uint32(t.size),!0===t.isCoinbase&&r.uint32(96).bool(t.isCoinbase);for(const n of t.tokenEntries)e.TokenEntry.encode(n,r.uint32(106).fork()).ldelim();for(const n of t.tokenFailedParsings)e.TokenFailedParsing.encode(n,r.uint32(114).fork()).ldelim();return 0!==t.tokenStatus&&r.uint32(120).int32(t.tokenStatus),!0===t.isFinal&&r.uint32(128).bool(t.isFinal),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=R();for(;o.pos>>3){case 1:if(10!==t)break;s.txid=o.bytes();continue;case 2:if(16!==t)break;s.version=o.int32();continue;case 3:if(26!==t)break;s.inputs.push(e.TxInput.decode(o,o.uint32()));continue;case 4:if(34!==t)break;s.outputs.push(e.TxOutput.decode(o,o.uint32()));continue;case 5:if(40!==t)break;s.lockTime=o.uint32();continue;case 8:if(66!==t)break;s.block=e.BlockMetadata.decode(o,o.uint32());continue;case 9:if(72!==t)break;s.timeFirstSeen=te(o.int64());continue;case 11:if(88!==t)break;s.size=o.uint32();continue;case 12:if(96!==t)break;s.isCoinbase=o.bool();continue;case 13:if(106!==t)break;s.tokenEntries.push(e.TokenEntry.decode(o,o.uint32()));continue;case 14:if(114!==t)break;s.tokenFailedParsings.push(e.TokenFailedParsing.decode(o,o.uint32()));continue;case 15:if(120!==t)break;s.tokenStatus=o.int32();continue;case 16:if(128!==t)break;s.isFinal=o.bool();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({txid:ne(t.txid)?Y(t.txid):new Uint8Array(0),version:ne(t.version)?globalThis.Number(t.version):0,inputs:globalThis.Array.isArray(t?.inputs)?t.inputs.map(t=>e.TxInput.fromJSON(t)):[],outputs:globalThis.Array.isArray(t?.outputs)?t.outputs.map(t=>e.TxOutput.fromJSON(t)):[],lockTime:ne(t.lockTime)?globalThis.Number(t.lockTime):0,block:ne(t.block)?e.BlockMetadata.fromJSON(t.block):void 0,timeFirstSeen:ne(t.timeFirstSeen)?BigInt(t.timeFirstSeen):BigInt("0"),size:ne(t.size)?globalThis.Number(t.size):0,isCoinbase:!!ne(t.isCoinbase)&&globalThis.Boolean(t.isCoinbase),tokenEntries:globalThis.Array.isArray(t?.tokenEntries)?t.tokenEntries.map(t=>e.TokenEntry.fromJSON(t)):[],tokenFailedParsings:globalThis.Array.isArray(t?.tokenFailedParsings)?t.tokenFailedParsings.map(t=>e.TokenFailedParsing.fromJSON(t)):[],tokenStatus:ne(t.tokenStatus)?d(t.tokenStatus):0,isFinal:!!ne(t.isFinal)&&globalThis.Boolean(t.isFinal)}),toJSON(t){const r={};return 0!==t.txid.length&&(r.txid=ee(t.txid)),0!==t.version&&(r.version=Math.round(t.version)),t.inputs?.length&&(r.inputs=t.inputs.map(t=>e.TxInput.toJSON(t))),t.outputs?.length&&(r.outputs=t.outputs.map(t=>e.TxOutput.toJSON(t))),0!==t.lockTime&&(r.lockTime=Math.round(t.lockTime)),void 0!==t.block&&(r.block=e.BlockMetadata.toJSON(t.block)),t.timeFirstSeen!==BigInt("0")&&(r.timeFirstSeen=t.timeFirstSeen.toString()),0!==t.size&&(r.size=Math.round(t.size)),!0===t.isCoinbase&&(r.isCoinbase=t.isCoinbase),t.tokenEntries?.length&&(r.tokenEntries=t.tokenEntries.map(t=>e.TokenEntry.toJSON(t))),t.tokenFailedParsings?.length&&(r.tokenFailedParsings=t.tokenFailedParsings.map(t=>e.TokenFailedParsing.toJSON(t))),0!==t.tokenStatus&&(r.tokenStatus=f(t.tokenStatus)),!0===t.isFinal&&(r.isFinal=t.isFinal),r},create:t=>e.Tx.fromPartial(t??{}),fromPartial(t){const r=R();return r.txid=t.txid??new Uint8Array(0),r.version=t.version??0,r.inputs=t.inputs?.map(t=>e.TxInput.fromPartial(t))||[],r.outputs=t.outputs?.map(t=>e.TxOutput.fromPartial(t))||[],r.lockTime=t.lockTime??0,r.block=void 0!==t.block&&null!==t.block?e.BlockMetadata.fromPartial(t.block):void 0,r.timeFirstSeen=t.timeFirstSeen??BigInt("0"),r.size=t.size??0,r.isCoinbase=t.isCoinbase??!1,r.tokenEntries=t.tokenEntries?.map(t=>e.TokenEntry.fromPartial(t))||[],r.tokenFailedParsings=t.tokenFailedParsings?.map(t=>e.TokenFailedParsing.fromPartial(t))||[],r.tokenStatus=t.tokenStatus??0,r.isFinal=t.isFinal??!1,r}},e.ScriptUtxo={encode(t,r=n.default.Writer.create()){if(void 0!==t.outpoint&&e.OutPoint.encode(t.outpoint,r.uint32(10).fork()).ldelim(),0!==t.blockHeight&&r.uint32(16).int32(t.blockHeight),!0===t.isCoinbase&&r.uint32(24).bool(t.isCoinbase),t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(40).int64(t.sats.toString())}return!0===t.isFinal&&r.uint32(80).bool(t.isFinal),void 0!==t.token&&e.Token.encode(t.token,r.uint32(90).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.ScriptUtxo_PluginsEntry.encode({key:t,value:n},r.uint32(98).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=C();for(;o.pos>>3){case 1:if(10!==t)break;s.outpoint=e.OutPoint.decode(o,o.uint32());continue;case 2:if(16!==t)break;s.blockHeight=o.int32();continue;case 3:if(24!==t)break;s.isCoinbase=o.bool();continue;case 5:if(40!==t)break;s.sats=te(o.int64());continue;case 10:if(80!==t)break;s.isFinal=o.bool();continue;case 11:if(90!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 12:if(98!==t)break;const r=e.ScriptUtxo_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({outpoint:ne(t.outpoint)?e.OutPoint.fromJSON(t.outpoint):void 0,blockHeight:ne(t.blockHeight)?globalThis.Number(t.blockHeight):0,isCoinbase:!!ne(t.isCoinbase)&&globalThis.Boolean(t.isCoinbase),sats:ne(t.sats)?BigInt(t.sats):BigInt("0"),isFinal:!!ne(t.isFinal)&&globalThis.Boolean(t.isFinal),token:ne(t.token)?e.Token.fromJSON(t.token):void 0,plugins:re(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(void 0!==t.outpoint&&(r.outpoint=e.OutPoint.toJSON(t.outpoint)),0!==t.blockHeight&&(r.blockHeight=Math.round(t.blockHeight)),!0===t.isCoinbase&&(r.isCoinbase=t.isCoinbase),t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),!0===t.isFinal&&(r.isFinal=t.isFinal),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.ScriptUtxo.fromPartial(t??{}),fromPartial(t){const r=C();return r.outpoint=void 0!==t.outpoint&&null!==t.outpoint?e.OutPoint.fromPartial(t.outpoint):void 0,r.blockHeight=t.blockHeight??0,r.isCoinbase=t.isCoinbase??!1,r.sats=t.sats??BigInt("0"),r.isFinal=t.isFinal??!1,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.ScriptUtxo_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ne(t.key)?globalThis.String(t.key):"",value:ne(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.ScriptUtxo_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.Utxo={encode(t,r=n.default.Writer.create()){if(void 0!==t.outpoint&&e.OutPoint.encode(t.outpoint,r.uint32(10).fork()).ldelim(),0!==t.blockHeight&&r.uint32(16).int32(t.blockHeight),!0===t.isCoinbase&&r.uint32(24).bool(t.isCoinbase),t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(32).int64(t.sats.toString())}return 0!==t.script.length&&r.uint32(42).bytes(t.script),!0===t.isFinal&&r.uint32(48).bool(t.isFinal),void 0!==t.token&&e.Token.encode(t.token,r.uint32(58).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.Utxo_PluginsEntry.encode({key:t,value:n},r.uint32(66).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=B();for(;o.pos>>3){case 1:if(10!==t)break;s.outpoint=e.OutPoint.decode(o,o.uint32());continue;case 2:if(16!==t)break;s.blockHeight=o.int32();continue;case 3:if(24!==t)break;s.isCoinbase=o.bool();continue;case 4:if(32!==t)break;s.sats=te(o.int64());continue;case 5:if(42!==t)break;s.script=o.bytes();continue;case 6:if(48!==t)break;s.isFinal=o.bool();continue;case 7:if(58!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 8:if(66!==t)break;const r=e.Utxo_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({outpoint:ne(t.outpoint)?e.OutPoint.fromJSON(t.outpoint):void 0,blockHeight:ne(t.blockHeight)?globalThis.Number(t.blockHeight):0,isCoinbase:!!ne(t.isCoinbase)&&globalThis.Boolean(t.isCoinbase),sats:ne(t.sats)?BigInt(t.sats):BigInt("0"),script:ne(t.script)?Y(t.script):new Uint8Array(0),isFinal:!!ne(t.isFinal)&&globalThis.Boolean(t.isFinal),token:ne(t.token)?e.Token.fromJSON(t.token):void 0,plugins:re(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(void 0!==t.outpoint&&(r.outpoint=e.OutPoint.toJSON(t.outpoint)),0!==t.blockHeight&&(r.blockHeight=Math.round(t.blockHeight)),!0===t.isCoinbase&&(r.isCoinbase=t.isCoinbase),t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),0!==t.script.length&&(r.script=ee(t.script)),!0===t.isFinal&&(r.isFinal=t.isFinal),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.Utxo.fromPartial(t??{}),fromPartial(t){const r=B();return r.outpoint=void 0!==t.outpoint&&null!==t.outpoint?e.OutPoint.fromPartial(t.outpoint):void 0,r.blockHeight=t.blockHeight??0,r.isCoinbase=t.isCoinbase??!1,r.sats=t.sats??BigInt("0"),r.script=t.script??new Uint8Array(0),r.isFinal=t.isFinal??!1,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.Utxo_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ne(t.key)?globalThis.String(t.key):"",value:ne(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.Utxo_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.OutPoint={encode:(e,t=n.default.Writer.create())=>(0!==e.txid.length&&t.uint32(10).bytes(e.txid),0!==e.outIdx&&t.uint32(16).uint32(e.outIdx),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=O();for(;r.pos>>3){case 1:if(10!==e)break;i.txid=r.bytes();continue;case 2:if(16!==e)break;i.outIdx=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txid:ne(e.txid)?Y(e.txid):new Uint8Array(0),outIdx:ne(e.outIdx)?globalThis.Number(e.outIdx):0}),toJSON(e){const t={};return 0!==e.txid.length&&(t.txid=ee(e.txid)),0!==e.outIdx&&(t.outIdx=Math.round(e.outIdx)),t},create:t=>e.OutPoint.fromPartial(t??{}),fromPartial(e){const t=O();return t.txid=e.txid??new Uint8Array(0),t.outIdx=e.outIdx??0,t}},e.SpentBy={encode:(e,t=n.default.Writer.create())=>(0!==e.txid.length&&t.uint32(10).bytes(e.txid),0!==e.inputIdx&&t.uint32(16).uint32(e.inputIdx),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=I();for(;r.pos>>3){case 1:if(10!==e)break;i.txid=r.bytes();continue;case 2:if(16!==e)break;i.inputIdx=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txid:ne(e.txid)?Y(e.txid):new Uint8Array(0),inputIdx:ne(e.inputIdx)?globalThis.Number(e.inputIdx):0}),toJSON(e){const t={};return 0!==e.txid.length&&(t.txid=ee(e.txid)),0!==e.inputIdx&&(t.inputIdx=Math.round(e.inputIdx)),t},create:t=>e.SpentBy.fromPartial(t??{}),fromPartial(e){const t=I();return t.txid=e.txid??new Uint8Array(0),t.inputIdx=e.inputIdx??0,t}},e.TxInput={encode(t,r=n.default.Writer.create()){if(void 0!==t.prevOut&&e.OutPoint.encode(t.prevOut,r.uint32(10).fork()).ldelim(),0!==t.inputScript.length&&r.uint32(18).bytes(t.inputScript),0!==t.outputScript.length&&r.uint32(26).bytes(t.outputScript),t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(32).int64(t.sats.toString())}return 0!==t.sequenceNo&&r.uint32(40).uint32(t.sequenceNo),void 0!==t.token&&e.Token.encode(t.token,r.uint32(66).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.TxInput_PluginsEntry.encode({key:t,value:n},r.uint32(74).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=P();for(;o.pos>>3){case 1:if(10!==t)break;s.prevOut=e.OutPoint.decode(o,o.uint32());continue;case 2:if(18!==t)break;s.inputScript=o.bytes();continue;case 3:if(26!==t)break;s.outputScript=o.bytes();continue;case 4:if(32!==t)break;s.sats=te(o.int64());continue;case 5:if(40!==t)break;s.sequenceNo=o.uint32();continue;case 8:if(66!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 9:if(74!==t)break;const r=e.TxInput_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({prevOut:ne(t.prevOut)?e.OutPoint.fromJSON(t.prevOut):void 0,inputScript:ne(t.inputScript)?Y(t.inputScript):new Uint8Array(0),outputScript:ne(t.outputScript)?Y(t.outputScript):new Uint8Array(0),sats:ne(t.sats)?BigInt(t.sats):BigInt("0"),sequenceNo:ne(t.sequenceNo)?globalThis.Number(t.sequenceNo):0,token:ne(t.token)?e.Token.fromJSON(t.token):void 0,plugins:re(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(void 0!==t.prevOut&&(r.prevOut=e.OutPoint.toJSON(t.prevOut)),0!==t.inputScript.length&&(r.inputScript=ee(t.inputScript)),0!==t.outputScript.length&&(r.outputScript=ee(t.outputScript)),t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),0!==t.sequenceNo&&(r.sequenceNo=Math.round(t.sequenceNo)),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.TxInput.fromPartial(t??{}),fromPartial(t){const r=P();return r.prevOut=void 0!==t.prevOut&&null!==t.prevOut?e.OutPoint.fromPartial(t.prevOut):void 0,r.inputScript=t.inputScript??new Uint8Array(0),r.outputScript=t.outputScript??new Uint8Array(0),r.sats=t.sats??BigInt("0"),r.sequenceNo=t.sequenceNo??0,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.TxInput_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ne(t.key)?globalThis.String(t.key):"",value:ne(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.TxInput_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.TxOutput={encode(t,r=n.default.Writer.create()){if(t.sats!==BigInt("0")){if(BigInt.asIntN(64,t.sats)!==t.sats)throw new globalThis.Error("value provided for field message.sats of type int64 too large");r.uint32(8).int64(t.sats.toString())}return 0!==t.outputScript.length&&r.uint32(18).bytes(t.outputScript),void 0!==t.spentBy&&e.SpentBy.encode(t.spentBy,r.uint32(34).fork()).ldelim(),void 0!==t.token&&e.Token.encode(t.token,r.uint32(42).fork()).ldelim(),Object.entries(t.plugins).forEach(([t,n])=>{e.TxOutput_PluginsEntry.encode({key:t,value:n},r.uint32(50).fork()).ldelim()}),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=$();for(;o.pos>>3){case 1:if(8!==t)break;s.sats=te(o.int64());continue;case 2:if(18!==t)break;s.outputScript=o.bytes();continue;case 4:if(34!==t)break;s.spentBy=e.SpentBy.decode(o,o.uint32());continue;case 5:if(42!==t)break;s.token=e.Token.decode(o,o.uint32());continue;case 6:if(50!==t)break;const r=e.TxOutput_PluginsEntry.decode(o,o.uint32());void 0!==r.value&&(s.plugins[r.key]=r.value);continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({sats:ne(t.sats)?BigInt(t.sats):BigInt("0"),outputScript:ne(t.outputScript)?Y(t.outputScript):new Uint8Array(0),spentBy:ne(t.spentBy)?e.SpentBy.fromJSON(t.spentBy):void 0,token:ne(t.token)?e.Token.fromJSON(t.token):void 0,plugins:re(t.plugins)?Object.entries(t.plugins).reduce((t,[r,n])=>(t[r]=e.PluginEntry.fromJSON(n),t),{}):{}}),toJSON(t){const r={};if(t.sats!==BigInt("0")&&(r.sats=t.sats.toString()),0!==t.outputScript.length&&(r.outputScript=ee(t.outputScript)),void 0!==t.spentBy&&(r.spentBy=e.SpentBy.toJSON(t.spentBy)),void 0!==t.token&&(r.token=e.Token.toJSON(t.token)),t.plugins){const n=Object.entries(t.plugins);n.length>0&&(r.plugins={},n.forEach(([t,n])=>{r.plugins[t]=e.PluginEntry.toJSON(n)}))}return r},create:t=>e.TxOutput.fromPartial(t??{}),fromPartial(t){const r=$();return r.sats=t.sats??BigInt("0"),r.outputScript=t.outputScript??new Uint8Array(0),r.spentBy=void 0!==t.spentBy&&null!==t.spentBy?e.SpentBy.fromPartial(t.spentBy):void 0,r.token=void 0!==t.token&&null!==t.token?e.Token.fromPartial(t.token):void 0,r.plugins=Object.entries(t.plugins??{}).reduce((t,[r,n])=>(void 0!==n&&(t[r]=e.PluginEntry.fromPartial(n)),t),{}),r}},e.TxOutput_PluginsEntry={encode:(t,r=n.default.Writer.create())=>(""!==t.key&&r.uint32(10).string(t.key),void 0!==t.value&&e.PluginEntry.encode(t.value,r.uint32(18).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={key:"",value:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.key=o.string();continue;case 2:if(18!==t)break;s.value=e.PluginEntry.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({key:ne(t.key)?globalThis.String(t.key):"",value:ne(t.value)?e.PluginEntry.fromJSON(t.value):void 0}),toJSON(t){const r={};return""!==t.key&&(r.key=t.key),void 0!==t.value&&(r.value=e.PluginEntry.toJSON(t.value)),r},create:t=>e.TxOutput_PluginsEntry.fromPartial(t??{}),fromPartial(t){const r={key:"",value:void 0};return r.key=t.key??"",r.value=void 0!==t.value&&null!==t.value?e.PluginEntry.fromPartial(t.value):void 0,r}},e.BlockMetadata={encode(e,t=n.default.Writer.create()){if(0!==e.height&&t.uint32(8).int32(e.height),0!==e.hash.length&&t.uint32(18).bytes(e.hash),e.timestamp!==BigInt("0")){if(BigInt.asIntN(64,e.timestamp)!==e.timestamp)throw new globalThis.Error("value provided for field message.timestamp of type int64 too large");t.uint32(24).int64(e.timestamp.toString())}return!0===e.isFinal&&t.uint32(32).bool(e.isFinal),t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=N();for(;r.pos>>3){case 1:if(8!==e)break;i.height=r.int32();continue;case 2:if(18!==e)break;i.hash=r.bytes();continue;case 3:if(24!==e)break;i.timestamp=te(r.int64());continue;case 4:if(32!==e)break;i.isFinal=r.bool();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({height:ne(e.height)?globalThis.Number(e.height):0,hash:ne(e.hash)?Y(e.hash):new Uint8Array(0),timestamp:ne(e.timestamp)?BigInt(e.timestamp):BigInt("0"),isFinal:!!ne(e.isFinal)&&globalThis.Boolean(e.isFinal)}),toJSON(e){const t={};return 0!==e.height&&(t.height=Math.round(e.height)),0!==e.hash.length&&(t.hash=ee(e.hash)),e.timestamp!==BigInt("0")&&(t.timestamp=e.timestamp.toString()),!0===e.isFinal&&(t.isFinal=e.isFinal),t},create:t=>e.BlockMetadata.fromPartial(t??{}),fromPartial(e){const t=N();return t.height=e.height??0,t.hash=e.hash??new Uint8Array(0),t.timestamp=e.timestamp??BigInt("0"),t.isFinal=e.isFinal??!1,t}},e.TokenType={encode:(t,r=n.default.Writer.create())=>(void 0!==t.slp&&r.uint32(8).int32(t.slp),void 0!==t.alp&&r.uint32(16).int32(t.alp),void 0!==t.cashTokens&&e.Empty.encode(t.cashTokens,r.uint32(26).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={slp:void 0,alp:void 0,cashTokens:void 0};for(;o.pos>>3){case 1:if(8!==t)break;s.slp=o.int32();continue;case 2:if(16!==t)break;s.alp=o.int32();continue;case 3:if(26!==t)break;s.cashTokens=e.Empty.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({slp:ne(t.slp)?m(t.slp):void 0,alp:ne(t.alp)?p(t.alp):void 0,cashTokens:ne(t.cashTokens)?e.Empty.fromJSON(t.cashTokens):void 0}),toJSON(t){const r={};return void 0!==t.slp&&(r.slp=g(t.slp)),void 0!==t.alp&&(r.alp=h(t.alp)),void 0!==t.cashTokens&&(r.cashTokens=e.Empty.toJSON(t.cashTokens)),r},create:t=>e.TokenType.fromPartial(t??{}),fromPartial(t){const r={slp:void 0,alp:void 0,cashTokens:void 0};return r.slp=t.slp??void 0,r.alp=t.alp??void 0,r.cashTokens=void 0!==t.cashTokens&&null!==t.cashTokens?e.Empty.fromPartial(t.cashTokens):void 0,r}},e.TokenInfo={encode(t,r=n.default.Writer.create()){if(""!==t.tokenId&&r.uint32(10).string(t.tokenId),void 0!==t.tokenType&&e.TokenType.encode(t.tokenType,r.uint32(18).fork()).ldelim(),void 0!==t.genesisInfo&&e.GenesisInfo.encode(t.genesisInfo,r.uint32(26).fork()).ldelim(),void 0!==t.block&&e.BlockMetadata.encode(t.block,r.uint32(34).fork()).ldelim(),t.timeFirstSeen!==BigInt("0")){if(BigInt.asIntN(64,t.timeFirstSeen)!==t.timeFirstSeen)throw new globalThis.Error("value provided for field message.timeFirstSeen of type int64 too large");r.uint32(40).int64(t.timeFirstSeen.toString())}return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=M();for(;o.pos>>3){case 1:if(10!==t)break;s.tokenId=o.string();continue;case 2:if(18!==t)break;s.tokenType=e.TokenType.decode(o,o.uint32());continue;case 3:if(26!==t)break;s.genesisInfo=e.GenesisInfo.decode(o,o.uint32());continue;case 4:if(34!==t)break;s.block=e.BlockMetadata.decode(o,o.uint32());continue;case 5:if(40!==t)break;s.timeFirstSeen=te(o.int64());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({tokenId:ne(t.tokenId)?globalThis.String(t.tokenId):"",tokenType:ne(t.tokenType)?e.TokenType.fromJSON(t.tokenType):void 0,genesisInfo:ne(t.genesisInfo)?e.GenesisInfo.fromJSON(t.genesisInfo):void 0,block:ne(t.block)?e.BlockMetadata.fromJSON(t.block):void 0,timeFirstSeen:ne(t.timeFirstSeen)?BigInt(t.timeFirstSeen):BigInt("0")}),toJSON(t){const r={};return""!==t.tokenId&&(r.tokenId=t.tokenId),void 0!==t.tokenType&&(r.tokenType=e.TokenType.toJSON(t.tokenType)),void 0!==t.genesisInfo&&(r.genesisInfo=e.GenesisInfo.toJSON(t.genesisInfo)),void 0!==t.block&&(r.block=e.BlockMetadata.toJSON(t.block)),t.timeFirstSeen!==BigInt("0")&&(r.timeFirstSeen=t.timeFirstSeen.toString()),r},create:t=>e.TokenInfo.fromPartial(t??{}),fromPartial(t){const r=M();return r.tokenId=t.tokenId??"",r.tokenType=void 0!==t.tokenType&&null!==t.tokenType?e.TokenType.fromPartial(t.tokenType):void 0,r.genesisInfo=void 0!==t.genesisInfo&&null!==t.genesisInfo?e.GenesisInfo.fromPartial(t.genesisInfo):void 0,r.block=void 0!==t.block&&null!==t.block?e.BlockMetadata.fromPartial(t.block):void 0,r.timeFirstSeen=t.timeFirstSeen??BigInt("0"),r}},e.TokenEntry={encode(t,r=n.default.Writer.create()){""!==t.tokenId&&r.uint32(10).string(t.tokenId),void 0!==t.tokenType&&e.TokenType.encode(t.tokenType,r.uint32(18).fork()).ldelim(),0!==t.txType&&r.uint32(24).int32(t.txType),""!==t.groupTokenId&&r.uint32(34).string(t.groupTokenId),!0===t.isInvalid&&r.uint32(40).bool(t.isInvalid),""!==t.burnSummary&&r.uint32(50).string(t.burnSummary);for(const n of t.failedColorings)e.TokenFailedColoring.encode(n,r.uint32(58).fork()).ldelim();if(""!==t.actualBurnAtoms&&r.uint32(66).string(t.actualBurnAtoms),t.intentionalBurnAtoms!==BigInt("0")){if(BigInt.asUintN(64,t.intentionalBurnAtoms)!==t.intentionalBurnAtoms)throw new globalThis.Error("value provided for field message.intentionalBurnAtoms of type uint64 too large");r.uint32(72).uint64(t.intentionalBurnAtoms.toString())}return!0===t.burnsMintBatons&&r.uint32(80).bool(t.burnsMintBatons),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=L();for(;o.pos>>3){case 1:if(10!==t)break;s.tokenId=o.string();continue;case 2:if(18!==t)break;s.tokenType=e.TokenType.decode(o,o.uint32());continue;case 3:if(24!==t)break;s.txType=o.int32();continue;case 4:if(34!==t)break;s.groupTokenId=o.string();continue;case 5:if(40!==t)break;s.isInvalid=o.bool();continue;case 6:if(50!==t)break;s.burnSummary=o.string();continue;case 7:if(58!==t)break;s.failedColorings.push(e.TokenFailedColoring.decode(o,o.uint32()));continue;case 8:if(66!==t)break;s.actualBurnAtoms=o.string();continue;case 9:if(72!==t)break;s.intentionalBurnAtoms=te(o.uint64());continue;case 10:if(80!==t)break;s.burnsMintBatons=o.bool();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({tokenId:ne(t.tokenId)?globalThis.String(t.tokenId):"",tokenType:ne(t.tokenType)?e.TokenType.fromJSON(t.tokenType):void 0,txType:ne(t.txType)?y(t.txType):0,groupTokenId:ne(t.groupTokenId)?globalThis.String(t.groupTokenId):"",isInvalid:!!ne(t.isInvalid)&&globalThis.Boolean(t.isInvalid),burnSummary:ne(t.burnSummary)?globalThis.String(t.burnSummary):"",failedColorings:globalThis.Array.isArray(t?.failedColorings)?t.failedColorings.map(t=>e.TokenFailedColoring.fromJSON(t)):[],actualBurnAtoms:ne(t.actualBurnAtoms)?globalThis.String(t.actualBurnAtoms):"",intentionalBurnAtoms:ne(t.intentionalBurnAtoms)?BigInt(t.intentionalBurnAtoms):BigInt("0"),burnsMintBatons:!!ne(t.burnsMintBatons)&&globalThis.Boolean(t.burnsMintBatons)}),toJSON(t){const r={};return""!==t.tokenId&&(r.tokenId=t.tokenId),void 0!==t.tokenType&&(r.tokenType=e.TokenType.toJSON(t.tokenType)),0!==t.txType&&(r.txType=A(t.txType)),""!==t.groupTokenId&&(r.groupTokenId=t.groupTokenId),!0===t.isInvalid&&(r.isInvalid=t.isInvalid),""!==t.burnSummary&&(r.burnSummary=t.burnSummary),t.failedColorings?.length&&(r.failedColorings=t.failedColorings.map(t=>e.TokenFailedColoring.toJSON(t))),""!==t.actualBurnAtoms&&(r.actualBurnAtoms=t.actualBurnAtoms),t.intentionalBurnAtoms!==BigInt("0")&&(r.intentionalBurnAtoms=t.intentionalBurnAtoms.toString()),!0===t.burnsMintBatons&&(r.burnsMintBatons=t.burnsMintBatons),r},create:t=>e.TokenEntry.fromPartial(t??{}),fromPartial(t){const r=L();return r.tokenId=t.tokenId??"",r.tokenType=void 0!==t.tokenType&&null!==t.tokenType?e.TokenType.fromPartial(t.tokenType):void 0,r.txType=t.txType??0,r.groupTokenId=t.groupTokenId??"",r.isInvalid=t.isInvalid??!1,r.burnSummary=t.burnSummary??"",r.failedColorings=t.failedColorings?.map(t=>e.TokenFailedColoring.fromPartial(t))||[],r.actualBurnAtoms=t.actualBurnAtoms??"",r.intentionalBurnAtoms=t.intentionalBurnAtoms??BigInt("0"),r.burnsMintBatons=t.burnsMintBatons??!1,r}},e.GenesisInfo={encode:(e,t=n.default.Writer.create())=>(0!==e.tokenTicker.length&&t.uint32(10).bytes(e.tokenTicker),0!==e.tokenName.length&&t.uint32(18).bytes(e.tokenName),0!==e.url.length&&t.uint32(26).bytes(e.url),0!==e.hash.length&&t.uint32(34).bytes(e.hash),0!==e.mintVaultScripthash.length&&t.uint32(42).bytes(e.mintVaultScripthash),0!==e.data.length&&t.uint32(50).bytes(e.data),0!==e.authPubkey.length&&t.uint32(58).bytes(e.authPubkey),0!==e.decimals&&t.uint32(64).uint32(e.decimals),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=D();for(;r.pos>>3){case 1:if(10!==e)break;i.tokenTicker=r.bytes();continue;case 2:if(18!==e)break;i.tokenName=r.bytes();continue;case 3:if(26!==e)break;i.url=r.bytes();continue;case 4:if(34!==e)break;i.hash=r.bytes();continue;case 5:if(42!==e)break;i.mintVaultScripthash=r.bytes();continue;case 6:if(50!==e)break;i.data=r.bytes();continue;case 7:if(58!==e)break;i.authPubkey=r.bytes();continue;case 8:if(64!==e)break;i.decimals=r.uint32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({tokenTicker:ne(e.tokenTicker)?Y(e.tokenTicker):new Uint8Array(0),tokenName:ne(e.tokenName)?Y(e.tokenName):new Uint8Array(0),url:ne(e.url)?Y(e.url):new Uint8Array(0),hash:ne(e.hash)?Y(e.hash):new Uint8Array(0),mintVaultScripthash:ne(e.mintVaultScripthash)?Y(e.mintVaultScripthash):new Uint8Array(0),data:ne(e.data)?Y(e.data):new Uint8Array(0),authPubkey:ne(e.authPubkey)?Y(e.authPubkey):new Uint8Array(0),decimals:ne(e.decimals)?globalThis.Number(e.decimals):0}),toJSON(e){const t={};return 0!==e.tokenTicker.length&&(t.tokenTicker=ee(e.tokenTicker)),0!==e.tokenName.length&&(t.tokenName=ee(e.tokenName)),0!==e.url.length&&(t.url=ee(e.url)),0!==e.hash.length&&(t.hash=ee(e.hash)),0!==e.mintVaultScripthash.length&&(t.mintVaultScripthash=ee(e.mintVaultScripthash)),0!==e.data.length&&(t.data=ee(e.data)),0!==e.authPubkey.length&&(t.authPubkey=ee(e.authPubkey)),0!==e.decimals&&(t.decimals=Math.round(e.decimals)),t},create:t=>e.GenesisInfo.fromPartial(t??{}),fromPartial(e){const t=D();return t.tokenTicker=e.tokenTicker??new Uint8Array(0),t.tokenName=e.tokenName??new Uint8Array(0),t.url=e.url??new Uint8Array(0),t.hash=e.hash??new Uint8Array(0),t.mintVaultScripthash=e.mintVaultScripthash??new Uint8Array(0),t.data=e.data??new Uint8Array(0),t.authPubkey=e.authPubkey??new Uint8Array(0),t.decimals=e.decimals??0,t}},e.Token={encode(t,r=n.default.Writer.create()){if(""!==t.tokenId&&r.uint32(10).string(t.tokenId),void 0!==t.tokenType&&e.TokenType.encode(t.tokenType,r.uint32(18).fork()).ldelim(),0!==t.entryIdx&&r.uint32(24).int32(t.entryIdx),t.atoms!==BigInt("0")){if(BigInt.asUintN(64,t.atoms)!==t.atoms)throw new globalThis.Error("value provided for field message.atoms of type uint64 too large");r.uint32(32).uint64(t.atoms.toString())}return!0===t.isMintBaton&&r.uint32(40).bool(t.isMintBaton),0!==t.capabilities&&r.uint32(48).uint32(t.capabilities),0!==t.commitment.length&&r.uint32(58).bytes(t.commitment),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=q();for(;o.pos>>3){case 1:if(10!==t)break;s.tokenId=o.string();continue;case 2:if(18!==t)break;s.tokenType=e.TokenType.decode(o,o.uint32());continue;case 3:if(24!==t)break;s.entryIdx=o.int32();continue;case 4:if(32!==t)break;s.atoms=te(o.uint64());continue;case 5:if(40!==t)break;s.isMintBaton=o.bool();continue;case 6:if(48!==t)break;s.capabilities=o.uint32();continue;case 7:if(58!==t)break;s.commitment=o.bytes();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({tokenId:ne(t.tokenId)?globalThis.String(t.tokenId):"",tokenType:ne(t.tokenType)?e.TokenType.fromJSON(t.tokenType):void 0,entryIdx:ne(t.entryIdx)?globalThis.Number(t.entryIdx):0,atoms:ne(t.atoms)?BigInt(t.atoms):BigInt("0"),isMintBaton:!!ne(t.isMintBaton)&&globalThis.Boolean(t.isMintBaton),capabilities:ne(t.capabilities)?globalThis.Number(t.capabilities):0,commitment:ne(t.commitment)?Y(t.commitment):new Uint8Array(0)}),toJSON(t){const r={};return""!==t.tokenId&&(r.tokenId=t.tokenId),void 0!==t.tokenType&&(r.tokenType=e.TokenType.toJSON(t.tokenType)),0!==t.entryIdx&&(r.entryIdx=Math.round(t.entryIdx)),t.atoms!==BigInt("0")&&(r.atoms=t.atoms.toString()),!0===t.isMintBaton&&(r.isMintBaton=t.isMintBaton),0!==t.capabilities&&(r.capabilities=Math.round(t.capabilities)),0!==t.commitment.length&&(r.commitment=ee(t.commitment)),r},create:t=>e.Token.fromPartial(t??{}),fromPartial(t){const r=q();return r.tokenId=t.tokenId??"",r.tokenType=void 0!==t.tokenType&&null!==t.tokenType?e.TokenType.fromPartial(t.tokenType):void 0,r.entryIdx=t.entryIdx??0,r.atoms=t.atoms??BigInt("0"),r.isMintBaton=t.isMintBaton??!1,r.capabilities=t.capabilities??0,r.commitment=t.commitment??new Uint8Array(0),r}},e.TokenFailedParsing={encode:(e,t=n.default.Writer.create())=>(0!==e.pushdataIdx&&t.uint32(8).int32(e.pushdataIdx),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),""!==e.error&&t.uint32(26).string(e.error),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=U();for(;r.pos>>3){case 1:if(8!==e)break;i.pushdataIdx=r.int32();continue;case 2:if(18!==e)break;i.bytes=r.bytes();continue;case 3:if(26!==e)break;i.error=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({pushdataIdx:ne(e.pushdataIdx)?globalThis.Number(e.pushdataIdx):0,bytes:ne(e.bytes)?Y(e.bytes):new Uint8Array(0),error:ne(e.error)?globalThis.String(e.error):""}),toJSON(e){const t={};return 0!==e.pushdataIdx&&(t.pushdataIdx=Math.round(e.pushdataIdx)),0!==e.bytes.length&&(t.bytes=ee(e.bytes)),""!==e.error&&(t.error=e.error),t},create:t=>e.TokenFailedParsing.fromPartial(t??{}),fromPartial(e){const t=U();return t.pushdataIdx=e.pushdataIdx??0,t.bytes=e.bytes??new Uint8Array(0),t.error=e.error??"",t}},e.TokenFailedColoring={encode:(e,t=n.default.Writer.create())=>(0!==e.pushdataIdx&&t.uint32(8).int32(e.pushdataIdx),""!==e.error&&t.uint32(26).string(e.error),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={pushdataIdx:0,error:""};for(;r.pos>>3){case 1:if(8!==e)break;i.pushdataIdx=r.int32();continue;case 3:if(26!==e)break;i.error=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({pushdataIdx:ne(e.pushdataIdx)?globalThis.Number(e.pushdataIdx):0,error:ne(e.error)?globalThis.String(e.error):""}),toJSON(e){const t={};return 0!==e.pushdataIdx&&(t.pushdataIdx=Math.round(e.pushdataIdx)),""!==e.error&&(t.error=e.error),t},create:t=>e.TokenFailedColoring.fromPartial(t??{}),fromPartial(e){const t={pushdataIdx:0,error:""};return t.pushdataIdx=e.pushdataIdx??0,t.error=e.error??"",t}},e.PluginEntry={encode(e,t=n.default.Writer.create()){for(const r of e.groups)t.uint32(10).bytes(r);for(const r of e.data)t.uint32(18).bytes(r);return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={groups:[],data:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.groups.push(r.bytes());continue;case 2:if(18!==e)break;i.data.push(r.bytes());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({groups:globalThis.Array.isArray(e?.groups)?e.groups.map(e=>Y(e)):[],data:globalThis.Array.isArray(e?.data)?e.data.map(e=>Y(e)):[]}),toJSON(e){const t={};return e.groups?.length&&(t.groups=e.groups.map(e=>ee(e))),e.data?.length&&(t.data=e.data.map(e=>ee(e))),t},create:t=>e.PluginEntry.fromPartial(t??{}),fromPartial(e){const t={groups:[],data:[]};return t.groups=e.groups?.map(e=>e)||[],t.data=e.data?.map(e=>e)||[],t}},e.PluginGroup={encode:(e,t=n.default.Writer.create())=>(0!==e.group.length&&t.uint32(10).bytes(e.group),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=F();for(;r.pos>>3){case 1:if(10!==e)break;i.group=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({group:ne(e.group)?Y(e.group):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.group.length&&(t.group=ee(e.group)),t},create:t=>e.PluginGroup.fromPartial(t??{}),fromPartial(e){const t=F();return t.group=e.group??new Uint8Array(0),t}},e.PluginGroups={encode(t,r=n.default.Writer.create()){for(const n of t.groups)e.PluginGroup.encode(n,r.uint32(10).fork()).ldelim();return 0!==t.nextStart.length&&r.uint32(18).bytes(t.nextStart),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=j();for(;o.pos>>3){case 1:if(10!==t)break;s.groups.push(e.PluginGroup.decode(o,o.uint32()));continue;case 2:if(18!==t)break;s.nextStart=o.bytes();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({groups:globalThis.Array.isArray(t?.groups)?t.groups.map(t=>e.PluginGroup.fromJSON(t)):[],nextStart:ne(t.nextStart)?Y(t.nextStart):new Uint8Array(0)}),toJSON(t){const r={};return t.groups?.length&&(r.groups=t.groups.map(t=>e.PluginGroup.toJSON(t))),0!==t.nextStart.length&&(r.nextStart=ee(t.nextStart)),r},create:t=>e.PluginGroups.fromPartial(t??{}),fromPartial(t){const r=j();return r.groups=t.groups?.map(t=>e.PluginGroup.fromPartial(t))||[],r.nextStart=t.nextStart??new Uint8Array(0),r}},e.TxHistoryPage={encode(t,r=n.default.Writer.create()){for(const n of t.txs)e.Tx.encode(n,r.uint32(10).fork()).ldelim();return 0!==t.numPages&&r.uint32(16).uint32(t.numPages),0!==t.numTxs&&r.uint32(24).uint32(t.numTxs),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={txs:[],numPages:0,numTxs:0};for(;o.pos>>3){case 1:if(10!==t)break;s.txs.push(e.Tx.decode(o,o.uint32()));continue;case 2:if(16!==t)break;s.numPages=o.uint32();continue;case 3:if(24!==t)break;s.numTxs=o.uint32();continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({txs:globalThis.Array.isArray(t?.txs)?t.txs.map(t=>e.Tx.fromJSON(t)):[],numPages:ne(t.numPages)?globalThis.Number(t.numPages):0,numTxs:ne(t.numTxs)?globalThis.Number(t.numTxs):0}),toJSON(t){const r={};return t.txs?.length&&(r.txs=t.txs.map(t=>e.Tx.toJSON(t))),0!==t.numPages&&(r.numPages=Math.round(t.numPages)),0!==t.numTxs&&(r.numTxs=Math.round(t.numTxs)),r},create:t=>e.TxHistoryPage.fromPartial(t??{}),fromPartial(t){const r={txs:[],numPages:0,numTxs:0};return r.txs=t.txs?.map(t=>e.Tx.fromPartial(t))||[],r.numPages=t.numPages??0,r.numTxs=t.numTxs??0,r}},e.ScriptUtxos={encode(t,r=n.default.Writer.create()){0!==t.script.length&&r.uint32(10).bytes(t.script);for(const n of t.utxos)e.ScriptUtxo.encode(n,r.uint32(18).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=H();for(;o.pos>>3){case 1:if(10!==t)break;s.script=o.bytes();continue;case 2:if(18!==t)break;s.utxos.push(e.ScriptUtxo.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({script:ne(t.script)?Y(t.script):new Uint8Array(0),utxos:globalThis.Array.isArray(t?.utxos)?t.utxos.map(t=>e.ScriptUtxo.fromJSON(t)):[]}),toJSON(t){const r={};return 0!==t.script.length&&(r.script=ee(t.script)),t.utxos?.length&&(r.utxos=t.utxos.map(t=>e.ScriptUtxo.toJSON(t))),r},create:t=>e.ScriptUtxos.fromPartial(t??{}),fromPartial(t){const r=H();return r.script=t.script??new Uint8Array(0),r.utxos=t.utxos?.map(t=>e.ScriptUtxo.fromPartial(t))||[],r}},e.Utxos={encode(t,r=n.default.Writer.create()){for(const n of t.utxos)e.Utxo.encode(n,r.uint32(10).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={utxos:[]};for(;o.pos>>3){case 1:if(10!==t)break;s.utxos.push(e.Utxo.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({utxos:globalThis.Array.isArray(t?.utxos)?t.utxos.map(t=>e.Utxo.fromJSON(t)):[]}),toJSON(t){const r={};return t.utxos?.length&&(r.utxos=t.utxos.map(t=>e.Utxo.toJSON(t))),r},create:t=>e.Utxos.fromPartial(t??{}),fromPartial(t){const r={utxos:[]};return r.utxos=t.utxos?.map(t=>e.Utxo.fromPartial(t))||[],r}},e.BroadcastTxRequest={encode:(e,t=n.default.Writer.create())=>(0!==e.rawTx.length&&t.uint32(10).bytes(e.rawTx),!0===e.skipTokenChecks&&t.uint32(16).bool(e.skipTokenChecks),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=z();for(;r.pos>>3){case 1:if(10!==e)break;i.rawTx=r.bytes();continue;case 2:if(16!==e)break;i.skipTokenChecks=r.bool();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawTx:ne(e.rawTx)?Y(e.rawTx):new Uint8Array(0),skipTokenChecks:!!ne(e.skipTokenChecks)&&globalThis.Boolean(e.skipTokenChecks)}),toJSON(e){const t={};return 0!==e.rawTx.length&&(t.rawTx=ee(e.rawTx)),!0===e.skipTokenChecks&&(t.skipTokenChecks=e.skipTokenChecks),t},create:t=>e.BroadcastTxRequest.fromPartial(t??{}),fromPartial(e){const t=z();return t.rawTx=e.rawTx??new Uint8Array(0),t.skipTokenChecks=e.skipTokenChecks??!1,t}},e.BroadcastTxResponse={encode:(e,t=n.default.Writer.create())=>(0!==e.txid.length&&t.uint32(10).bytes(e.txid),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=W();for(;r.pos>>3){case 1:if(10!==e)break;i.txid=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txid:ne(e.txid)?Y(e.txid):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.txid.length&&(t.txid=ee(e.txid)),t},create:t=>e.BroadcastTxResponse.fromPartial(t??{}),fromPartial(e){const t=W();return t.txid=e.txid??new Uint8Array(0),t}},e.BroadcastTxsRequest={encode(e,t=n.default.Writer.create()){for(const r of e.rawTxs)t.uint32(10).bytes(r);return!0===e.skipTokenChecks&&t.uint32(16).bool(e.skipTokenChecks),t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={rawTxs:[],skipTokenChecks:!1};for(;r.pos>>3){case 1:if(10!==e)break;i.rawTxs.push(r.bytes());continue;case 2:if(16!==e)break;i.skipTokenChecks=r.bool();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawTxs:globalThis.Array.isArray(e?.rawTxs)?e.rawTxs.map(e=>Y(e)):[],skipTokenChecks:!!ne(e.skipTokenChecks)&&globalThis.Boolean(e.skipTokenChecks)}),toJSON(e){const t={};return e.rawTxs?.length&&(t.rawTxs=e.rawTxs.map(e=>ee(e))),!0===e.skipTokenChecks&&(t.skipTokenChecks=e.skipTokenChecks),t},create:t=>e.BroadcastTxsRequest.fromPartial(t??{}),fromPartial(e){const t={rawTxs:[],skipTokenChecks:!1};return t.rawTxs=e.rawTxs?.map(e=>e)||[],t.skipTokenChecks=e.skipTokenChecks??!1,t}},e.BroadcastTxsResponse={encode(e,t=n.default.Writer.create()){for(const r of e.txids)t.uint32(10).bytes(r);return t},decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={txids:[]};for(;r.pos>>3){case 1:if(10!==e)break;i.txids.push(r.bytes());continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txids:globalThis.Array.isArray(e?.txids)?e.txids.map(e=>Y(e)):[]}),toJSON(e){const t={};return e.txids?.length&&(t.txids=e.txids.map(e=>ee(e))),t},create:t=>e.BroadcastTxsResponse.fromPartial(t??{}),fromPartial(e){const t={txids:[]};return t.txids=e.txids?.map(e=>e)||[],t}},e.RawTx={encode:(e,t=n.default.Writer.create())=>(0!==e.rawTx.length&&t.uint32(10).bytes(e.rawTx),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=V();for(;r.pos>>3){case 1:if(10!==e)break;i.rawTx=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({rawTx:ne(e.rawTx)?Y(e.rawTx):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.rawTx.length&&(t.rawTx=ee(e.rawTx)),t},create:t=>e.RawTx.fromPartial(t??{}),fromPartial(e){const t=V();return t.rawTx=e.rawTx??new Uint8Array(0),t}},e.WsSub={encode:(t,r=n.default.Writer.create())=>(!0===t.isUnsub&&r.uint32(8).bool(t.isUnsub),void 0!==t.blocks&&e.WsSubBlocks.encode(t.blocks,r.uint32(18).fork()).ldelim(),void 0!==t.script&&e.WsSubScript.encode(t.script,r.uint32(26).fork()).ldelim(),void 0!==t.tokenId&&e.WsSubTokenId.encode(t.tokenId,r.uint32(34).fork()).ldelim(),void 0!==t.lokadId&&e.WsSubLokadId.encode(t.lokadId,r.uint32(42).fork()).ldelim(),void 0!==t.plugin&&e.WsPlugin.encode(t.plugin,r.uint32(50).fork()).ldelim(),void 0!==t.txid&&e.WsSubTxId.encode(t.txid,r.uint32(58).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={isUnsub:!1,blocks:void 0,script:void 0,tokenId:void 0,lokadId:void 0,plugin:void 0,txid:void 0};for(;o.pos>>3){case 1:if(8!==t)break;s.isUnsub=o.bool();continue;case 2:if(18!==t)break;s.blocks=e.WsSubBlocks.decode(o,o.uint32());continue;case 3:if(26!==t)break;s.script=e.WsSubScript.decode(o,o.uint32());continue;case 4:if(34!==t)break;s.tokenId=e.WsSubTokenId.decode(o,o.uint32());continue;case 5:if(42!==t)break;s.lokadId=e.WsSubLokadId.decode(o,o.uint32());continue;case 6:if(50!==t)break;s.plugin=e.WsPlugin.decode(o,o.uint32());continue;case 7:if(58!==t)break;s.txid=e.WsSubTxId.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({isUnsub:!!ne(t.isUnsub)&&globalThis.Boolean(t.isUnsub),blocks:ne(t.blocks)?e.WsSubBlocks.fromJSON(t.blocks):void 0,script:ne(t.script)?e.WsSubScript.fromJSON(t.script):void 0,tokenId:ne(t.tokenId)?e.WsSubTokenId.fromJSON(t.tokenId):void 0,lokadId:ne(t.lokadId)?e.WsSubLokadId.fromJSON(t.lokadId):void 0,plugin:ne(t.plugin)?e.WsPlugin.fromJSON(t.plugin):void 0,txid:ne(t.txid)?e.WsSubTxId.fromJSON(t.txid):void 0}),toJSON(t){const r={};return!0===t.isUnsub&&(r.isUnsub=t.isUnsub),void 0!==t.blocks&&(r.blocks=e.WsSubBlocks.toJSON(t.blocks)),void 0!==t.script&&(r.script=e.WsSubScript.toJSON(t.script)),void 0!==t.tokenId&&(r.tokenId=e.WsSubTokenId.toJSON(t.tokenId)),void 0!==t.lokadId&&(r.lokadId=e.WsSubLokadId.toJSON(t.lokadId)),void 0!==t.plugin&&(r.plugin=e.WsPlugin.toJSON(t.plugin)),void 0!==t.txid&&(r.txid=e.WsSubTxId.toJSON(t.txid)),r},create:t=>e.WsSub.fromPartial(t??{}),fromPartial(t){const r={isUnsub:!1,blocks:void 0,script:void 0,tokenId:void 0,lokadId:void 0,plugin:void 0,txid:void 0};return r.isUnsub=t.isUnsub??!1,r.blocks=void 0!==t.blocks&&null!==t.blocks?e.WsSubBlocks.fromPartial(t.blocks):void 0,r.script=void 0!==t.script&&null!==t.script?e.WsSubScript.fromPartial(t.script):void 0,r.tokenId=void 0!==t.tokenId&&null!==t.tokenId?e.WsSubTokenId.fromPartial(t.tokenId):void 0,r.lokadId=void 0!==t.lokadId&&null!==t.lokadId?e.WsSubLokadId.fromPartial(t.lokadId):void 0,r.plugin=void 0!==t.plugin&&null!==t.plugin?e.WsPlugin.fromPartial(t.plugin):void 0,r.txid=void 0!==t.txid&&null!==t.txid?e.WsSubTxId.fromPartial(t.txid):void 0,r}},e.WsSubBlocks={encode:(e,t=n.default.Writer.create())=>t,decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={};for(;r.pos({}),toJSON:e=>({}),create:t=>e.WsSubBlocks.fromPartial(t??{}),fromPartial:e=>({})},e.WsSubScript={encode:(e,t=n.default.Writer.create())=>(""!==e.scriptType&&t.uint32(10).string(e.scriptType),0!==e.payload.length&&t.uint32(18).bytes(e.payload),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=G();for(;r.pos>>3){case 1:if(10!==e)break;i.scriptType=r.string();continue;case 2:if(18!==e)break;i.payload=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({scriptType:ne(e.scriptType)?globalThis.String(e.scriptType):"",payload:ne(e.payload)?Y(e.payload):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.scriptType&&(t.scriptType=e.scriptType),0!==e.payload.length&&(t.payload=ee(e.payload)),t},create:t=>e.WsSubScript.fromPartial(t??{}),fromPartial(e){const t=G();return t.scriptType=e.scriptType??"",t.payload=e.payload??new Uint8Array(0),t}},e.WsSubTokenId={encode:(e,t=n.default.Writer.create())=>(""!==e.tokenId&&t.uint32(10).string(e.tokenId),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={tokenId:""};for(;r.pos>>3){case 1:if(10!==e)break;i.tokenId=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({tokenId:ne(e.tokenId)?globalThis.String(e.tokenId):""}),toJSON(e){const t={};return""!==e.tokenId&&(t.tokenId=e.tokenId),t},create:t=>e.WsSubTokenId.fromPartial(t??{}),fromPartial(e){const t={tokenId:""};return t.tokenId=e.tokenId??"",t}},e.WsSubLokadId={encode:(e,t=n.default.Writer.create())=>(0!==e.lokadId.length&&t.uint32(10).bytes(e.lokadId),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=K();for(;r.pos>>3){case 1:if(10!==e)break;i.lokadId=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({lokadId:ne(e.lokadId)?Y(e.lokadId):new Uint8Array(0)}),toJSON(e){const t={};return 0!==e.lokadId.length&&(t.lokadId=ee(e.lokadId)),t},create:t=>e.WsSubLokadId.fromPartial(t??{}),fromPartial(e){const t=K();return t.lokadId=e.lokadId??new Uint8Array(0),t}},e.WsPlugin={encode:(e,t=n.default.Writer.create())=>(""!==e.pluginName&&t.uint32(10).string(e.pluginName),0!==e.group.length&&t.uint32(18).bytes(e.group),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i=Z();for(;r.pos>>3){case 1:if(10!==e)break;i.pluginName=r.string();continue;case 2:if(18!==e)break;i.group=r.bytes();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({pluginName:ne(e.pluginName)?globalThis.String(e.pluginName):"",group:ne(e.group)?Y(e.group):new Uint8Array(0)}),toJSON(e){const t={};return""!==e.pluginName&&(t.pluginName=e.pluginName),0!==e.group.length&&(t.group=ee(e.group)),t},create:t=>e.WsPlugin.fromPartial(t??{}),fromPartial(e){const t=Z();return t.pluginName=e.pluginName??"",t.group=e.group??new Uint8Array(0),t}},e.WsSubTxId={encode:(e,t=n.default.Writer.create())=>(""!==e.txid&&t.uint32(10).string(e.txid),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={txid:""};for(;r.pos>>3){case 1:if(10!==e)break;i.txid=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({txid:ne(e.txid)?globalThis.String(e.txid):""}),toJSON(e){const t={};return""!==e.txid&&(t.txid=e.txid),t},create:t=>e.WsSubTxId.fromPartial(t??{}),fromPartial(e){const t={txid:""};return t.txid=e.txid??"",t}},e.WsMsg={encode:(t,r=n.default.Writer.create())=>(void 0!==t.error&&e.Error.encode(t.error,r.uint32(10).fork()).ldelim(),void 0!==t.block&&e.MsgBlock.encode(t.block,r.uint32(18).fork()).ldelim(),void 0!==t.tx&&e.MsgTx.encode(t.tx,r.uint32(26).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s={error:void 0,block:void 0,tx:void 0};for(;o.pos>>3){case 1:if(10!==t)break;s.error=e.Error.decode(o,o.uint32());continue;case 2:if(18!==t)break;s.block=e.MsgBlock.decode(o,o.uint32());continue;case 3:if(26!==t)break;s.tx=e.MsgTx.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({error:ne(t.error)?e.Error.fromJSON(t.error):void 0,block:ne(t.block)?e.MsgBlock.fromJSON(t.block):void 0,tx:ne(t.tx)?e.MsgTx.fromJSON(t.tx):void 0}),toJSON(t){const r={};return void 0!==t.error&&(r.error=e.Error.toJSON(t.error)),void 0!==t.block&&(r.block=e.MsgBlock.toJSON(t.block)),void 0!==t.tx&&(r.tx=e.MsgTx.toJSON(t.tx)),r},create:t=>e.WsMsg.fromPartial(t??{}),fromPartial(t){const r={error:void 0,block:void 0,tx:void 0};return r.error=void 0!==t.error&&null!==t.error?e.Error.fromPartial(t.error):void 0,r.block=void 0!==t.block&&null!==t.block?e.MsgBlock.fromPartial(t.block):void 0,r.tx=void 0!==t.tx&&null!==t.tx?e.MsgTx.fromPartial(t.tx):void 0,r}},e.CoinbaseData={encode(t,r=n.default.Writer.create()){0!==t.coinbaseScriptsig.length&&r.uint32(10).bytes(t.coinbaseScriptsig);for(const n of t.coinbaseOutputs)e.TxOutput.encode(n,r.uint32(18).fork()).ldelim();return r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=J();for(;o.pos>>3){case 1:if(10!==t)break;s.coinbaseScriptsig=o.bytes();continue;case 2:if(18!==t)break;s.coinbaseOutputs.push(e.TxOutput.decode(o,o.uint32()));continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({coinbaseScriptsig:ne(t.coinbaseScriptsig)?Y(t.coinbaseScriptsig):new Uint8Array(0),coinbaseOutputs:globalThis.Array.isArray(t?.coinbaseOutputs)?t.coinbaseOutputs.map(t=>e.TxOutput.fromJSON(t)):[]}),toJSON(t){const r={};return 0!==t.coinbaseScriptsig.length&&(r.coinbaseScriptsig=ee(t.coinbaseScriptsig)),t.coinbaseOutputs?.length&&(r.coinbaseOutputs=t.coinbaseOutputs.map(t=>e.TxOutput.toJSON(t))),r},create:t=>e.CoinbaseData.fromPartial(t??{}),fromPartial(t){const r=J();return r.coinbaseScriptsig=t.coinbaseScriptsig??new Uint8Array(0),r.coinbaseOutputs=t.coinbaseOutputs?.map(t=>e.TxOutput.fromPartial(t))||[],r}},e.MsgBlock={encode(t,r=n.default.Writer.create()){if(0!==t.msgType&&r.uint32(8).int32(t.msgType),0!==t.blockHash.length&&r.uint32(18).bytes(t.blockHash),0!==t.blockHeight&&r.uint32(24).int32(t.blockHeight),t.blockTimestamp!==BigInt("0")){if(BigInt.asIntN(64,t.blockTimestamp)!==t.blockTimestamp)throw new globalThis.Error("value provided for field message.blockTimestamp of type int64 too large");r.uint32(32).int64(t.blockTimestamp.toString())}return void 0!==t.coinbaseData&&e.CoinbaseData.encode(t.coinbaseData,r.uint32(42).fork()).ldelim(),r},decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=X();for(;o.pos>>3){case 1:if(8!==t)break;s.msgType=o.int32();continue;case 2:if(18!==t)break;s.blockHash=o.bytes();continue;case 3:if(24!==t)break;s.blockHeight=o.int32();continue;case 4:if(32!==t)break;s.blockTimestamp=te(o.int64());continue;case 5:if(42!==t)break;s.coinbaseData=e.CoinbaseData.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({msgType:ne(t.msgType)?b(t.msgType):0,blockHash:ne(t.blockHash)?Y(t.blockHash):new Uint8Array(0),blockHeight:ne(t.blockHeight)?globalThis.Number(t.blockHeight):0,blockTimestamp:ne(t.blockTimestamp)?BigInt(t.blockTimestamp):BigInt("0"),coinbaseData:ne(t.coinbaseData)?e.CoinbaseData.fromJSON(t.coinbaseData):void 0}),toJSON(t){const r={};return 0!==t.msgType&&(r.msgType=v(t.msgType)),0!==t.blockHash.length&&(r.blockHash=ee(t.blockHash)),0!==t.blockHeight&&(r.blockHeight=Math.round(t.blockHeight)),t.blockTimestamp!==BigInt("0")&&(r.blockTimestamp=t.blockTimestamp.toString()),void 0!==t.coinbaseData&&(r.coinbaseData=e.CoinbaseData.toJSON(t.coinbaseData)),r},create:t=>e.MsgBlock.fromPartial(t??{}),fromPartial(t){const r=X();return r.msgType=t.msgType??0,r.blockHash=t.blockHash??new Uint8Array(0),r.blockHeight=t.blockHeight??0,r.blockTimestamp=t.blockTimestamp??BigInt("0"),r.coinbaseData=void 0!==t.coinbaseData&&null!==t.coinbaseData?e.CoinbaseData.fromPartial(t.coinbaseData):void 0,r}},e.TxFinalizationReason={encode:(e,t=n.default.Writer.create())=>(0!==e.finalizationType&&t.uint32(8).int32(e.finalizationType),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={finalizationType:0};for(;r.pos>>3){case 1:if(8!==e)break;i.finalizationType=r.int32();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({finalizationType:ne(e.finalizationType)?w(e.finalizationType):0}),toJSON(e){const t={};return 0!==e.finalizationType&&(t.finalizationType=S(e.finalizationType)),t},create:t=>e.TxFinalizationReason.fromPartial(t??{}),fromPartial(e){const t={finalizationType:0};return t.finalizationType=e.finalizationType??0,t}},e.MsgTx={encode:(t,r=n.default.Writer.create())=>(0!==t.msgType&&r.uint32(8).int32(t.msgType),0!==t.txid.length&&r.uint32(18).bytes(t.txid),void 0!==t.finalizationReason&&e.TxFinalizationReason.encode(t.finalizationReason,r.uint32(26).fork()).ldelim(),r),decode(t,r){const o=t instanceof n.default.Reader?t:n.default.Reader.create(t);let i=void 0===r?o.len:o.pos+r;const s=Q();for(;o.pos>>3){case 1:if(8!==t)break;s.msgType=o.int32();continue;case 2:if(18!==t)break;s.txid=o.bytes();continue;case 3:if(26!==t)break;s.finalizationReason=e.TxFinalizationReason.decode(o,o.uint32());continue}if(4==(7&t)||0===t)break;o.skipType(7&t)}return s},fromJSON:t=>({msgType:ne(t.msgType)?_(t.msgType):0,txid:ne(t.txid)?Y(t.txid):new Uint8Array(0),finalizationReason:ne(t.finalizationReason)?e.TxFinalizationReason.fromJSON(t.finalizationReason):void 0}),toJSON(t){const r={};return 0!==t.msgType&&(r.msgType=x(t.msgType)),0!==t.txid.length&&(r.txid=ee(t.txid)),void 0!==t.finalizationReason&&(r.finalizationReason=e.TxFinalizationReason.toJSON(t.finalizationReason)),r},create:t=>e.MsgTx.fromPartial(t??{}),fromPartial(t){const r=Q();return r.msgType=t.msgType??0,r.txid=t.txid??new Uint8Array(0),r.finalizationReason=void 0!==t.finalizationReason&&null!==t.finalizationReason?e.TxFinalizationReason.fromPartial(t.finalizationReason):void 0,r}},e.Empty={encode:(e,t=n.default.Writer.create())=>t,decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={};for(;r.pos({}),toJSON:e=>({}),create:t=>e.Empty.fromPartial(t??{}),fromPartial:e=>({})},e.Error={encode:(e,t=n.default.Writer.create())=>(""!==e.msg&&t.uint32(18).string(e.msg),t),decode(e,t){const r=e instanceof n.default.Reader?e:n.default.Reader.create(e);let o=void 0===t?r.len:r.pos+t;const i={msg:""};for(;r.pos>>3){case 2:if(18!==e)break;i.msg=r.string();continue}if(4==(7&e)||0===e)break;r.skipType(7&e)}return i},fromJSON:e=>({msg:ne(e.msg)?globalThis.String(e.msg):""}),toJSON(e){const t={};return""!==e.msg&&(t.msg=e.msg),t},create:t=>e.Error.fromPartial(t??{}),fromPartial(e){const t={msg:""};return t.msg=e.msg??"",t}},n.default.util.Long!==r.default&&(n.default.util.Long=r.default,n.default.configure())}(chronik)),chronik}var failoverProxy={},axios_1,hasRequiredAxios,hasRequiredFailoverProxy;function requireAxios(){if(hasRequiredAxios)return axios_1;function e(e,t){return function(){return e.apply(t,arguments)}}hasRequiredAxios=1;const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,{iterator:n,toStringTag:o}=Symbol,i=(e=>r=>{const n=t.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),s=e=>(e=e.toLowerCase(),t=>i(t)===e),a=e=>t=>typeof t===e,{isArray:l}=Array,u=a("undefined");function c(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=s("ArrayBuffer");const f=a("string"),p=a("function"),h=a("number"),m=e=>null!==e&&"object"==typeof e,g=e=>{if("object"!==i(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||n in e)},y=s("Date"),A=s("File"),b=s("Blob"),v=s("FileList"),w=s("URLSearchParams"),[S,_,x,E]=["ReadableStream","Request","Response","Headers"].map(s);function k(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),l(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:commonjsGlobal,C=e=>!u(e)&&e!==R;const B=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&r(Uint8Array)),O=s("HTMLFormElement"),I=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),P=s("RegExp"),$=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};k(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const N=s("AsyncFunction"),M=((e,t)=>e?setImmediate:t?((e,t)=>(R.addEventListener("message",({source:r,data:n})=>{r===R&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),R.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,p(R.postMessage)),L="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):void 0!==process&&process.nextTick||M;var D={isArray:l,isArrayBuffer:d,isBuffer:c,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=i(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:f,isNumber:h,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:g,isEmptyObject:e=>{if(!m(e)||c(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:S,isRequest:_,isResponse:x,isHeaders:E,isUndefined:u,isDate:y,isFile:A,isBlob:b,isRegExp:P,isFunction:p,isStream:e=>m(e)&&p(e.pipe),isURLSearchParams:w,isTypedArray:B,isFileList:v,forEach:k,merge:function e(){const{caseless:t,skipUndefined:r}=C(this)&&this||{},n={},o=(o,i)=>{const s=t&&T(n,i)||i;g(n[s])&&g(o)?n[s]=e(n[s],o):g(o)?n[s]=e({},o):l(o)?n[s]=o.slice():r&&u(o)||(n[s]=o)};for(let e=0,t=arguments.length;e(k(r,(r,o)=>{n&&p(r)?t[o]=e(r,n):t[o]=r},{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,n,o)=>{let i,s,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],o&&!o(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!h(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[n]).call(e);let o;for(;(o=r.next())&&!o.done;){const r=o.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:O,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];p(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return l(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:T,global:R,isContextDefined:C,isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[o]&&e[n])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(c(e))return e;if(!("toJSON"in e)){t[n]=e;const o=l(e)?[]:{};return k(e,(e,t)=>{const i=r(e,n+1);!u(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:N,isThenable:e=>e&&(m(e)||p(e))&&p(e.then)&&p(e.catch),setImmediate:M,asap:L,isIterable:e=>null!=e&&p(e[n])};function q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}D.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.status}}});const U=q.prototype,F={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{F[e]={value:e}}),Object.defineProperties(q,F),Object.defineProperty(U,"isAxiosError",{value:!0}),q.from=(e,t,r,n,o,i)=>{const s=Object.create(U);D.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return q.call(s,a,l,r,n,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};function j(e){return D.isPlainObject(e)||D.isArray(e)}function H(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function z(e,t,r){return e?e.concat(t).map(function(e,t){return e=H(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const W=D.toFlatObject(D,{},null,function(e){return/^is[A-Z]/.test(e)});function V(e,t,r){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=D.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!D.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(D.isDate(e))return e.toISOString();if(D.isBoolean(e))return e.toString();if(!a&&D.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(e)||D.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):bufferExports.Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(D.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(D.isArray(e)&&function(e){return D.isArray(e)&&!e.some(j)}(e)||(D.isFileList(e)||D.endsWith(r,"[]"))&&(a=D.toArray(e)))return r=H(r),a.forEach(function(e,n){!D.isUndefined(e)&&null!==e&&t.append(!0===s?z([r],n,i):null===s?r:r+"[]",l(e))}),!1;return!!j(e)||(t.append(z(o,r,i),l(e)),!1)}const c=[],d=Object.assign(W,{defaultVisitor:u,convertValue:l,isVisitable:j});if(!D.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!D.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),D.forEach(r,function(r,i){!0===(!(D.isUndefined(r)||null===r)&&o.call(t,r,D.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t}function G(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function K(e,t){this._pairs=[],e&&V(e,this,t)}const Z=K.prototype;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function X(e,t,r){if(!t)return e;const n=r&&r.encode||J;D.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):D.isURLSearchParams(t)?t.toString():new K(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Z.append=function(e,t){this._pairs.push([e,t])},Z.toString=function(e){const t=e?function(t){return e.call(this,t,G)}:G;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Q=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){D.forEach(this.handlers,function(t){null!==t&&e(t)})}},Y={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:K,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const te="undefined"!=typeof window&&"undefined"!=typeof document,re="object"==typeof navigator&&navigator||void 0,ne=te&&(!re||["ReactNative","NativeScript","NS"].indexOf(re.product)<0),oe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ie=te&&window.location.href||"http://localhost";var se={...Object.freeze({__proto__:null,hasBrowserEnv:te,hasStandardBrowserWebWorkerEnv:oe,hasStandardBrowserEnv:ne,navigator:re,origin:ie}),...ee};function ae(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&D.isArray(n)?n.length:i,a)return D.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&D.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&D.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const le={transitional:Y,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=D.isObject(e);o&&D.isHTMLForm(e)&&(e=new FormData(e));if(D.isFormData(e))return n?JSON.stringify(ae(e)):e;if(D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e)||D.isReadableStream(e))return e;if(D.isArrayBufferView(e))return e.buffer;if(D.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return V(e,new se.classes.URLSearchParams,{visitor:function(e,t,r,n){return se.isNode&&D.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=D.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return V(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||le.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(D.isResponse(e)||D.isReadableStream(e))return e;if(e&&D.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw q.from(e,q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:se.classes.FormData,Blob:se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{le.headers[e]={}});var ue=le;const ce=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const de=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function pe(e){return!1===e||null==e?e:D.isArray(e)?e.map(pe):String(e)}function he(e,t,r,n,o){return D.isFunction(n)?n.call(this,t,r):(o&&(t=r),D.isString(t)?D.isString(n)?-1!==t.indexOf(n):D.isRegExp(n)?n.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=fe(t);if(!o)throw new Error("header name must be a non-empty string");const i=D.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=pe(e))}const i=(e,t)=>D.forEach(e,(e,r)=>o(e,r,t));if(D.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(D.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ce[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(D.isObject(e)&&D.isIterable(e)){let r,n,o={};for(const t of e){if(!D.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?D.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=fe(e)){const r=D.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(D.isFunction(t))return t.call(this,e,r);if(D.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fe(e)){const r=D.findKey(this,e);return!(!r||void 0===this[r]||t&&!he(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=fe(e)){const o=D.findKey(r,e);!o||t&&!he(0,r[o],o,t)||(delete r[o],n=!0)}}return D.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!he(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return D.forEach(this,(n,o)=>{const i=D.findKey(r,o);if(i)return t[i]=pe(n),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();s!==o&&delete t[o],t[s]=pe(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return D.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&D.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[de]=this[de]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=fe(e);t[n]||(!function(e,t){const r=D.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return D.isArray(e)?e.forEach(n):n(e),this}}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D.reduceDescriptors(me.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),D.freezeMethods(me);var ge=me;function ye(e,t){const r=this||ue,n=t||r,o=ge.from(n.headers);let i=n.data;return D.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ae(e){return!(!e||!e.__CANCEL__)}function be(e,t,r){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,r),this.name="CanceledError"}function ve(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}D.inherits(be,q,{__CANCEL__:!0});const we=(e,t,r=3)=>{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),u=n[s];o||(o=l),r[i]=a,n[i]=l;let c=s,d=0;for(;c!==i;)d+=r[c++],c%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]}(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,l=o(a);n=i;e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},Se=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},_e=e=>(...t)=>D.asap(()=>e(...t));var xe=se.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,se.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(se.origin),se.navigator&&/(msie|trident)/i.test(se.navigator.userAgent)):()=>!0,Ee=se.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];D.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),D.isString(n)&&s.push("path="+n),D.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ke(e,t,r){let n=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Te=e=>e instanceof ge?{...e}:e;function Re(e,t){t=t||{};const r={};function n(e,t,r,n){return D.isPlainObject(e)&&D.isPlainObject(t)?D.merge.call({caseless:n},e,t):D.isPlainObject(t)?D.merge({},t):D.isArray(t)?t.slice():t}function o(e,t,r,o){return D.isUndefined(t)?D.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!D.isUndefined(t))return n(void 0,t)}function s(e,t){return D.isUndefined(t)?D.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(Te(e),Te(t),0,!0)};return D.forEach(Object.keys({...e,...t}),function(n){const i=l[n]||o,s=i(e[n],t[n],n);D.isUndefined(s)&&i!==a||(r[n]=s)}),r}var Ce=e=>{const t=Re({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=ge.from(s),t.url=X(ke(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),D.isFormData(r))if(se.hasStandardBrowserEnv||se.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(D.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(se.hasStandardBrowserEnv&&(n&&D.isFunction(n)&&(n=n(t)),n||!1!==n&&xe(t.url))){const e=o&&i&&Ee.read(i);e&&s.set(o,e)}return t};var Be="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ce(e);let o=n.data;const i=ge.from(n.headers).normalize();let s,a,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){u&&u(),c&&c(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=ge.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());ve(function(e){t(e),h()},function(e){r(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new q("Request aborted",q.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=new q(t&&t.message?t.message:"Network Error",q.ERR_NETWORK,e,m);n.event=t||null,r(n),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Y;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new q(t,o.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&D.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),D.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([l,c]=we(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([a,u]=we(f),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=t=>{m&&(r(!t||t.type?new be(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);y&&-1===se.protocols.indexOf(y)?r(new q("Unsupported protocol "+y+":",q.ERR_BAD_REQUEST,e)):m.send(o||null)})};var Oe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof q?t:new be(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new q(`timeout ${t} of ms exceeded`,q.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>D.asap(s),a}};const Ie=function*(e,t){let r=e.byteLength;if(r{const o=async function*(e,t){for await(const r of Pe(e))yield*Ie(r,t)}(e,t);let i,s=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return a(),void e.close();let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:Ne}=D,Me=(({Request:e,Response:t})=>({Request:e,Response:t}))(D.global),{ReadableStream:Le,TextEncoder:De}=D.global,qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ue=e=>{e=D.merge.call({skipUndefined:!0},Me,e);const{fetch:t,Request:r,Response:n}=e,o=t?Ne(t):"function"==typeof fetch,i=Ne(r),s=Ne(n);if(!o)return!1;const a=o&&Ne(Le),l=o&&("function"==typeof De?(u=new De,e=>u.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var u;const c=i&&a&&qe(()=>{let e=!1;const t=new r(se.origin,{body:new Le,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&a&&qe(()=>D.isReadableStream(new n("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new q(`Response type '${e}' is not supported`,q.ERR_NOT_SUPPORT,r)})});const p=async(e,t)=>{const n=D.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e)){const t=new r(se.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return D.isArrayBufferView(e)||D.isArrayBuffer(e)?e.byteLength:(D.isURLSearchParams(e)&&(e+=""),D.isString(e)?(await l(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:s,data:a,signal:l,cancelToken:u,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:A,withCredentials:b="same-origin",fetchOptions:v}=Ce(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let S=Oe([l,u&&u.toAbortSignal()],h),_=null;const x=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let E;try{if(g&&c&&"get"!==s&&"head"!==s&&0!==(E=await p(A,a))){let e,t=new r(o,{method:"POST",body:a,duplex:"half"});if(D.isFormData(a)&&(e=t.headers.get("content-type"))&&A.setContentType(e),t.body){const[e,r]=Se(E,we(_e(g)));a=$e(t.body,65536,e,r)}}D.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in r.prototype,l={...v,signal:S,method:s.toUpperCase(),headers:A.normalize().toJSON(),body:a,duplex:"half",credentials:t?b:void 0};_=i&&new r(o,l);let u=await(i?w(_,v):w(o,l));const h=d&&("stream"===y||"response"===y);if(d&&(m||h&&x)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=D.toFiniteNumber(u.headers.get("content-length")),[r,o]=m&&Se(t,we(_e(m),!0))||[];u=new n($e(u.body,65536,r,()=>{o&&o(),x&&x()}),e)}y=y||"text";let k=await f[D.findKey(f,y)||"text"](u,e);return!h&&x&&x(),await new Promise((t,r)=>{ve(t,r,{data:k,headers:ge.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:_})})}catch(t){if(x&&x(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new q("Network Error",q.ERR_NETWORK,e,_),{cause:t.cause||t});throw q.from(t,t&&t.code,e,_)}}},Fe=new Map,je=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s,a,l=i.length,u=Fe;for(;l--;)s=i[l],a=u.get(s),void 0===a&&u.set(s,a=l?new Map:Ue(t)),u=a;return a};je();const He={http:null,xhr:Be,fetch:{get:je}};D.forEach(He,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const ze=e=>`- ${e}`,We=e=>D.isFunction(e)||null===e||!1===e;var Ve=(e,t)=>{e=D.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new q("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(ze).join("\n"):" "+ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function Ge(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new be(null,e)}function Ke(e){Ge(e),e.headers=ge.from(e.headers),e.data=ye.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ve(e.adapter||ue.adapter,e)(e).then(function(t){return Ge(e),t.data=ye.call(e,e.transformResponse,t),t.headers=ge.from(t.headers),t},function(t){return Ae(t)||(Ge(e),t&&t.response&&(t.response.data=ye.call(e,e.transformResponse,t.response),t.response.headers=ge.from(t.response.headers))),Promise.reject(t)})}const Ze="1.12.2",Je={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Je[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xe={};Je.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Ze+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new q(n(o," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!Xe[o]&&(Xe[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},Je.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var Qe={assertOptions:function(e,t,r){if("object"!=typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new q("option "+i+" must be "+r,q.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}},validators:Je};const Ye=Qe.validators;class et{constructor(e){this.defaults=e||{},this.interceptors={request:new Q,response:new Q}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Re(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&Qe.assertOptions(r,{silentJSONParsing:Ye.transitional(Ye.boolean),forcedJSONParsing:Ye.transitional(Ye.boolean),clarifyTimeoutError:Ye.transitional(Ye.boolean)},!1),null!=n&&(D.isFunction(n)?t.paramsSerializer={serialize:n}:Qe.assertOptions(n,{encode:Ye.function,serialize:Ye.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Qe.assertOptions(t,{baseUrl:Ye.spelling("baseURL"),withXsrfToken:Ye.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&D.merge(o.common,o[t.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ge.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!a){const e=[Ke.bind(this),void 0];for(e.unshift(...s),e.push(...l),c=e.length,u=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new be(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new rt(function(t){e=t});return{token:t,cancel:e}}}var nt=rt;const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ot).forEach(([e,t])=>{ot[t]=e});var it=ot;const st=function t(r){const n=new tt(r),o=e(tt.prototype.request,n);return D.extend(o,tt.prototype,n,{allOwnKeys:!0}),D.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(Re(r,e))},o}(ue);return st.Axios=tt,st.CanceledError=be,st.CancelToken=nt,st.isCancel=Ae,st.VERSION=Ze,st.toFormData=V,st.AxiosError=q,st.Cancel=st.CanceledError,st.all=function(e){return Promise.all(e)},st.spread=function(e){return function(t){return e.apply(null,t)}},st.isAxiosError=function(e){return D.isObject(e)&&!0===e.isAxiosError},st.mergeConfig=Re,st.AxiosHeaders=ge,st.formToJSON=e=>ae(D.isHTMLForm(e)?new FormData(e):e),st.getAdapter=Ve,st.HttpStatusCode=it,st.default=st,axios_1=st}function requireFailoverProxy(){if(hasRequiredFailoverProxy)return failoverProxy;hasRequiredFailoverProxy=1;var e=failoverProxy&&failoverProxy.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=failoverProxy&&failoverProxy.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=failoverProxy&&failoverProxy.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=failoverProxy&&failoverProxy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(failoverProxy,"__esModule",{value:!0}),failoverProxy.FailoverProxy=failoverProxy.appendWsUrls=void 0;const o=n(requireAxios()),i=n(requireBrowser()),s=r(requireChronik());function a(e){const t=[];for(const r of e)if(r.startsWith("https://"))t.push({url:r,wsUrl:"wss://"+r.substring(8)+"/ws"});else{if(!r.startsWith("http://"))throw new Error(`Invalid url found in array: ${r}`);t.push({url:r,wsUrl:"ws://"+r.substring(7)+"/ws"})}return t}failoverProxy.appendWsUrls=a;return failoverProxy.FailoverProxy=class{constructor(e){const t="string"==typeof e?[e]:e;if(0===t.length)throw new Error("Url array must not be empty");for(const e of t){if(e.endsWith("/"))throw new Error("`url` cannot end with '/', got: "+e);if(!e.startsWith("https://")&&!e.startsWith("http://"))throw new Error("`url` must start with 'https://' or 'http://', got: "+e)}this._endpointArray=a(t),this._workingIndex=0}getEndpointArray(){return this._endpointArray}deriveEndpointIndex(e){return(this._workingIndex+e)%this._endpointArray.length}setWorkingIndex(e){this._workingIndex=e}async post(e,t){return this._request(e,"POST",t)}async get(e){return this._request(e,"GET")}async _request(e,t,r){for(let n=0;ne,headers:{"Content-Type":"application/x-protobuf"}})}return this.ensureResponseErrorThrown(i,t),new Uint8Array(i.data)}ensureResponseErrorThrown(e,t){if(200!=e.status){let r,n=!1;try{r=s.Error.decode(new Uint8Array(e.data)),n=!0}catch{throw new Error("Unable to decode error msg, chronik server is indexing or in error state")}if(n)throw new Error(`Failed getting ${t}: ${r.msg}`)}}async _websocketUrlConnects(e){return new Promise(t=>{const r=setTimeout(()=>{n.close(),t(!1)},5e3),n=new i.default(e);n.onerror=function(){return n.close(),clearTimeout(r),t(!1)},n.onopen=function(){return n.close(),clearTimeout(r),t(!0)}}).catch(()=>!1)}async connectWs(e){for(let t=0;te.handleMsg(t),t.onerror=()=>{void 0!==e.onError&&e.close()},t.onclose=t=>{!e.manuallyClosed&&e.autoReconnect?(void 0!==e.onReconnect&&e.onReconnect(t),this._workingIndex=(this._workingIndex+1)%this._endpointArray.length,this.connectWs(e)):void 0!==e.onEnd&&e.onEnd(t)},e.ws=t,void(e.connected=new Promise(n=>{t.onopen=t=>{e.subs.scripts.forEach(t=>e.subscribeToScript(t.scriptType,t.payload)),e.subs.lokadIds.forEach(t=>e.subscribeToLokadId(t)),e.subs.tokens.forEach(t=>e.subscribeToTokenId(t)),e.subs.txids.forEach(t=>e.subscribeToTxid(t)),!0===e.subs.blocks&&e.subscribeToBlocks(),n(t),void 0!==e.onConnect&&e.onConnect(t),this._workingIndex=r}}))}}throw new Error("Error connecting to known Chronik websockets")}},failoverProxy}var hex={},hasRequiredHex;function requireHex(){if(hasRequiredHex)return hex;hasRequiredHex=1,Object.defineProperty(hex,"__esModule",{value:!0}),hex.fromHexRev=hex.fromHex=hex.toHexRev=hex.toHex=void 0;const e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=new Array(256),r={};for(let n=0;n<256;n++){const o=`${e[n>>>4&15]}${e[15&n]}`;t[n]=o,r[o]=n}function n(e){if(1&e.length)throw new Error(`Odd hex length: ${e}`);const t=e.length>>1,n=new Uint8Array(t);for(let t=0;t>1]=i}return n}return hex.toHex=function(e){let r="";for(let n=0,o=e.length;n=0;--n)r+=t[e[n]];return r},hex.fromHex=n,hex.fromHexRev=function(e){const t=n(e);return t.reverse(),t},hex}var validation={},hasRequiredValidation,hasRequiredChronikClient,hasRequiredDist;function requireValidation(){if(hasRequiredValidation)return validation;hasRequiredValidation=1,Object.defineProperty(validation,"__esModule",{value:!0}),validation.verifyPluginSubscription=validation.verifyTxid=validation.verifyTokenId=validation.verifyLokadId=validation.isValidWsSubscription=void 0;const e=new RegExp(/^[a-f0-9]+$/),t=new RegExp(/^[a-f0-9]{8}$/),r=new RegExp(/^[a-f0-9]{64}$/);validation.isValidWsSubscription=t=>{const{scriptType:r,payload:n}=t;if(n.length%2!=0)return`Odd hex length: ${n}`;if(!e.test(n))return`Invalid hex: "${n}". Payload must be lowercase hex string.`;const o=[33,65],i=n.length/2;switch(r){case"p2pkh":case"p2sh":return 20===i||`Invalid length, expected 20 bytes but got ${i} bytes`;case"p2pk":return!!o.includes(i)||`Invalid length, expected one of [33, 65] but got ${i} bytes`;case"other":return!0;default:return`Invalid scriptType: ${r}`}};validation.verifyLokadId=e=>{if(!t.test(e))throw new Error(`Invalid lokadId: "${e}". lokadId must be 4 bytes (8 chars) of lowercase hex.`)};validation.verifyTokenId=e=>{if(!r.test(e))throw new Error(`Invalid tokenId: "${e}". tokenId must be 64 characters of lowercase hex.`)};validation.verifyTxid=e=>{if(!r.test(e))throw new Error(`Invalid txid: "${e}". txid must be 64 characters of lowercase hex.`)};return validation.verifyPluginSubscription=t=>{const{pluginName:r,group:n}=t;if(void 0===r)throw new Error("pluginName must be a string");if(void 0===n)throw new Error("group must be a string");if(n.length%2!=0)throw new Error(`group must have even length (complete bytes): "${n}"`);if(!e.test(n))throw new Error(`group must be a valid lowercase hex string: "${n}"`)},validation}function requireChronikClient(){return hasRequiredChronikClient||(hasRequiredChronikClient=1,function(e){var t=ChronikClient&&ChronikClient.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ChronikClient&&ChronikClient.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=ChronikClient&&ChronikClient.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=ChronikClient&&ChronikClient.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ALP_TOKEN_TYPES=e.WsEndpoint=e.PluginEndpoint=e.LokadIdEndpoint=e.TokenIdEndpoint=e.ScriptEndpoint=e.ChronikClient=e.sortNodesByLatency=e.measureWebsocketLatency=e.ConnectionStrategy=void 0;const i=requireCashaddr(),s=o(requireBrowser()),a=n(requireChronik()),l=requireFailoverProxy(),u=requireHex(),c=requireValidation();var d;!function(e){e.ClosestFirst="CLOSEST_FIRST",e.AsOrdered="AS_ORDERED"}(d=e.ConnectionStrategy||(e.ConnectionStrategy={}));async function f(e){return new Promise(t=>{const r=setTimeout(()=>{o.close(),t(1/0)},1e3),n=Date.now(),o=new s.default(e);o.onerror=function(){return o.close(),clearTimeout(r),t(1/0)},o.onopen=function(){const e=Date.now()-n;return o.close(),clearTimeout(r),t(e)}}).catch(()=>1/0)}async function p(e){const t=(0,l.appendWsUrls)(e),r=await Promise.all(t.map(async e=>{const t=await f(e.wsUrl);return{url:e.url,latency:t}}));r.sort((e,t)=>e.latency-t.latency);const n=r.map(e=>e.url);return n.forEach((e,t)=>{const n=r.find(t=>t.url===e);console.log(n?.latency===1/0?` ${t+1}. ${e} - latency: >${Math.round(1e3)}ms`:` ${t+1}. ${e} - latency: ${Math.round(n?.latency||0)}ms`)}),n}e.measureWebsocketLatency=f,e.sortNodesByLatency=p;e.ChronikClient=class e{constructor(e){this._proxyInterface=new l.FailoverProxy(e)}static async useStrategy(t,r){let n=[...r];if(t===d.ClosestFirst)try{n=await p(r)}catch(e){console.error("Error sorting nodes by latency:",e,"Using original order:")}return new e(n)}proxyInterface(){return this._proxyInterface}async broadcastTx(e,t=!1){const r=a.BroadcastTxRequest.encode({rawTx:"string"==typeof e?(0,u.fromHex)(e):e,skipTokenChecks:t}).finish(),n=await this._proxyInterface.post("/broadcast-tx",r),o=a.BroadcastTxResponse.decode(n);return{txid:(0,u.toHexRev)(o.txid)}}async broadcastTxs(e,t=!1){const r=a.BroadcastTxsRequest.encode({rawTxs:e.map(e=>"string"==typeof e?(0,u.fromHex)(e):e),skipTokenChecks:t}).finish(),n=await this._proxyInterface.post("/broadcast-txs",r);return{txids:a.BroadcastTxsResponse.decode(n).txids.map(u.toHexRev)}}async validateRawTx(e){if("string"!=typeof e&&!(e instanceof Uint8Array))throw new Error("rawTx must be a hex string or a Uint8Array");const t=a.RawTx.encode({rawTx:"string"==typeof e?(0,u.fromHex)(e):e}).finish(),r=await this._proxyInterface.post("/validate-tx",t);return v(a.Tx.decode(r))}async blockchainInfo(){const e=await this._proxyInterface.get("/blockchain-info");return function(e){return{tipHash:(0,u.toHexRev)(e.tipHash),tipHeight:e.tipHeight}}(a.BlockchainInfo.decode(e))}async chronikInfo(){const e=await this._proxyInterface.get("/chronik-info");return function(e){if(void 0===e.version)throw new Error("chronikInfo has no version");return{version:0!==e.version.length?e.version:""}}(a.ChronikInfo.decode(e))}async block(e){const t=await this._proxyInterface.get(`/block/${e}`);return function(e){if(void 0===e.blockInfo)throw new Error("Block has no blockInfo");return{blockInfo:b(e.blockInfo)}}(a.Block.decode(t))}async blockTxs(e,t=0,r=25){const n=await this._proxyInterface.get(`/block-txs/${e}?page=${t}&page_size=${r}`);return function(e){const{txs:t,numPages:r,numTxs:n}=e;return{txs:t.map(v),numPages:r,numTxs:n}}(a.TxHistoryPage.decode(n))}async blocks(e,t){const r=await this._proxyInterface.get(`/blocks/${e}/${t}`);return a.Blocks.decode(r).blocks.map(b)}async token(e){const t=await this._proxyInterface.get(`/token/${e}`);return function(e){if(void 0===e.tokenType)throw new Error(`chronik returned undefined tokenInfo.tokenType for tokenId "${e.tokenId}"`);if(void 0===e.genesisInfo)throw new Error(`chronik returned undefined tokenInfo.genesisInfo for tokenId "${e.tokenId}"`);const t=C(e.tokenType),r={tokenId:e.tokenId,tokenType:t,timeFirstSeen:Number(e.timeFirstSeen),genesisInfo:L(e.genesisInfo,t)};void 0!==e.block&&(r.block=x(e.block));return r}(a.TokenInfo.decode(t))}async tx(e){const t=await this._proxyInterface.get(`/tx/${e}`);return v(a.Tx.decode(t))}async rawTx(e){const t=await this._proxyInterface.get(`/raw-tx/${e}`);return function(e){return{rawTx:(0,u.toHex)(e.rawTx)}}(a.RawTx.decode(t))}tokenId(e){return new m(this._proxyInterface,e)}lokadId(e){return new g(this._proxyInterface,e)}plugin(e){return new y(this._proxyInterface,e)}script(e,t){return new h(this._proxyInterface,e,t)}address(e){const{type:t,hash:r}=(0,i.decodeCashAddress)(e);return new h(this._proxyInterface,t,r)}ws(e){return new A(this._proxyInterface,e)}};class h{constructor(e,t,r){this._proxyInterface=e,this._scriptType=t,this._scriptPayload=r}async history(e=0,t=25){const r=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/history?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async confirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/confirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async unconfirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/unconfirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async utxos(){const e=await this._proxyInterface.get(`/script/${this._scriptType}/${this._scriptPayload}/utxos`),t=a.ScriptUtxos.decode(e);return{outputScript:(0,u.toHex)(t.script),utxos:t.utxos.map(E)}}}e.ScriptEndpoint=h;class m{constructor(e,t){this._proxyInterface=e,this._tokenId=t}async history(e=0,t=25){const r=await this._proxyInterface.get(`/token-id/${this._tokenId}/history?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async confirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/token-id/${this._tokenId}/confirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async unconfirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/token-id/${this._tokenId}/unconfirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async utxos(){const e=await this._proxyInterface.get(`/token-id/${this._tokenId}/utxos`),t=a.Utxos.decode(e);return{tokenId:this._tokenId,utxos:t.utxos.map(k)}}}e.TokenIdEndpoint=m;class g{constructor(e,t){this._proxyInterface=e,this._lokadId=t}async history(e=0,t=25){const r=await this._proxyInterface.get(`/lokad-id/${this._lokadId}/history?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async confirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/lokad-id/${this._lokadId}/confirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}async unconfirmedTxs(e=0,t=25){const r=await this._proxyInterface.get(`/lokad-id/${this._lokadId}/unconfirmed-txs?page=${e}&page_size=${t}`),n=a.TxHistoryPage.decode(r);return{txs:n.txs.map(v),numPages:n.numPages,numTxs:n.numTxs}}}e.LokadIdEndpoint=g;class y{constructor(e,t){this._proxyInterface=e,this._pluginName=t}async utxos(e){const t=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/utxos`),r=a.Utxos.decode(t);return{pluginName:this._pluginName,groupHex:e,utxos:r.utxos.map(k)}}async groups(e,t,r){const n=new URLSearchParams;void 0!==e&&n.set("prefix",e),void 0!==t&&n.set("start",t),void 0!==r&&n.set("page_size",r.toString());const o=await this._proxyInterface.get(`/plugin/${this._pluginName}/groups?${n.toString()}`);return function(e){const{groups:t}=e;return{groups:t.map(e=>({group:(0,u.toHex)(e.group)})),nextStart:(0,u.toHex)(e.nextStart)}}(a.PluginGroups.decode(o))}async history(e,t=0,r=25){const n=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/history?page=${t}&page_size=${r}`),o=a.TxHistoryPage.decode(n);return{txs:o.txs.map(v),numPages:o.numPages,numTxs:o.numTxs}}async confirmedTxs(e,t=0,r=25){const n=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/confirmed-txs?page=${t}&page_size=${r}`),o=a.TxHistoryPage.decode(n);return{txs:o.txs.map(v),numPages:o.numPages,numTxs:o.numTxs}}async unconfirmedTxs(e,t=0,r=25){const n=await this._proxyInterface.get(`/plugin/${this._pluginName}/${e}/unconfirmed-txs?page=${t}&page_size=${r}`),o=a.TxHistoryPage.decode(n);return{txs:o.txs.map(v),numPages:o.numPages,numTxs:o.numTxs}}}e.PluginEndpoint=y;class A{constructor(e,t){this.onMessage=t.onMessage,this.onConnect=t.onConnect,this.onReconnect=t.onReconnect,this.onEnd=t.onEnd,this.autoReconnect=void 0===t.autoReconnect||t.autoReconnect,this.manuallyClosed=!1,this.subs={scripts:[],tokens:[],txids:[],lokadIds:[],plugins:[],blocks:!1},this._proxyInterface=e}async waitForOpen(){await this._proxyInterface.connectWs(this),await this.connected}subscribeToBlocks(){this.subs.blocks=!0,this.ws?.readyState===s.default.OPEN&&this._subUnsubBlocks(!1)}unsubscribeFromBlocks(){this.subs.blocks=!1,this.ws?.readyState===s.default.OPEN&&this._subUnsubBlocks(!0)}subscribeToScript(e,t){const r={scriptType:e,payload:t},n=(0,c.isValidWsSubscription)(r);if(!0!==n)throw new Error(n);this.subs.scripts.push(r),this.ws?.readyState===s.default.OPEN&&this._subUnsubScript(!1,r)}unsubscribeFromScript(e,t){const r={scriptType:e,payload:t},n=this.subs.scripts.findIndex(r=>r.scriptType===e&&r.payload===t);if(-1===n)throw new Error(`No existing sub at ${e}, ${t}`);this.subs.scripts.splice(n,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubScript(!0,r)}subscribeToAddress(e){const{type:t,hash:r}=(0,i.decodeCashAddress)(e);this.subscribeToScript(t,r)}unsubscribeFromAddress(e){const{type:t,hash:r}=(0,i.decodeCashAddress)(e);this.unsubscribeFromScript(t,r)}subscribeToLokadId(e){(0,c.verifyLokadId)(e),this.subs.lokadIds.push(e),this.ws?.readyState===s.default.OPEN&&this._subUnsubLokadId(!1,e)}unsubscribeFromLokadId(e){const t=this.subs.lokadIds.findIndex(t=>t===e);if(-1===t)throw new Error(`No existing sub at lokadId "${e}"`);this.subs.lokadIds.splice(t,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubLokadId(!0,e)}subscribeToTokenId(e){(0,c.verifyTokenId)(e),this.subs.tokens.push(e),this.ws?.readyState===s.default.OPEN&&this._subUnsubToken(!1,e)}unsubscribeFromTokenId(e){const t=this.subs.tokens.findIndex(t=>t===e);if(-1===t)throw new Error(`No existing sub at tokenId "${e}"`);this.subs.tokens.splice(t,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubToken(!0,e)}subscribeToPlugin(e,t){const r={pluginName:e,group:t};(0,c.verifyPluginSubscription)(r),this.subs.plugins.push(r),this.ws?.readyState===s.default.OPEN&&this._subUnsubPlugin(!1,r)}unsubscribeFromPlugin(e,t){const r=this.subs.plugins.findIndex(r=>r.pluginName===e&&r.group===t);if(-1===r)throw new Error(`No existing sub at pluginName="${e}", group="${t}"`);this.subs.plugins.splice(r,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubPlugin(!0,{pluginName:e,group:t})}subscribeToTxid(e){(0,c.verifyTxid)(e),this.subs.txids.push(e),this.ws?.readyState===s.default.OPEN&&this._subUnsubTxid(!1,e)}unsubscribeFromTxid(e){const t=this.subs.txids.findIndex(t=>t===e);if(-1===t)throw new Error(`No existing sub to txid "${e}"`);this.subs.txids.splice(t,1),this.ws?.readyState===s.default.OPEN&&this._subUnsubTxid(!0,e)}close(){this.manuallyClosed=!0,this.ws?.close()}_subUnsubBlocks(e){const t=a.WsSub.encode({isUnsub:e,blocks:{}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(t)}_subUnsubScript(e,t){const r=a.WsSub.encode({isUnsub:e,script:{scriptType:t.scriptType,payload:(0,u.fromHex)(t.payload)}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}_subUnsubLokadId(e,t){const r=a.WsSub.encode({isUnsub:e,lokadId:{lokadId:(0,u.fromHex)(t)}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}_subUnsubToken(e,t){const r=a.WsSub.encode({isUnsub:e,tokenId:{tokenId:t}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}_subUnsubTxid(e,t){const r=a.WsSub.encode({isUnsub:e,txid:{txid:t}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}_subUnsubPlugin(e,t){const r=a.WsSub.encode({isUnsub:e,plugin:{pluginName:t.pluginName,group:(0,u.fromHex)(t.group)}}).finish();if(void 0===this.ws)throw new Error("Invalid state; _ws is undefined");this.ws.send(r)}async handleMsg(e){if(void 0===this.onMessage)return;const t="undefined"==typeof window?e.data:new Uint8Array(await e.data.arrayBuffer()),r=a.WsMsg.decode(t);if(void 0!==r.error)this.onMessage({type:"Error",...r.error});else if(void 0!==r.block){const e={type:"Block",msgType:N(r.block.msgType),blockHash:(0,u.toHexRev)(r.block.blockHash),blockHeight:r.block.blockHeight,blockTimestamp:Number(r.block.blockTimestamp)};void 0!==r.block.coinbaseData&&(e.coinbaseData=(n=r.block.coinbaseData,{scriptsig:(0,u.toHex)(n.coinbaseScriptsig),outputs:n.coinbaseOutputs.map(S)})),this.onMessage(e)}else if(void 0!==r.tx){const e={type:"Tx",msgType:M(r.tx.msgType),txid:(0,u.toHexRev)(r.tx.txid)};void 0!==r.tx.finalizationReason&&(e.finalizationReasonType=function(e){const t=a.txFinalizationReasonTypeToJSON(e);if(function(e){return H.includes(e)}(t))return t;return"UNRECOGNIZED"}(r.tx.finalizationReason.finalizationType)),this.onMessage(e)}else console.log("Silently ignored unknown Chronik message:",r);var n}}function b(e){return{...e,hash:(0,u.toHexRev)(e.hash),prevHash:(0,u.toHexRev)(e.prevHash),timestamp:Number(e.timestamp),blockSize:Number(e.blockSize),numTxs:Number(e.numTxs),numInputs:Number(e.numInputs),numOutputs:Number(e.numOutputs),sumInputSats:e.sumInputSats,sumCoinbaseOutputSats:e.sumCoinbaseOutputSats,sumNormalOutputSats:e.sumNormalOutputSats,sumBurnedSats:e.sumBurnedSats}}function v(e){const t={txid:(0,u.toHexRev)(e.txid),version:e.version,inputs:e.inputs.map(w),outputs:e.outputs.map(S),lockTime:e.lockTime,timeFirstSeen:Number(e.timeFirstSeen),size:e.size,isCoinbase:e.isCoinbase,tokenEntries:e.tokenEntries.map(T),tokenFailedParsings:e.tokenFailedParsings.map(R),tokenStatus:I(e.tokenStatus),isFinal:e.isFinal};return void 0!==e.block&&(t.block=x(e.block)),t}function w(e){if(void 0===e.prevOut)throw new Error("Invalid proto, no prevOut");const t={prevOut:{txid:(0,u.toHexRev)(e.prevOut.txid),outIdx:e.prevOut.outIdx},inputScript:(0,u.toHex)(e.inputScript),sats:e.sats,sequenceNo:e.sequenceNo};return void 0!==e.token&&(t.token=$(e.token)),Object.keys(e.plugins).length>0&&(t.plugins=_(e.plugins)),void 0!==e.outputScript&&e.outputScript.length>0&&(t.outputScript=(0,u.toHex)(e.outputScript)),t}function S(e){const t={sats:BigInt(e.sats),outputScript:(0,u.toHex)(e.outputScript)};return Object.keys(e.plugins).length>0&&(t.plugins=_(e.plugins)),void 0!==e.token&&(t.token=$(e.token)),void 0!==e.spentBy&&(t.spentBy={txid:(0,u.toHexRev)(e.spentBy.txid),outIdx:e.spentBy.inputIdx}),t}function _(e){const t={};for(const[r,n]of Object.entries(e)){if(void 0===r)continue;const{groups:e,data:o}=n;t[r]={groups:e.map(u.toHex),data:o.map(u.toHex)}}return t}function x(e){return{height:e.height,hash:(0,u.toHexRev)(e.hash),timestamp:Number(e.timestamp)}}function E(e){if(void 0===e.outpoint)throw new Error("UTXO outpoint is undefined");const t={outpoint:{txid:(0,u.toHexRev)(e.outpoint.txid),outIdx:e.outpoint.outIdx},blockHeight:e.blockHeight,isCoinbase:e.isCoinbase,sats:BigInt(e.sats),isFinal:e.isFinal};return void 0!==e.token&&(t.token=$(e.token)),Object.keys(e.plugins).length>0&&(t.plugins=_(e.plugins)),t}function k(e){if(void 0===e.outpoint)throw new Error("UTXO outpoint is undefined");const t={outpoint:{txid:(0,u.toHexRev)(e.outpoint.txid),outIdx:e.outpoint.outIdx},blockHeight:e.blockHeight,isCoinbase:e.isCoinbase,script:(0,u.toHex)(e.script),sats:BigInt(e.sats),isFinal:e.isFinal};return void 0!==e.token&&(t.token=$(e.token)),Object.keys(e.plugins).length>0&&(t.plugins=_(e.plugins)),t}function T(e){if(void 0===e.tokenType)throw new Error(`chronik returned undefined tokenEntry.tokenType for tokenId "${e.tokenId}"`);const t={tokenId:e.tokenId,tokenType:C(e.tokenType),txType:P(e.txType),isInvalid:e.isInvalid,burnSummary:e.burnSummary,failedColorings:e.failedColorings,actualBurnAtoms:BigInt(e.actualBurnAtoms),intentionalBurnAtoms:e.intentionalBurnAtoms,burnsMintBatons:e.burnsMintBatons};return""!==e.groupTokenId&&(t.groupTokenId=e.groupTokenId),t}function R(e){return{pushdataIdx:e.pushdataIdx,bytes:(0,u.toHex)(e.bytes),error:e.error}}function C(e){return void 0!==e.alp?{protocol:"ALP",type:O(e.alp),number:e.alp}:void 0!==e.slp?{protocol:"SLP",type:B(e.slp),number:e.slp}:void 0!==e.cashTokens?{protocol:"CashTokens",type:"CashTokens",number:0}:{protocol:"UNKNOWN",type:"UNKNOWN",number:0}}function B(e){const t=a.slpTokenTypeToJSON(e);return function(e){return D.includes(e)}(t)?t:"SLP_TOKEN_TYPE_UNKNOWN"}function O(t){const r=a.alpTokenTypeToJSON(t);return function(t){return e.ALP_TOKEN_TYPES.includes(t)}(r)?r:"ALP_TOKEN_TYPE_UNKNOWN"}function I(e){const t=a.tokenStatusToJSON(e);return function(e){return q.includes(e)}(t)?t:"TOKEN_STATUS_UNKNOWN"}function P(e){const t=a.tokenTxTypeToJSON(e);return function(e){return U.includes(e)}(t)?t:"UNKNOWN"}function $(e){if(void 0===e.tokenType)throw new Error(`chronik returned undefined token.tokenType for tokenId "${e.tokenId}"`);const t={tokenId:e.tokenId,tokenType:C(e.tokenType),atoms:BigInt(e.atoms),isMintBaton:e.isMintBaton};return-1!==e.entryIdx&&(t.entryIdx=e.entryIdx),t}function N(e){const t=a.blockMsgTypeToJSON(e);return function(e){return F.includes(e)}(t)?t:"UNRECOGNIZED"}function M(e){const t=a.txMsgTypeToJSON(e);return function(e){return j.includes(e)}(t)?t:"UNRECOGNIZED"}function L(e,t){const r=new TextDecoder,n={tokenTicker:r.decode(e.tokenTicker),tokenName:r.decode(e.tokenName),url:r.decode(e.url),decimals:e.decimals};return"ALP"===t.protocol&&(n.data=(0,u.toHex)(e.data),n.authPubkey=(0,u.toHex)(e.authPubkey)),"SLP_TOKEN_TYPE_MINT_VAULT"===t.type&&(n.mintVaultScripthash=(0,u.toHex)(e.mintVaultScripthash)),"SLP"===t.protocol&&(n.hash=(0,u.toHex)(e.hash)),n}e.WsEndpoint=A,e.ALP_TOKEN_TYPES=["ALP_TOKEN_TYPE_STANDARD","ALP_TOKEN_TYPE_UNKNOWN"];const D=["SLP_TOKEN_TYPE_FUNGIBLE","SLP_TOKEN_TYPE_MINT_VAULT","SLP_TOKEN_TYPE_NFT1_GROUP","SLP_TOKEN_TYPE_NFT1_CHILD","SLP_TOKEN_TYPE_UNKNOWN"],q=["TOKEN_STATUS_NON_TOKEN","TOKEN_STATUS_NORMAL","TOKEN_STATUS_NOT_NORMAL","TOKEN_STATUS_UNKNOWN"],U=["NONE","UNKNOWN","GENESIS","SEND","MINT","BURN"],F=["BLK_CONNECTED","BLK_DISCONNECTED","BLK_FINALIZED","BLK_INVALIDATED","UNRECOGNIZED"],j=["TX_ADDED_TO_MEMPOOL","TX_REMOVED_FROM_MEMPOOL","TX_CONFIRMED","TX_FINALIZED","TX_INVALIDATED","UNRECOGNIZED"],H=["TX_FINALIZATION_REASON_POST_CONSENSUS","TX_FINALIZATION_REASON_PRE_CONSENSUS","UNRECOGNIZED"]}(ChronikClient)),ChronikClient}function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(e){var t=dist&&dist.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=dist&&dist.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(requireChronikClient(),e)}(dist)),dist}var distExports=requireDist(),cashaddrExports=requireCashaddr(),EXP_LIMIT=9e15,MAX_DIGITS=1e9,NUMERALS="0123456789abcdef",LN10="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",PI="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",DEFAULTS={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-EXP_LIMIT,maxE:EXP_LIMIT,crypto:!1},inexact,quadrant,external=!0,decimalError="[DecimalError] ",invalidArgument=decimalError+"Invalid argument: ",precisionLimitExceeded=decimalError+"Precision limit exceeded",cryptoUnavailable=decimalError+"crypto unavailable",tag="[object Decimal]",mathfloor=Math.floor,mathpow=Math.pow,isBinary=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,isHex=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,isOctal=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,isDecimal=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,BASE=1e7,LOG_BASE=7,MAX_SAFE_INTEGER=9007199254740991,LN10_PRECISION=LN10.length-1,PI_PRECISION=PI.length-1,P={toStringTag:tag};function digitsToString(e){var t,r,n,o=e.length-1,i="",s=e[0];if(o>0){for(i+=s,t=1;tr)throw Error(invalidArgument+e)}function checkRoundingDigits(e,t,r,n){var o,i,s,a;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=LOG_BASE,o=0):(o=Math.ceil((t+1)/LOG_BASE),t%=LOG_BASE),i=mathpow(10,LOG_BASE-t),a=e[o]%i|0,null==n?t<3?(0==t?a=a/100|0:1==t&&(a=a/10|0),s=r<4&&99999==a||r>3&&49999==a||5e4==a||0==a):s=(r<4&&a+1==i||r>3&&a+1==i/2)&&(e[o+1]/i/100|0)==mathpow(10,t-2)-1||(a==i/2||0==a)&&!(e[o+1]/i/100|0):t<4?(0==t?a=a/1e3|0:1==t?a=a/100|0:2==t&&(a=a/10|0),s=(n||r<4)&&9999==a||!n&&r>3&&4999==a):s=((n||r<4)&&a+1==i||!n&&r>3&&a+1==i/2)&&(e[o+1]/i/1e3|0)==mathpow(10,t-3)-1,s}function convertBase(e,t,r){for(var n,o,i=[0],s=0,a=e.length;sr-1&&(void 0===i[n+1]&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function cosine(e,t){var r,n,o;if(t.isZero())return t;(n=t.d.length)<32?o=(1/tinyPow(4,r=Math.ceil(n/3))).toString():(r=16,o="2.3283064365386962890625e-10"),e.precision+=r,t=taylorSeries(e,1,t.times(o),new e(1));for(var i=r;i--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}P.absoluteValue=P.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),finalise(e)},P.ceil=function(){return finalise(new this.constructor(this),this.e+1,2)},P.clampedTo=P.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(invalidArgument+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},P.comparedTo=P.cmp=function(e){var t,r,n,o,i=this,s=i.d,a=(e=new i.constructor(e)).d,l=i.s,u=e.s;if(!s||!a)return l&&u?l!==u?l:s===a?0:!s^l<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?l:a[0]?-u:0;if(l!==u)return l;if(i.e!==e.e)return i.e>e.e^l<0?1:-1;for(t=0,r=(n=s.length)<(o=a.length)?n:o;ta[t]^l<0?1:-1;return n===o?0:n>o^l<0?1:-1},P.cosine=P.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+LOG_BASE,n.rounding=1,r=cosine(n,toLessThanHalfPi(n,r)),n.precision=e,n.rounding=t,finalise(2==quadrant||3==quadrant?r.neg():r,e,t,!0)):new n(1):new n(NaN)},P.cubeRoot=P.cbrt=function(){var e,t,r,n,o,i,s,a,l,u,c=this,d=c.constructor;if(!c.isFinite()||c.isZero())return new d(c);for(external=!1,(i=c.s*mathpow(c.s*c,1/3))&&Math.abs(i)!=1/0?n=new d(i.toString()):(r=digitsToString(c.d),(i=((e=c.e)-r.length+1)%3)&&(r+=1==i||-2==i?"0":"00"),i=mathpow(r,1/3),e=mathfloor((e+1)/3)-(e%3==(e<0?-1:2)),(n=new d(r=i==1/0?"5e"+e:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=c.s),s=(e=d.precision)+3;;)if(u=(l=(a=n).times(a).times(a)).plus(c),n=divide(u.plus(c).times(a),u.plus(l),s+2,1),digitsToString(a.d).slice(0,s)===(r=digitsToString(n.d)).slice(0,s)){if("9999"!=(r=r.slice(s-3,s+1))&&(o||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(finalise(n,e+1,1),t=!n.times(n).times(n).eq(c));break}if(!o&&(finalise(a,e+1,0),a.times(a).times(a).eq(c))){n=a;break}s+=4,o=1}return external=!0,finalise(n,e,d.rounding,t)},P.decimalPlaces=P.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-mathfloor(this.e/LOG_BASE))*LOG_BASE,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},P.dividedBy=P.div=function(e){return divide(this,new this.constructor(e))},P.dividedToIntegerBy=P.divToInt=function(e){var t=this.constructor;return finalise(divide(this,new t(e),0,1,1),t.precision,t.rounding)},P.equals=P.eq=function(e){return 0===this.cmp(e)},P.floor=function(){return finalise(new this.constructor(this),this.e+1,3)},P.greaterThan=P.gt=function(e){return this.cmp(e)>0},P.greaterThanOrEqualTo=P.gte=function(e){var t=this.cmp(e);return 1==t||0===t},P.hyperbolicCosine=P.cosh=function(){var e,t,r,n,o,i=this,s=i.constructor,a=new s(1);if(!i.isFinite())return new s(i.s?1/0:NaN);if(i.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(i.e,i.sd())+4,s.rounding=1,(o=i.d.length)<32?t=(1/tinyPow(4,e=Math.ceil(o/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=taylorSeries(s,1,i.times(t),new s(1),!0);for(var l,u=e,c=new s(8);u--;)l=i.times(i),i=a.minus(l.times(c.minus(l.times(c))));return finalise(i,s.precision=r,s.rounding=n,!0)},P.hyperbolicSine=P.sinh=function(){var e,t,r,n,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(t=i.precision,r=i.rounding,i.precision=t+Math.max(o.e,o.sd())+4,i.rounding=1,(n=o.d.length)<3)o=taylorSeries(i,2,o,o,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,o=taylorSeries(i,2,o=o.times(1/tinyPow(5,e)),o,!0);for(var s,a=new i(5),l=new i(16),u=new i(20);e--;)s=o.times(o),o=o.times(a.plus(s.times(l.times(s).plus(u))))}return i.precision=t,i.rounding=r,finalise(o,t,r,!0)},P.hyperbolicTangent=P.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,divide(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},P.inverseCosine=P.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,o=t.rounding;return-1!==r?0===r?e.isNeg()?getPi(t,n,o):new t(0):new t(NaN):e.isZero()?getPi(t,n+4,o).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=o,e.times(2))},P.inverseHyperbolicCosine=P.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,external=!1,r=r.times(r).minus(1).sqrt().plus(r),external=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},P.inverseHyperbolicSine=P.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,external=!1,r=r.times(r).plus(1).sqrt().plus(r),external=!0,n.precision=e,n.rounding=t,r.ln())},P.inverseHyperbolicTangent=P.atanh=function(){var e,t,r,n,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=i.precision,t=i.rounding,n=o.sd(),Math.max(n,e)<2*-o.e-1?finalise(new i(o),e,t,!0):(i.precision=r=n-o.e,o=divide(o.plus(1),new i(1).minus(o),r+e,1),i.precision=e+4,i.rounding=1,o=o.ln(),i.precision=e,i.rounding=t,o.times(.5))):new i(NaN)},P.inverseSine=P.asin=function(){var e,t,r,n,o=this,i=o.constructor;return o.isZero()?new i(o):(t=o.abs().cmp(1),r=i.precision,n=i.rounding,-1!==t?0===t?((e=getPi(i,r+4,n).times(.5)).s=o.s,e):new i(NaN):(i.precision=r+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=r,i.rounding=n,o.times(2)))},P.inverseTangent=P.atan=function(){var e,t,r,n,o,i,s,a,l,u=this,c=u.constructor,d=c.precision,f=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&d+4<=PI_PRECISION)return(s=getPi(c,d+4,f).times(.25)).s=u.s,s}else{if(!u.s)return new c(NaN);if(d+4<=PI_PRECISION)return(s=getPi(c,d+4,f).times(.5)).s=u.s,s}for(c.precision=a=d+10,c.rounding=1,e=r=Math.min(28,a/LOG_BASE+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(external=!1,t=Math.ceil(a/LOG_BASE),n=1,l=u.times(u),s=new c(u),o=u;-1!==e;)if(o=o.times(l),i=s.minus(o.div(n+=2)),o=o.times(l),void 0!==(s=i.plus(o.div(n+=2))).d[t])for(e=t;s.d[e]===i.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isPositive=P.isPos=function(){return this.s>0},P.isZero=function(){return!!this.d&&0===this.d[0]},P.lessThan=P.lt=function(e){return this.cmp(e)<0},P.lessThanOrEqualTo=P.lte=function(e){return this.cmp(e)<1},P.logarithm=P.log=function(e){var t,r,n,o,i,s,a,l,u=this,c=u.constructor,d=c.precision,f=c.rounding;if(null==e)e=new c(10),t=!0;else{if(r=(e=new c(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(r=u.d,u.s<0||!r||!r[0]||u.eq(1))return new c(r&&!r[0]?-1/0:1!=u.s?NaN:r?0:1/0);if(t)if(r.length>1)i=!0;else{for(o=r[0];o%10==0;)o/=10;i=1!==o}if(external=!1,s=naturalLogarithm(u,a=d+5),n=t?getLn10(c,a+10):naturalLogarithm(e,a),checkRoundingDigits((l=divide(s,n,a,1)).d,o=d,f))do{if(s=naturalLogarithm(u,a+=10),n=t?getLn10(c,a+10):naturalLogarithm(e,a),l=divide(s,n,a,1),!i){+digitsToString(l.d).slice(o+1,o+15)+1==1e14&&(l=finalise(l,d+1,0));break}}while(checkRoundingDigits(l.d,o+=10,f));return external=!0,finalise(l,d,f)},P.minus=P.sub=function(e){var t,r,n,o,i,s,a,l,u,c,d,f,p=this,h=p.constructor;if(e=new h(e),!p.d||!e.d)return p.s&&e.s?p.d?e.s=-e.s:e=new h(e.d||p.s!==e.s?p:NaN):e=new h(NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(u=p.d,f=e.d,a=h.precision,l=h.rounding,!u[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!u[0])return new h(3===l?-0:0);e=new h(p)}return external?finalise(e,a,l):e}if(r=mathfloor(e.e/LOG_BASE),c=mathfloor(p.e/LOG_BASE),u=u.slice(),i=c-r){for((d=i<0)?(t=u,i=-i,s=f.length):(t=f,r=c,s=u.length),i>(n=Math.max(Math.ceil(a/LOG_BASE),s)+2)&&(i=n,t.length=1),t.reverse(),n=i;n--;)t.push(0);t.reverse()}else{for((d=(n=u.length)<(s=f.length))&&(s=n),n=0;n0;--n)u[s++]=0;for(n=f.length;n>i;){if(u[--n](s=(i=Math.ceil(a/LOG_BASE))>s?i+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=u.length)-(o=c.length)<0&&(o=s,r=c,c=u,u=r),t=0;o;)t=(u[--o]=u[o]+c[o]+t)/BASE|0,u[o]%=BASE;for(t&&(u.unshift(t),++n),s=u.length;0==u[--s];)u.pop();return e.d=u,e.e=getBase10Exponent(u,n),external?finalise(e,a,l):e},P.precision=P.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(invalidArgument+e);return r.d?(t=getPrecision(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},P.round=function(){var e=this,t=e.constructor;return finalise(new t(e),e.e+1,t.rounding)},P.sine=P.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+LOG_BASE,n.rounding=1,r=sine(n,toLessThanHalfPi(n,r)),n.precision=e,n.rounding=t,finalise(quadrant>2?r.neg():r,e,t,!0)):new n(NaN)},P.squareRoot=P.sqrt=function(){var e,t,r,n,o,i,s=this,a=s.d,l=s.e,u=s.s,c=s.constructor;if(1!==u||!a||!a[0])return new c(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(external=!1,0==(u=Math.sqrt(+s))||u==1/0?(((t=digitsToString(a)).length+l)%2==0&&(t+="0"),u=Math.sqrt(t),l=mathfloor((l+1)/2)-(l<0||l%2),n=new c(t=u==1/0?"5e"+l:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new c(u.toString()),r=(l=c.precision)+3;;)if(n=(i=n).plus(divide(s,i,r+2,1)).times(.5),digitsToString(i.d).slice(0,r)===(t=digitsToString(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(finalise(n,l+1,1),e=!n.times(n).eq(s));break}if(!o&&(finalise(i,l+1,0),i.times(i).eq(s))){n=i;break}r+=4,o=1}return external=!0,finalise(n,l,c.rounding,e)},P.tangent=P.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=divide(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,finalise(2==quadrant||4==quadrant?r.neg():r,e,t,!0)):new n(NaN)},P.times=P.mul=function(e){var t,r,n,o,i,s,a,l,u,c=this,d=c.constructor,f=c.d,p=(e=new d(e)).d;if(e.s*=c.s,!(f&&f[0]&&p&&p[0]))return new d(!e.s||f&&!f[0]&&!p||p&&!p[0]&&!f?NaN:f&&p?0*e.s:e.s/0);for(r=mathfloor(c.e/LOG_BASE)+mathfloor(e.e/LOG_BASE),(l=f.length)<(u=p.length)&&(i=f,f=p,p=i,s=l,l=u,u=s),i=[],n=s=l+u;n--;)i.push(0);for(n=u;--n>=0;){for(t=0,o=l+n;o>n;)a=i[o]+p[n]*f[o-n-1]+t,i[o--]=a%BASE|0,t=a/BASE|0;i[o]=(i[o]+t)%BASE|0}for(;!i[--s];)i.pop();return t?++r:i.shift(),e.d=i,e.e=getBase10Exponent(i,r),external?finalise(e,d.precision,d.rounding):e},P.toBinary=function(e,t){return toStringBinary(this,2,e,t)},P.toDecimalPlaces=P.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(checkInt32(e,0,MAX_DIGITS),void 0===t?t=n.rounding:checkInt32(t,0,8),finalise(r,e+r.e+1,t))},P.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=finiteToString(n,!0):(checkInt32(e,0,MAX_DIGITS),void 0===t?t=o.rounding:checkInt32(t,0,8),r=finiteToString(n=finalise(new o(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},P.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return void 0===e?r=finiteToString(o):(checkInt32(e,0,MAX_DIGITS),void 0===t?t=i.rounding:checkInt32(t,0,8),r=finiteToString(n=finalise(new i(o),e+o.e+1,t),!1,e+n.e+1)),o.isNeg()&&!o.isZero()?"-"+r:r},P.toFraction=function(e){var t,r,n,o,i,s,a,l,u,c,d,f,p=this,h=p.d,m=p.constructor;if(!h)return new m(p);if(u=r=new m(1),n=l=new m(0),s=(i=(t=new m(n)).e=getPrecision(h)-p.e-1)%LOG_BASE,t.d[0]=mathpow(10,s<0?LOG_BASE+s:s),null==e)e=i>0?t:u;else{if(!(a=new m(e)).isInt()||a.lt(u))throw Error(invalidArgument+a);e=a.gt(t)?i>0?t:u:a}for(external=!1,a=new m(digitsToString(h)),c=m.precision,m.precision=i=h.length*LOG_BASE*2;d=divide(a,t,0,1,1),1!=(o=r.plus(d.times(n))).cmp(e);)r=n,n=o,o=u,u=l.plus(d.times(o)),l=o,o=t,t=a.minus(d.times(o)),a=o;return o=divide(e.minus(r),n,0,1,1),l=l.plus(o.times(u)),r=r.plus(o.times(n)),l.s=u.s=p.s,f=divide(u,n,i,1).minus(p).abs().cmp(divide(l,r,i,1).minus(p).abs())<1?[u,n]:[l,r],m.precision=c,external=!0,f},P.toHexadecimal=P.toHex=function(e,t){return toStringBinary(this,16,e,t)},P.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:checkInt32(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(external=!1,r=divide(r,e,0,t,1).times(e),external=!0,finalise(r)):(e.s=r.s,r=e),r},P.toNumber=function(){return+this},P.toOctal=function(e,t){return toStringBinary(this,8,e,t)},P.toPower=P.pow=function(e){var t,r,n,o,i,s,a=this,l=a.constructor,u=+(e=new l(e));if(!(a.d&&e.d&&a.d[0]&&e.d[0]))return new l(mathpow(+a,u));if((a=new l(a)).eq(1))return a;if(n=l.precision,i=l.rounding,e.eq(1))return finalise(a,n,i);if((t=mathfloor(e.e/LOG_BASE))>=e.d.length-1&&(r=u<0?-u:u)<=MAX_SAFE_INTEGER)return o=intPow(l,a,r,n),e.s<0?new l(1).div(o):finalise(o,n,i);if((s=a.s)<0){if(tl.maxE+1||t0?s/0:0):(external=!1,l.rounding=a.s=1,r=Math.min(12,(t+"").length),(o=naturalExponential(e.times(naturalLogarithm(a,n+r)),n)).d&&checkRoundingDigits((o=finalise(o,n+5,1)).d,n,i)&&(t=n+10,+digitsToString((o=finalise(naturalExponential(e.times(naturalLogarithm(a,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(o=finalise(o,n+1,0))),o.s=s,external=!0,l.rounding=i,finalise(o,n,i))},P.toPrecision=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=finiteToString(n,n.e<=o.toExpNeg||n.e>=o.toExpPos):(checkInt32(e,1,MAX_DIGITS),void 0===t?t=o.rounding:checkInt32(t,0,8),r=finiteToString(n=finalise(new o(n),e,t),e<=n.e||n.e<=o.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},P.toSignificantDigits=P.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(checkInt32(e,1,MAX_DIGITS),void 0===t?t=r.rounding:checkInt32(t,0,8)),finalise(new r(this),e,t)},P.toString=function(){var e=this,t=e.constructor,r=finiteToString(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},P.truncated=P.trunc=function(){return finalise(new this.constructor(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var e=this,t=e.constructor,r=finiteToString(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var divide=function(){function e(e,t,r){var n,o=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+o,e[i]=n%r|0,o=n/r|0;return o&&e.unshift(o),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,r,n){for(var o=0;r--;)e[r]-=o,o=e[r]1;)e.shift()}return function(n,o,i,s,a,l){var u,c,d,f,p,h,m,g,y,A,b,v,w,S,_,x,E,k,T,R,C=n.constructor,B=n.s==o.s?1:-1,O=n.d,I=o.d;if(!(O&&O[0]&&I&&I[0]))return new C(n.s&&o.s&&(O?!I||O[0]!=I[0]:I)?O&&0==O[0]||!I?0*B:B/0:NaN);for(l?(p=1,c=n.e-o.e):(l=BASE,p=LOG_BASE,c=mathfloor(n.e/p)-mathfloor(o.e/p)),T=I.length,E=O.length,A=(y=new C(B)).d=[],d=0;I[d]==(O[d]||0);d++);if(I[d]>(O[d]||0)&&c--,null==i?(S=i=C.precision,s=C.rounding):S=a?i+(n.e-o.e)+1:i,S<0)A.push(1),h=!0;else{if(S=S/p+2|0,d=0,1==T){for(f=0,I=I[0],S++;(d1&&(I=e(I,f,l),O=e(O,f,l),T=I.length,E=O.length),x=T,v=(b=O.slice(0,T)).length;v=l/2&&++k;do{f=0,(u=t(I,b,T,v))<0?(w=b[0],T!=v&&(w=w*l+(b[1]||0)),(f=w/k|0)>1?(f>=l&&(f=l-1),1==(u=t(m=e(I,f,l),b,g=m.length,v=b.length))&&(f--,r(m,T=10;f/=10)d++;y.e=d+c*p-1,finalise(y,a?i+y.e+1:i,s,h)}return y}}();function finalise(e,t,r,n){var o,i,s,a,l,u,c,d,f,p=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(o=1,a=d[0];a>=10;a/=10)o++;if((i=t-o)<0)i+=LOG_BASE,s=t,l=(c=d[f=0])/mathpow(10,o-s-1)%10|0;else if((f=Math.ceil((i+1)/LOG_BASE))>=(a=d.length)){if(!n)break e;for(;a++<=f;)d.push(0);c=l=0,o=1,s=(i%=LOG_BASE)-LOG_BASE+1}else{for(c=a=d[f],o=1;a>=10;a/=10)o++;l=(s=(i%=LOG_BASE)-LOG_BASE+o)<0?0:c/mathpow(10,o-s-1)%10|0}if(n=n||t<0||void 0!==d[f+1]||(s<0?c:c%mathpow(10,o-s-1)),u=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(i>0?s>0?c/mathpow(10,o-s):0:d[f-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=mathpow(10,(LOG_BASE-t%LOG_BASE)%LOG_BASE),e.e=-t||0):d[0]=e.e=0,e;if(0==i?(d.length=f,a=1,f--):(d.length=f+1,a=mathpow(10,LOG_BASE-i),d[f]=s>0?(c/mathpow(10,o-s)%mathpow(10,s)|0)*a:0),u)for(;;){if(0==f){for(i=1,s=d[0];s>=10;s/=10)i++;for(s=d[0]+=a,a=1;s>=10;s/=10)a++;i!=a&&(e.e++,d[0]==BASE&&(d[0]=1));break}if(d[f]+=a,d[f]!=BASE)break;d[f--]=0,a=1}for(i=d.length;0===d[--i];)d.pop()}return external&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e0?i=i.charAt(0)+"."+i.slice(1)+getZeroString(n):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):o<0?(i="0."+getZeroString(-o-1)+i,r&&(n=r-s)>0&&(i+=getZeroString(n))):o>=s?(i+=getZeroString(o+1-s),r&&(n=r-o-1)>0&&(i=i+"."+getZeroString(n))):((n=o+1)0&&(o+1===s&&(i+="."),i+=getZeroString(n))),i}function getBase10Exponent(e,t){var r=e[0];for(t*=LOG_BASE;r>=10;r/=10)t++;return t}function getLn10(e,t,r){if(t>LN10_PRECISION)throw external=!0,r&&(e.precision=r),Error(precisionLimitExceeded);return finalise(new e(LN10),t,1,!0)}function getPi(e,t,r){if(t>PI_PRECISION)throw Error(precisionLimitExceeded);return finalise(new e(PI),t,r,!0)}function getPrecision(e){var t=e.length-1,r=t*LOG_BASE+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function getZeroString(e){for(var t="";e--;)t+="0";return t}function intPow(e,t,r,n){var o,i=new e(1),s=Math.ceil(n/LOG_BASE+4);for(external=!1;;){if(r%2&&truncate((i=i.times(t)).d,s)&&(o=!0),0===(r=mathfloor(r/2))){r=i.d.length-1,o&&0===i.d[r]&&++i.d[r];break}truncate((t=t.times(t)).d,s)}return external=!0,i}function isOdd(e){return 1&e.d[e.d.length-1]}function maxOrMin(e,t,r){for(var n,o,i=new e(t[0]),s=0;++s17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(external=!1,l=h):l=t,a=new f(.03125);e.e>-2;)e=e.times(a),d+=5;for(l+=n=Math.log(mathpow(2,d))/Math.LN10*2+5|0,r=i=s=new f(1),f.precision=l;;){if(i=finalise(i.times(e),l,1),r=r.times(++c),digitsToString((a=s.plus(divide(i,r,l,1))).d).slice(0,l)===digitsToString(s.d).slice(0,l)){for(o=d;o--;)s=finalise(s.times(s),l,1);if(null!=t)return f.precision=h,s;if(!(u<3&&checkRoundingDigits(s.d,l-n,p,u)))return finalise(s,f.precision=h,p,external=!0);f.precision=l+=10,r=i=a=new f(1),c=0,u++}s=a}}function naturalLogarithm(e,t){var r,n,o,i,s,a,l,u,c,d,f,p=1,h=e,m=h.d,g=h.constructor,y=g.rounding,A=g.precision;if(h.s<0||!m||!m[0]||!h.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=h.s?NaN:m?0:h);if(null==t?(external=!1,c=A):c=t,g.precision=c+=10,n=(r=digitsToString(m)).charAt(0),!(Math.abs(i=h.e)<15e14))return u=getLn10(g,c+2,A).times(i+""),h=naturalLogarithm(new g(n+"."+r.slice(1)),c-10).plus(u),g.precision=A,null==t?finalise(h,A,y,external=!0):h;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=digitsToString((h=h.times(e)).d)).charAt(0),p++;for(i=h.e,n>1?(h=new g("0."+r),i++):h=new g(n+"."+r.slice(1)),d=h,l=s=h=divide(h.minus(1),h.plus(1),c,1),f=finalise(h.times(h),c,1),o=3;;){if(s=finalise(s.times(f),c,1),digitsToString((u=l.plus(divide(s,new g(o),c,1))).d).slice(0,c)===digitsToString(l.d).slice(0,c)){if(l=l.times(2),0!==i&&(l=l.plus(getLn10(g,c+2,A).times(i+""))),l=divide(l,new g(p),c,1),null!=t)return g.precision=A,l;if(!checkRoundingDigits(l.d,c-10,y,a))return finalise(l,g.precision=A,y,external=!0);g.precision=c+=10,u=s=h=divide(d.minus(1),d.plus(1),c,1),f=finalise(h.times(h),c,1),o=a=1}l=u,o+=2}}function nonFiniteToString(e){return String(e.s*e.s/0)}function parseDecimal(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(o=t.length;48===t.charCodeAt(o-1);--o);if(t=t.slice(n,o)){if(o-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%LOG_BASE,r<0&&(n+=LOG_BASE),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),isDecimal.test(t))return parseDecimal(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(isHex.test(t))r=16,t=t.toLowerCase();else if(isBinary.test(t))r=2;else{if(!isOctal.test(t))throw Error(invalidArgument+t);r=8}for((i=t.search(/p/i))>0?(l=+t.slice(i+1),t=t.substring(2,i)):t=t.slice(2),s=(i=t.indexOf("."))>=0,n=e.constructor,s&&(i=(a=(t=t.replace(".","")).length)-i,o=intPow(n,new n(r),i,2*i)),i=c=(u=convertBase(t,r,BASE)).length-1;0===u[i];--i)u.pop();return i<0?new n(0*e.s):(e.e=getBase10Exponent(u,c),e.d=u,external=!1,s&&(e=divide(e,o,4*a)),l&&(e=e.times(Math.abs(l)<54?mathpow(2,l):Decimal.pow(2,l))),external=!0,e)}function sine(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:taylorSeries(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=taylorSeries(e,2,t=t.times(1/tinyPow(5,r)),t);for(var o,i=new e(5),s=new e(16),a=new e(20);r--;)o=t.times(t),t=t.times(i.plus(o.times(s.times(o).minus(a))));return t}function taylorSeries(e,t,r,n,o){var i,s,a,l,u=e.precision,c=Math.ceil(u/LOG_BASE);for(external=!1,l=r.times(r),a=new e(n);;){if(s=divide(a.times(l),new e(t++*t++),u,1),a=o?n.plus(s):n.minus(s),n=divide(s.times(l),new e(t++*t++),u,1),void 0!==(s=a.plus(n)).d[c]){for(i=c;s.d[i]===a.d[i]&&i--;);if(-1==i)break}i=a,a=n,n=s,s=i}return external=!0,s.d.length=c+1,s}function tinyPow(e,t){for(var r=e;--t;)r*=e;return r}function toLessThanHalfPi(e,t){var r,n=t.s<0,o=getPi(e,e.precision,1),i=o.times(.5);if((t=t.abs()).lte(i))return quadrant=n?4:1,t;if((r=t.divToInt(o)).isZero())quadrant=n?3:2;else{if((t=t.minus(r.times(o))).lte(i))return quadrant=isOdd(r)?n?2:3:n?4:1,t;quadrant=isOdd(r)?n?1:4:n?3:2}return t.minus(o).abs()}function toStringBinary(e,t,r,n){var o,i,s,a,l,u,c,d,f,p=e.constructor,h=void 0!==r;if(h?(checkInt32(r,1,MAX_DIGITS),void 0===n?n=p.rounding:checkInt32(n,0,8)):(r=p.precision,n=p.rounding),e.isFinite()){for(h?(o=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):o=t,(s=(c=finiteToString(e)).indexOf("."))>=0&&(c=c.replace(".",""),(f=new p(1)).e=c.length-s,f.d=convertBase(finiteToString(f),10,o),f.e=f.d.length),i=l=(d=convertBase(c,10,o)).length;0==d[--l];)d.pop();if(d[0]){if(s<0?i--:((e=new p(e)).d=d,e.e=i,d=(e=divide(e,f,r,n,0,o)).d,i=e.e,u=inexact),s=d[r],a=o/2,u=u||void 0!==d[r+1],u=n<4?(void 0!==s||u)&&(0===n||n===(e.s<0?3:2)):s>a||s===a&&(4===n||u||6===n&&1&d[r-1]||n===(e.s<0?8:7)),d.length=r,u)for(;++d[--r]>o-1;)d[r]=0,r||(++i,d.unshift(1));for(l=d.length;!d[l-1];--l);for(s=0,c="";s1)if(16==t||8==t){for(s=16==t?4:3,--l;l%s;l++)c+="0";for(l=(d=convertBase(c,o,t)).length;!d[l-1];--l);for(s=1,c="1.";sl)for(i-=l;i--;)c+="0";else it)return e.length=t,!0}function abs(e){return new this(e).abs()}function acos(e){return new this(e).acos()}function acosh(e){return new this(e).acosh()}function add(e,t){return new this(e).plus(t)}function asin(e){return new this(e).asin()}function asinh(e){return new this(e).asinh()}function atan(e){return new this(e).atan()}function atanh(e){return new this(e).atanh()}function atan2(e,t){e=new this(e),t=new this(t);var r,n=this.precision,o=this.rounding,i=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?getPi(this,n,o):new this(0)).s=e.s:!e.d||t.isZero()?(r=getPi(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,r=this.atan(divide(e,t,i,1)),t=getPi(this,i,1),this.precision=n,this.rounding=o,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(divide(e,t,i,1)):(r=getPi(this,i,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function cbrt(e){return new this(e).cbrt()}function ceil(e){return finalise(e=new this(e),e.e+1,2)}function clamp$1(e,t,r){return new this(e).clamp(t,r)}function config(e){if(!e||"object"!=typeof e)throw Error(decimalError+"Object expected");var t,r,n,o=!0===e.defaults,i=["precision",1,MAX_DIGITS,"rounding",0,8,"toExpNeg",-EXP_LIMIT,0,"toExpPos",0,EXP_LIMIT,"maxE",0,EXP_LIMIT,"minE",-EXP_LIMIT,0,"modulo",0,9];for(t=0;t=i[t+1]&&n<=i[t+2]))throw Error(invalidArgument+r+": "+n);this[r]=n}if(r="crypto",o&&(this[r]=DEFAULTS[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(invalidArgument+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(cryptoUnavailable);this[r]=!0}else this[r]=!1}return this}function cos(e){return new this(e).cos()}function cosh(e){return new this(e).cosh()}function clone(e){var t,r,n;function o(e){var t,r,n,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,isDecimalInstance(e))return i.s=e.s,void(external?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e=10;r/=10)t++;return void(external?t>o.maxE?(i.e=NaN,i.d=null):t=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:a[i++]=o%1e7;else{if(!crypto.randomBytes)throw Error(cryptoUnavailable);for(t=crypto.randomBytes(n*=4);i=214e7?crypto.randomBytes(4).copy(t,i):(a.push(o%1e7),i+=4);i=n/4}else for(;i=10;o/=10)n++;n{if("object"==typeof window){let e=(t?t.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return e.nonce=window.__nonce__,e.parentNode||(t||document.head).appendChild(e),e.firstChild}return t||e},l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n=/\n+/g,o=(e,t)=>{let r="",n="",i="";for(let s in e){let a=e[s];"@"==s[0]?"i"==s[1]?r=s+" "+a+";":n+="f"==s[1]?o(a,s):s+"{"+o(a,"k"==s[1]?"":t)+"}":"object"==typeof a?n+=o(a,t?t.replace(/([^,])+/g,e=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):s):null!=a&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=o.p?o.p(s,a):s+":"+a+";")}return r+(t&&i?t+"{"+i+"}":i)+n},c={},s=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+s(e[r]);return t}return e},i=(e,t,r,i,u)=>{let d=s(e),f=c[d]||(c[d]=(e=>{let t=0,r=11;for(;t>>0;return"go"+r})(d));if(!c[f]){let t=d!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,""));)t[4]?o.shift():t[3]?(r=t[3].replace(n," ").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n," ").trim();return o[0]})(e);c[f]=o(u?{["@keyframes "+f]:t}:t,r?"":"."+f)}let p=r&&c.g?c.g:null;return r&&(c.g=c[f]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(c[f],t,i,p),f},p=(e,t,r)=>e.reduce((e,n,i)=>{let s=t[i];if(s&&s.call){let e=s(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;s=t?"."+t:e&&"object"==typeof e?e.props?"":o(e,""):!1===e?"":e}return e+n+(null==s?"":s)},"");function u(e){let r=this||{},n=e.call?e(r.p):e;return i(n.unshift?n.raw?p(n,[].slice.call(arguments,1),r.p):n.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):n,t(r.target),r.g,r.o,r.k)}function _defineProperties(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}u.bind({g:1}),u.bind({k:1});var noOp=function(){return""},SnackbarContext=Rn.createContext({enqueueSnackbar:noOp,closeSnackbar:noOp}),breakpoints={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},capitalise=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},originKeyExtractor=function(e){return""+capitalise(e.vertical)+capitalise(e.horizontal)},isDefined=function(e){return!!e||0===e},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(e){function t(t){var r;r=e.call(this,t)||this;var n,o=t.appear;return r.appearStatus=null,t.in?o?(n=EXITED,r.appearStatus=ENTERING):n=ENTERED:n=t.unmountOnExit||t.mountOnEnter?UNMOUNTED:EXITED,r.state={status:n},r.nextCallback=null,r}_inheritsLoose(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===UNMOUNTED?{status:EXITED}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ENTERING&&r!==ENTERED&&(t=ENTERING):r!==ENTERING&&r!==ENTERED||(t=EXITING)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e=this.props.timeout,t=e,r=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(r=e.exit,t=e.enter),{exit:r,enter:t}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===ENTERING?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},r.performEnter=function(e){var t=this,r=this.props.enter,n=e,o=this.getTimeouts();e||r?(this.props.onEnter&&this.props.onEnter(this.node,n),this.safeSetState({status:ENTERING},function(){t.props.onEntering&&t.props.onEntering(t.node,n),t.onTransitionEnd(o.enter,function(){t.safeSetState({status:ENTERED},function(){t.props.onEntered&&t.props.onEntered(t.node,n)})})})):this.safeSetState({status:ENTERED},function(){t.props.onEntered&&t.props.onEntered(t.node,n)})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:EXITING},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:EXITED},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:EXITED},function(){e.props.onExited&&e.props.onExited(e.node)})},r.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(){r&&(r=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=null==e&&!this.props.addEndListener;this.node&&!r?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===UNMOUNTED)return null;var t=this.props;return(0,t.children)(e,_objectWithoutPropertiesLoose(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},_createClass(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(Rn.Component);function noop$1(){}function setRef(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function useForkRef(e,t){return T$1(function(){return null==e&&null==t?null:function(r){setRef(e,r),setRef(t,r)}},[e,t])}function getTransitionProps(e){var t=e.timeout,r=e.style,n=void 0===r?{}:r,o=e.mode;return{duration:"object"==typeof t?t[o]||0:t,easing:n.transitionTimingFunction,delay:n.transitionDelay}}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$1,onEntering:noop$1,onEntered:noop$1,onExit:noop$1,onExiting:noop$1,onExited:noop$1};var defaultEasing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},reflow=function(e){e.scrollTop=e.scrollTop},formatMs=function(e){return Math.round(e)+"ms"};function createTransition(e,t){void 0===e&&(e=["all"]);var r=t||{},n=r.duration,o=void 0===n?300:n,i=r.easing,s=void 0===i?defaultEasing.easeInOut:i,a=r.delay,l=void 0===a?0:a;return(Array.isArray(e)?e:[e]).map(function(e){var t="string"==typeof o?o:formatMs(o),r="string"==typeof l?l:formatMs(l);return e+" "+t+" "+s+" "+r}).join(",")}function ownerDocument(e){return e&&e.ownerDocument||document}function ownerWindow(e){return ownerDocument(e).defaultView||window}function debounce(e,t){var r;function n(){for(var n=this,o=arguments.length,i=new Array(o),s=0;s-1,i=e.snacks.findIndex(t)>-1;if(n||i)return e}return r.handleDisplaySnack(_extends({},e,{queue:[].concat(e.queue,[d])}))}),u},r.handleDisplaySnack=function(e){return e.snacks.length>=r.maxSnack?r.handleDismissOldest(e):r.processQueue(e)},r.processQueue=function(e){var t=e.queue,r=e.snacks;return t.length>0?_extends({},e,{snacks:[].concat(r,[t[0]]),queue:t.slice(1,t.length)}):e},r.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,n=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===r.maxSnack&&(n=!0);var o=e.snacks.map(function(e){return t||e.persist&&!n?_extends({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),r.props.onClose&&r.props.onClose(null,"maxsnack",e.id),_extends({},e,{open:!1})):_extends({},e,{requestClose:!0}))});return _extends({},e,{snacks:o})},r.handleEnteredSnack=function(e,t,n){if(!isDefined(n))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===n?_extends({},e,{entered:!0}):_extends({},e)})}})},r.handleCloseSnack=function(e,t,n){r.props.onClose&&r.props.onClose(e,t,n);var o=void 0===n;r.setState(function(e){var t=e.snacks,r=e.queue;return{snacks:t.map(function(e){return o||e.id===n?e.entered?_extends({},e,{open:!1}):_extends({},e,{requestClose:!0}):_extends({},e)}),queue:r.filter(function(e){return e.id!==n})}})},r.closeSnackbar=function(e){var t=r.state.snacks.find(function(t){return t.id===e});isDefined(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),r.handleCloseSnack(null,"instructed",e)},r.handleExitedSnack=function(e,t){if(!isDefined(t))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState(function(e){var n=r.processQueue(_extends({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return 0===n.queue.length?n:r.handleDismissOldest(n)})},r.enqueueSnackbar,r.closeSnackbar,r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar.bind(_assertThisInitialized(r)),closeSnackbar:r.closeSnackbar.bind(_assertThisInitialized(r))}},r}return _inheritsLoose(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,r=this.props,n=r.domRoot,o=r.children,i=r.dense,s=void 0!==i&&i,a=r.Components,l=void 0===a?{}:a,u=r.classes,c=this.state.snacks.reduce(function(e,t){var r,n=originKeyExtractor(t.anchorOrigin),o=e[n]||[];return _extends({},e,((r={})[n]=[].concat(o,[t]),r))},{}),d=Object.keys(c).map(function(t){var r=c[t],n=r[0];return Rn.createElement(SnackbarContainer$1,{key:t,dense:s,anchorOrigin:n.anchorOrigin,classes:u},r.map(function(t){return Rn.createElement(SnackbarItem,{key:t.id,snack:t,classes:u,Component:l[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:createChainedFunction([e.handleExitedSnack,e.props.onExited],t.id),onEntered:createChainedFunction([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return Rn.createElement(SnackbarContext.Provider,{value:t},o,n?$$1(d,n):d)},_createClass(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||defaults.maxSnack}}]),t}(x$3),useSnackbar=function(){return x$2(SnackbarContext)},toggleSelection,hasRequiredToggleSelection,copyToClipboard,hasRequiredCopyToClipboard;function requireToggleSelection(){return hasRequiredToggleSelection||(hasRequiredToggleSelection=1,toggleSelection=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;nt in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__objRest=(e,t)=>{var r={};for(var n in e)__hasOwnProp.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&__getOwnPropSymbols)for(var n of __getOwnPropSymbols(e))t.indexOf(n)<0&&__propIsEnum.call(e,n)&&(r[n]=e[n]);return r},qrcodegen,qrcodegen2;(e=>{const t=class{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let e=0;e7)throw new RangeError("Invalid value");let c,d;for(c=o;;c++){const n=8*t.getNumDataCodewords(c,r),o=a.getTotalBits(e,c);if(o<=n){d=o;break}if(c>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&d<=8*t.getNumDataCodewords(c,e)&&(r=e);let f=[];for(const t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(c),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(c,r);i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.lengthh[t>>>3]|=e<<7-(7&t)),new t(c,r,h,l)}getModule(e,t){return 0<=e&&e>>9);const n=21522^(t<<10|r);i(n>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(n,e));this.setFunctionModule(8,7,o(n,6)),this.setFunctionModule(8,8,o(n,7)),this.setFunctionModule(7,8,o(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const r=o(t,e),n=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(n,i,r),this.setFunctionModule(i,n,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){const o=Math.max(Math.abs(n),Math.abs(r)),i=e+n,s=t+r;0<=i&&i{(e!=u-s||r>=l)&&f.push(t[e])});return i(f.length==a),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let n=0;n>>3],7-(7&r)),r++)}}i(r==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][s],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r5&&e++):(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[s][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;re+(t?1:0),r);const n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let r=[6];for(let n=this.size-7;r.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return i(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let r=[];for(let t=0;t0);for(const o of e){const e=o^n.shift();n.push(0),r.forEach((r,o)=>n[o]^=t.reedSolomonMultiply(r,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^285*(r>>>7),r^=(t>>>n&1)*e;return i(r>>>8==0),r}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let r=t;function n(e,t,r){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function o(e,t){return!!(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=r;const s=class{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new s(s.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!s.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r=1<{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let r=t;r.LOW=new t(0,1),r.MEDIUM=new t(1,0),r.QUARTILE=new t(2,3),r.HIGH=new t(3,2),e.Ecc=r})(qrcodegen2.QrCode||(qrcodegen2.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let r=t;r.NUMERIC=new t(1,[10,12,14]),r.ALPHANUMERIC=new t(2,[9,11,13]),r.BYTE=new t(4,[8,16,16]),r.KANJI=new t(8,[8,10,12]),r.ECI=new t(7,[0,0,0]),e.Mode=r})(e.QrSegment||(e.QrSegment={}))})(qrcodegen||(qrcodegen={}));var qrcodegen_default=qrcodegen,ERROR_LEVEL_MAP={L:qrcodegen_default.QrCode.Ecc.LOW,M:qrcodegen_default.QrCode.Ecc.MEDIUM,Q:qrcodegen_default.QrCode.Ecc.QUARTILE,H:qrcodegen_default.QrCode.Ecc.HIGH},DEFAULT_SIZE=128,DEFAULT_LEVEL="L",DEFAULT_BGCOLOR="#FFFFFF",DEFAULT_FGCOLOR="#000000",DEFAULT_INCLUDEMARGIN=!1,MARGIN_SIZE=4,DEFAULT_IMG_SCALE=.1,SourceType; +/** + * @license qrcode.react + * Copyright (c) Paul O'Shannessy + * SPDX-License-Identifier: ISC + */function generatePath(e,t=0){const r=[];return e.forEach(function(e,n){let o=null;e.forEach(function(i,s){if(!i&&null!==o)return r.push(`M${o+t} ${n+t}h${s-o}v1H${o+t}z`),void(o=null);if(s!==e.length-1)i&&null===o&&(o=s);else{if(!i)return;null===o?r.push(`M${s+t},${n+t} h1v1H${s+t}z`):r.push(`M${o+t},${n+t} h${s+1-o}v1H${o+t}z`)}})}),r.join("")}function excavateModules(e,t){return e.slice().map((e,r)=>r=t.y+t.h?e:e.map((e,r)=>(r=t.x+t.w)&&e))}function getImageSettings(e,t,r,n){if(null==n)return null;const o=r?MARGIN_SIZE:0,i=e.length+2*o,s=Math.floor(t*DEFAULT_IMG_SCALE),a=i/t,l=(n.width||s)*a,u=(n.height||s)*a,c=null==n.x?e.length/2-l/2:n.x*a,d=null==n.y?e.length/2-u/2:n.y*a;let f=null;if(n.excavate){let e=Math.floor(c),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(l+c-e),h:Math.ceil(u+d-t)}}return{x:c,y:d,h:u,w:l,excavation:f}}function QRCodeSVG(e){const t=e,{value:r,size:n=DEFAULT_SIZE,level:o=DEFAULT_LEVEL,bgColor:i=DEFAULT_BGCOLOR,fgColor:s=DEFAULT_FGCOLOR,includeMargin:a=DEFAULT_INCLUDEMARGIN,imageSettings:l}=t,u=__objRest(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let c=qrcodegen_default.QrCode.encodeText(r,ERROR_LEVEL_MAP[o]).getModules();const d=a?MARGIN_SIZE:0,f=c.length+2*d,p=getImageSettings(c,n,a,l);let h=null;null!=l&&null!=p&&(null!=p.excavation&&(c=excavateModules(c,p.excavation)),h=Rn.createElement("image",{xlinkHref:l.src,height:p.h,width:p.w,x:p.x+d,y:p.y+d,preserveAspectRatio:"none"}));const m=generatePath(c,d);return Rn.createElement("svg",__spreadValues({height:n,width:n,viewBox:`0 0 ${f} ${f}`},u),Rn.createElement("path",{fill:i,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),Rn.createElement("path",{fill:s,d:m,shapeRendering:"crispEdges"}),h)}function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o=a?o+=repeat("0",s-a):o=(o.substring(0,s)||"0")+"."+o.substring(s),r+o}function roundToPrecision(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=(-1!==e.indexOf(".")||r)&&t,o=splitDecimal(e),i=o.beforeDecimal,s=o.afterDecimal,a=o.hasNegation,l=parseFloat("0."+(s||"0")),u=(s.length<=t?"0."+s:l.toFixed(t)).split("."),c=i;return i&&Number(u[0])&&(c=i.split("").reverse().reduce(function(e,t,r){return e.length>r?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},u[0])),""+(a?"-":"")+c+(n?".":"")+limitToScale(u[1]||"",t,r)}function setCaretPosition(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}(),function(e){e.event="event",e.props="prop"}(SourceType||(SourceType={}));var findChangeRange=memoizeOnce(function(e,t){for(var r=0,n=0,o=e.length,i=t.length;e[r]===t[r]&&rr&&o-n>r;)n++;return{from:{start:r,end:o-n},to:{start:r,end:i-n}}}),findChangedRangeFromCaretPositions=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function clamp(e,t,r){return Math.min(Math.max(e,t),r)}function geInputCaretPosition(e){return Math.max(e.selectionStart,e.selectionEnd)}function addInputMode(){return"undefined"!=typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function getDefaultChangeMeta(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function defaultIsCharacterSame(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,o=e.formattedValueIndex;return t[n]===r[o]}function getCaretPosition(e,t,r,n,o,i,s){void 0===s&&(s=defaultIsCharacterSame);var a=o.findIndex(function(e){return e}),l=e.slice(0,a);t||r.startsWith(l)||(t=l,r=l+r,n+=l.length);for(var u=r.length,c=e.length,d={},f=new Array(u),p=0;p0&&-1===f[g];)g--;var A=-1===g||-1===f[g]?0:f[g]+1;return A>y?y:n-A=0&&!r[t];)t--;-1===t&&(t=r.indexOf(!0))}else{for(;t<=o&&!r[t];)t++;t>o&&(t=r.lastIndexOf(!0))}return-1===t&&(t=o),t}function caretUnknownFormatBoundary(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r_.length-s.length||ST||d>e.length-s.length)&&(k=d),e=e.substring(0,k);var R=(e=((e=handleNegation(b?"-"+e:e,o)).match(getNumberRegex(h))||[]).join("")).indexOf(h);e=e.replace(new RegExp(escapeRegExp(h),"g"),function(e,t){return t===R?".":""});var C=splitDecimal(e,o),B=C.beforeDecimal,O=C.afterDecimal,I=C.addNegation;return u.end-u.starti)&&(!!(o>=f.start&&oe.startsWith("#")?e:`#${e}`,Ae=(e,t)=>{var r;const n=void 0===e&&!0===t?J.XEC:"orange"===e||"xec"===e?e:((e,t)=>{const r=new RegExp(/(#(?:[0-9a-f]{2}){2,4}$|(#[0-9a-f]{3}$)|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\)$|black$|silver$|gray$|whitesmoke$|maroon$|red$|purple$|fuchsia$|green$|lime$|olivedrab$|yellow$|navy$|blue$|teal$|aquamarine$|orange$|aliceblue$|antiquewhite$|aqua$|azure$|beige$|bisque$|blanchedalmond$|blueviolet$|brown$|burlywood$|cadetblue$|chartreuse$|chocolate$|coral$|cornflowerblue$|cornsilk$|crimson$|currentcolor$|darkblue$|darkcyan$|darkgoldenrod$|darkgray$|darkgreen$|darkgrey$|darkkhaki$|darkmagenta$|darkolivegreen$|darkorange$|darkorchid$|darkred$|darksalmon$|darkseagreen$|darkslateblue$|darkslategray$|darkslategrey$|darkturquoise$|darkviolet$|deeppink$|deepskyblue$|dimgray$|dimgrey$|dodgerblue$|firebrick$|floralwhite$|forestgreen$|gainsboro$|ghostwhite$|goldenrod$|gold$|greenyellow$|grey$|honeydew$|hotpink$|indianred$|indigo$|ivory$|khaki$|lavenderblush$|lavender$|lawngreen$|lemonchiffon$|lightblue$|lightcoral$|lightcyan$|lightgoldenrodyellow$|lightgray$|lightgreen$|lightgrey$|lightpink$|lightsalmon$|lightseagreen$|lightskyblue$|lightslategray$|lightslategrey$|lightsteelblue$|lightyellow$|limegreen$|linen$|mediumaquamarine$|mediumblue$|mediumorchid$|mediumpurple$|mediumseagreen$|mediumslateblue$|mediumspringgreen$|mediumturquoise$|mediumvioletred$|midnightblue$|mintcream$|mistyrose$|moccasin$|navajowhite$|oldlace$|olive$|orangered$|orchid$|palegoldenrod$|palegreen$|paleturquoise$|palevioletred$|papayawhip$|peachpuff$|peru$|pink$|plum$|powderblue$|rosybrown$|royalblue$|saddlebrown$|salmon$|sandybrown$|seagreen$|seashell$|sienna$|skyblue$|slateblue$|slategray$|slategrey$|snow$|springgreen$|steelblue$|tan$|thistle$|tomato$|transparent$|turquoise$|violet$|wheat$|white$|yellowgreen$|rebeccapurple$)/,"i");if(void 0===e||void 0===e.palette)return q[$];{let{primary:n,secondary:o,tertiary:i,logo:s}=e.palette;return n=void 0!==n&&r.test(n)?te(n):t?V.palette.primary:H.palette.primary,o=void 0!==o&&r.test(o)?te(o):t?V.palette.secondary:H.palette.secondary,i=void 0!==i&&r.test(i)?te(i):t?V.palette.tertiary:H.palette.tertiary,s=void 0!==s&&r.test(s)?te(s):t?V.palette.logo:H.palette.logo,{palette:{primary:n,secondary:o,tertiary:i,logo:s}}}})(e,t);return null!=(r=x$2(_))?r:"object"==typeof n?n:((e=$)=>q[e])(n)},ne=styled("div",{shouldForwardProp:e=>"$theme"!==e&&"animation"!==e&&"$btnSize"!==e&&"sizeScaleAlreadyApplied"!==e})(({$btnSize:e})=>({fontSize:`${{xs:"0.6rem",extrasmall:"0.6rem",sm:"0.7rem",small:"0.7rem",md:"0.8rem",medium:"0.8rem",lg:"1rem",large:"1rem",xl:"1.2rem",extralarge:"1.2rem"}[null!=e?e:"md"]} !important`})),oe=Rn.forwardRef((e,t)=>Rn.createElement(Button,X({ref:t},e)));oe.displayName="BaseButton";const re=styled(oe,{shouldForwardProp:e=>"$theme"!==e&&"animation"!==e&&"$btnSize"!==e&&"sizeScaleAlreadyApplied"!==e})(({$theme:e,animation:t,$btnSize:r})=>{var n;const o=null!=(n={xs:"5px",extrasmall:"5px",sm:"7px",small:"7px",md:"10px",medium:"10px",lg:"12px",large:"12px",xl:"13px",extralarge:"13px"}[null!=r?r:"default"])?n:"10px";return X({background:`${e.palette.secondary} !important`,transition:"0.6s !important",minWidth:"14em !important",padding:"0.618em 1.618em !important",margin:"auto !important",boxShadow:"3px 3px 3px rgba(0, 0, 0, 0.08) !important",border:`2px solid ${e.palette.primary} !important`,borderRadius:`${o} !important`,fontSize:"1em !important"},"slide"===t?{background:`linear-gradient(45deg, ${e.palette.primary} 50%, ${e.palette.secondary} 50%) 100% center / 300% !important`,backgroundSize:"300% !important",backgroundPosition:"100% !important",transition:"background-position 0.8s, color 0.15s !important"}:{},{color:`${e.palette.primary} !important`,textTransform:"none","&:hover":X({},"slide"===t?{backgroundPosition:"0 !important",color:`${e.palette.secondary} !important`}:{},"invert"===t?{background:`${e.palette.primary} !important`,color:`${e.palette.secondary} !important`}:{},"none"===t?{background:`${e.palette.secondary} !important`,color:`${e.palette.primary} !important`}:{}),"& .MuiTouchRipple-root":{margin:-2,color:"#00000044 !important"},"&:disabled span":{filter:"blur(2px)",color:"rgba(0, 0, 0, 0.5)"}})}),ae=({animation:e="slide",text:t="Donate",hoverText:r="Send Payment",disabled:n=!1,size:o="medium",sizeScaleAlreadyApplied:i=!1,onClick:s,theme:a})=>{const[l,u]=d(!1),[c,f]=d(!1),p=A$1(),h=A$1(null),m=Ae(a),g={animation:e,$theme:m,$btnSize:o,sizeScaleAlreadyApplied:i};return Rn.createElement(ne,X({},g),Rn.createElement(re,X({},g,{disabled:n,onClick:s,onMouseEnter:()=>{u(!0),"none"!==e&&(f(!0),clearTimeout(p.current),p.current=window.setTimeout(()=>f(!1),150))},onMouseLeave:()=>{u(!1),"none"!==e&&(f(!0),clearTimeout(p.current),p.current=window.setTimeout(()=>f(!1),150))},ref:h}),c!==l?r:t||" "))};var ie={wsBaseUrl:"https://socket.paybutton.org",apiBaseUrl:"https://api.paybutton.org",altpaymentClient:"sideshift",networkBlockchainURLs:{ecash:["https://xec.paybutton.io","https://chronik.e.cash","https://chronik.pay2stay.com/xec","https://chronik1.alitayin.com"],bitcoincash:["https://bch.paybutton.org","https://chronik.pay2stay.com/bch"]},donationAddress:"ecash:qp2v7kemclu7mv5y3h9qprwp0mrevkqt9gprvmm7yl"};const se=e=>{if(!e)return!1;try{return xecaddrExports.isCashAddress(e)}catch(e){return!1}},le=e=>{if(!e)return!1;try{return xecaddrExports.isXecAddress(e)}catch(e){return!1}},ce=e=>{if(se(e))return"BCH";if(le(e))return"XEC";throw new Error("Invalid currency")},me=function(e){try{const t=xecaddrExports.detectAddressFormat(e);if(t===xecaddrExports.Format.Xecaddr)return"ecash";if(t===xecaddrExports.Format.Cashaddr)return"bitcoincash"}catch(e){throw new Error("Invalid address prefix.")}throw new Error("Invalid address prefix.")},de=["USD","CAD"],ue=["BCH","XEC"],pe={BCH:8,XEC:2,FIAT:2},fe={BCH:999999.99999999,XEC:999999999999.99},ye=2e3,be={bch:"bitcoincash",xec:"ecash"},he={bitcoincash:"BCH",ecash:"XEC"},ge=2,Se="paybutton_donation_rate",we={BCH:1e-5,XEC:10};function Be(e){return de.includes(e)}function ve(e){return ue.includes(e)}const Ee=async(e,t,r)=>{try{if(Be(e)&&se(t)){const t=await(async(e,t=ie.apiBaseUrl)=>{const{data:r}=await axios.get(`${t}/price/bitcoincash/${x.lowerCase(e)}`);return{price:r}})(e,r);return t.price}if(Be(e)&&le(t)){const t=await(async(e,t=ie.apiBaseUrl)=>{const{data:r}=await axios.get(`${t}/price/ecash/${x.lowerCase(e)}`);return{price:r}})(e,r);return t.price}return null}catch(e){console.log("err",e)}return null},De=async(e,t,r=ie.apiBaseUrl)=>{const n=me(t),o=pe[he[n]],i=null!=e?Number(e).toFixed(o):void 0,{data:s,status:a}=await axios.post(`${r}/api/payments/paymentId`,{amount:i,address:t});if(200===a)return s.paymentId;throw new Error(`Failed to generate payment ID. Status: ${a}, Response: ${JSON.stringify(s)}`)},Ce=new srcExports.CashtabConnect;let xe=null,Oe=null;const Me=async()=>null!==xe?xe:(null!==Oe||(Oe=(async()=>{try{const e=await Ce.isExtensionAvailable();return xe=e,e}catch(e){return xe=!1,!1}finally{Oe=null}})()),Oe);function Le(e){var t={exports:{}};return e(t,t.exports),t.exports}var Te=Le(function(e,t){!function(){var r={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},n=Array.prototype.map,o=Array.isArray,i=Object.prototype.toString;function s(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function a(e){return o?o(e):"[object Array]"===i.call(e)}function l(e){return e&&"[object Object]"===i.call(e)}function u(e,t){var r;for(r in e=e||{},t=t||{})t.hasOwnProperty(r)&&null==e[r]&&(e[r]=t[r]);return e}function c(e,t,r){var o,i,s=[];if(!e)return s;if(n&&e.map===n)return e.map(t,r);for(o=0,i=e.length;o3?g.length%3:0;return f+(y?g.substr(0,y)+i.thousand:"")+g.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+i.thousand)+(s?i.decimal+h(Math.abs(e),s).split(".")[1]:"")},g=r.formatMoney=function(e,t,n,o,i,s){if(a(e))return c(e,function(e){return g(e,t,n,o,i,s)});e=p(e);var h=u(l(t)?t:{symbol:t,precision:n,thousand:o,decimal:i,format:s},r.settings.currency),y=f(h.format);return(e>0?y.pos:e<0?y.neg:y.zero).replace("%s",h.symbol).replace("%v",m(Math.abs(e),d(h.precision),h.thousand,h.decimal))};r.formatColumn=function(e,t,n,o,i,h){if(!e)return[];var g=u(l(t)?t:{symbol:t,precision:n,thousand:o,decimal:i,format:h},r.settings.currency),y=f(g.format),A=y.pos.indexOf("%s")0?y.pos:e<0?y.neg:y.zero).replace("%s",g.symbol).replace("%v",m(Math.abs(e),d(g.precision),g.thousand,g.decimal));return n.length>b&&(b=n.length),n});return c(v,function(e,t){return s(e)&&e.length-1?t.format:u})},unformat:function(e,t){var r=t.code||t.locale&&Ze(t.locale),n=Fe[t.locale]||ze,o=ke({},Qe,Ke(r),n),i=Xe(t.decimal)?o.decimalSeparator:t.decimal;return Te.unformat(e,i)}};const We=(e,t,r=pe.FIAT)=>Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",minimumFractionDigits:r,maximumFractionDigits:r}).format(e),He=e=>{switch(typeof e){case"string":return"true"===e;case"boolean":return e;case"undefined":return!1}};function Ye(e,t){const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}function Ve(e){const t=e.split(/(?1?t.map(e=>e.replace("\\|","|")):e.replace("\\|","|")}function qe(e){const t={};try{const t=JSON.parse(e);if("number"==typeof t)throw new Error;return t}catch(e){}try{const r=e.split(" ");for(const n of r){const r=Ye(n,"=");if(void 0===r[1]||""===r[1]||""===r[0])return Ve(e);const o=r[0],i=Ve(r[1]);t[o]=i}return t}catch(t){return Ve(e)}}const Je=(e,t,r)=>{const n=e.toFixed(r).toString().replace(".","").length;if(!0===t)return Math.min(3,n);if(!1===t)throw new Error("Trying to randomize satoshis when not allowed.");return t>4&&(t=4),Math.min(t,n)},$e=new R(0),_e=e=>new R(e),et=(e,t,r)=>{let n="",o=0;if(ve(t)){let i=r?((e,t,r)=>{if(0===e)return 0;let n,o,i,s;switch(t){case"BCH":n=Je(e,r,8),o=1e-8*Math.floor(Math.random()*10**n),i=Math.max(0,+e.toFixed(n))+o,s=+i.toFixed(8);break;case"XEC":n=Je(e,r,2),o=.01*Math.floor(Math.random()*10**n);const a=10**(n-2);i=Math.max(0,+Math.floor(e/a)*a)+o,s=+i.toFixed(2);break;default:throw new Error(`Invalid currency: ${t}`)}return s})(e,t,r):e;const s=pe[t],a=_e(`${i}`);null!==(null==a?void 0:a.c)&&(o=parseFloat(_e(a).toFixed(s)),n=_e(`${a}`).toFixed(s),"BCH"===t?n=je.format(+n,{symbol:"",decimal:".",thousand:",",precision:8,format:"%v"}):"XEC"===t&&(n=je.format(+n,{symbol:"",decimal:".",thousand:",",precision:2,format:"%v"})))}else o=e,n=We(e,t,pe.FIAT);return{float:o,string:n,currency:t}};for(var tt=[],At=[],nt="undefined"!=typeof Uint8Array?Uint8Array:Array,ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rt=0;rt<64;++rt)tt[rt]=ot[rt],At[ot.charCodeAt(rt)]=rt;function at(e){return tt[e>>18&63]+tt[e>>12&63]+tt[e>>6&63]+tt[63&e]}function it(e,t,r){for(var n=[],o=t;o>1,c=-7,d=r?o-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+d],d+=f,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=u}return(p?-1:1)*s*Math.pow(2,i-n)},lt=function(e,t,r,n,o,i){var s,a,l,u=8*i-o-1,c=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,o),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=h,a/=256,o-=8);for(s=s<0;e[r+p]=255&s,p+=h,s/=256,u-=8);e[r+p-h]|=128*m},ct=Le(function(e,t){const r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=i,t.SlowBuffer=function(e){return+e!=e&&(e=0),i.alloc(+e)},t.INSPECT_MAX_BYTES=50;const n=2147483647;function o(e){if(e>n)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|f(e,t);let n=o(r);const s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(V(e,Uint8Array)){const t=new Uint8Array(e);return c(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return c(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return c(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return i.from(n,t,r);const s=function(e){if(i.isBuffer(e)){const t=0|d(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||G(e.length)?o(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return a(e),o(e<0?0:0|d(e))}function u(e){const t=e.length<0?0:0|d(e.length),r=o(t);for(let n=0;n=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|e}function f(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(o)return n?-1:H(e).length;t=(""+t).toLowerCase(),o=!0}}function p(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function h(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),G(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=i.from(t,n)),i.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){let i,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let n=-1;for(i=r;ia&&(r=a-l),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return function(e){for(var t,r=e.length,n=r%3,o=[],i=16383,s=0,a=r-n;sa?a:s+i));return 1===n?o.push(tt[(t=e[r-1])>>2]+tt[t<<4&63]+"=="):2===n&&o.push(tt[(t=(e[r-2]<<8)+e[r-1])>>10]+tt[t>>4&63]+tt[t<<2&63]+"="),o.join("")}(0===t&&r===e.length?e:e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o239?4:t>223?3:t>191?2:1;if(o+s<=r){let r,n,a,l;switch(s){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[o+1],n=e[o+2],a=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=s}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(i.isBuffer(t)||(t=i.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!i.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},i.byteLength=f,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tr&&(e+=" ... "),""},r&&(i.prototype[r]=i.prototype.inspect),i.prototype.compare=function(e,t,r,n,o){if(V(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const l=Math.min(s,a),u=this.slice(n,o),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return b(this,e,t,r);case"base64":return v(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function E(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;on)&&(r=n);let o="";for(let n=t;nr)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,o,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function O(e,t,r,n,o){q(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function I(e,t,r,n,o){q(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function P(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function $(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,4),lt(e,t,r,n,23,4),r+4}function N(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,8),lt(e,t,r,n,52,8),r+8}i.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e],o=1,i=0;for(;++i>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=Z(function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||F(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||F(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||C(e,t,this.length);let n=this[e],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||C(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=Z(function(e){U(e>>>=0,"offset");const t=this[e],r=this[e+7];return void 0!==t&&void 0!==r||F(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||F(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||C(e,4,this.length),st(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),st(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),st(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),st(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigUInt64LE=Z(function(e,t=0){return O(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=Z(function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let o=0,i=1,s=0;for(this[t]=255&e;++o>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let o=r-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeBigInt64LE=Z(function(e,t=0){return O(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=Z(function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(e,t,r){return $(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return $(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function q(e,t,r,n,o,i){if(e>r||e= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`,new M.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){U(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||F(t,e.length-(r+1))}(n,o,i)}function U(e,t){if("number"!=typeof e)throw new M.ERR_INVALID_ARG_TYPE(t,"number",e)}function F(e,t,r){if(Math.floor(e)!==e)throw U(e,r),new M.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}L("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),L("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),L("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=D(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const j=/[^+/0-9A-Za-z-_]/g;function H(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let s=0;s55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function z(e){return function(e){var t,r,n=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}(e),o=n[0],i=n[1],s=new nt(function(e,t,r){return 3*(t+r)/4-r}(0,o,i)),a=0,l=i>0?o-4:o;for(r=0;r>16&255,s[a++]=t>>8&255,s[a++]=255&t;return 2===i&&(t=At[e.charCodeAt(r)]<<2|At[e.charCodeAt(r+1)]>>4,s[a++]=255&t),1===i&&(t=At[e.charCodeAt(r)]<<10|At[e.charCodeAt(r+1)]<<4|At[e.charCodeAt(r+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t),s}(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,r,n){let o;for(o=0;o=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function Z(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}});const mt=new TextDecoder;function dt(e){if(e.length<2||e.length%2!=0)throw new Error("Invalid outputScript length");if(!new RegExp("6a0450415900.{2}","i").test(e.slice(0,14)))return null;let t=16;if(e.length=l))return s;const u=e.slice(a,l),c=parseInt(u,16);let d="";if(e.length{var r,n,o;const{amount:i,opReturn:s}=await(async(e,t)=>{let r=BigInt(0),n=BigInt(0);const o=D.detectAddressFormat(t),i=function(e){try{const{type:t,hash:r}=cashaddrExports.decodeCashAddress(e);return{type:t,hash160:r}}catch(e){throw console.log("[CHRONIK]: Error converting address to hash160"),e}}(t).hash160;let s="";for(const t of e.outputs)if(t.outputScript.includes(i)&&(r+=t.sats),""===s){const e=dt(t.outputScript);null!==e&&(s=JSON.stringify(e))}for(const t of e.inputs){var a;!0===(null==t||null==(a=t.outputScript)?void 0:a.includes(i))&&(n+=t.sats)}const l=r-n;return{amount:await ut(l,o),opReturn:s}})(e,t),a=yt(s),l=function(e,t){const r=new Map;t.inputs.forEach(t=>{const n=function(e,t){if(void 0===t)return;let r,n;switch(t.slice(0,4)){case"76a9":r="p2pkh",n=t.substring(t.indexOf("76a914")+6,t.lastIndexOf("88ac"));break;case"a914":r="p2sh",n=t.substring(t.indexOf("a914")+4,t.lastIndexOf("87"));break;default:return}return 40!==n.length?void 0:ft(e,r,n)}(e,t.outputScript);if(void 0!==n&&""!==n){var o;const e=null!=(o=r.get(n))?o:BigInt(0);r.set(n,e+t.sats)}});const n=Array.from(r.entries()).sort(([,e],[,t])=>Number(t-e)).map(([e])=>e);return n}(me(t),e);return{hash:e.txid,amount:i,address:t,timestamp:void 0!==e.block?e.block.timestamp:e.timeFirstSeen,confirmed:void 0!==e.block,opReturn:s,paymentId:null!=(r=null==a?void 0:a.paymentId)?r:"",message:null!=(n=null==a?void 0:a.message)?n:"",rawMessage:null!=(o=null==a?void 0:a.rawMessage)?o:"",inputAddresses:l}},ft=(e,t,r)=>{const n=ct.Buffer.from(r,"hex"),o=new ArrayBuffer(n.length),i=new Uint8Array(o);for(let e=0;e{try{return""===e?null:JSON.parse(e)}catch(e){return null}},bt=async e=>{var t;void 0!==e.altpaymentSocket&&(e.altpaymentSocket.disconnect(),e.setAltpaymentSocket(void 0));const r=lookup(`${null!=(t=e.wsBaseUrl)?t:ie.wsBaseUrl}/altpayment`,{forceNew:!0});e.setAltpaymentSocket(r),(e=>{e.altpaymentSocket.on("send-altpayment-coins-info",t=>{e.setCoins(t.filter(t=>t.coin!==e.addressType))}),e.altpaymentSocket.on("shift-creation-error",t=>{e.setAltpaymentError(t),e.setLoadingShift(!1)}),e.altpaymentSocket.on("quote-creation-error",t=>{e.setAltpaymentError(t),e.setLoadingShift(!1)}),e.altpaymentSocket.on("shift-created",t=>{e.setAltpaymentShift(t),e.setLoadingShift(!1)}),e.altpaymentSocket.on("send-altpayment-rate",t=>{e.setCoinPair(t),e.setLoadingPair(!1)})})({addressType:e.addressType,altpaymentSocket:r,setCoins:e.setCoins,setCoinPair:e.setCoinPair,setLoadingPair:e.setLoadingPair,setAltpaymentShift:e.setAltpaymentShift,setLoadingShift:e.setLoadingShift,setAltpaymentError:e.setAltpaymentError})},ht=async e=>{void 0!==e.txsSocket&&(console.log(`Closing existing Chronik WebSocket for address: ${e.address}`),e.txsSocket.close(),e.setTxsSocket(void 0));const t=await(async(e,t)=>{const r=me(e),n=ie.networkBlockchainURLs[r],o=await distExports.ChronikClient.useStrategy(distExports.ConnectionStrategy.AsOrdered,n),i=o.ws({onMessage:async r=>{await(async(e,t,r,n)=>{const{type:o}=e;if("Error"===o)return;const{msgType:i}=e;switch(i){case"TX_ADDED_TO_MEMPOOL":{const o=await r.tx(e.txid);t([await pt(o,null!=n?n:"")]);break}default:return}})(r,t,o,e)}});return await i.waitForOpen(),i.subscribeToAddress(e),i})(e.address,t=>{e.setNewTxs(t)});e.setTxsSocket(t)};class gt{async getPaymentStatus(e){const t=await fetch(`${ie.apiBaseUrl}/altpayment/mocked`);return await t.json()}}class St{async getPaymentStatus(e){const t=await fetch(`https://sideshift.ai/api/v2//shifts/${e}?t=${(new Date).getTime()}`);return await t.json()}}const wt=({value:e=34,color:t="#4bc846",disabled:r=!1})=>{const[n,o]=d(0),i=He(r)?{filter:"blur(5px)"}:{},s={left:"0",top:"0",bottom:"0",height:"8px",borderRadius:"20px",backgroundColor:`${t}`,transition:"width 0.8s ease-out",position:"absolute"};return y(()=>{setTimeout(()=>{o(e>100?100:Math.round(e))},800)},[e]),Rn.createElement("div",{style:{width:"100%",marginBottom:"20px"}},Rn.createElement("div",{style:{height:"8px",borderRadius:"20px",backgroundColor:"#dddddd",position:"relative"}},Rn.createElement("div",{style:X({},s,{width:`${n}%`},i)})))},Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABuCAMAAADmp0YAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDQTk0NEI3OThFMzIxMUVGQkNERDhEQjQ1RTlGOTk2OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDQTk0NEI3QThFMzIxMUVGQkNERDhEQjQ1RTlGOTk2OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkNBOTQ0Qjc3OEUzMjExRUZCQ0REOERCNDVFOUY5OTY4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkNBOTQ0Qjc4OEUzMjExRUZCQ0REOERCNDVFOUY5OTY4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+PQtV5wAAAYBQTFRFOTk5Tk5OTExMGhoaLCwsPz8/IiIiJycnBAQEICAgKioqFRUVHBwcCAgICwsLHx8fAQEB4ODgDQ0N8vLyMTExqKiovLy8FhYWMDAwzs7O5OTkHh4e+Pj4MzMz8fHx2dnZLy8v2NjY5+fn4uLiNDQ09/f3qqqqWlpaDg4Ozc3Nl5eXt7e3FxcX3t7ea2tr6urq6+vrZmZm9fX129vblpaWvb29DAwMw8PD7Ozsra2twsLC6enpPT09goKC+vr67u7uv7+/Nzc3WVlZmJiYioqKiYmJaGhosrKy0NDQ1dXVpKSkj4+PSEhI4eHhz8/PExMTo6Ojr6+vdnZ2QkJCnJyccXFxOjo65eXltbW1fn5+RkZGn5+fi4uLjIyM5ubmsLCw8/Pz9PT0NTU16Ojo2traKSkp/f39kJCQ/Pz8xsbGXl5ebm5uxcXFbGxsgYGBoKCgoaGhnZ2dmZmZjY2NJCQkiIiIQEBAW1tbaWlpYGBgYWFhXFxcXV1dV1dXAAAA////NCYxYAAAAIB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wA4BUtnAAACdElEQVR42uzaZ1PbQBAGYDkY48SWhS2FCFeMTQgtgdA7CYH03hPSe+896P56GMB3irwnsG7lT/t+9Gn2mbM0exrdaQxO+UXENnJG0OSMfefev6oV00CiM+JgRJvxQcYcrByWIT2vHbxUZ2Gky8FMG4h8dnDzA0AexZERZ6Ye+YttOMk65IiDnwde5FoISK8X+SXGRm51KGRe54VsL3KDD40xtdzllb56EZsPLSoi4u4aciSriGR5pZwXsfhQWhFJy2dCSENIgQ/NhodU+dBUCMiTM6vfC1YhxYeij63dxbZae++Vd4GUfuqKDSoysBPyBqMPHjvqi1zF6baxbh9kBKunt+SlyCe8lUNbkCAVzPXpmwQ5jv0CBCBF3KX2FIj0uy/ZfB1qb7Duf9e/AxHxb8XPlrPpjZx/ejrdSCpDlzK8iAUic56X40AZF0/xcwgRvf2gQjccrBXJPIQQsahPKyCxWpGJov9M9isgBp+JSQghhBBCCCGEEEIIIYQQQgghhBBCCCFNRirNQIbDQw7xnybFN3xsZOKmuZWONrETg420Z7bj+la8BxuB0o+E7PUx4mYTZrLMcJB8Qm5EGRLSI0fi97EQlpMZ+hJDQ2Q3vjrK8BD4xusrW6PhIRfvfKmdG8BGUpMXOjfS11dybW26tjZU9k9i9Q3SFU0cTzqJMpMihGgcmQ9uDPEDSIkFCFkXz8KHKTNYBlqAjTM3csL9yGWCxVXiN4iUcDczL4MIm8M0Bl/CyCgmcpvBCLuOZ6RMGcKiaMhbJkWGkc4LJsaZHGHsD/4RiXqETSdVCf1Knu2AsPzHdds4EDDJZ61r3T5d558AAwDxw6DYwVV5JQAAAABJRU5ErkJggg==",vt=e=>{var t;const{altpaymentSocket:r,setUseAltpayment:n,altpaymentShift:o,setAltpaymentShift:i,shiftCompleted:s,setShiftCompleted:a,altpaymentError:l,setAltpaymentError:u,coins:c,loadingPair:f,loadingShift:p,coinPair:h,setCoinPair:m,altpaymentEditable:g,animation:A,addressType:b,thisAmount:v,updateAmount:w,setLoadingPair:S,setLoadingShift:_,to:x}=Object.assign({},e),[E,k]=d(void 0),[T,R]=d(null),[C,B]=d(null),[O,I]=d(),[P,$]=d(void 0),[N,M]=d(void 0),[L,D]=d(void 0);y(()=>{L&&h?(B(+L<=+h.max),R(+L>=+h.min)):(B(!0),R(!0))},[L,h]),y(()=>{1===(null==O?void 0:O.networks.length)&&$(O.networks[0])},[O]),y(()=>{if(h&&v&&O&&P){const e=_e(+v/+h.rate),t=O.tokenDetails;let r;r=void 0!==t?t[P].decimals:h.min.split(".")[1].length;const n=e.toFixed(r);M(n);const o=L?Math.floor(+L):1,i=1+Math.ceil(Math.log10(o+1));k(i+r)}},[h,O,v,L,P]);const q=()=>{m(void 0),u(void 0),i(void 0),D(void 0),a(!1)},U=e=>{const t=document.getElementById(e),r=document.createElement("div");r.textContent="Copied!",r.style.position="absolute",r.style.width="calc(100% - 10px)",r.style.height="calc(100% - 20px)",r.style.alignItems="center",r.style.top="0",r.style.left="0",r.style.backgroundColor="#fff",r.style.borderRadius="5px",r.style.padding="10px 0 10px 10px",r.style.zIndex="10",r.style.display="none",t&&(navigator.clipboard.writeText(t.textContent||""),t.appendChild(r),r.style.display="flex",setTimeout(()=>{r.style.display="none",r.parentElement===t&&t.removeChild(r)},2e3))},F=styled("div")({alignItems:"center",display:"flex",flexDirection:"column",height:"calc(100% - 20px)",width:"100%",position:"absolute",zIndex:9,top:"0",left:"0",background:"#f5f5f7",paddingTop:"20px"}),j=styled("div")({marginBottom:"30px",display:"flex",alignItems:"center",flexDirection:"column",color:"rgb(35, 31, 32)",fontSize:"0.9rem","& img":{width:"150px",marginTop:"10px"}}),H=styled("div")({fontSize:"14px",marginTop:"20px",cursor:"pointer",border:"1px solid #000",opacity:"0.7",padding:"2px 20px",borderRadius:"3px","&:hover":{opacity:"1"}}),z=styled("div")({width:"100%",display:"flex",flexDirection:"column","& h4":{margin:"0",fontSize:"20px",borderBottom:"1px solid #000",paddingBottom:"10px",textAlign:"center"}}),W=styled("div")({display:"flex",alignItems:"center","& > div":{position:"relative"}}),V=styled("p")({position:"absolute",bottom:"10px",textAlign:"center",background:"#00000014",padding:"10px",borderRadius:"5px"}),G=styled("p")({textAlign:"center",background:"#ee010119",padding:"10px",borderRadius:"5px",color:"red"}),K=styled("span")({fontSize:"14px",marginLeft:"5px",marginTop:"20px",marginBottom:"2px",fontWeight:600}),Z=styled("div")({background:"#ffffff",padding:"10px",borderRadius:"5px",fontSize:"14px",border:"1px solid #b3b3b3",wordBreak:"break-all",flexGrow:1,position:"relative"}),J=styled("div")({background:"#ffffff",padding:"10px",borderRadius:"5px",border:"1px solid #b3b3b3",marginLeft:"5px",display:"flex",alignItems:"center",cursor:"pointer",alignSelf:"stretch",transition:"all ease-in-out 200ms","&:hover":{background:"#f1f1f1"},"& img":{width:"15px"}}),X=styled("div")({display:"flex",alignItems:"center",height:"100%",flex:"1",width:"100%",fontSize:"18px"}),Q=styled(Select)({minWidth:"220px"}),Y=styled("div")({display:"flex",alignItems:"center"}),ee=styled("div")({display:"flex",flexDirection:"column",margin:"5px 0"}),te=styled("img")({width:"28px",height:"28px",marginRight:"10px"}),re=styled("span")({fontWeight:"bold",lineHeight:"1em"}),ne=styled("span")({fontSize:"14px"}),oe=styled("div")({height:"20px"}),ie=e=>{let t=e.toLowerCase();return t.includes(".")?"btc":"bitcoin"===t?"harrypotterobamasonic10inu":t};return Rn.createElement(F,null,l?Rn.createElement(k$2,null,Rn.createElement(G,null,"Error: ",l.errorMessage),Rn.createElement(H,{onClick:q},"Back")):Rn.createElement(k$2,null,o?s?Rn.createElement(X,null,"Shift Completed!"):Rn.createElement(z,null,Rn.createElement("h4",null,"Shift Ready!"),Rn.createElement(K,null,"Send"),Rn.createElement(W,null,Rn.createElement(Z,null,Rn.createElement("span",{id:"shift_amount"},o.depositAmount)," ",o.depositCoin),Rn.createElement(J,{onClick:()=>U("shift_amount")},Rn.createElement("img",{src:Bt,alt:"Copy"}))),Rn.createElement(K,null,"To"),Rn.createElement(W,null,Rn.createElement(Z,{id:"to_address"},o.depositAddress),Rn.createElement(J,{onClick:()=>U("to_address")},Rn.createElement("img",{src:Bt,alt:"Copy"}))),Rn.createElement(K,null,"Network"),Rn.createElement(Z,null,P),Rn.createElement(K,null,"SideShift ID"),Rn.createElement(W,null,Rn.createElement(Z,{id:"sideshift_id"},o.id),Rn.createElement(J,{onClick:()=>U("sideshift_id")},Rn.createElement("img",{src:Bt,alt:"Copy"})))):p?Rn.createElement("p",null,"Loading Shift..."):h?Rn.createElement(k$2,null,Rn.createElement("p",null," ","1 ",null==O?void 0:O.name," ~="," ",_e(h.rate).toFixed(pe[h.settleCoin])," ",h.settleCoin," "),g?Rn.createElement("div",{style:{display:"flex",justifyContent:"center",margin:"6px auto",width:"100%"}},Rn.createElement(TextField,{label:"Amount",value:null!=L?L:0,onChange:e=>{let t=e.target.value;if(""===t&&(t="0"),D(t),void 0!==h){const e=+h.rate*+t;Object.keys(pe).includes(h.settleCoin)&&w(e.toFixed(pe[h.settleCoin]))}},inputProps:{maxLength:E,type:"number",pattern:"[0-9]*",inputMode:"numeric"}})):null,Rn.createElement("div",null),Rn.createElement("div",{style:f||void 0===P||g&&!L||!T||!C?{opacity:"0.5",cursor:"not-allowed"}:{}},Rn.createElement(ae,{text:`Send ${null==O?void 0:O.name}`,hoverText:`Send ${null==O?void 0:O.name}`,onClick:()=>{void 0!==r&&void 0!==O&&(_(!0),r.emit("create-altpayment-quote",{depositAmount:N,settleCoin:b,depositCoin:null==O?void 0:O.coin,depositNetwork:P,settleAddress:x}))},disabled:f||void 0===P||g&&!L||!T||!C,animation:A})),!T&&Rn.createElement(V,null,"Amount is below minimum."),!C&&Rn.createElement(V,null,"Amount is above maximum.")):Rn.createElement(k$2,null,0===c.length&&Rn.createElement("div",null,"Loading..."),c.length>0&&Rn.createElement(k$2,null,Rn.createElement(j,null,"Swap coins with",Rn.createElement("a",{href:"https://sideshift.ai",target:"_blank"},Rn.createElement("img",{src:"data:image/png;base64,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",alt:"SideShift"}))),Rn.createElement(FormControl,null,Rn.createElement(InputLabel,{id:"select-coin-label"},"Select a coin"),Rn.createElement(Q,{labelId:"select-coin-label",value:null!=(t=null==O?void 0:O.coin)?t:"",label:"Select a coin",onChange:e=>(async e=>{const t=e.target.value,r=c.find(e=>e.coin===t);$(null==r?void 0:r.networks[0]),I(r)})(e)},c.map(e=>Rn.createElement(MenuItem,{key:e.coin,value:e.coin},Rn.createElement(Y,null,Rn.createElement(te,{src:`https://sideshift.ai/coin-icons/${ie(e.coin)}.svg`,alt:e.coin}),Rn.createElement(ee,null,Rn.createElement(re,null,e.coin),Rn.createElement(ne,null,e.name))))))),Rn.createElement(oe,null),O&&O.networks.length>1&&Rn.createElement(k$2,null,Rn.createElement(FormControl,null,Rn.createElement(InputLabel,{id:"select-network-label"},"Select a network"),Rn.createElement(Q,{labelId:"select-network-label",value:null!=P?P:"",label:"Select a network",onChange:e=>(async e=>{$(e.target.value)})(e)},O.networks.map(e=>Rn.createElement(MenuItem,{key:e,value:e},Rn.createElement(Y,null,Rn.createElement(ee,null,Rn.createElement(re,null,e.charAt(0).toUpperCase()+e.slice(1)))))))))),Rn.createElement(oe,null),f||void 0===O||void 0===P?null:Rn.createElement(ae,{text:"Send with SideShift",hoverText:"Send with SideShift",onClick:()=>{S(!0),void 0!==O&&void 0!==r&&r.emit("get-altpayment-rate",{from:`${O.coin}-${null==O?void 0:O.networks[0]}`,to:"XEC"===b?"ecash-mainnet":"bitcoincash-mainnet"})},disabled:f||void 0===O||void 0===P,animation:A}),Rn.createElement(H,{onClick:()=>{n(!1)}},"Back")),h&&!p&&Rn.createElement(H,{onClick:q},"Back")))},Et=e=>{var t,r;const{to:n,foot:o,success:i=!1,paymentId:s,successText:a="Thank you!",disablePaymentId:l,goalAmount:u,ButtonComponent:c=ae,currency:f=ce(n),animation:p,randomSatoshis:h=!1,editable:m=!1,newTxs:g,setNewTxs:A,apiBaseUrl:b,usdPrice:v,wsBaseUrl:w,hoverText:S="Send Payment",setAltpaymentShift:_,altpaymentShift:x,shiftCompleted:E,setShiftCompleted:k,disableAltpayment:T,contributionOffset:R,useAltpayment:C,setUseAltpayment:B,setTxsSocket:O,txsSocket:I,setAltpaymentSocket:P,altpaymentSocket:$,addressType:N,setAddressType:M,coins:L,setCoins:D,coinPair:q,setCoinPair:U,loadingPair:F,setLoadingPair:j,loadingShift:H,setLoadingShift:W,altpaymentError:V,setAltpaymentError:G,isChild:K,convertedCurrencyObj:Z,donationAddress:J=ie.donationAddress,donationRate:Q=ge,setConvertedCurrencyObj:Y=()=>{},setPaymentId:te}=e,[re,ne]=d(!0),[oe,ue]=d(""),de=Rn.useRef(null),he=Rn.useRef(void 0),me=re||!0===K&&!l&&void 0===s,[ye,ve]=d(void 0),_e=null!=I?I:ye,xe=null!=O?O:ve,[Ee,ke]=d(),Te=null!=g?g:Ee,Re=q$2(e=>{(null!=A?A:ke)(e)},[A]),[Oe,Ie]=d(void 0),Pe=null!=x?x:Oe,$e=null!=_?_:Ie,[Ne,Le]=d(!1),qe=null!=C?C:Ne,Ue=null!=B?B:Le,[Fe,je]=d(void 0),ze=null!=$?$:Fe,Ve=null!=P?P:je,[Ge,Ke]=d(!1),Ze=null!=E?E:Ge,Je=null!=k?k:Ke,[Xe,Qe]=d([]),Ye=null!=L?L:Xe,tt=null!=D?D:Qe,[rt,nt]=d(),ot=null!=q?q:rt,it=null!=U?U:nt,[st,at]=d(!1),lt=null!=F?F:st,ut=null!=j?j:at,[ct,dt]=d(!1),ft=null!=H?H:ct,pt=null!=W?W:dt,[mt,gt]=d(),yt=null!=V?V:mt,At=null!=G?G:gt,[St,_t]=d(ce(n)),xt=null!=N?N:St,Et=null!=M?M:_t,[kt,Tt]=d(!1),[Rt,Ct]=d(!1),[Bt,Ot]=d(void 0),[It,Pt]=d(!1),[$t,Nt]=d(""),[Mt,Lt]=d(""),[Dt,qt]=d(0),[Ut,Ft]=d(!1),jt=null!=(t=e.price)?t:0,[Ht,zt]=d(void 0!==e.price&&e.price>0),Wt=q$2(e=>e<=0?0:Math.max(1,Math.min(99,e)),[]),Vt=q$2(()=>{if("undefined"!=typeof window&&window.localStorage)try{const e=localStorage.getItem(Se);if(null!==e){const t=parseFloat(e);if(!isNaN(t)&&t>=0)return Wt(t)}}catch(e){console.warn("Failed to load donation rate from localStorage:",e)}return 0},[Wt]),Gt=T$1(()=>Wt(Q),[Q,Wt]),Kt=T$1(()=>Vt(),[Vt]),[Zt,Jt]=d(Kt),[Xt,Qt]=d(Kt>0),[Yt,er]=d(Kt>0?Kt:Gt),[tr,rr]=d(""),[nr,or]=d(),[ir,sr]=d(`Send any amount of ${xt}`),[ar,lr]=d("Send Payment"),[ur,cr]=d(),[dr,fr]=d(!1),[pr,hr]=d(void 0),mr=q$2(e=>{Y(e),K||l||void 0===te||te(void 0)},[Y,te]),[gr,yr]=d(null),Ar=Ae(e.theme,le(n)),br=T$1(()=>((e,t=.5)=>(e=>{const t=(e=>{if(!e)return null;const t=e.trim();if(!t)return null;const r=document.createElement("canvas").getContext("2d");return r?(r.fillStyle=t,r.fillStyle):null})(e);if(!t)return 0;const r=(e=>{const t=e.replace(/^#/,""),r=3===t.length?t.split("").map(e=>e+e).join(""):t,n=/^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null})(t);if(!r)return 0;const{r:n,g:o,b:i}=r,s=n/255,a=o/255,l=i/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))})(e)>t)(Ar.palette.tertiary),[Ar.palette.tertiary]),[vr,wr]=d(e.amount),[Sr,_r]=d(e.currencyObject),xr=He(It)?{filter:"blur(5px)"}:{};y(()=>{const e="paybutton-widget-keyframes";if(document.getElementById(e))return;const t=document.createElement("style");t.id=e,t.textContent="\n@keyframes reveal-qr { from { clip-path: circle(0% at 50% 50%); transform: rotate(-10deg); } to { clip-path: circle(100% at 50% 50%); transform: rotate(0deg); } }\n@keyframes fade-scale { from { opacity: 0; transform: scale(0.3); } 80% { opacity: 1; transform: scale(1.3); } to { opacity: 1; transform: scale(1); } }\n@keyframes button-slide { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0px); } }\n@keyframes button-slide-out { from { opacity: 1; transform: translateY(0px); } to { opacity: 0; transform: translateY(20px); } }\n@keyframes fade-slide-up { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0px); } }\n@keyframes copy-qr { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }\n@keyframes copy-svg { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n@keyframes copy-icon { 0% { transform: scale(1); } 50% { transform: scale(0.7); } 100% { transform: scale(1); } }\n@keyframes success-qr { 0% { transform: scale(1); } 50% { transform: scale(0.7); } 100% { transform: scale(1); } }\n@keyframes success-icon { 0% { transform: rotate(0deg); } 20% { transform: rotate(-10deg); } 60% { transform: rotate(370deg); } 100% { transform: rotate(360deg); } }\n",document.head.appendChild(t)},[]);const Er=T$1(()=>{const e={success:i,loading:me,theme:Ar,recentlyCopied:Rt,copied:kt};return{root:{minWidth:"240px",background:br?"#2a2a2a":"#f5f5f7",position:"relative",overflow:"hidden"},qrCode:{background:br?"#1a1a1a":"#fff",border:br?"1px solid #333":"1px solid #eee",borderRadius:"4px",outline:"none",lineHeight:0,maxWidth:"28vh",maxHeight:"28vh",position:"relative",padding:"1rem",cursor:"pointer",userSelect:"none","&:active":{borderWidth:"2px",margin:"-1px"},"& path":{opacity:e.loading?0:e.success?.35:1,color:e.theme.palette.secondary},"& image":{opacity:e.loading?0:1}},copyTextContainer:{display:e.loading?"none":"block",background:br?"#1a1a1acc":"#ffffffcc",padding:"0 0.15rem 0.15rem 0"},copyText:{lineHeight:"1.2em",fontSize:"0.7em",color:e.theme.palette.tertiary,textShadow:br?"#000 -2px 0 1px, #000 0 -2px 1px, #000 0 2px 1px, #000 2px 0 1px":"#fff -2px 0 1px, #fff 0 -2px 1px, #fff 0 2px 1px, #fff 2px 0 1px","&:disabled span":{filter:"blur(2px)",color:br?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)"}},text:{fontSize:"0.9rem",color:e.theme.palette.tertiary},spinner:{color:e.theme.palette.primary},footer:{fontSize:"0.6rem",color:br?"#888888":"#a8a8a8",fontWeight:"normal",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center",animation:"fade-slide-up 0.6s ease-out forwards",animationDelay:"0.7s",opacity:0,lineHeight:2.5},footerSeparator:{marginLeft:"7px",marginRight:"4px"},sideShiftLink:{fontSize:"14px",cursor:"pointer",padding:"6px 12px",marginTop:"20px",background:br?"#444444":"#e9e9e9",color:br?"#ffffff":"inherit",borderRadius:"5px",transition:"all ease-in-out 200ms",opacity:0,"&:hover":{background:e.theme.palette.primary,color:e.theme.palette.secondary}},animate_sideshift:{animation:e.success?"button-slide-out 0.4s ease-in-out forwards":"button-slide 0.6s ease-in-out forwards",animationDelay:e.success?"0s":"0.5s"},hide_sideshift:{display:"none"},editAmount:{width:"100%",margin:"12px auto 10px",display:"flex",alignItems:"center","& > div":{width:"100%"},"& span":{marginLeft:"4px",fontSize:"16px"}},error:{fontSize:"0.9rem",color:"#EB3B3B"},qrAnimations:{animation:e.success?"success-qr 0.4s ease-in-out forwards":e.recentlyCopied?"copy-qr 0.3s ease-in-out forwards":e.loading||e.copied?"none":"reveal-qr 0.8s ease-in-out forwards","& svg":{animation:e.recentlyCopied?"copy-svg 0.3s ease-in-out forwards":"none"},"& image":{animation:e.success?"success-icon 1s ease-in-out forwards":e.recentlyCopied?"copy-icon 0.3s ease-in-out forwards":e.loading||e.copied?"none":"fade-scale 0.6s ease-in-out forwards",transformOrigin:"center center"}},button_container:{opacity:0,animation:"button-slide 0.6s ease-in-out forwards",animationDelay:"0.4s"}}},[i,me,Ar,Rt,kt,br]),kr=T$1(()=>{var e;const t=null!=(e=Ar.palette.logo)?e:Ar.palette.primary;return`data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg version='1.1' viewBox='0 0 34 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(1,1)'%3E%3Ccircle cx='16' cy='16' r='17' fill='%23fff' stroke-width='1.0625'/%3E%3C/g%3E%3Cg transform='translate(1,1)' fill-rule='evenodd'%3E%3Ccircle cx='16' cy='16' r='16' fill='${window.encodeURIComponent(t)}'/%3E%3Cpath d='m21.207 10.534c-0.776-1.972-2.722-2.15-4.988-1.71l-0.807-2.813-1.712 0.491 0.786 2.74c-0.45 0.128-0.908 0.27-1.363 0.41l-0.79-2.758-1.711 0.49 0.805 2.813c-0.368 0.114-0.73 0.226-1.085 0.328l-3e-3 -0.01-2.362 0.677 0.525 1.83s1.258-0.388 1.243-0.358c0.694-0.199 1.035 0.139 1.2 0.468l0.92 3.204c0.047-0.013 0.11-0.029 0.184-0.04l-0.181 0.052 1.287 4.49c0.032 0.227 4e-3 0.612-0.48 0.752 0.027 0.013-1.246 0.356-1.246 0.356l0.247 2.143 2.228-0.64c0.415-0.117 0.825-0.227 1.226-0.34l0.817 2.845 1.71-0.49-0.807-2.815a65.74 65.74 0 0 0 1.372-0.38l0.802 2.803 1.713-0.491-0.814-2.84c2.831-0.991 4.638-2.294 4.113-5.07-0.422-2.234-1.724-2.912-3.471-2.836 0.848-0.79 1.213-1.858 0.642-3.3zm-0.65 6.77c0.61 2.127-3.1 2.929-4.26 3.263l-1.081-3.77c1.16-0.333 4.704-1.71 5.34 0.508zm-2.322-5.09c0.554 1.935-2.547 2.58-3.514 2.857l-0.98-3.419c0.966-0.277 3.915-1.455 4.494 0.563z' fill='%23fff' fill-rule='nonzero'/%3E%3C/g%3E%3C/svg%3E%0A`},[Ar]),Tr=T$1(()=>{var e;const t=null!=(e=Ar.palette.logo)?e:Ar.palette.primary;return`data:image/svg+xml,%3Csvg version='1.1' viewBox='1.65 1.65 20.65 20.65' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' fill='${window.encodeURIComponent(t)}' stroke='%23fff' stroke-width='.6'/%3E%3Cpath d='m7.2979 14.697-2.6964-2.6966 0.89292-0.8934c0.49111-0.49137 0.90364-0.88958 0.91675-0.88491 0.013104 0.0047 0.71923 0.69866 1.5692 1.5422 0.84994 0.84354 1.6548 1.6397 1.7886 1.7692l0.24322 0.23547 7.5834-7.5832 1.8033 1.8033-9.4045 9.4045z' fill='%23fff' stroke-width='.033708'/%3E%3C/svg%3E%0A`},[Ar]);y(()=>{if(void 0!==(null==Sr?void 0:Sr.string)){const e=$r(Sr.string);ue(e)}},[null==Sr?void 0:Sr.string]),y(()=>{if(!Rt)return;const e=setTimeout(()=>{Ct(!1)},1e3);return()=>clearTimeout(e)},[Rt]),y(()=>{zt(void 0!==jt&&jt>0)},[jt]),y(()=>{(async()=>{try{const e=await(async()=>Me())();fr(e)}catch(e){fr(!1)}})()},[]),y(()=>((async()=>{!0!==K&&(await ht({address:n,txsSocket:_e,apiBaseUrl:b,wsBaseUrl:w,setTxsSocket:xe,setNewTxs:Re}),qe&&await bt({addressType:xt,wsBaseUrl:w,altpaymentSocket:ze,setAltpaymentSocket:Ve,setCoins:tt,setCoinPair:it,setLoadingPair:ut,setAltpaymentShift:$e,setLoadingShift:pt,setAltpaymentError:At}))})(),()=>{void 0!==ze&&(ze.disconnect(),Ve(void 0))}),[n,qe]),y(()=>{null!=vr&&0!==vr||Ft(!0),He(m)&&Ft(!0)},[]),y(()=>{(async()=>{if(void 0===Te||0===Te.length){const e=await(async(e,t=ie.apiBaseUrl)=>{try{const r=await axios.get(`${t}/address/balance/${e}`);return isNaN(r.data)?null:r.data}catch(e){return}})(n,b);Ot(e)}ne(!1)})()},[Te,n,b]),y(()=>{K||l||void 0===te||""===n||Be(f)&&void 0===pr||(async()=>{try{let e;if("number"==typeof pr)e=pr;else if(Z&&"number"==typeof Z.float)e=Z.float;else if(null!=vr&&""!==vr){const t=Number(vr);if(Number.isNaN(t))return;e=t}else e=null;if(he.current===e)return;he.current=e;const t=await De(null!=e?e:void 0,n,b);te(t)}catch(e){console.error("Error creating payment ID:",e)}})()},[K,l,n,f,pr,Z,vr,b,te,he]),y(()=>{const t=void 0!==vr&&vr&&isNaN(+vr);se(n)||le(n)?(Pt(He(e.disabled)),Nt("")):t?(Pt(!0),Nt("Amount should be a number")):(Pt(!0),Nt("Invalid Recipient")),v&&vr?yr(v*+vr>=10):"USD"===f?vr&&+vr>=10&&yr(!0):"CAD"===f&&vr&&+vr>=15&&yr(!0)},[n,vr,v]),y(()=>{const t=void 0!==vr&&vr&&isNaN(+vr),r="number"==typeof vr&&vr<0||"string"==typeof vr&&vr.trim().startsWith("-");let o;if(t?(Pt(!0),Nt("Amount should be a number")):r?(Pt(!0),Nt("Amount should be positive")):se(n)||le(n)?Nt(""):Nt("Invalid Recipient"),void 0!==nr&&vr&&xt){const t=et(+vr,f,!1);_r(t),e.setCurrencyObject&&e.setCurrencyObject(t);const r=jt?et(t.float/jt,xt,h):null;mr(r)}else if(vr&&xt){o=+vr;const t=et(o,f,h);_r(t),Be(f)||mr(t),e.setCurrencyObject&&e.setCurrencyObject(t)}},[vr,f,nr]);const Rr=q$2((e,t)=>{const r=t.toUpperCase();return("XEC"===r||"BCH"===r)&&.01*e>=(we[r]||0)},[]),Cr=q$2((e,t)=>!(!Xt||!Zt||Zt<=0)&&Rr(e,t),[Xt,Zt,Rr]);let Br;y(()=>{if(void 0===n)return;let e;if(Et(xt),lr("XEC"===xt&&dr?"Send with Cashtab":`Send with ${xt} wallet`),Sr&&Ht){const e=Z||(jt?et(Z?Z.float:Sr.float/jt,xt,h):null);if(e){hr(e.float);let t=Sr.string,r=e.string;Cr(e.float,xt)&&(t=et(Sr.float+Sr.float*(Zt/100),f,!1).string,r=et(e.float+e.float*(Zt/100),xt,h).string),sr(`Send ${t} ${Sr.currency} = ${r} ${xt}`);const n=Pr(xt,e.float);rr(null!=n?n:"")}}else{hr(void 0);const t=void 0!==(null==Sr?void 0:Sr.float)&&Sr.float>0;if(!Be(f)&&Sr&&t){const t=Sr.currency,r=Sr.float;let n=Sr.string;Cr(r,t)&&(n=et(r+r*(Zt/100),t,!1).string),sr(`Send ${n} ${t}`),e=Pr(t,r)}else sr(`Send any amount of ${xt}`),e=Pr(xt);rr(null!=e?e:"")}},[n,Sr,jt,vr,ur,Ht,dr,Zt,Xt,It,J,f,h,xt,Cr]),y(()=>{try{cr(function({opReturn:e,disablePaymentId:t,paymentId:r}){void 0===e&&(e="");const n=function(e,t=!1){const r=new Blob([e]).size,n=213-(t?0:8);if(r>n)throw new Error(`Maximum ${n} byte size exceeded for user data: ${r}`);const o=r.toString(16).padStart(2,"0");return r>75?"4c"+o:o}(e,t);(void 0===r||t)&&(r="");const o=function(e){if(e.length%2!=0)throw new Error("Malformed input; paymentId hex should never be of odd length");const t=e.length/2;if(t>75)throw new Error(`Maximum 75 byte size exceeded for paymentId: ${t}`);return`${t.toString(16).padStart(2,"0")}${e}`}(null!=r?r:"");return"045041590000"+n+function(e){const t=(new TextEncoder).encode(e);return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}(e)+o}({opReturn:e.opReturn,paymentId:s,disablePaymentId:null!=l&&l}))}catch(e){console.error(e),Nt(e.message),Pt(!0)}},[e.opReturn,s,l]),y(()=>{wr(e.amount)},[e.amount]),y(()=>{if("undefined"!=typeof window&&window.localStorage)try{localStorage.setItem(Se,Zt.toString())}catch(e){console.warn("Failed to save donation rate to localStorage:",e)}},[Zt]),u&&(Br=+u);const Or=void 0!==u;y(()=>{if(void 0!==Bt){const e=et(Bt,f,!1),t=et(Br,f,!1);if(Be(f)){if(Ht){const e=Bt*jt,t=`${We(e,f,pe.FIAT)} / ${We(Br,f,pe.FIAT)}`,r=e/Br*100;ne(!1),qt(r),Lt(t)}}else if(void 0!==t){let r=e.float;void 0!==R&&(r=Number(r)+Number(R)),qt(100*r/t.float),Lt(`${r} / ${Br}`),ne(!1)}Or&&void 0!==t.float&&t.float<=0&&(Pt(!0),Nt("Goal Value must be a number"))}},[Bt,f,u,jt,Ht,R]);const Ir=q$2(()=>{It||void 0===n||me||tr&&z(tr)&&(Tt(!0),Ct(!0))},[It,n,tr,Tt,Ct,me]),Pr=q$2((e,t)=>{if(It||!n)return;const r=be[e.toLowerCase()];if(!r)return;let o=`${r}:${n.replace(/^.*:/,"")}`;if(t){const r=e.toUpperCase();J&&Cr(t,r)?(o+=`?amount=${t}`,o+=`&addr=${J}&amount=${(t*(Zt/100)).toFixed(pe[r]||pe.XEC)}`):o+=`?amount=${t}`}if(ur){const e=o.includes("?")?"&":"?";o+=`${e}op_return_raw=${ur}`}return o},[It,n,ur,Zt,J,Xt,Cr]),$r=e=>e.replace(/,/g,"").replace(/(\.\d*?[1-9])0+$/,"$1").replace(/\.0+$/,""),Nr=()=>{if(!oe)return;const e=oe.trim();if(""===e||isNaN(+e))return;const t=+e,r=et(t,f,!1);or(r),Dr(String(t))},Mr=""!==oe.trim()&&!isNaN(+oe)&&+oe>0,Lr=Mr&&+oe===(null==Sr?void 0:Sr.float),Dr=t=>{wr(t),e.setAmount&&e.setAmount(t)},qr=Rn.createElement(Box,{sx:Er.qrAnimations},Rn.createElement(QRCodeSVG,{size:300,level:"H",value:tr,bgColor:br?"#1a1a1a":"#ffffff",fgColor:Ar.palette.tertiary,imageSettings:{src:i?Tr:se(n)?kr:"data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='576px' height='576px' viewBox='0 0 576 576' enable-background='new 0 0 576 576' xml:space='preserve'%3e%3cg transform='translate(1,1)'%3e%3ccircle fill='%23FFFFFF' cx='287' cy='287' r='288'/%3e%3c/g%3e%3cpath fill='%23FFFFFF' d='M325.089,228.325l-67.15,38.668c-1.734,0.995-2.794,2.85-2.773,4.849v32.443 c-0.019,1.954,1.05,3.757,2.773,4.681l28.122,16.22c1.635,1.039,3.723,1.039,5.359,0l116.046-66.833 c19.694-11.393,19.694-44.216,0-55.609l-104.294-60.057c-8.867-5.357-19.975-5.357-28.842,0l-104.294,60.078 c-9.056,5.074-14.637,14.671-14.569,25.052c0,40.235,0.17,80.28,0,120.325c-0.085,10.362,5.461,19.954,14.485,25.052l104.294,60.247 c8.914,5.188,19.928,5.188,28.843,0l104.378-60.247c9.017-5.085,14.521-14.702,14.337-25.052v-52.306l-124.136,71.83 c-5.537,3.283-12.423,3.283-17.959,0l-55.439-32.124c-5.612-3.147-9.056-9.11-8.979-15.545V255.96 c-0.028-6.327,3.322-12.188,8.788-15.374c18.487-10.716,37.122-21.409,55.609-32.125c5.542-3.262,12.416-3.262,17.958,0 l27.53,15.713c1.13,0.727,1.459,2.233,0.732,3.365C325.7,227.862,325.42,228.131,325.089,228.325z'/%3e%3cpath fill='%230074C2' d='M288.878,16.941C139.176,16.941,17.819,138.298,17.819,288c0,149.701,121.357,271.059,271.059,271.059 c149.701,0,271.059-121.357,271.059-271.059C559.937,138.298,438.579,16.941,288.878,16.941z M325.089,224.174l-27.529-15.713 c-5.541-3.262-12.415-3.262-17.957,0c-18.487,10.715-37.122,21.409-55.609,32.125c-5.466,3.186-8.816,9.047-8.788,15.374v64.037 c-0.078,6.435,3.366,12.397,8.979,15.545l55.418,32.124c5.536,3.283,12.422,3.283,17.957,0l124.138-71.83v52.306 c0.204,10.327-5.257,19.938-14.231,25.052L303.193,433.44c-8.915,5.188-19.928,5.188-28.843,0l-104.315-60.247 c-9.056-5.075-14.637-14.671-14.569-25.052c0.17-40.045,0-80.111,0-120.325c-0.085-10.363,5.461-19.956,14.485-25.052 l104.294-60.078c8.868-5.357,19.975-5.357,28.843,0l104.378,60.078c19.694,11.393,19.694,44.217,0,55.609L291.42,325.186 c-1.636,1.039-3.724,1.039-5.359,0l-28.122-16.22c-1.724-0.924-2.792-2.727-2.773-4.681v-32.443 c-0.021-1.999,1.04-3.854,2.773-4.849l67.15-38.668c1.146-0.705,1.506-2.204,0.802-3.35 C325.689,224.649,325.416,224.375,325.089,224.174z'/%3e%3c/svg%3e",excavate:!1,height:112,width:112},style:X({flex:1,width:"100%",height:"auto"},xr)})),Ur=c;return Rn.createElement(ee,{value:Ar},Rn.createElement(Box,{sx:Er.root,pt:0,display:"flex",flexDirection:"column",alignItems:"center"},Rn.createElement(Box,{flex:"shrink",alignSelf:"stretch",style:{background:br?"#3a3a3a":"#fff"},py:1,textAlign:"center"},Rn.createElement(Typography,{sx:$t?Er.error:Er.text},$t||(It?"Not yet ready for payment":me?"Loading...":i?a:ir))),Rn.createElement(Box,{display:"flex",flexDirection:"column",alignItems:"center",px:3,pt:2,position:"relative"},qe?Rn.createElement(vt,{altpaymentSocket:ze,thisAmount:vr,updateAmount:Dr,setUseAltpayment:Ue,altpaymentShift:Pe,setAltpaymentShift:$e,shiftCompleted:Ze,setShiftCompleted:Je,altpaymentError:yt,setAltpaymentError:At,coins:Ye,loadingPair:lt,setLoadingPair:ut,loadingShift:ft,setLoadingShift:pt,coinPair:ot,setCoinPair:it,altpaymentEditable:Ut,animation:p,addressType:xt,to:n}):null,Rn.createElement(k$2,null,re&&Or?Rn.createElement(Typography,{sx:Er.text,style:{margin:"10px auto 20px"}},Rn.createElement(CircularProgress,{size:15,thickness:4,sx:Er.spinner})):Rn.createElement(k$2,null,Or?Rn.createElement(k$2,null,Rn.createElement(Typography,{sx:Er.copyText,style:X({marginBottom:"0.61rem"},xr)},Mt,Rn.createElement("strong",null," ",f)),Rn.createElement(wt,{color:Ar.palette.primary,value:Math.round(Dt),disabled:It})):null),Rn.createElement(Box,{flex:1,position:"relative",sx:Er.qrCode,onClick:Ir},Rn.createElement(Fade,{in:!me&&""!==tr},Rn.createElement(Box,{component:"span"},qr,Rn.createElement(Box,{position:"absolute",bottom:0,right:0},Rn.createElement(Fade,{appear:!1,in:!kt||Rt,timeout:{enter:0,exit:2e3}},Rn.createElement(Box,{sx:Er.copyTextContainer},He(It)?null:Rn.createElement(Typography,{sx:Er.copyText},kt?"Payment copied!":"Click to copy")))))),me?Rn.createElement(Box,{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center"},Rn.createElement(CircularProgress,{size:70,thickness:4,sx:Er.spinner})):null),He(m)?Rn.createElement(Box,{sx:Er.editAmount,component:"div"},Rn.createElement(NumericFormat,{value:oe,onValueChange:e=>{ue(e.value)},onKeyDown:e=>{"Enter"===e.key&&Mr&&!Lr&&Nr()},thousandSeparator:!0,allowLeadingZeros:!1,decimalScale:8,inputRef:de,customInput:TextField,isAllowed:e=>{var t,r,n,o;const{floatValue:i,value:s}=e;if(void 0===i)return!0;const a=null!=(t=fe[xt])?t:fe.XEC;if(i<0||i>a)return!1;const l=null!=(r=pe[xt])?r:pe.XEC;return!((null!=(n=null==(o=s.split(".")[1])?void 0:o.length)?n:0)>l)},label:"Edit amount",name:"Amount",placeholder:"Enter Amount",id:"userEditedAmount",disabled:i,InputProps:{endAdornment:Rn.createElement(Box,{component:"button",onClick:Nr,sx:{padding:"4px 10px",fontSize:"0.75rem",fontWeight:500,color:"#fff",backgroundColor:Ar.palette.primary,border:"none",borderRadius:"4px",cursor:"pointer",transition:"background-color 0.2s ease, opacity 0.2s ease",visibility:Mr&&!Lr?"visible":"hidden","&:hover":{backgroundColor:null!=(r=Ar.palette.logo)?r:Ar.palette.primary}}},"Confirm")}}),Rn.createElement(Typography,{component:"span",sx:{marginLeft:"4px"}},f)):null,i?null:Rn.createElement(Box,{pt:2,flex:1,sx:Er.button_container},Rn.createElement(Ur,{text:ar,hoverText:S,onClick:async()=>{"XEC"===xt?await(async e=>{const t=`https://cashtab.com/#/send?bip21=${e}`;try{if(!await Me())return void window.open(t,"_blank");await Ce.sendBip21(e)}catch(e){if(e instanceof srcExports.CashtabAddressDeniedError)return;if(e instanceof srcExports.CashtabExtensionUnavailableError||e instanceof srcExports.CashtabTimeoutError)return void window.open(t,"_blank");window.open(t,"_blank")}})(tr):window.location.href=tr},disabled:He(It)||me,animation:p,size:"medium"})),He(T)?null:Rn.createElement(Typography,{component:"div",sx:((...e)=>Object.assign({},...e))(Er.sideShiftLink,gr||Ut?Er.animate_sideshift:Er.hide_sideshift),onClick:gr||Ut?()=>{Ue(!0)}:void 0,style:{cursor:gr||Ut?"pointer":"default"}},"Don't have any ",xt,"?")),o?Rn.createElement(Box,{pt:2,flex:1},o):null,Rn.createElement(Box,{py:.8},Rn.createElement(Typography,{sx:Er.footer},Rn.createElement(Box,null,"Powered by PayButton.org"),(()=>{const e=Ht&&void 0!==pr?pr:null==Sr?void 0:Sr.float;return("XEC"===xt||"BCH"===xt)&&void 0!==e&&e>0&&Rr(e,xt)})()?Rn.createElement(k$2,null,Rn.createElement(Box,{sx:Er.footerSeparator},"|"),Rn.createElement(Tooltip,{title:"Send us some love with a small donation",arrow:!0,placement:"top"},Rn.createElement(Box,{display:"flex",alignItems:"center"},Rn.createElement(IconButton,{onClick:()=>{if(Xt)er(Zt),Jt(0),Qt(!1);else{const e=Wt(Yt>0?Yt:Gt);Jt(e),Qt(!0),e>0&&er(e)}},disabled:i,sx:{padding:"4px",flexShrink:0},"aria-label":Xt?"Disable donation":"Enable donation"},Rn.createElement(Box,{component:"svg",sx:{width:"13px",height:"13px",fill:Xt?"#f44336":"none",stroke:Xt?"#f44336":br?"#a0a0a0":"#5c5c5c",strokeWidth:Xt?0:1.5,transition:"all 0.2s ease-in-out","&:hover":{fill:Xt?"#d32f2f":"rgba(244, 67, 54, 0.1)",stroke:Xt?"#d32f2f":"#f44336"}},viewBox:"0 0 24 24"},Rn.createElement("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"}))),Xt?Rn.createElement(k$2,null,Rn.createElement(TextField,{type:"number",value:Zt,onChange:e=>{(e=>{const t=Wt(e);Jt(t),t>=1&&(Xt||Qt(!0),er(t))})(parseFloat(e.target.value)||0)},inputProps:{min:1,max:99,step:1},size:"small",disabled:i,placeholder:"0",sx:{width:"34px","& .MuiOutlinedInput-root":{height:"18px","& input":{padding:"0px 2px 0px 4px",fontSize:"0.6rem",textAlign:"left",color:br?"#b0b0b0":"#5c5c5c",lineHeight:"1.5em"},"& fieldset":{borderWidth:"1px"}}}}),Rn.createElement(Typography,{component:"span",sx:{fontSize:"0.6rem",color:br?"#b0b0b0":"#5c5c5c",flexShrink:0,marginLeft:"2px"}},"%")):null))):null)))))},Dt=["to","opReturn","disablePaymentId","paymentId","amount","setAmount","currency","cryptoAmount","price","animation","randomSatoshis","hideToasts","sound","onSuccess","onTransaction","goalAmount","disabled","editable","wsBaseUrl","apiBaseUrl","successText","hoverText","disableAltpayment","contributionOffset","altpaymentShift","setAltpaymentShift","newTxs","setNewTxs","txsSocket","isChild","disableSound","transactionText","donationAddress","donationRate","convertedCurrencyObj","setConvertedCurrencyObj"],Ct={variant:"success",style:{marginBottom:"60px"},autoHideDuration:8e3,anchorOrigin:{vertical:"bottom",horizontal:"center"}},xt={autoHideDuration:8e3,anchorOrigin:{vertical:"bottom",horizontal:"center"}},Ot=(Mt=e=>{let{to:t,opReturn:r,disablePaymentId:n=He(e.disablePaymentId),paymentId:o,amount:i,setAmount:s,currency:a="",cryptoAmount:l,price:u,animation:c,randomSatoshis:f=!1,hideToasts:p=!1,sound:h=!0,onSuccess:m,onTransaction:g,goalAmount:A,disabled:b,editable:v,wsBaseUrl:w,apiBaseUrl:S,successText:_,hoverText:x,disableAltpayment:E,contributionOffset:k,altpaymentShift:T,setAltpaymentShift:C,newTxs:B,setNewTxs:O,txsSocket:I,isChild:P,disableSound:$,transactionText:N,donationAddress:M,donationRate:L,convertedCurrencyObj:D,setConvertedCurrencyObj:q}=e,U=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,Dt);const[F,j]=d(),H=e.setCurrencyObj||j,z=e.currencyObj||F,[W,V]=d(),G=O?B:W,K=null!=O?O:V;void 0===L&&(L=ge);const[Z,J]=d(void 0),Q=null!=o?o:Z,Y=J,[ee,te]=d(0),[re,ne]=d(0),[oe,se]=d(!1),{enqueueSnackbar:ae}=useSnackbar(),[le,ue]=d(!1),de=function(){switch(ie.altpaymentClient){case"sideshift":return new St;case"mocked":return new gt;default:throw new Error("ERROR: Invalid alternative payment client")}}(),fe=ce(t);var he;(!Be(he=a)&&!ve(he)||ve(a)&&fe!==a)&&(a=fe);const ye=T$1(()=>new Audio("data:audio/mpeg;base64,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"),[]),Ae=q$2(async e=>{if(T)"settled"===(await de.getPaymentStatus(T.id)).status&&(h&&!He($)&&ye.play().catch(()=>{}),null==m||m(e),ue(!0));else{const o=z?null==z?void 0:z.float:void 0,i=_e(e.amount),s=ce(t);((e,t,r,n,o,i,s,a,l)=>{const{paymentId:u,rawMessage:c,message:d,amount:f,address:p}=e,h="bitcoincash"===me(p);let m=!0;if(s){"number"==typeof s&&(s=new R(s));const e=ce(p);if(e!==t)if(l){const t=(l.float/r).toFixed(pe[e]);m=_e(t).isEqualTo(f)}else m=!1;else m=s.isEqualTo(f)}let g=!0,y=!0;if(n&&0!==n||h||(g=!!o||i===u),!h){const e=""===c||void 0===c?d:c;y=a?e===a:""===e||void 0===e}return m&&g&&y})(e,a,ee,f,n,Q,o,r,z)?(h&&!He($)&&ye.play().catch(()=>{}),p||ae(`${_?_+" | ":""}Received ${i} ${s}`,Ct),se(!0),null==m||m(e)):(null==g||g(e),N&&ae(`${N||"New transaction"} | Received ${i} ${s}`,xt))}K([])},[m,g,ae,p,h,ye,l,_,t,Q,T,ee,z,f,L]),be=q$2(async()=>{const e=await Ee(a,t,S),r=await Ee("USD",t,S);null!==e&&te(e),null!==r&&ne(r)},[a,t,S]);y(()=>{void 0===u||0===u?(async()=>{be()})():te(u)},[a,u,re]);const we=q$2(e=>{var t;!1===e.confirmed&&(t=_e(e.amount),$e.isLessThan(t))&&Ae(e)},[Ae]);return y(()=>{null==G||G.map(e=>{we(e)})},[G,we]),Rn.createElement(Rn.Fragment,null,Rn.createElement(Et,X({to:t,isChild:P},U,{amount:i,setAmount:s,opReturn:r,paymentId:Q,disablePaymentId:n,goalAmount:A,currency:a,animation:c,currencyObject:z,setCurrencyObject:H,randomSatoshis:f,price:ee,usdPrice:re,success:oe,disabled:b,editable:v,newTxs:G,setNewTxs:K,txsSocket:I,wsBaseUrl:w,apiBaseUrl:S,successText:_,hoverText:x,altpaymentShift:T,setAltpaymentShift:C,shiftCompleted:le,setShiftCompleted:ue,disableAltpayment:E,contributionOffset:k,transactionText:N,donationAddress:M,donationRate:L,convertedCurrencyObj:D,setConvertedCurrencyObj:q,setPaymentId:Y})))},e=>Rn.createElement(SnackbarProvider,null,Rn.createElement(GlobalStyles,{styles:{".SnackbarContainer-root":{marginBottom:"60px"},".SnackbarContainer-anchorOriginBottomCenter":{marginBottom:"60px"}}}),Rn.createElement(Mt,X({},e))));var Mt;const Lt=({to:e,amount:t,setAmount:r,opReturn:n,paymentId:o,disablePaymentId:i,currency:s,currencyObj:a,setCurrencyObj:l,cryptoAmount:u,price:c,successText:f="Thank you!",animation:p="slide",randomSatoshis:h=!1,hideToasts:m=!1,onClose:g,onSuccess:A,onTransaction:b,goalAmount:v,disableEnforceFocus:w=!1,editable:S=!1,dialogOpen:_=!0,setDialogOpen:x,container:E,wsBaseUrl:k,apiBaseUrl:T,hoverText:R,disableAltpayment:C,contributionOffset:B,autoClose:O=!0,useAltpayment:I,setUseAltpayment:P,setTxsSocket:$,txsSocket:N,setAltpaymentSocket:M,altpaymentSocket:L,setCoins:D,coins:q,setCoinPair:U,coinPair:F,setLoadingPair:j,loadingPair:H,setAltpaymentShift:z,altpaymentShift:W,setLoadingShift:V,loadingShift:G,setAltpaymentError:K,altpaymentError:Z,addressType:J,newTxs:Q,setNewTxs:Y,setAddressType:te,disableSound:re,transactionText:ne,disabled:oe,convertedCurrencyObj:ie,setConvertedCurrencyObj:ue,theme:ce,donationAddress:de,donationRate:fe})=>{const[pe,he]=d(!1),[me,ge]=d(!1),be=A$1(null),ve=()=>{be.current&&(clearTimeout(be.current),be.current=null)},we=()=>{ve(),g&&g(pe,o),he(!1)};y(()=>()=>ve(),[]),y(()=>{void 0!==e&&(se(e)||le(e))?ge(He(oe)):ge(!0)},[e,t,oe]);const Se=e=>Rn.createElement(ae,X({animation:p},e)),_e=Ae(ce,le(e));let xe;return t&&(xe=+t),Rn.createElement(ee,{value:_e},Rn.createElement(Dialog,{container:E,open:_,onClose:we,disableEnforceFocus:w,disableScrollLock:!0,TransitionComponent:Zoom,transitionDuration:{enter:300,exit:300}},Rn.createElement(Ot,{isChild:!0,ButtonComponent:Se,active:_,to:e,amount:xe,opReturn:n,paymentId:o,disablePaymentId:i,setAmount:r,currencyObj:a,setCurrencyObj:l,cryptoAmount:u,price:c,currency:s,animation:p,randomSatoshis:h,hideToasts:m,onSuccess:e=>{!1===_&&x(!0),he(!0),null==A||A(e);const t=function(e){if(void 0===e)return ye;if("boolean"==typeof e)return e?ye:void 0;if("number"==typeof e)return e>0?Math.round(1e3*e):void 0;if("string"==typeof e){const t=e.trim().toLowerCase();if("true"===t)return ye;if("false"===t)return;const r=+t;return isNaN(r)?ye:r>0?Math.round(1e3*r):void 0}}(O);void 0!==t&&(ve(),be.current=setTimeout(()=>{we()},t))},onTransaction:b,successText:f,disabled:me,editable:S,goalAmount:v,wsBaseUrl:k,apiBaseUrl:T,hoverText:R,disableAltpayment:C,contributionOffset:B,useAltpayment:I,setUseAltpayment:P,setTxsSocket:$,txsSocket:N,setAltpaymentSocket:M,altpaymentSocket:L,setCoins:D,coins:q,setCoinPair:U,coinPair:F,setLoadingPair:j,loadingPair:H,setAltpaymentShift:z,altpaymentShift:W,setLoadingShift:V,loadingShift:G,setAltpaymentError:K,altpaymentError:Z,addressType:J,setAddressType:te,setNewTxs:Y,newTxs:Q,disableSound:re,transactionText:ne,donationAddress:de,donationRate:fe,convertedCurrencyObj:ie,setConvertedCurrencyObj:ue,foot:pe&&Rn.createElement(Se,{onClick:we,text:"Close",hoverText:"Close",disabled:me})})))},Tt=({to:e,amount:t,opReturn:r,disablePaymentId:n,currency:o="",theme:i,text:s,hoverText:a,successText:l="Thank you!",animation:u="slide",randomSatoshis:c=!1,hideToasts:f=!1,disabled:p=!1,goalAmount:h,disableEnforceFocus:m=!1,editable:g=!1,onSuccess:A,onTransaction:b,onOpen:v,onClose:w,wsBaseUrl:S,apiBaseUrl:_,transactionText:x,disableSound:E,autoClose:k=!1,disableAltpayment:T,contributionOffset:R,size:C="md",sizeScaleAlreadyApplied:B=!1,donationRate:O=ge,donationAddress:I=ie.donationAddress})=>{const[P,$]=d(!1),[N,M]=d(!1),[L,D]=d(""),[q,U]=d(t),[F,j]=d(void 0),[H,z]=d(void 0),[W,V]=d(!1),[G,K]=d([]),[Z,J]=d(!1),[Q,Y]=d(),[te,re]=d(!1),[ne,oe]=d(),[ue,de]=d(void 0),[fe,pe]=d(),[he,me]=d(),[ye,be]=d(),[ve,we]=d(0),[Se,_e]=d(),xe=A$1(ve),ke=A$1(he),[Te,Re]=d(void 0),[Ce,Oe]=d(ce(e));y(()=>{xe.current=ve},[ve]),y(()=>{ke.current=he},[he]);const Ie=q$2(async(e,t,r)=>{if(!n&&t)try{const n=null==ye?void 0:ye.float,o=(Be(e)||c)&&void 0!==n?n:r,i=await De(o,t,_);return Re(i),i}catch(e){return void console.error("Error creating payment ID:",e)}},[n,_,c,ye]),Pe=A$1(void 0);y(()=>{if(!P||n||!e)return;let t;if(Be(o)){if(!ye)return;t=ye.float}else if(void 0===q)t=null;else{const e=Number(q);if(Number.isNaN(e))return;t=e}Pe.current!==t&&(Pe.current=t,Ie(o,e,null!=t?t:void 0))},[q,o,e,P,n,Te,Ie,ye]);const $e=q$2(async()=>{v&&(Be(o)?(()=>{const t=setInterval(()=>{0!==xe.current&&(clearInterval(t),v(ke.current,e,Te))},300)})():v(q,e,Te)),$(!0)},[v,o,q,e,Te,n,Ie]);y(()=>{U(t)},[t]),y(()=>{const r=void 0!==t&&isNaN(+t);void 0!==e?(M(He(p)),D("")):r?(M(!0),D("Amount should be a number")):(M(!0),D("Invalid Recipient"))},[e,t,p]),y(()=>{e?se(e)||le(e)?D(""):D("Invalid Recipient"):D("Enter an address")},[e]),y(()=>{if(!1!==P)return(async()=>{if(void 0===F){const t=fe?null==fe?void 0:fe.float:void 0;await ht({address:e,txsSocket:F,apiBaseUrl:_,wsBaseUrl:S,setTxsSocket:j,setNewTxs:_e,setDialogOpen:$,checkSuccessInfo:{currency:o,price:ve,randomSatoshis:null!=c&&c,disablePaymentId:n,expectedAmount:t,expectedOpReturn:r,expectedPaymentId:Te,currencyObj:fe,donationRate:O}})}void 0===H&&W&&await bt({addressType:Ce,altpaymentSocket:H,wsBaseUrl:S,setAltpaymentSocket:z,setCoins:K,setCoinPair:Y,setLoadingPair:J,setAltpaymentShift:oe,setLoadingShift:re,setAltpaymentError:de})})(),()=>{void 0!==H&&(H.disconnect(),z(void 0))}},[P,W]),y(()=>{if(!1===P&&t&&o){const e=et(Number(t),o,c);setTimeout(()=>{U(e.float),pe(e)},300)}},[P,t,o,c]);const Ne=q$2(async()=>{const t=await Ee(o,e,_);null!==t&&we(t)},[o,e,_]);y(()=>{(async()=>{Be(o)&&0===ve&&await Ne()})()},[o,Ne,e,ve]),y(()=>{if(fe&&Be(o)&&ve){if(!ye){const t=ce(e),r=et(fe.float/ve,t,c);me(r.string),be(r)}}else if(Be(o)||!c||ye)Be(o)||c||me(null==q?void 0:q.toString());else{const e=et(q,Ce,c);me(e.string),be(e)}},[ve,fe,q,o,c,e]);const Me=Ae(i,le(null!=e?e:""));return Rn.createElement(ee,{value:Me},Rn.createElement(e=>Rn.createElement(ae,X({animation:u},e)),{onClick:$e,text:s,hoverText:a,disabled:N,size:C,sizeScaleAlreadyApplied:B}),Rn.createElement(Lt,{disableEnforceFocus:m,disableScrollLock:!0,to:null!=e?e:"",amount:q,opReturn:r,paymentId:Te,disablePaymentId:n,setAmount:U,currencyObj:fe,setCurrencyObj:pe,cryptoAmount:he,price:ve,currency:o,animation:u,randomSatoshis:c,hideToasts:f,onTransaction:b,onSuccess:A,successText:l,disabled:N,editable:g,goalAmount:h,dialogOpen:P,setDialogOpen:$,onClose:(e,t)=>{void 0!==w&&w(e,t),$(!1)},wsBaseUrl:S,apiBaseUrl:_,hoverText:a,disableAltpayment:T,contributionOffset:R,autoClose:k,useAltpayment:W,setUseAltpayment:V,setTxsSocket:j,txsSocket:F,setAltpaymentSocket:z,altpaymentSocket:H,setCoins:K,coins:G,setCoinPair:Y,coinPair:Q,setLoadingPair:J,loadingPair:Z,setAltpaymentShift:oe,altpaymentShift:ne,setLoadingShift:re,loadingShift:te,setAltpaymentError:de,altpaymentError:ue,addressType:Ce,setAddressType:Oe,setNewTxs:_e,newTxs:Se,disableSound:E,transactionText:x,donationAddress:I,donationRate:O,convertedCurrencyObj:ye,setConvertedCurrencyObj:be}),L&&Rn.createElement("p",{style:{color:"#EB3B3B",fontSize:"14px",maxWidth:"190px",textAlign:"center"}},L))},Rt=Lt,It=Ot;var RANDOM_SATOSHIS_DEFAULT_VALUE=!1,validateRandomSatoshis=function(e){return e&&!isNaN(Number(e))?Number(e):e&&"string"==typeof e?"true"===e||"false"!==e&&void 0:void 0};function init(){var e;function t(){var e="",t=!1;window.onload=function(){for(var r=document.scripts,n=0;n1){var i=o[1].split("'");t=!0,e=i[1]}}var s=document.getElementById(e),a=document.getElementsByClassName("paybutton").length>0,l=document.getElementsByClassName("paybutton-widget").length>0,u=document.getElementsByClassName("dialogbutton").length>0;t&&null===s&&console.error("The Paybutton div#".concat(e," is either misspelled or missing.")),a&&renderButtons(a),l&&renderWidgets(l),u&&renderDialogButton(u)}}document.addEventListener("DOMContentLoaded",t),new(null!==(e=window.MutationObserver)&&void 0!==e?e:window.WebKitMutationObserver)(t).observe(document,{subtree:!0,childList:!0,attributes:!0})}"undefined"!=typeof window&&init();var allowedProps=["amount","animation","currency","displayCurrency","hideToasts","hoverText","onSuccess","onTransaction","onOpen","onClose","randomSatoshis","successText","theme","text","to","opReturn","disablePaymentId","disabled","goalAmount","editable","wsBaseUrl","apiBaseUrl","disableAltpayment","contributionOffset","autoClose","disableSound","transactionText","size","donationRate"],requiredProps=["to"];function renderDialogButton(e){var t=document.getElementById("content");e&&t&&Array.from(document.getElementsByClassName("dialogbutton")).forEach(function(e){t.appendChild(e)})}function openDialog(e){var t=document.createElement("div");document.body.appendChild(t);if(e.disabled){var r=document.activeElement;r&&"BUTTON"===r.tagName&&(r.textContent="Unavailable"),t.remove()}else nn(_$2(Rt,__assign({container:t,onClose:function(r,n){void 0!==e.onClose&&e.onClose(r,n),t.remove()}},e)),t)}function renderButtons(e){e?findAndRender("paybutton",Tt,allowedProps,requiredProps):console.error('The "paybutton" class is either misspelled or missing.')}function renderWidgets(e){e?findAndRender("paybutton-widget",It,allowedProps,requiredProps):console.error('The "paybutton-widget" class is either misspelled or missing.')}function findAndRender(e,t,r,n){Array.from(document.getElementsByClassName(e)).forEach(function(e){var o,i=e.getAttributeNames().reduce(function(t,n){var o=camelcase(n);return r.includes(o)&&(t[o]=e.getAttribute(n)),t},{}),s=Object.assign({},i,{to:i.to});if(null!=i.amount&&(s.amount=+i.amount,isNaN(s.amount)&&console.error("Amount must be a number")),s.hideToasts="true"===i.hideToasts,s.randomSatoshis=null!==(o=validateRandomSatoshis(s.randomSatoshis))&&void 0!==o?o:RANDOM_SATOSHIS_DEFAULT_VALUE,i.onSuccess){var a=window.eval;s.onSuccess=a(i.onSuccess)}if(i.onTransaction){a=window.eval;s.onTransaction=a(i.onTransaction)}if(i.onOpen){a=window.eval;s.onOpen=a(i.onOpen)}if(i.onClose){a=window.eval;s.onClose=a(i.onClose)}if(i.theme)try{s.theme=JSON.parse(i.theme)}catch(e){}n.every(function(e){return e in i})||console.error('The "to" parameter is missing from your PayButton config. Please check it'),nn(_$2(t,__assign({},s)),e)})}var validateJSProps=function(e){null!==e.amount&&void 0!==e.amount&&(e.amount=+e.amount,isNaN(e.amount)&&console.error("Amount must be a number"))},index={render:function(e,t){null!==e&&(validateJSProps(t),nn(_$2(Tt,__assign({},t)),e))},renderWidget:function(e,t){null!==e&&(validateJSProps(t),nn(_$2(It,__assign({},t)),e))},openDialog:function(e){return openDialog(e)},renderButtons:renderButtons,renderWidgets:renderWidgets,renderDialogButton:renderDialogButton};return index}); \ No newline at end of file